/* ===== CoreLinker 網站樣式 ===== */
:root {
  --brand: #c8355a;          /* 品牌紅（跟 logo） */
  --brand-dark: #a02848;
  --ink: #1f2430;
  --ink-soft: #5b6270;
  --bg: #faf7f5;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(31, 36, 48, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft JhengHei", "PingFang HK", "Noto Sans TC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--brand); }

/* ===== 導航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-text { font-weight: 800; font-size: 18px; line-height: 1.2; display: flex; flex-direction: column; }
.brand-text small { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--brand); }
.nav-wa {
  background: var(--brand); color: #fff !important;
  padding: 8px 18px; border-radius: 999px;
}
.nav-wa:hover { background: var(--brand-dark); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, #2b0f18 0%, var(--brand-dark) 55%, var(--brand) 100%);
  color: #fff;
  padding: 90px 20px 100px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 20px;
  opacity: .9;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 2px;
}
.hero-sub { margin: 22px 0 20px; font-size: clamp(15px, 2.4vw, 19px); opacity: .92; }
.hero-areas {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero-areas span {
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 5px 18px;
  font-size: 15px; font-weight: 700;
  letter-spacing: 1px;
  background: rgba(255,255,255,.1);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== 按鈕 ===== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 20px rgba(200,53,90,.35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-big { font-size: 18px; padding: 16px 34px; }

/* ===== 共用 section ===== */
.section-inner { max-width: 1080px; margin: 0 auto; padding: 80px 20px; }
.section-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; text-align: center; letter-spacing: 1px; }
.section-sub { text-align: center; color: var(--ink-soft); margin-top: 10px; }
.section-title::after {
  content: ""; display: block; width: 56px; height: 4px;
  background: var(--brand); border-radius: 2px; margin: 16px auto 0;
}

/* ===== 影片牆 ===== */
.videos { background: var(--card); }
.video-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
/* 地區篩選掣 */
.area-filters {
  margin-top: 26px;
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.area-chip {
  border: 1.5px solid rgba(200,53,90,.35);
  background: #fff;
  color: var(--brand);
  font-family: inherit;
  font-size: 14px; font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.area-chip:hover { background: rgba(200,53,90,.08); }
.area-chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
a.area-chip { text-decoration: none; display: inline-block; }

/* 首頁地區徽章（連結版） */
.hero-areas a {
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 5px 18px;
  font-size: 15px; font-weight: 700;
  letter-spacing: 1px;
  background: rgba(255,255,255,.1);
  color: #fff; text-decoration: none;
  transition: background .15s ease;
}
.hero-areas a:hover { background: rgba(255,255,255,.28); }

/* Footer 地區連結 */
.footer-areas { margin-bottom: 10px; }
.footer-areas a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-areas a:hover { text-decoration: underline; }

.video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  background: #111;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  padding: 0;
  display: block;
  text-align: left;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 38px rgba(200,53,90,.25);
}
.video-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.video-card:hover img { transform: scale(1.06); }
.play-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 45%);
}
.play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(200,53,90,.92); color: #fff;
  display: grid; place-items: center;
  font-size: 22px; padding-left: 4px;
  box-shadow: 0 4px 18px rgba(0,0,0,.4);
  opacity: .95;
}
.video-caption {
  position: absolute; left: 12px; right: 54px; bottom: 10px;
  color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.new-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.area-tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
}

/* 每個盤嘅 WhatsApp 查詢掣 */
.card-wa {
  position: absolute; right: 10px; bottom: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.4);
  transition: transform .15s ease;
  z-index: 2;
}
.card-wa:hover { transform: scale(1.12); }
.video-status { text-align: center; margin-top: 28px; color: var(--ink-soft); font-size: 15px; }
.more-wrap { text-align: center; margin-top: 32px; }
.btn-more {
  background: #fff;
  border: 2px solid var(--brand);
  color: var(--brand);
  cursor: pointer;
  font-family: inherit;
}
.btn-more:hover { background: var(--brand); color: #fff; }
.videos-more { text-align: center; margin-top: 36px; }

/* 骨架載入動畫 */
.skeleton { pointer-events: none; background: #e8e2df; animation: pulse 1.4s infinite ease-in-out; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ===== 點解揀我哋 ===== */
.why-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.why-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.why-icon { font-size: 42px; margin-bottom: 14px; }
.why-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.why-card p { color: var(--ink-soft); font-size: 15px; }

/* ===== 聯絡 ===== */
.contact { background: var(--card); }
.contact-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.contact-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.contact-card p { margin-bottom: 12px; color: var(--ink-soft); }
.contact-cta { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; }
.social-row { margin-top: 18px; display: flex; gap: 18px; }
.social-row a { font-weight: 700; text-decoration: none; }
.social-row a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.footer {
  background: var(--ink); color: rgba(255,255,255,.75);
  text-align: center; padding: 26px 16px; font-size: 14px;
}
.footer-badge {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 16px;
}
.footer-badge img { display: block; height: 56px; width: auto; }

/* ===== WhatsApp 浮動掣 ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); }
.modal-box {
  position: relative; z-index: 1;
  width: min(92vw, 420px);
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.modal-player { width: 100%; height: 100%; }
.modal-player iframe { width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute; top: -48px; right: 0;
  background: none; border: none; color: #fff;
  font-size: 28px; cursor: pointer; line-height: 1;
}

/* ===== 手機優化 ===== */
@media (max-width: 640px) {
  .nav-links a:not(.nav-wa) { display: none; }
  .hero { padding: 64px 20px 72px; }
  .section-inner { padding: 56px 18px; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}
