/* QTraffic 智流 — 共用設計系統 */
:root {
  --primary: #0040c0;
  --primary-light: #5b8def;
  --primary-bg: #e8efff;
  --flow: #0e9e94;
  --flow-bg: #e2f6f4;
  --safety: #ff6b35;
  --safety-bg: #fff1eb;
  --care: #6d5bef;
  --care-bg: #eeecff;
  --api: #0a7ea4;
  --api-bg: #e2f2f8;
  --accent: #ff6b35;
  --accent-bg: #fff1eb;
  --ink: #0a0e1a;
  --ink-2: #1f2a3d;
  --ink-3: #4a5468;
  --ink-4: #7c8599;
  --line: #e4e8f0;
  --line-2: #f0f3f8;
  --bg: #ffffff;
  --bg-soft: #fafbfd;
  --bg-mid: #f4f6fa;
  --green: #00b377;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .12);
  --shadow-glow: 0 24px 80px rgba(0, 64, 192, .25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; }
code, pre { font-family: 'JetBrains Mono', monospace; }
::selection { background: var(--primary-bg); color: var(--primary); }
img { max-width: 100%; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border-bottom: 1px solid rgba(228, 232, 240, 0.7);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--flow) 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 64, 192, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  letter-spacing: -0.02em;
}
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.025em; color: var(--ink); }
.brand-name .zh { color: var(--ink-4); font-weight: 600; font-size: 14px; margin-left: 7px; }
.nav-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink-3); font-size: 14px; font-weight: 500; transition: color .15s ease; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { font-weight: 700; }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 9px 18px; border-radius: 8px;
  font-weight: 600; font-size: 13.5px; transition: all .2s ease; box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
@media (max-width: 980px) { .nav-links a:not(.nav-cta) { display: none; } }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 10px;
  font-weight: 700; font-size: 14.5px; transition: all .2s ease; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff !important; box-shadow: 0 10px 30px rgba(0,64,192,.28); }
.btn-primary:hover { background: #0035a3; transform: translateY(-1px); box-shadow: 0 14px 36px rgba(0,64,192,.34); }
.btn-ghost { background: #fff; color: var(--ink) !important; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-4); background: var(--bg-soft); }

/* HERO (shared) */
.hero { position: relative; padding: 100px 32px 66px; overflow: hidden;
  background: radial-gradient(ellipse 90% 70% at 50% -10%, rgba(91,141,239,.18), transparent 60%),
              radial-gradient(ellipse 60% 50% at 100% 30%, rgba(14,158,148,.10), transparent 60%), var(--bg); }
.hero::before { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,64,192,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(0,64,192,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 30%, transparent 80%); pointer-events: none; }
.hero-inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 52px; align-items: center; }
@media (max-width: 920px) { .hero-inner { grid-template-columns: 1fr; gap: 38px; } .hero { padding: 72px 24px 46px; text-align: center; } .hero-actions, .eyebrow, .breadcrumb { justify-content: center; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-bg); color: var(--primary);
  padding: 7px 14px; border-radius: 100px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; margin-bottom: 20px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.eyebrow.plan { background: #fff; color: var(--ink-4); border: 1px dashed var(--line); }
.eyebrow.plan .dot { background: var(--ink-4); }
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); margin-bottom: 18px; }
.hero h1 .accent { color: var(--primary); }
.hero h1 .flow { color: var(--flow); }
.hero p.lead { font-size: 17px; color: var(--ink-3); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-4); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-4); font-weight: 600; }
.breadcrumb a:hover { color: var(--ink); }

/* dashboard mock (hero visual) */
.dash-card { background: var(--ink); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-glow); position: relative; }
.dash-scene { border-radius: 13px; height: 232px; position: relative; overflow: hidden; margin-bottom: 14px; background: #10182b; }
.dash-scene img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,26,.05) 40%, rgba(10,14,26,.55) 100%); }
.scan-tag { position: absolute; top: 13px; left: 13px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(10,14,26,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: 11.5px; font-weight: 700; padding: 6px 12px; border-radius: 100px; }
.scan-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.det { position: absolute; z-index: 2; border: 2px solid; border-radius: 4px; font-size: 9px; font-weight: 700; }
.det span { position: absolute; top: -15px; left: -2px; padding: 1px 5px; border-radius: 3px; color: #fff; white-space: nowrap; }
.det.person { border-color: var(--flow); } .det.person span { background: var(--flow); }
.det.car { border-color: #5b8def; } .det.car span { background: #5b8def; }
.det.alert { border-color: var(--safety); } .det.alert span { background: var(--safety); }
.count-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.count-cell { background: #10182b; border-radius: 10px; padding: 12px 14px; }
.count-cell .cc-label { font-size: 11px; color: #9db4e8; display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.count-cell .cc-label .swatch { width: 8px; height: 8px; border-radius: 2px; }
.count-cell .cc-num { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.02em; font-family: 'JetBrains Mono', monospace; }
.count-cell .cc-sub { font-size: 10.5px; color: #6b7d9e; margin-top: 2px; }
.count-cell .cc-num.flow { color: #4fd6c8; } .count-cell .cc-num.car { color: #7dabff; }
.count-cell .cc-num.alert { color: #ffa07a; }

/* panel mock (for module heroes without photo) */
.panel-card { background: var(--ink); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-glow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-title { color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.panel-rows { display: flex; flex-direction: column; gap: 10px; }
.panel-row { display: flex; align-items: center; gap: 12px; background: #10182b; border-radius: 10px; padding: 12px 14px; }
.panel-row .p-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.panel-row .p-txt { flex: 1; }
.panel-row .p-txt b { display: block; color: #fff; font-size: 13px; font-weight: 600; }
.panel-row .p-txt span { font-size: 11px; color: #6b7d9e; }
.panel-row .p-val { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; }

/* STATS */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.stats-inner { max-width: 1180px; margin: 0 auto; padding: 34px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 800px) { .stats-inner { grid-template-columns: repeat(2, 1fr); } }
.stat-num { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.stat-label { font-size: 12.5px; color: var(--ink-4); margin-top: 4px; font-weight: 500; }

/* SECTION */
section { padding: 84px 32px; }
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-tag { font-size: 12.5px; font-weight: 700; color: var(--primary); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: 31px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 14px; }
.section-head p { color: var(--ink-3); font-size: 15.5px; }
.bg-soft { background: var(--bg-soft); } .bg-mid { background: var(--bg-mid); } .bg-white { background: var(--bg); }

/* FEATURE / CAPABILITY GRID */
.feature-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: all .2s ease; }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-2); }
.feature-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-bg); color: var(--primary); font-size: 19px; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 13.8px; color: var(--ink-3); line-height: 1.65; }
.feature-card .sub { list-style: none; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.feature-card .sub li { font-size: 11.5px; color: var(--ink-2); background: var(--bg-mid); border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 7px; font-weight: 500; }
/* themed accents */
.theme-flow .feature-icon { background: var(--flow-bg); color: var(--flow); }
.theme-safety .feature-icon { background: var(--safety-bg); color: var(--safety); }
.theme-care .feature-icon { background: var(--care-bg); color: var(--care); }
.theme-api .feature-icon { background: var(--api-bg); color: var(--api); }
.theme-flow .section-tag { color: var(--flow); }
.theme-safety .section-tag { color: var(--safety); }
.theme-care .section-tag { color: var(--care); }
.theme-api .section-tag { color: var(--api); }

/* USE CASE CARDS */
.case-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .case-grid { grid-template-columns: 1fr; } }
.case-card { border-radius: 16px; padding: 24px; color: #fff; position: relative; overflow: hidden; min-height: 176px; display: flex; flex-direction: column; justify-content: flex-end; }
.case-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.case-card p { font-size: 12.8px; opacity: .9; line-height: 1.6; }
.case-ico { position: absolute; top: 18px; left: 20px; font-size: 22px; opacity: .92; }
.case-1 { background: linear-gradient(135deg, #0040c0, #142a63); }
.case-2 { background: linear-gradient(135deg, #0e9e94, #0a5852); }
.case-3 { background: linear-gradient(135deg, #1f2a3d, #0a0e1a); }
.case-4 { background: linear-gradient(135deg, #ff6b35, #b8451a); }
.case-5 { background: linear-gradient(135deg, #6d5bef, #3f329e); }
.case-6 { background: linear-gradient(135deg, #0a7ea4, #084b62); }

/* SPEC TABLE */
.spec-wrap { max-width: 820px; margin: 0 auto; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.spec-table tr:not(:last-child) td { border-bottom: 1px solid var(--line-2); }
.spec-table td { padding: 15px 20px; font-size: 13.8px; vertical-align: top; }
.spec-table td:first-child { color: var(--ink-4); font-weight: 600; width: 34%; }
.spec-table td:last-child { color: var(--ink); }
.spec-table code { font-size: 12px; background: var(--bg-mid); padding: 2px 7px; border-radius: 5px; color: var(--primary); }

/* METRIC PILLS */
.metric-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .metric-grid { grid-template-columns: 1fr; } }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.metric .m-ico { font-size: 20px; margin-bottom: 10px; }
.metric h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.metric p { font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* STEPS */
.how-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 820px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .how-grid { grid-template-columns: 1fr; } }
.how-step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.how-step .num { font-size: 13px; font-weight: 800; color: var(--flow); font-family: 'JetBrains Mono', monospace; margin-bottom: 12px; }
.how-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.how-step p { font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* MODULE CARDS (overview) */
.mod-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .mod-grid { grid-template-columns: 1fr; } }
.mod-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; position: relative; transition: all .2s ease; display: flex; flex-direction: column; }
.mod-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mod-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mod-name { display: flex; align-items: center; gap: 12px; }
.mod-badge-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; }
.mod-flow { background: var(--flow-bg); color: var(--flow); }
.mod-safety { background: var(--safety-bg); color: var(--safety); }
.mod-care { background: var(--care-bg); color: var(--care); }
.mod-api { background: var(--api-bg); color: var(--api); }
.mod-name h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.mod-name h3 small { display: block; font-size: 12.5px; color: var(--ink-4); font-weight: 600; margin-top: 2px; }
.stage { font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 100px; white-space: nowrap; }
.stage-live { background: var(--flow-bg); color: var(--flow); }
.stage-plan { background: #fff; color: var(--ink-4); border: 1px dashed var(--line); }
.mod-card > p { font-size: 14px; color: var(--ink-3); line-height: 1.65; margin-bottom: 16px; }
.mod-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.mod-list li { font-size: 12.5px; color: var(--ink-2); background: var(--bg-mid); border: 1px solid var(--line-2); padding: 5px 11px; border-radius: 8px; font-weight: 500; }
.mod-more { margin-top: auto; font-weight: 700; font-size: 13.5px; color: var(--primary); }

/* MODULE CARDS v2 — rich homepage deep-dive (photo + full capability list + scenario) */
.mod-grid-v2 { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .mod-grid-v2 { grid-template-columns: 1fr; } }
.mod-card-v2 { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: all .2s ease; display: flex; flex-direction: column; }
.mod-card-v2:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.mod-media { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; background: var(--bg-mid); }
.mod-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mod-media-code { width: 100%; aspect-ratio: 16/9; background: var(--ink); position: relative; padding: 20px 22px; overflow: hidden; }
.mod-media-code pre { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; line-height: 1.75; color: #cbd5f5; white-space: pre; margin: 0; }
.mod-media-code .c1 { color: #6b7d9e; } .mod-media-code .c2 { color: #7dd3fc; } .mod-media-code .c3 { color: #86efac; } .mod-media-code .c4 { color: #fbbf24; }
.mod-media-badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.mod-body-v2 { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.mod-top-v2 { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mod-body-v2 > p.mod-desc { font-size: 14px; color: var(--ink-3); line-height: 1.7; margin-bottom: 18px; }
.mod-cap-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin-bottom: 18px; }
.mod-cap-grid li { display: flex; align-items: flex-start; gap: 7px; font-size: 12.8px; color: var(--ink-2); line-height: 1.5; }
.mod-cap-grid li::before { content: '✓'; font-weight: 800; flex-shrink: 0; }
.theme-flow-tick li::before, .mod-cap-grid.tick-flow li::before { color: var(--flow); }
.mod-cap-grid.tick-safety li::before { color: var(--safety); }
.mod-cap-grid.tick-care li::before { color: var(--care); }
.mod-cap-grid.tick-api li::before { color: var(--api); }
.mod-scenario { background: var(--bg-mid); border-left: 3px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 12.8px; color: var(--ink-3); line-height: 1.7; margin-bottom: 18px; }
.mod-scenario b { color: var(--ink-2); font-weight: 700; }
.mod-scenario.border-flow { border-left-color: var(--flow); }
.mod-scenario.border-safety { border-left-color: var(--safety); }
.mod-scenario.border-care { border-left-color: var(--care); }
.mod-scenario.border-api { border-left-color: var(--api); }

/* ROADMAP TIMELINE */
.timeline { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 0 0 30px; position: relative; }
.tl-item::before { content: ''; position: absolute; left: 130px; top: 8px; bottom: -6px; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-phase { font-size: 13px; font-weight: 800; color: var(--primary); text-align: right; position: relative; }
.tl-dot { position: absolute; left: 118px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.tl-body { padding-left: 24px; }
.tl-body h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.tl-body p { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }
.tl-tag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 100px; margin-top: 8px; }
.tl-now { background: var(--flow-bg); color: var(--flow); }
.tl-next { background: var(--primary-bg); color: var(--primary); }
.tl-plan { background: #fff; color: var(--ink-4); border: 1px dashed var(--line); }
@media (max-width: 560px) { .tl-item { grid-template-columns: 76px 1fr; gap: 14px; } .tl-item::before { left: 86px; } .tl-dot { left: 74px; } }

/* NOTE / CALLOUT */
.callout { max-width: 820px; margin: 40px auto 0; background: var(--bg-mid); border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: 12px; padding: 20px 24px; }
.callout p { font-size: 13.8px; color: var(--ink-3); line-height: 1.7; }
.callout strong { color: var(--ink-2); }

/* CODE CARD (api) */
.code-card { background: var(--ink); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-head .dots { display: flex; gap: 6px; }
.code-head .dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); }
.code-head .label { font-size: 11.5px; color: var(--ink-4); font-family: 'JetBrains Mono', monospace; }
.code-body { padding: 20px 22px; font-family: 'JetBrains Mono', monospace; font-size: 12.6px; line-height: 1.85; overflow-x: auto; color: #cbd5f5; white-space: pre; }
.code-body .c1 { color: #6b7d9e; } .code-body .c2 { color: #7dd3fc; } .code-body .c3 { color: #86efac; } .code-body .c4 { color: #fbbf24; }
.api-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .api-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; }
.faq-item h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.faq-item p { font-size: 13.8px; color: var(--ink-3); line-height: 1.7; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--primary) 0%, #0a7d74 140%); color: #fff; text-align: center; padding: 88px 32px; }
.cta h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta p { opacity: .9; margin-bottom: 30px; font-size: 15.5px; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta .btn-primary { background: #fff; color: var(--primary) !important; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.cta .btn-primary:hover { background: #f0f3f8; }
.cta .btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.35); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
footer { background: var(--ink); color: var(--ink-4); padding: 44px 32px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 14.5px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.footer-col a { display: block; color: var(--ink-4); font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
footer .copyright { max-width: 1180px; margin: 24px auto 0; font-size: 12.5px; color: #4a5468; text-align: center; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; }

/* ============================================================= */
/* DYNAMIC EFFECTS — scroll reveal / live counters / scan motion  */
/* ============================================================= */

/* 捲動漸現 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* 數字滾動計數容器：等寬數字避免跳動時版位晃動 */
.cc-num, .stat-num { font-variant-numeric: tabular-nums; display: inline-block; transform-origin: left center; }
.tick-flash { animation: tickPulse .5s ease; }
@keyframes tickPulse {
  0%   { transform: scale(1); filter: none; }
  35%  { transform: scale(1.1); filter: drop-shadow(0 0 10px currentColor); }
  100% { transform: scale(1); filter: none; }
}

/* 面板數值輪播淡出淡入 */
[data-cycle] { display: inline-block; transition: opacity .2s ease; }
[data-cycle].cycle-fade { opacity: 0; }

/* 偵測框進場動畫 */
.det.det-animate {
  opacity: 0; transform: scale(.82);
  animation: detIn .55s var(--reveal-delay, 0ms) cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes detIn { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }

/* 掃描線：僅在有偵測框的展示畫面上出現，強化「AI 持續分析中」的動態感 */
.dash-scene { position: relative; }
.dash-scene::before {
  content: ''; position: absolute; left: 4%; right: 4%; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(125,211,252,.95), transparent);
  box-shadow: 0 0 14px 2px rgba(125,211,252,.55);
  animation: scanSweep 4.2s ease-in-out infinite; pointer-events: none;
}
@keyframes scanSweep {
  0%   { top: 6%;  opacity: 0; }
  8%   { opacity: .9; }
  48%  { top: 90%; opacity: .9; }
  58%  { opacity: 0; }
  100% { top: 90%; opacity: 0; }
}

/* 尊重使用者的「減少動態」偏好：關閉所有非必要動畫 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dash-scene::before { display: none; }
  .det.det-animate { opacity: 1; transform: none; animation: none; }
  .tick-flash { animation: none; }
  [data-cycle] { transition: none; }
}

/* ============================================================= */
/* PHOTO BANNER + CROSS-MODULE GALLERY — 台灣場景照片跨頁一致性    */
/* ============================================================= */

.photo-banner { max-width: 1180px; margin: 0 auto 40px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.photo-banner img { width: 100%; height: auto; max-height: 320px; object-fit: cover; display: block; }

.gallery-strip { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .gallery-strip { grid-template-columns: 1fr; } }
.gallery-card {
  position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm); transition: all .2s ease;
}
.gallery-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery-card:hover img { transform: scale(1.05); }
.gallery-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,14,26,.82) 100%);
}
.gallery-label {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
}
.gallery-label small { display: block; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.78); margin-top: 2px; }
.gallery-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 10.5px; font-weight: 700;
  background: rgba(255,255,255,.92); color: var(--ink-2); padding: 4px 10px; border-radius: 100px;
}
