/* ============================================
   天邑廣告社官網 — 共用樣式
   設計原則：照片為主、白底深灰字、品牌紫黃只當點綴、CTA 用 LINE 綠
   ============================================ */

:root {
  /* 品牌色（源自既有 logo：紫底、黃字、藍 C） */
  --brand-purple: #5b2d8e;
  --brand-purple-deep: #3e105c;
  --brand-yellow: #ffd900;
  --brand-blue: #2fa8df;
  /* 功能色 */
  --line-green: #06c755;
  --line-green-dark: #05a847;
  --ink: #1f2229;
  --ink-soft: #555b66;
  --paper: #ffffff;
  --paper-warm: #f7f6f9;
  --border: #e6e3ec;
  /* 版面 */
  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(62, 16, 92, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.site-nav a:hover { color: var(--brand-purple); }
.nav-cta {
  background: var(--line-green); color: #fff !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 700;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--line-green-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 700; cursor: pointer;
  border: none; transition: transform 0.12s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-line {
  background: var(--line-green); color: #fff;
  padding: 15px 34px; font-size: 1.12rem;
}
.btn-line:hover { background: var(--line-green-dark); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  padding: 14px 26px; font-size: 1rem;
}
.btn-ghost:hover { border-color: #fff; }

/* ---------- Hero（深色夜景滿版） ---------- */
.hero {
  position: relative; color: #fff;
  min-height: 82vh;
  display: flex; align-items: center;
  background: var(--brand-purple-deep);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.45) saturate(1.05);
}
.hero-content { position: relative; z-index: 1; padding: 96px 0; }
.hero-eyebrow {
  font-size: 0.98rem; font-weight: 500; letter-spacing: 0.06em;
  color: var(--brand-yellow); margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900; line-height: 1.25; margin-bottom: 18px;
}
.hero-sub { font-size: clamp(1rem, 2.6vw, 1.25rem); color: rgba(255,255,255,0.88); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-warm); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 700;
  color: var(--brand-purple); letter-spacing: 0.12em;
  border: 1px solid var(--brand-purple); border-radius: 999px;
  padding: 3px 14px; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 900; }
.section-desc { color: var(--ink-soft); margin-top: 10px; max-width: 620px; margin-inline: auto; }

/* ---------- 服務網格 ---------- */
.service-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.service-card {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px;
  box-shadow: var(--shadow);
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.service-card p { font-size: 0.9rem; color: var(--ink-soft); }
.service-card .tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  color: var(--brand-purple); background: #f1eafd;
  border-radius: 6px; padding: 1px 8px; margin-bottom: 10px;
}
.service-card[hidden] { display: none; }

/* ---------- 案例 ---------- */
.gallery-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; background: var(--brand-purple-deep);
}
.gallery-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.25s, opacity 0.25s;
}
.gallery-item:hover img { transform: scale(1.04); opacity: 0.92; }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(20, 8, 32, 0.82));
  color: #fff; font-size: 0.85rem; padding: 26px 12px 10px;
}
.video-feature {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  margin-bottom: 28px; background: #000;
}
.video-feature video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- 信任卡 ---------- */
.trust-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.trust-card {
  background: var(--paper); border-top: 4px solid var(--brand-yellow);
  border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow);
}
.trust-card .num { font-size: 1.6rem; font-weight: 900; color: var(--brand-purple); }
.trust-card h3 { font-size: 1.08rem; margin: 6px 0; }
.trust-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- 流程 ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: step; }
.step {
  position: relative; background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 20px 22px;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 1.5rem; font-weight: 900; color: var(--brand-blue);
}
.step h3 { font-size: 1.05rem; margin: 8px 0 6px; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; background: var(--paper); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 16px 20px;
  list-style: none; position: relative;
}
.faq-item summary::after {
  content: "＋"; position: absolute; right: 18px; color: var(--brand-purple);
}
.faq-item[open] summary::after { content: "－"; }
.faq-item .answer { padding: 0 20px 18px; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- 底部 CTA ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--brand-purple-deep), var(--brand-purple));
  color: #fff; text-align: center; padding: 80px 0;
}
.cta-final h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 900; margin-bottom: 12px; }
.cta-final p { color: rgba(255,255,255,0.85); margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #17101f; color: #b9b2c4;
  padding: 40px 0 96px; font-size: 0.9rem;
}
.site-footer a { color: #ddd6e8; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }

/* ---------- 行動版底部浮動 LINE 條 ---------- */
.float-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 1px; box-shadow: 0 -4px 18px rgba(0,0,0,0.18);
}
.float-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 8px; font-weight: 900; font-size: 1.05rem; color: #fff;
}
.float-bar .f-line { background: var(--line-green); flex: 2.2; }
.float-bar .f-tel { background: var(--brand-purple); }
@media (min-width: 900px) {
  .float-bar { left: auto; right: 26px; bottom: 26px; border-radius: 999px; overflow: hidden; width: 340px; }
  .site-footer { padding-bottom: 40px; }
}

/* ---------- 影片點播區（作品集頁） ---------- */
.video-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-bottom: 44px;
}
.video-grid video {
  width: 100%; border-radius: var(--radius); background: #000;
}
.video-grid figcaption { font-size: 0.88rem; color: var(--ink-soft); margin-top: 8px; }

/* ---------- 作品集頁 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.filter-btn {
  border: 1px solid var(--border); background: var(--paper);
  border-radius: 999px; padding: 8px 18px; font-size: 0.92rem; cursor: pointer;
  font-family: inherit;
}
.filter-btn.active { background: var(--brand-purple); color: #fff; border-color: var(--brand-purple); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 4, 18, 0.92);
  display: none; align-items: center; justify-content: center; flex-direction: column;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 8px; }
.lightbox .lb-caption { color: #fff; margin-top: 14px; font-size: 0.95rem; }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px; font-size: 2rem; color: #fff;
  background: none; border: none; cursor: pointer;
}
