/* 網站忍者 Web Ninja — 官網樣式
   品牌色：#0B1E3B 深海藍｜#0EA5A4 青綠｜#A3F635 亮綠｜#F8FAFC 淺白 */
@view-transition { navigation: auto; }
:root {
  --navy: #0B1E3B; --navy-2: #071530; --navy-3: #0f2a52; --ink: #050d1f;
  --teal: #0EA5A4; --teal-2: #14c8c6; --lime: #A3F635; --paper: #F8FAFC;
  --muted: #9fb3cc; --line: rgba(148, 197, 255, .14); --glass: rgba(14, 42, 82, .55);
  --radius: 18px; --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--ink); color: #e6eefb; line-height: 1.7; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--teal-2); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 1000; font-weight: 700; }
.skip:focus { left: 12px; }
.wrap { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 捲動進度條：CSS Scroll-Driven Animations */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--teal), var(--lime)); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(140%); background: rgba(5, 13, 31, .72); border-bottom: 1px solid var(--line); view-transition-name: site-header; }
.hdr .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 20px -6px rgba(14,165,164,.6); }
.brand b { font-size: 1.25rem; letter-spacing: .06em; font-weight: 900; font-style: italic; }
.brand small { display: block; font-size: .58rem; letter-spacing: .32em; color: var(--muted); margin-top: -4px; font-style: normal; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: #cfe0f5; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); }
.nav .login { border: 1px solid var(--line); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; }

.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 12px 22px; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--navy); box-shadow: 0 10px 30px -10px rgba(163,246,53,.7); }
.btn-lime:hover { box-shadow: 0 14px 36px -8px rgba(163,246,53,.85); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.arrow::after { content: "→"; transition: transform .2s; }
.btn:hover .arrow::after, .btn.arrow:hover::after { transform: translateX(3px); }

/* Hero */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: center; overflow: clip; isolation: isolate; }
.hero canvas.shader { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 70% 40%, transparent 0, rgba(5,13,31,.2) 40%, rgba(5,13,31,.85) 100%), linear-gradient(180deg, transparent 70%, var(--ink)); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 60px 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; letter-spacing: .12em; color: var(--lime); background: rgba(163,246,53,.08); border: 1px solid rgba(163,246,53,.25); padding: 6px 14px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
h1.display { font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.15; margin: 18px 0 14px; font-weight: 900; letter-spacing: .01em; }
h1.display .hl { color: var(--lime); text-shadow: 0 0 40px rgba(163,246,53,.35); }
h1.display .line { display: block; overflow: hidden; }
h1.display .line > span { display: inline-block; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #cfe0f5; margin: 0 0 26px; }
.lead strong { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; color: #d7e6f8; font-size: .95rem; }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: rgba(163,246,53,.15); color: var(--lime); font-size: .75rem; font-weight: 900; }
.hero-art { position: relative; aspect-ratio: 1 / .92; }
.hero-art .ninja { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; clip-path: inset(0 0 0 0 round 28px); box-shadow: var(--shadow), 0 0 0 1px rgba(20,200,198,.25), 0 0 80px -20px rgba(14,165,164,.6); }
.hero-art .ninja img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.05); }
.float-card { position: absolute; background: var(--glass); backdrop-filter: blur(12px); border: 1px solid rgba(20,200,198,.35); border-radius: 14px; padding: 10px 14px; font-size: .85rem; box-shadow: var(--shadow); color: #e9f6ff; }
.float-card b { color: var(--lime); font-size: 1.15rem; display: block; line-height: 1.2; }
.fc-1 { left: -26px; top: 12%; } .fc-2 { right: -18px; top: 46%; } .fc-3 { left: 8%; bottom: -18px; }
.scroll-hint { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; font-size: .75rem; color: var(--muted); letter-spacing: .3em; }

/* Sections */
section { position: relative; }
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.sec-head .kicker { color: var(--teal-2); letter-spacing: .25em; font-size: .8rem; font-weight: 700; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.25; margin: 10px 0 12px; font-weight: 900; }
.sec-head p { color: var(--muted); margin: 0; }
.light { background: var(--paper); color: #10223f; }
.light .sec-head p { color: #4a5f7d; }
.light .sec-head .kicker { color: var(--teal); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: linear-gradient(160deg, rgba(15,42,82,.75), rgba(7,21,48,.85)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; }
.light .card { background: #fff; border-color: #e3eaf3; box-shadow: 0 10px 30px -18px rgba(11,30,59,.25); }
.card h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.light .card p { color: #4a5f7d; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(14,165,164,.14); color: var(--teal-2); border: 1px solid rgba(14,165,164,.35); }
.ico svg { width: 26px; height: 26px; }
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(28px); }

/* 流程 */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; counter-reset: step; }
.flow li { list-style: none; text-align: center; position: relative; padding: 18px 8px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.flow li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-weight: 900; color: var(--lime); font-size: 1.4rem; }
.flow li b { display: block; margin: 4px 0; }
.flow li span { color: var(--muted); font-size: .82rem; }
.flow-line { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--lime)); transform-origin: 0 50%; margin: 18px 0 0; }

/* 產業橫向展示 */
.showcase { overflow: hidden; }
.track { display: flex; gap: 22px; width: max-content; padding-inline: max(20px, calc((100vw - var(--maxw)) / 2)); }
.track .ind { width: min(420px, 78vw); flex: none; border-radius: 18px; overflow: hidden; background: #fff; color: #10223f; box-shadow: 0 24px 60px -30px rgba(0,0,0,.7); }
.ind img { aspect-ratio: 318 / 176; object-fit: cover; width: 100%; }
.ind div { padding: 14px 18px 18px; }
.ind b { font-size: 1.05rem; }
.ind p { margin: 4px 0 0; color: #4a5f7d; font-size: .9rem; }
.tag-fict { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: #fff4d6; color: #8a5a00; margin-left: 6px; vertical-align: middle; }

/* 價格 */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; margin: 0 auto; }
.plan { border-radius: 24px; padding: 30px; background: #fff; border: 1px solid #e3eaf3; color: #10223f; position: relative; box-shadow: 0 20px 50px -30px rgba(11,30,59,.4); }
.plan.featured { background: linear-gradient(165deg, var(--navy), #0b2c4a); color: #eaf3ff; border-color: rgba(20,200,198,.5); }
.plan .badge { position: absolute; top: -12px; right: 24px; background: var(--lime); color: var(--navy); font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 1.3rem; }
.price { font-size: 2.8rem; font-weight: 900; margin: 10px 0 0; line-height: 1; }
.price small { font-size: 1rem; font-weight: 600; opacity: .75; }
.price-note { font-size: .88rem; opacity: .8; margin: 6px 0 16px; }
.plan ul { padding: 0; margin: 0 0 22px; list-style: none; }
.plan li { padding: 7px 0; border-bottom: 1px dashed rgba(127,150,180,.3); display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.plan li span:last-child { font-weight: 700; text-align: right; }
.clause { margin: 28px auto 0; max-width: 980px; border-left: 4px solid var(--teal); background: #eefaf9; color: #0f3b3b; padding: 16px 20px; border-radius: 12px; font-size: .95rem; }
.clause strong { color: #0b5c5b; }
.domain-box { margin: 18px auto 0; max-width: 980px; background: #f2f6ff; border-left: 4px solid #3b6fd8; color: #1d2e55; padding: 16px 20px; border-radius: 12px; font-size: .95rem; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid #e3eaf3; text-align: left; }
.tbl th { background: #f1f5fb; color: #33496b; font-weight: 700; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.dark-tbl th { background: rgba(255,255,255,.05); color: #cfe0f5; }
.dark-tbl th, .dark-tbl td { border-color: var(--line); }

/* 試算器 */
.calc { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.calc form { background: #fff; border: 1px solid #e3eaf3; border-radius: 18px; padding: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field legend { font-weight: 700; font-size: .92rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url], .field input[type=password], .field select, .field textarea, .field input[type=number] {
  font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid #cdd8e6; background: #fff; color: #10223f; width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: .82rem; color: #5b6f8c; }
.field .err { font-size: .85rem; color: #c62828; min-height: 0; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { flex: 1; min-width: 120px; border: 1px solid #cdd8e6; border-radius: 12px; padding: 10px 12px; cursor: pointer; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.seg input:checked + span { color: var(--teal); }
.seg label:has(input:checked) { border-color: var(--teal); background: #eefaf9; }
.calc-out { background: var(--navy); color: #eaf3ff; border-radius: 18px; padding: 22px; }
.calc-out .big { font-size: 2.2rem; font-weight: 900; color: var(--lime); }
.bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 160px; margin: 16px 0 6px; }
.bars div { background: linear-gradient(180deg, var(--lime), var(--teal)); border-radius: 8px 8px 2px 2px; position: relative; transition: height .5s cubic-bezier(.2,.8,.2,1); }
.bars div span { position: absolute; top: -22px; left: 50%; translate: -50% 0; font-size: .78rem; white-space: nowrap; color: #fff; }
.bar-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; text-align: center; font-size: .8rem; color: var(--muted); }

/* SI忍者 廣告 */
.ad-band { position: relative; overflow: hidden; border-radius: 24px; padding: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: radial-gradient(120% 140% at 0% 0%, rgba(163,246,53,.18), transparent 50%), linear-gradient(120deg, #0a2346, #062a3a); border: 1px solid rgba(163,246,53,.35); }
.ad-band .ad-label { position: absolute; top: 10px; right: 14px; font-size: .7rem; color: var(--muted); letter-spacing: .2em; }
.ad-band h3 { margin: 0; font-size: 1.6rem; font-weight: 900; }
.ad-band h3 span { color: var(--lime); }
.ad-band p { margin: 4px 0 0; color: #cfe0f5; }
.ad-band .qr { background: #fff; border-radius: 14px; padding: 8px; width: 112px; height: 112px; }
.ad-band .qr img { width: 100%; height: 100%; }
.ad-mark { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-weight: 900; font-size: 1.5rem; color: var(--navy); background: linear-gradient(135deg, var(--lime), var(--teal-2)); }
.ad-mini { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid rgba(163,246,53,.3); background: rgba(163,246,53,.05); text-decoration: none; color: #e6eefb; }
.ad-mini img { width: 64px; height: 64px; background: #fff; border-radius: 8px; padding: 3px; }
.ad-mini b { color: var(--lime); display: block; }
.ad-mini small { color: var(--muted); }

/* CTA */
.cta-final { text-align: center; padding-block: 90px; background: radial-gradient(60% 120% at 50% 100%, rgba(14,165,164,.35), transparent 60%); }
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 0 12px; font-weight: 900; }

/* 內頁 */
.page-hero { padding-block: 70px 40px; background: radial-gradient(80% 140% at 80% 0%, rgba(14,165,164,.25), transparent 60%), var(--ink); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 8px 0 10px; font-weight: 900; view-transition-name: page-title; }
.page-hero p { color: var(--muted); max-width: 760px; margin: 0; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: #33496b; }
details.faq { background: #fff; border: 1px solid #e3eaf3; border-radius: 14px; padding: 4px 18px; margin-bottom: 12px; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; line-height: 1; transition: rotate .2s; }
details.faq[open] summary::after { rotate: 45deg; }
details.faq p { margin: 0 0 14px; color: #4a5f7d; }
.form-card { background: #fff; color: #10223f; border-radius: 22px; padding: clamp(20px, 4vw, 36px); box-shadow: 0 30px 80px -40px rgba(11,30,59,.5); max-width: 860px; margin: 0 auto; }
.form-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.notice { background: #f2f6ff; border-radius: 12px; padding: 14px 16px; font-size: .9rem; color: #1d2e55; }
.alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.alert-ok { background: #e9fbe0; color: #1f5f00; border: 1px solid #b9ec98; }
.alert-err { background: #fdecec; color: #8b1a1a; border: 1px solid #f3b9b9; }
.hp { position: absolute; left: -5000px; }
.demo-card { display: grid; grid-template-columns: 1fr; border-radius: 20px; overflow: hidden; background: #fff; color: #10223f; border: 1px solid #e3eaf3; }
.demo-card .shot { height: 220px; position: relative; overflow: hidden; }
.demo-card .shot iframe { width: 200%; height: 440px; transform: scale(.5); transform-origin: 0 0; border: 0; pointer-events: none; }
.demo-card .body { padding: 18px; }

/* Footer */
.ftr { border-top: 1px solid var(--line); background: var(--navy-2); padding-block: 48px 28px; font-size: .92rem; color: var(--muted); }
.ftr .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 28px; }
.ftr h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin: 6px 0; }
.ftr a { color: #cfe0f5; text-decoration: none; }
.ftr a:hover { color: var(--lime); }
.ftr .legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; }
.test-badge { display: inline-block; background: #ffcc00; color: #3a2a00; font-weight: 800; font-size: .72rem; padding: 2px 8px; border-radius: 6px; letter-spacing: .05em; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 30px; }
  .hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
  .grid-3, .plans, .grid-2, .calc { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .ftr .cols { grid-template-columns: 1fr 1fr; }
  .ad-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .menu-btn { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy-2); padding: 12px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .form-card .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .checks { grid-template-columns: 1fr; }
  .fc-1 { left: 4px; } .fc-2 { right: 4px; }
  .ftr .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }
