/* ============================================================
   Ai Presenter 智能翻頁筆 — 全站共用樣式
   ============================================================ */

:root {
  /* 配色系統 */
  --color-primary: #4f46e5;       /* 主色 靛藍 */
  --color-primary-dark: #3730a3;
  --color-accent: #06b6d4;        /* 輔色 青 */
  --color-accent-light: #22d3ee;
  --color-ink: #0f172a;           /* 深色文字 */
  --color-body: #334155;          /* 內文 */
  --color-muted: #64748b;
  --color-line: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-dark: #0b1020;

  /* 漸層 */
  --grad-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);

  /* 排版 */
  --font-base: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;

  /* 版面 */
  --maxw: 1140px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(79, 70, 229, .18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: clamp(15px, 1vw + 13px, 17px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--color-ink); line-height: 1.25; font-weight: 800; }

/* ---------- 容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 區塊 ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--soft { background: var(--color-bg-soft); }
.section--dark { background: var(--color-bg-dark); color: #cbd5e1; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 680px; margin-inline: auto; text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--color-primary);
  background: rgba(79, 70, 229, .08); padding: .4em 1em; border-radius: 999px; margin-bottom: 1rem;
}
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section-head p { margin-top: .9rem; color: var(--color-muted); font-size: 1.05rem; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  padding: .8em 1.6em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary); color: #fff; }
.btn--light { background: #fff; color: var(--color-primary); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--color-ink); font-size: 1.15rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1rem;
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav-links a { font-weight: 600; color: var(--color-body); font-size: .98rem; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); }
.nav-cta { margin-left: .5rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--color-ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, rgba(11,16,32,.86), rgba(55,48,163,.72)), var(--hero-img, var(--grad-brand));
  background-size: cover; background-position: center;
}
.hero .container { padding-block: clamp(4rem, 12vw, 8rem); }
.hero-inner { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: -.01em; }
.hero .lead { margin-top: 1.2rem; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #e2e8f0; max-width: 34em; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-stats { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3rem); }
.hero-stats .num { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; }
.hero-stats .lbl { font-size: .85rem; color: #cbd5e1; }

/* ---------- 卡片網格 ---------- */
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; background: rgba(79,70,229,.1);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--color-muted); font-size: .97rem; }

/* ---------- 圖文並排 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.split--rev .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.split-body h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
.split-body p { color: var(--color-body); margin-bottom: 1rem; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--color-body); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem;
  background: var(--grad-brand); color: #fff; border-radius: 50%; display: grid; place-items: center;
  font-size: .75rem; font-weight: 900;
}

/* ---------- 規格表 ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table th, .spec-table td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--color-line); }
.spec-table th { background: var(--color-bg-soft); color: var(--color-ink); font-weight: 700; width: 38%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* ---------- CTA 區 ---------- */
.cta-band { background: var(--grad-brand); color: #fff; border-radius: clamp(20px, 4vw, 28px); padding: clamp(2.5rem, 6vw, 4rem); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta-band p { margin: 1rem auto 1.8rem; max-width: 36em; color: rgba(255,255,255,.92); }

/* ---------- 表單 ---------- */
.form { max-width: 560px; margin-inline: auto; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; color: var(--color-ink); font-size: .95rem; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; padding: .8em 1em; border: 1.5px solid var(--color-line);
  border-radius: 12px; background: #fff; color: var(--color-ink); transition: border .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-bg-dark); color: #94a3b8; padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.site-footer a { color: #94a3b8; transition: color .15s; display: inline-block; padding: .2rem 0; }
.site-footer a:hover { color: var(--color-accent-light); }
.footer-desc { font-size: .92rem; max-width: 30em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; text-align: center; font-size: .85rem; color: #64748b; }

/* ---------- 工具 ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ============================================================
   RWD
   ============================================================ */
@media (max-width: 860px) {
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--color-line);
    padding: .5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem .25rem; border-bottom: 1px solid var(--color-line); }
  .nav-cta { margin: .75rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
