/* 未來忍者 Future Ninja — 設計系統（依 CIS：深海軍藍 #10243A、科技藍 #2563EB、青綠 #0D9488、霜白 #F4F7FA、石墨 #334155） */
@view-transition { navigation: auto; }
:root {
  --navy: #10243A; --navy-2: #0B1A2C; --navy-3: #16314F; --blue: #2563EB; --blue-2: #3B82F6; --teal: #0D9488; --teal-2: #14B8A6;
  --frost: #F4F7FA; --slate: #334155; --muted: #64748B; --line: #E2E8F0; --white: #fff;
  --ok: #059669; --warn: #D97706; --bad: #DC2626;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 10px 30px rgba(16, 36, 58, .10); --shadow-lg: 0 24px 60px rgba(16, 36, 58, .22);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; font-family: var(--font); color: var(--slate); background: var(--frost); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; margin: 0 0 .6em; letter-spacing: .02em; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: var(--radius-sm); overflow: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 2px; }
.container { width: min(1200px, 92vw); margin: 0 auto; }

/* ---------- 按鈕 ---------- */
.btn { --bg: var(--blue); display: inline-flex; align-items: center; gap: .45em; padding: .62em 1.15em; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--bg); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, .25); }
.btn:active { transform: translateY(0); }
.btn.teal { --bg: var(--teal); } .btn.navy { --bg: var(--navy); } .btn.danger { --bg: var(--bad); }
.btn.ghost { background: transparent; color: var(--navy); border-color: #cbd5e1; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn.sm { padding: .35em .75em; font-size: .88rem; } .btn.lg { padding: .85em 1.5em; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* ---------- 頁首 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 26, 44, .86); backdrop-filter: blur(12px) saturate(1.4); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .bar { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff !important; text-decoration: none !important; }
.site-header .brand, .sidebar .brand { view-transition-name: brand; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand b { display: block; font-size: 1.22rem; letter-spacing: .12em; line-height: 1.1; }
.brand small { display: block; font-size: .6rem; letter-spacing: .38em; opacity: .75; }
.nav { display: flex; gap: .2rem; margin-left: auto; align-items: center; }
.nav a { color: #cbd5e1; padding: .45rem .75rem; border-radius: 8px; font-size: .93rem; position: relative; }
.nav a:hover, .nav a.active { color: #fff; text-decoration: none; }
.nav a.active::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 0; height: 2px; background: var(--blue-2); border-radius: 2px; }
.nav .btn { margin-left: .4rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: .35rem .6rem; font-size: 1.1rem; }
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 80% -10%, #1d4ed8 0%, transparent 60%), linear-gradient(180deg, var(--navy-2), var(--navy) 70%, #12304f); min-height: 640px; isolation: isolate; }
.hero canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero .stripe { position: absolute; z-index: -1; background: var(--grad); opacity: .55; clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); filter: blur(.3px); }
.hero .stripe.s1 { width: 260px; height: 70px; left: -40px; top: 120px; }
.hero .stripe.s2 { width: 380px; height: 110px; right: -60px; bottom: 90px; opacity: .35; }
.hero .stripe.s3 { width: 160px; height: 40px; right: 34%; top: 70px; opacity: .3; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; padding: 72px 0 90px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: .04em; line-height: 1.2; margin-bottom: .45em; }
.hero h1 .glow { background: linear-gradient(90deg, #93c5fd, #5eead4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #cbd5e1; font-size: 1.08rem; max-width: 34em; }
.tagline { display: inline-flex; align-items: center; gap: .8rem; color: #93c5fd; letter-spacing: .5em; font-size: .9rem; margin-bottom: 1.2rem; }
.tagline::before, .tagline::after { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .6; }
.hero-art { position: relative; justify-self: end; width: min(560px, 100%); }
.hero-art img { width: 100%; border-radius: 22px; -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 45%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 62% 60% at 50% 45%, #000 62%, transparent 100%); filter: saturate(1.1) contrast(1.03); }
.hero-art .chip { position: absolute; background: rgba(255,255,255,.95); color: var(--navy); border-radius: 12px; padding: .55rem .85rem; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-lg); display: flex; gap: .5rem; align-items: center; }
.hero-art .chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(13,148,136,.18); }
.hero-art .chip.c1 { left: -10px; top: 14%; } .hero-art .chip.c2 { right: 2%; bottom: 12%; }
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; max-width: 640px; }
.role-card { display: block; padding: 1.2rem 1.3rem; border-radius: 16px; color: #fff !important; text-decoration: none !important; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; border: 1px solid rgba(255,255,255,.18); }
.role-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.role-card.org { background: linear-gradient(135deg, #0f766e, #0d9488 60%, #14b8a6); }
.role-card.dev { background: linear-gradient(135deg, #1d4ed8, #2563eb 60%, #3b82f6); }
.role-card b { font-size: 1.2rem; display: block; } .role-card small { opacity: .85; display: block; margin: .2rem 0 .8rem; }
.role-card .go { font-weight: 700; } .role-card .ico { position: absolute; right: 14px; top: 12px; font-size: 1.8rem; opacity: .35; font-family: ui-monospace, monospace; }

/* ---------- 區塊 ---------- */
.section { padding: 84px 0; position: relative; }
.section.alt { background: #fff; }
.section.dark { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #cbd5e1; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-title { display: flex; align-items: center; gap: .7rem; margin-bottom: 2rem; }
.section-title::before { content: ""; width: 14px; height: 14px; background: var(--blue); border-radius: 3px; }
.section-title h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.eyebrow { color: var(--teal); font-weight: 700; letter-spacing: .2em; font-size: .8rem; text-transform: uppercase; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.flow .step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1rem; text-align: center; box-shadow: var(--shadow); position: relative; }
.flow .step:not(:last-child)::after { content: "→"; position: absolute; right: -0.95rem; top: 42%; color: var(--teal); font-weight: 800; z-index: 1; }
.flow .num { width: 54px; height: 54px; margin: 0 auto .8rem; border-radius: 14px; display: grid; place-items: center; background: var(--frost); color: var(--navy); font-size: 1.4rem; border: 1px solid var(--line); }
.flow b { color: var(--navy); display: block; } .flow small { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.val-card { padding: 1.4rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.val-card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.3rem; margin-bottom: .8rem; }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stats-band .n { font-size: 2.4rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--blue); transform: translateY(-6px); }
.price-card .amt { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin: .3rem 0; }
.price-card ul { padding-left: 1.1rem; margin: .5rem 0 1rem; color: var(--slate); font-size: .93rem; flex: 1; }

/* ---------- 卡片、表格、表單 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: 0 2px 10px rgba(16,36,58,.04); margin-bottom: 1.2rem; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 1.2rem; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: -20px; top: -20px; width: 80px; height: 80px; border-radius: 50%; background: var(--grad); opacity: .08; }
.kpi .label { color: var(--muted); font-size: .85rem; } .kpi .value { font-size: 1.7rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi a { position: absolute; inset: 0; }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .82rem; background: #f8fafc; }
.table tr:hover td { background: #fafcff; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: .12em .6em; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #e2e8f0; color: var(--slate); white-space: nowrap; }
.badge.ok { background: #d1fae5; color: #065f46; } .badge.warn { background: #fef3c7; color: #92400e; } .badge.bad { background: #fee2e2; color: #991b1b; } .badge.info { background: #dbeafe; color: #1e40af; }
.tag { display: inline-block; padding: .1em .55em; border-radius: 6px; background: #eff6ff; color: #1d4ed8; font-size: .78rem; margin: 0 .25rem .25rem 0; }
form .field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .3rem; font-size: .93rem; }
label.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; color: var(--slate); cursor: pointer; }
label.check input { margin-top: .3em; width: 1.05em; height: 1.05em; flex: none; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=file], select, textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); font: inherit; color: var(--navy); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
textarea { min-height: 120px; resize: vertical; }
.hint { color: var(--muted); font-size: .84rem; margin-top: .25rem; }
.field-err { color: var(--bad); font-size: .85rem; margin-top: .25rem; font-weight: 600; }
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: var(--bad); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .3rem .8rem; }
.flash { padding: .85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-weight: 600; display: flex; gap: .6rem; align-items: flex-start; }
.flash.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; margin-bottom: 1rem; }
.notice.warn { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.notice.danger { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt1 { margin-top: 1rem; } .mt2 { margin-top: 2rem; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: .45rem 1rem; margin: 0; }
.dl dt { color: var(--muted); font-size: .9rem; } .dl dd { margin: 0; color: var(--navy); }
.prose { color: var(--slate); } .prose h1, .prose h2, .prose h3 { margin-top: 1.2em; } .prose img { max-width: 100%; }
.prose table { border-collapse: collapse; } .prose td, .prose th { border: 1px solid var(--line); padding: .3rem .6rem; }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.steps-inline { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.steps-inline span { padding: .25rem .7rem; border-radius: 999px; background: #e2e8f0; font-size: .8rem; color: var(--muted); }
.steps-inline span.on { background: var(--blue); color: #fff; } .steps-inline span.done { background: #ccfbf1; color: #0f766e; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.listing { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.listing:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.listing .thumb { height: 110px; background: var(--grad); position: relative; overflow: hidden; display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 2rem; font-family: ui-monospace, monospace; }
.listing .thumb::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, rgba(255,255,255,.08) 0 18px, transparent 18px 40px); }
.listing .body { padding: 1rem; flex: 1; display: flex; flex-direction: column; } .listing h3 { margin-bottom: .3rem; }
.listing .price { font-weight: 800; color: var(--navy); margin-top: auto; }

/* 浮水印（R-VIS-6） */
.watermarked { position: relative; isolation: isolate; }
.watermarked .wm { position: absolute; inset: 0; z-index: 2; pointer-events: none; background-repeat: repeat; opacity: 1; }
.watermarked .wm-content { position: relative; z-index: 1; }

/* ---------- 廣告（SI忍者） ---------- */
.ad-band { background: linear-gradient(110deg, #0b1a2c 0%, #13325a 55%, #0f766e 120%); color: #e2e8f0; position: relative; overflow: hidden; }
.ad-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 2px, transparent 2px 22px); }
.ad-inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; align-items: center; padding: 1.6rem 0; }
.ad-logo { width: 64px; height: 64px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.3rem; letter-spacing: .02em; box-shadow: 0 0 0 6px rgba(255,255,255,.06); }
.ad-text .ad-label { font-size: .72rem; letter-spacing: .25em; color: #5eead4; }
.ad-text b { font-size: 1.35rem; color: #fff; display: block; letter-spacing: .05em; }
.ad-text span { color: #cbd5e1; }
.ad-qr { display: flex; align-items: center; gap: 1rem; }
.ad-qr img { width: 92px; height: 92px; background: #fff; border-radius: 10px; padding: 5px; }
.ad-card { margin: 1rem .8rem; padding: .9rem; border-radius: 12px; background: linear-gradient(135deg, rgba(37,99,235,.25), rgba(13,148,136,.25)); border: 1px solid rgba(255,255,255,.12); color: #e2e8f0; font-size: .82rem; }
.ad-card b { color: #fff; display: block; font-size: .98rem; } .ad-card a { color: #5eead4; }
.ad-card img { width: 76px; height: 76px; background: #fff; border-radius: 8px; padding: 4px; margin-top: .5rem; }
.ad-feature { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; background: #fff; border-radius: 22px; padding: 2.2rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.ad-feature::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; background: var(--grad); opacity: .1; border-radius: 50%; }
.ad-feature .qr-box { text-align: center; } .ad-feature .qr-box img { width: 180px; height: 180px; margin: 0 auto .5rem; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--navy-2); color: #94a3b8; padding: 3rem 0 2rem; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; } .site-footer a { color: #cbd5e1; display: block; padding: .15rem 0; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ---------- 一般頁面 ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy-2), var(--navy-3)); color: #fff; padding: 56px 0 46px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; } .page-hero p { color: #cbd5e1; max-width: 46em; }
.page-hero::after { content: ""; position: absolute; right: -40px; top: 30px; width: 340px; height: 90px; background: var(--grad); opacity: .45; clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%); }
.page { padding: 40px 0 70px; }
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 0; background: radial-gradient(900px 500px at 90% 0%, rgba(37,99,235,.18), transparent 60%), var(--frost); }
.auth-card { width: min(560px, 92vw); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 2.2rem; border: 1px solid var(--line); }
.auth-card.wide { width: min(760px, 94vw); }

/* ---------- 後台版型 ---------- */
.panel { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: #cbd5e1; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .brand { padding: 1.1rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar nav { padding: .6rem .6rem; flex: 1; }
.sidebar nav a { line-height: 1.3; }
.sidebar .grp { font-size: .7rem; letter-spacing: .2em; color: #64748b; padding: .9rem .7rem .3rem; }
.sidebar nav a { display: flex; align-items: center; gap: .6rem; color: #cbd5e1; padding: .5rem .75rem; border-radius: 9px; font-size: .92rem; text-decoration: none; }
.sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar nav a.active { background: linear-gradient(90deg, rgba(37,99,235,.9), rgba(13,148,136,.7)); color: #fff; }
.sidebar nav a .i { width: 20px; text-align: center; opacity: .9; font-family: ui-monospace, monospace; font-size: .85rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.6rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .who { display: flex; gap: .8rem; align-items: center; font-size: .9rem; }
.topbar .bell { position: relative; padding: .35rem .6rem; border-radius: 8px; border: 1px solid var(--line); color: var(--navy); text-decoration: none; }
.topbar .bell .dot { position: absolute; top: -6px; right: -6px; background: var(--bad); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 .4em; font-weight: 700; }
.content { padding: 1.6rem; max-width: 1280px; width: 100%; view-transition-name: content; }
.content > h1 { margin-bottom: 1rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; } .crumbs a { color: var(--muted); }
.bar-chart { display: flex; align-items: flex-end; gap: .6rem; height: 160px; padding-top: 1rem; }
.bar-chart .b { flex: 1; background: var(--grad); border-radius: 8px 8px 0 0; position: relative; min-height: 2px; transform-origin: bottom; }
.bar-chart .b span { position: absolute; top: -1.4rem; left: 0; right: 0; text-align: center; font-size: .75rem; color: var(--navy); font-weight: 700; }
.bar-chart .lbl { text-align: center; font-size: .75rem; color: var(--muted); }

/* reveal 動畫（GSAP 接手；無 JS 時保持可見） */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1 !important; transform: none !important; } * { animation: none !important; transition: none !important; } }
/* CSS Scroll-Driven Animations：支援的瀏覽器上，卡片進場時淡入（漸進增強） */
@supports (animation-timeline: view()) {
  .sd-fade { animation: sdfade linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  @keyframes sdfade { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
}

@media (max-width: 960px) {
  .hero-grid, .ad-feature { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; }
  .flow { grid-template-columns: 1fr 1fr; } .flow .step::after { display: none; }
  .values, .price-grid, .stats-band, .g4 { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--navy-2); padding: 1rem; align-items: stretch; }
  .nav.open { display: flex; } .nav-toggle { display: block; }
  .panel { grid-template-columns: 1fr; } .sidebar { position: relative; height: auto; }
  .ad-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 640px) { .g2, .role-cards, .values, .price-grid, .stats-band, .g4, .flow { grid-template-columns: 1fr; } .dl { grid-template-columns: 1fr; } }
@media print { .sidebar, .topbar, .site-header, .site-footer, .ad-band { display: none !important; } }
