/*
 * AnyTalk / Findmo 節慶行銷部落格 — 共用設計系統
 * 視覺 token 直接取自官網 sites/default/index.html（app.findmoapp.com pitch 頁）。
 * 節慶專屬色彩一律只覆寫 --accent 系列 4 個變數，其餘元件（nav/footer/按鈕主色/字體）維持全站一致。
 */

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

:root {
  --blue: #4285f4;
  --green: #7ed957;
  --green-deep: #57c422;
  --yellow: #fbbc04;
  --red: #ea4335;
  --bg: #0a0f1e;
  --grid-color: rgba(66, 133, 244, 0.08);
  --grid-color-strong: rgba(66, 133, 244, 0.18);

  /* 節慶主題色 — 各篇文章在 <style> 覆寫這 4 個變數即可換膚，預設＝品牌綠 */
  --accent: var(--green);
  --accent-deep: var(--green-deep);
  --accent-glow: rgba(126, 217, 87, 0.35);
  --accent-soft: rgba(126, 217, 87, 0.12);
}

html { scroll-behavior: smooth; }

html { overflow-x: hidden; }
body {
  font-family: 'Noto Sans TC', 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}
h1, h2, h3, p { overflow-wrap: break-word; word-break: break-word; }

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: transform 0.3s ease;
}
nav.is-hidden { transform: translateY(-100%); }
.nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 1.6vw, 14px) 24px;
  background: rgba(7, 11, 22, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--accent-glow);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}
nav a.logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 24px; line-height: 1; text-decoration: none; flex-shrink: 0; }
nav a.logo .b { color: var(--blue); }
nav a.logo .g { color: var(--accent); }
.nav-tagline { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.4); margin-left: 10px; white-space: nowrap; }
@media (max-width: 720px) { .nav-tagline { display: none; } }
.nav-links { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.nav-link { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-link:hover { color: #fff; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
  color: #06210f; background: var(--green); border: 1px solid var(--green-deep);
  border-radius: 9px; padding: 8px 16px;
  transition: transform .15s, filter .15s;
  flex-shrink: 0;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.06); }
@media (max-width: 480px) {
  .nav-main { padding-left: 14px; padding-right: 14px; }
  .nav-links { gap: 8px; }
  .nav-link { font-size: 12px; }
  .nav-link .full { display: none; }
  .nav-cta { padding: 6px 10px; font-size: 12px; }
  nav a.logo { font-size: 18px; }
}

.dl-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 399;
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(10, 15, 30, 0.95); color: var(--accent);
  font-size: 20px; line-height: 1; cursor: pointer; text-decoration: none;
  border: 1px solid var(--accent-glow); backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 16px var(--accent-glow);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.dl-fab.is-hidden { transform: translateY(180%); opacity: 0; pointer-events: none; }

/* ── GRID BG（沿用官網雙層格線＋徑向淡出） ── */
.grid-bg { position: absolute; inset: 0; overflow: hidden; }
.grid-bg .layer1 {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
}
.grid-bg .layer2 {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-color-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color-strong) 1px, transparent 1px);
  background-size: 240px 240px;
}
.grid-bg .fade {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, transparent 20%, rgba(10, 15, 30, 0.55) 65%, var(--bg) 100%);
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: clamp(120px, 16vw, 170px) 24px 64px;
  text-align: center;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', monospace; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-glow);
  border-radius: 999px; padding: 6px 16px; margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(32px, 6.4vw, 56px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.8;
}
.hero-date {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 28px;
}

/* ── BUTTONS（CTA 一律固定品牌綠，節慶色不覆蓋，維持行動呼籲辨識度一致） ── */
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  border-radius: 12px; padding: 14px 28px;
  transition: transform .15s, filter .15s, background .15s;
  font-family: inherit;
}
.btn-primary { background: var(--green); color: #06210f; border: 1px solid var(--green-deep); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent-glow); }
.btn-outline:hover { background: var(--accent-soft); transform: translateY(-1px); }

/* ── SECTIONS ── */
.section { max-width: 880px; margin: 0 auto; padding: 56px 24px; }
.section-eyebrow {
  font-family: 'Space Grotesk', monospace; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-title { font-size: clamp(22px, 3.6vw, 32px); font-weight: 900; color: #e8ecf2; line-height: 1.35; margin-bottom: 16px; }
.section-title .hl { color: var(--accent); }
.section-body { font-size: 15.5px; color: rgba(255, 255, 255, 0.62); line-height: 1.85; }
.section-body p + p { margin-top: 14px; }

/* ── GLASS CARD GRID（玩法設計卡片） ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin-top: 28px; }
.glass-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px 20px;
  transition: border-color 0.2s, transform 0.15s;
}
.glass-card:hover { border-color: var(--accent-glow); transform: translateY(-2px); }
.glass-card .gc-icon { font-size: 26px; margin-bottom: 10px; }
.glass-card .gc-title { font-size: 15.5px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.glass-card .gc-desc { font-size: 13.5px; color: rgba(255, 255, 255, 0.5); line-height: 1.7; }

/* ── STEP LIST（建立活動教學步驟） ── */
.step-list { counter-reset: step; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.step-item {
  counter-increment: step;
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px; padding: 16px 18px;
}
.step-item::before {
  content: counter(step);
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent-glow); color: var(--accent);
  font-family: 'Space Grotesk', monospace; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step-body { min-width: 0; }
.step-body .step-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.step-body .step-desc { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); line-height: 1.7; }
.step-body .step-field { color: var(--accent); font-weight: 700; }

/* ── COPY BLOCK（文案小抄，含一鍵複製） ── */
.copy-block {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--accent-glow);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 16px;
  position: relative;
}
.copy-block .cb-label {
  font-family: 'Space Grotesk', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.copy-block .cb-text { font-size: 14.5px; color: rgba(255, 255, 255, 0.85); line-height: 1.8; white-space: pre-line; overflow-wrap: break-word; word-break: break-word; }
.copy-btn {
  position: absolute; top: 14px; right: 14px;
  border: none; border-radius: 8px; padding: 6px 12px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.copy-btn:hover { background: var(--accent-glow); }
.copy-btn.copied { color: #06210f; background: var(--green); }

/* ── SAFETY NOTE（引用真實隱私提醒文案） ── */
.safety-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(234, 67, 53, 0.08);
  border: 1px solid rgba(234, 67, 53, 0.3);
  border-radius: 14px; padding: 16px 18px; margin-top: 24px;
}
.safety-note .sn-icon { font-size: 18px; flex-shrink: 0; }
.safety-note .sn-text { font-size: 13.5px; color: rgba(255, 255, 255, 0.7); line-height: 1.75; }
.safety-note .sn-text b { color: #ff8a80; }

/* ── TYPE BADGE（活動類型標籤） ── */
.type-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Space Grotesk', monospace; font-size: 12px; font-weight: 700;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-glow);
  border-radius: 999px; padding: 5px 14px;
}

/* ── FOOTER CTA ── */
.footer-cta {
  max-width: 640px; margin: 0 auto; padding: 40px 24px 56px; text-align: center;
}
.footer-cta-card {
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  border-radius: 18px; padding: 32px 24px;
}
.footer-cta-title { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.footer-cta-desc { font-size: 14.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.7; margin-bottom: 22px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  padding: 40px 24px 100px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-family: 'Space Grotesk', monospace;
}
.footer-logo { font-size: 18px; font-weight: 700; color: rgba(66, 133, 244, 0.6); margin-bottom: 6px; letter-spacing: 1px; }
.footer-logo span { color: var(--green); }
.footer-tagline { font-family: 'Space Grotesk', sans-serif; color: rgba(255, 255, 255, 0.35); margin-bottom: 14px; }
footer a { color: rgba(255, 255, 255, 0.4); text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .section { padding: 44px 20px; }
  .hero { padding: 108px 20px 48px; }
}
