/* 格室商空設計：冷白底＋墨黑＋鈷藍，乾淨俐落的商空感；標題 Noto Sans TC 600、數字 Barlow Condensed */
:root {
  --bg: #f3f4f6;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #eef0f4;
  --line: #dfe3ea;
  --ink: #111418;
  --text: #2a2f38;
  --muted: #5d6573;
  --dim: #8a92a0;
  --gold: #2f5bff;
  --gold-2: #4d73ff;
  --gold-ink: #ffffff;
  --glow: rgba(47, 91, 255, .25);
  --danger: #d93a2b;
  --warn: #a8660a;
  --radius: 12px;
  --wrap: 1280px;
  --header-h: 72px;
  --font: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif;
  --serif: "Noto Serif TC", "Noto Sans TC", serif;
  --num: "Barlow Condensed", "Noto Sans TC", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.8; overflow-x: clip; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; color: var(--ink); line-height: 1.3; margin: 0 0 .5em; letter-spacing: .03em; }
h1 { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.25; }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 999; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; border-radius: 8px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ===== 按鈕 ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font: 500 15px/1 var(--font); cursor: pointer; transition: transform .2s, background .2s, border-color .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 0 var(--glow); }
.btn-primary:hover { background: var(--gold-2); box-shadow: 0 8px 30px var(--glow); }
.btn-ghost { border-color: #cfd5df; color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== Header ===== */
.topbar { background: #111418; color: #b9c0cc; font-size: 13px; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar b { color: #fff; font-weight: 500; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.logo-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 17px/1 var(--font); border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font: 600 18px/1.1 var(--font); letter-spacing: .06em; }
.logo-text small { font: 500 10px/1.2 var(--font); letter-spacing: .28em; color: var(--gold); margin-top: 3px; }
.logo img { height: 40px; width: auto; display: none; }
.logo.has-img img { display: block; }
.logo.has-img .logo-mark, .logo.has-img .logo-text { display: none; }
.nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav > ul > li > a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--text); transition: color .2s, background .2s; }
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current="page"] { color: var(--gold); background: rgba(47,91,255,.08); }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.submenu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 44px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text); }
.submenu a small { display: block; font-size: 12px; color: var(--dim); }
.submenu a:hover { background: var(--panel-2); color: var(--gold); }
.nav-cta { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; border-radius: 2px; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.nav-close { display: none; }
@media (max-width: 1080px) {
  .topbar { display: none; }
  .menu-toggle { display: block; }
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 300; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; background: var(--bg); padding: 18px 20px calc(32px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s; }
  .nav.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-close { display: block; align-self: flex-end; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; margin-bottom: 8px; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li > a { padding: 15px 6px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .has-sub > a::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 4px 0 8px 14px; }
  .nav-cta { margin: 20px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ===== 圖位 ===== */
.slot { position: relative; overflow: hidden; background: var(--panel); margin: 0; }
.slot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.slot.missing img { visibility: hidden; }
.slot.missing { background: repeating-linear-gradient(135deg, rgba(17,20,24,.035) 0 12px, transparent 12px 24px), linear-gradient(160deg, #e7eaf0, #d9dee7); }
.slot.missing::after { content: "圖位 " attr(data-slot) "　" attr(data-size); position: absolute; left: 12px; bottom: 12px; right: 12px; font: 500 12px/1.4 var(--font); color: var(--muted); background: rgba(255,255,255,.85); border: 1px dashed rgba(47,91,255,.45); border-radius: 6px; padding: 6px 9px; pointer-events: none; }
.r-16x9 { aspect-ratio: 16/9; } .r-4x3 { aspect-ratio: 4/3; } .r-3x2 { aspect-ratio: 3/2; } .r-1x1 { aspect-ratio: 1/1; } .r-3x4 { aspect-ratio: 3/4; } .r-21x9 { aspect-ratio: 21/9; }

/* ===== Hero ===== */
.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: flex-end; }
.hero > .slot { position: absolute; inset: 0; }
.hero > .slot img { object-position: 60% center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12,15,22,.9) 0%, rgba(12,15,22,.55) 45%, rgba(12,15,22,.1) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 76px; width: 100%; }
.hero-text { max-width: 640px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #8fa8ff; }
.hero .tag { color: #fff; border-color: rgba(255,255,255,.5); }
.hero p.lead { font-size: 18px; color: #cfd3e3; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); font-size: 14px; color: #c9cfda; }
.hero-facts b { display: block; font: 600 34px/1.1 var(--num); color: #fff; }
.page-hero { position: relative; padding: 68px 0 46px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 280px at 82% 0%, rgba(47,91,255,.14), transparent 70%), var(--bg-2); }
.page-hero.with-img { padding: 0; min-height: 420px; display: flex; align-items: flex-end; }
.page-hero.with-img > .slot { position: absolute; inset: 0; }
.page-hero.with-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12,15,22,.9), rgba(12,15,22,.35)); }
.page-hero.with-img h1 { color: #fff; } .page-hero.with-img p, .page-hero.with-img .crumb { color: #d5dae3; }
.page-hero.with-img .wrap { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 48px; width: 100%; }
.crumb { font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.crumb a:hover { color: var(--gold); }
.page-hero p { color: var(--muted); max-width: 720px; font-size: 17px; margin: 0; }

/* ===== 區塊 ===== */
section.block { padding: 92px 0; }
section.block.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head p { color: var(--muted); max-width: 660px; margin: 0; }
.tag { display: inline-block; font-size: 13px; color: var(--gold); border: 1px solid rgba(47,91,255,.4); border-radius: 999px; padding: 2px 12px; margin-bottom: 14px; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .g4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } .g2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .g3 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; display: block; }
.card:hover { border-color: rgba(47,91,255,.55); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 30px rgba(47,91,255,.08); }
.card:hover .slot img { transform: scale(1.04); }
.card-body { padding: 18px 20px 20px; }
.card-body p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.chip.on { color: var(--gold); border-color: rgba(47,91,255,.4); }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 500; font-size: 15px; margin-top: 10px; }
.more::after { content: "→"; transition: transform .2s; }
.more:hover::after { transform: translateX(4px); }
.price { font: 600 20px/1.2 var(--num); color: var(--gold); letter-spacing: .02em; }

/* 產品線大卡 */
.line-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.line-card { position: relative; border-radius: 16px; overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; border: 1px solid var(--line); }
.line-card > .slot { position: absolute; inset: 0; }
.line-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(12,15,22,.95) 10%, rgba(12,15,22,.2) 65%); }
.line-card .inner { position: relative; z-index: 2; padding: 28px; color: #fff; }
.line-card h3 { color: #fff; } .line-card .tag { color: #fff; border-color: rgba(255,255,255,.5); }
.line-card .inner p { color: #c6cadb; font-size: 15px; }
.line-card:hover .slot img { transform: scale(1.05); }
@media (max-width: 960px) { .line-cards { grid-template-columns: 1fr; } .line-card { min-height: 340px; } }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 24px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: s; content: "0" counter(s); font: 600 40px/1 var(--num); color: var(--gold); display: block; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* 前後對比 */
.compare { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; user-select: none; touch-action: pan-y; background: var(--panel); }
.compare .slot, .compare > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after-layer { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .after-layer img { width: 100%; height: 100%; object-fit: cover; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--gold); z-index: 3; transform: translateX(-1px); box-shadow: 0 0 12px rgba(47,91,255,.6); }
.compare .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }
.compare .lbl { position: absolute; top: 14px; z-index: 2; font-size: 13px; background: rgba(8,10,20,.72); color: var(--ink); padding: 3px 11px; border-radius: 999px; }
.compare .lbl.l { left: 14px; } .compare .lbl.r { right: 14px; color: var(--gold); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; align-items: center; }
.filters button { font: 500 14px/1 var(--font); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; transition: .2s; }
.filters button:hover { color: var(--ink); }
.filters button.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.filter-label { width: 100%; font-size: 13px; color: var(--dim); margin: 4px 0 -2px; }

/* 商品卡 */
.p-card .card-body h3 { font-size: 18px; margin-bottom: 2px; }
.p-card .model { font-size: 12px; color: var(--dim); letter-spacing: .08em; }
.p-card .spec-mini { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); margin: 8px 0 10px; }
.p-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.work-img { position: relative; }
.fav { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px 6px 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.12); font: 500 13px/1 var(--font); cursor: pointer; backdrop-filter: blur(4px); transition: transform .15s, background .2s, color .2s; }
.fav:hover { transform: scale(1.05); }
.fav .heart { font-size: 16px; line-height: 1; color: #e5484d; }
.fav.on { background: var(--gold); color: var(--gold-ink); }
.fav.on .heart { color: var(--gold-ink); }
.fav-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--ink); border-top: 1px solid var(--ink); box-shadow: 0 -6px 24px rgba(0,0,0,.35); }
.fav-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); color: #fff; }
@media (max-width: 760px) { body.fav-on .mobile-bar { display: none; } }

/* 商品詳細 */
.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.pd-gallery { display: grid; gap: 12px; }
.pd-gallery .main { border-radius: 14px; aspect-ratio: 1/1; }
.pd-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pd-thumbs .slot { border-radius: 10px; aspect-ratio: 4/3; }
.pd-thumbs .slot.missing::after { font-size: 11px; left: 6px; right: 6px; bottom: 6px; padding: 3px 6px; }
.pd-info .model { color: var(--gold); letter-spacing: .12em; font-size: 13px; }
.pd-info h1 { font-size: clamp(28px, 3.4vw, 42px); margin: 6px 0 10px; }
.pd-info .lead { color: var(--muted); font-size: 17px; }
.pd-info .price { font-size: 30px; margin: 14px 0 20px; display: block; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pd-actions .fav { position: static; padding: 12px 18px; font-size: 15px; border: 1px solid var(--line); }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.spec th { width: 110px; color: var(--dim); font-weight: 500; }
@media (max-width: 900px) { .pd { grid-template-columns: 1fr; gap: 28px; } }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.t { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
table.t th, table.t td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.t th { background: var(--panel-2); font-weight: 600; color: var(--ink); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
.note { font-size: 14px; color: var(--dim); margin-top: 12px; }

/* 服務列（光膜、空間） */
.svc-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 0; }
.svc-row:nth-child(even) .slot { order: 2; }
.svc-row .slot { border-radius: var(--radius); }
.svc-row ul { padding-left: 20px; color: var(--muted); margin: 0 0 18px; }
.svc-row li { margin-bottom: 6px; }
.svc-row .hint { font-size: 14px; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 12px; margin-bottom: 18px; }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; } .svc-row:nth-child(even) .slot { order: 0; } }

/* 知識文章 */
.article { max-width: 820px; }
.article h2 { margin-top: 56px; font-size: 28px; }
.article h3 { margin-top: 28px; }
.article p, .article li { color: var(--text); }
.article .callout { border: 1px solid rgba(47,91,255,.4); background: rgba(47,91,255,.06); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font-size: 14px; }
.toc a { display: block; padding: 6px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.toc a:hover { color: var(--gold); }
.kb { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .kb { grid-template-columns: 1fr; } .toc { position: static; } }
.cct-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: 12px; overflow: hidden; margin: 18px 0; }
.cct-bar div { padding: 16px 12px; font-size: 13px; color: #1b1b1b; text-align: center; }
.cct-bar b { display: block; font: 600 22px/1.2 var(--num); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 500; font-size: 17px; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 24px; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 18px 0; margin: 0; }

/* CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); }
.cta-band > .slot { position: absolute; inset: 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12,15,22,.95), rgba(12,15,22,.45)); }
.cta-band .inner { position: relative; z-index: 2; padding: 64px 56px; max-width: 660px; }
.cta-band .inner p { color: #d5dae3; } .cta-band h2 { color: #fff; }
@media (max-width: 640px) { .cta-band .inner { padding: 40px 24px; } }

/* 數字帶、時間軸、承諾 */
.stats-band { background: linear-gradient(90deg, #1d3fd6, #2f5bff); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-band .wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-top: 42px; padding-bottom: 42px; text-align: center; }
.stat b { display: block; font: 600 clamp(36px, 4vw, 52px)/1.1 var(--num); color: #fff; }
.stat b small { font-size: .45em; margin-left: 2px; }
.stat span { font-size: 14px; color: #dbe4ff; }
@media (max-width: 760px) { .stats-band .wrap { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } .stat:last-child { grid-column: 1 / -1; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.timeline li { position: relative; padding-right: 18px; }
.timeline li b { position: relative; display: inline-block; font: 600 30px/1 var(--num); color: var(--gold); background: var(--bg-2); padding: 6px 10px 6px 0; }
.timeline li h3 { font-size: 17px; margin: 12px 0 6px; }
.timeline li p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 1024px) { .timeline { grid-template-columns: 1fr; gap: 24px; padding-left: 22px; } .timeline::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: var(--gold); } .timeline li::before { content: ""; position: absolute; left: -22px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); } .timeline li b { background: none; padding: 0; } }
.promise { border-top: 2px solid var(--gold); background: var(--panel); border-radius: 0 0 var(--radius) var(--radius); padding: 22px; }
.promise b { display: block; font: 600 20px/1.3 var(--serif); color: var(--ink); margin-bottom: 8px; }
.promise p { color: var(--muted); font-size: 15px; margin: 0; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); font-size: 15px; }
.checks li::before { content: "✓"; position: absolute; left: 4px; top: 10px; color: var(--gold); font-weight: 700; }

/* 表單 */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form textarea { min-height: 110px; resize: vertical; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.form-msg { display: none; padding: 12px 14px; border-radius: 8px; background: rgba(47,91,255,.1); border: 1px solid rgba(47,91,255,.4); font-size: 15px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-list li span:first-child { color: var(--dim); }

/* ===== 試燈（preview） ===== */
.tool { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1080px) { .tool { grid-template-columns: 1fr; } }
.tool .panel + .panel { margin-top: 18px; }
.panel h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 14px; }
.panel h3 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; font: 600 16px/1 var(--num); flex-shrink: 0; }
.drop { display: block; border: 1.5px dashed #c4cbd8; border-radius: 10px; padding: 24px 16px; text-align: center; cursor: pointer; color: var(--muted); font-size: 15px; background: var(--bg-2); transition: .2s; }
.drop:hover, .drop.drag { border-color: var(--gold); background: rgba(47,91,255,.06); }
.drop b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.drop input { display: none; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.thumbs figure { position: relative; width: 96px; aspect-ratio: 4/3; margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.thumbs figcaption { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; color: #fff; background: rgba(0,0,0,.55); text-align: center; }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.samples button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--panel-2); position: relative; }
.samples button:hover { border-color: var(--gold); }
.samples .slot { position: absolute; inset: 0; }
.samples .slot.missing::after { content: attr(data-alt); font-size: 11px; left: 6px; right: 6px; bottom: 6px; padding: 3px 6px; }
.analysis { margin-top: 14px; border-radius: 10px; padding: 14px 16px; background: rgba(47,91,255,.07); border: 1px solid rgba(47,91,255,.3); font-size: 14px; }
.analysis.bad { background: rgba(255,125,115,.08); border-color: rgba(255,125,115,.4); color: var(--danger); }
.analysis h4 { font: 600 15px/1.4 var(--font); margin: 0 0 8px; color: inherit; }
.analysis dl { display: grid; grid-template-columns: 64px 1fr; gap: 3px 10px; margin: 0; }
.analysis dt { color: var(--dim); } .analysis dd { margin: 0; color: var(--text); }
.analysis ul { margin: 8px 0 0; padding-left: 18px; color: var(--warn); }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.tabs button { font: 500 14px/1.2 var(--font); padding: 12px 6px; border: 0; background: var(--bg-2); color: var(--muted); cursor: pointer; }
.tabs button + button { border-left: 1px solid var(--line); }
.tabs button.on { background: var(--gold); color: var(--gold-ink); }
@media (max-width: 480px) { .tabs { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); } .tabs button + button { border-left: 0; } .tabs button { border-bottom: 1px solid var(--line); } }
.fav-empty { font-size: 14px; color: var(--muted); background: var(--bg-2); border-radius: 10px; padding: 16px; margin: 0 0 12px; }
.fav-empty a { color: var(--gold); text-decoration: underline; }
.work-picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-height: 640px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 6px 2px 2px; }
@media (max-width: 640px) { .work-picks { max-height: 520px; gap: 10px; } }
.pick { border: 2px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--bg-2); transition: border-color .2s, box-shadow .2s, transform .2s; }
.pick:hover { border-color: rgba(47,91,255,.5); transform: translateY(-2px); }
.pick:focus-visible { outline: 3px solid rgba(47,91,255,.45); outline-offset: 2px; }
.pick .slot { aspect-ratio: 4/3; }
.pick .slot.missing::after { display: none; }
.pick-t { padding: 10px 12px 12px; font: 500 15px/1.4 var(--font); color: var(--ink); }
.pick-t small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--dim); }
.picked-badge { position: absolute; left: 10px; top: 10px; z-index: 2; display: none; background: var(--gold); color: var(--gold-ink); font-size: 13px; padding: 5px 11px; border-radius: 999px; }
.pick.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(47,91,255,.2), 0 0 26px rgba(47,91,255,.15); }
.pick.on .picked-badge { display: block; }
@media (max-width: 420px) { .pick-t { font-size: 14px; padding: 8px 10px 10px; } .pick .fav .fav-t { display: none; } .pick .fav { padding: 7px 9px; } }
.opt-label { font-size: 13px; color: var(--dim); margin: 16px 0 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts button { font: 500 14px/1.2 var(--font); padding: 10px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); cursor: pointer; }
.opts button small { display: block; font-size: 11px; color: var(--dim); font-weight: 400; margin-top: 2px; }
.opts button.on { border-color: var(--gold); color: var(--gold); background: rgba(47,91,255,.08); }
.cct-opts button { min-width: 84px; text-align: left; }
.cct-opts button i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; box-shadow: 0 0 8px currentColor; }
.tool textarea { width: 100%; font: 400 15px/1.5 var(--font); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg-2); min-height: 70px; resize: vertical; }
.stage { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stage.stick { position: sticky; top: calc(var(--header-h) + 16px); }
.stage .compare img { object-fit: cover; background: #e9ecf1; }
.stage-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--dim); padding: 20px; z-index: 5; background: radial-gradient(50% 40% at 50% 40%, rgba(47,91,255,.08), transparent 70%), var(--bg-2); }
.stage-empty b { display: block; font: 600 64px/1 var(--num); color: #c9cfda; margin-bottom: 8px; }
.progress { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(255,255,255,.86); text-align: center; padding: 20px; color: var(--ink); }
.progress .spin { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin 1s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.status { font-size: 14px; color: var(--muted); }
.status.error { color: var(--danger); }
.notice { font-size: 13px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; line-height: 1.7; }
.tpl { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: var(--bg-2); }
.tpl img { width: 72px; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.tpl span { flex: 1; color: var(--muted); }
.tpl b { color: var(--ink); font-weight: 500; }
.tpl .link { border: 0; background: none; color: var(--gold); font: 500 14px/1 var(--font); cursor: pointer; text-decoration: underline; padding: 6px; }
.result-cta { margin-top: 16px; padding: 22px 24px; border-radius: 12px; background: linear-gradient(120deg, #1d3fd6, #2f5bff); border: 1px solid rgba(47,91,255,.5); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.result-cta h3 { font-size: 21px; margin: 0 0 6px; color: #fff; }
.result-cta p { margin: 0; font-size: 14px; color: #dbe4ff; }
.result-cta-btns { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.btn-cta { background: #fff; color: var(--gold); font-size: 17px; min-height: 54px; padding: 0 30px; box-shadow: 0 0 30px rgba(47,91,255,.35); }
.btn-cta:hover { background: #eef2ff; }
.cta-sub { font-size: 12px; color: #dbe4ff; text-align: center; }
.result-cta.pop { animation: pop .5s ease; }
@keyframes pop { 0% { transform: translateY(10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (max-width: 640px) { .result-cta { grid-template-columns: 1fr; padding: 20px; } .result-cta-btns { align-items: stretch; } .btn-cta { width: 100%; } }
.quote-panel { margin-top: 28px; }
@media (min-width: 900px) { .quote-panel .form { grid-template-columns: repeat(4, 1fr); } .quote-panel .form .full { grid-column: 1 / -1; } }

/* ===== Footer ===== */
.site-footer { background: #111418; border-top: 1px solid #111418; color: #a9b0bc; padding: 64px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a:hover { color: var(--gold); }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid #2a2f38; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #7d8592; font-size: 13px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
  .mobile-bar .btn { min-height: 46px; font-size: 15px; }
  body { padding-bottom: 72px; }
  body.nav-open .mobile-bar { display: none; }
}
@media (max-width: 768px) { h1 { font-size: 30px; } h2 { font-size: 25px; } }
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section.block { padding: 60px 0; }
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 260px; padding-bottom: 40px; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 30%, rgba(12,15,22,.55) 70%, rgba(12,15,22,.15) 100%); }
  .hero p.lead { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { gap: 22px; }
}
.reveal { opacity: 0; transition: opacity .45s ease; }
.reveal.in { opacity: 1; }
.reveal.now { transition: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .progress .spin, .result-cta.pop { animation: none; } }
.opts button:disabled { opacity: .3; cursor: not-allowed; }

/* ===== 試燈頁 v2：先上傳、再進工作區 ===== */
.studio-head { padding: 40px 0 26px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 240px at 80% 0%, rgba(47,91,255,.12), transparent 70%), var(--bg-2); }
.studio-head h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: none; }
.stepper li { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.stepper li b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 15px/1 var(--num); border: 1px solid var(--line); color: var(--dim); flex-shrink: 0; }
.stepper li.now { color: var(--ink); border-color: rgba(47,91,255,.6); box-shadow: 0 0 20px rgba(47,91,255,.12); }
.stepper li.now b { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.stepper li.done { color: var(--muted); }
.stepper li.done b { background: rgba(47,91,255,.15); color: var(--gold); border-color: rgba(47,91,255,.5); font-size: 0; }
.stepper li.done b::after { content: "✓"; font-size: 14px; }
@media (max-width: 640px) { .stepper { gap: 4px; } .stepper li { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 12px; text-align: center; } }
.studio { padding: 36px 0 90px; }

.upload-step { max-width: 980px; margin: 0 auto; }
.big-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 56px 24px 48px; border-radius: 20px; cursor: pointer; border: 1.5px dashed rgba(47,91,255,.45); background: radial-gradient(60% 80% at 50% 0%, rgba(47,91,255,.12), transparent 70%), var(--panel); transition: border-color .2s, background .2s, transform .2s; }
.big-drop:hover, .big-drop.drag { border-color: var(--gold); transform: translateY(-2px); }
.big-drop input { display: none; }
.big-drop strong { font: 600 clamp(22px, 2.6vw, 30px)/1.3 var(--serif); color: var(--ink); }
.big-drop > span:not(.btn):not(.big-drop-icon) { color: var(--muted); }
.big-drop .btn { margin-top: 10px; pointer-events: none; min-height: 52px; padding: 0 32px; font-size: 16px; }
.big-drop small { color: var(--dim); font-size: 13px; }
.big-drop-icon { width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #dbe4ff, var(--gold) 50%, rgba(47,91,255,0) 72%); box-shadow: 0 0 60px rgba(47,91,255,.3); margin-bottom: 6px; position: relative; }
.big-drop-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -40%) rotate(45deg); border-left: 3px solid var(--gold-ink); border-top: 3px solid var(--gold-ink); }
.pre-pick { text-align: center; margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.pre-pick b { color: var(--gold); font-weight: 500; }
.samples-wrap { margin-top: 44px; }
.samples-wrap h2 { font-size: 20px; text-align: center; margin-bottom: 18px; }
.sample-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sample-cards button { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .2s, transform .2s; }
.sample-cards button:hover { border-color: var(--gold); transform: translateY(-3px); }
.sample-cards .slot { aspect-ratio: 4/3; }
.sample-cards .slot.missing::after { content: "示範照片待補"; }
.sample-cards span { display: block; padding: 12px 14px; font-size: 15px; }
.sample-cards span::after { content: " →"; color: var(--gold); }
.tips { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: t; }
.tips li { counter-increment: t; padding: 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tips li::before { content: counter(t); display: block; font: 600 26px/1 var(--num); color: var(--gold); margin-bottom: 6px; }
.tips b { display: block; color: var(--ink); font-size: 15px; font-weight: 500; margin-bottom: 2px; }
@media (max-width: 760px) { .sample-cards { grid-template-columns: 1fr 1fr; } .sample-cards button:last-child { grid-column: 1 / -1; } .tips { grid-template-columns: 1fr 1fr; } .big-drop { padding: 40px 18px 34px; } }

.workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 1080px) { .workspace { grid-template-columns: 1fr; } }
.ws-right .panel + .panel { margin-top: 16px; }
.ws-right .panel h3 { font-size: 18px; margin-bottom: 12px; }
.stage-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.stage-top .thumbs { margin: 0; flex: 1; }
.stage-top .thumbs figure { width: 72px; }
.mini-btn { font: 500 13px/1 var(--font); padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); cursor: pointer; white-space: nowrap; }
.mini-btn:hover { color: var(--gold); border-color: var(--gold); }
.analysis.loading { color: var(--muted); }
.analysis.loading .bar { height: 10px; border-radius: 6px; margin-top: 8px; background: linear-gradient(90deg, var(--panel-2), #dfe3ea, var(--panel-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.go-bar { position: sticky; bottom: 16px; z-index: 20; margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border-radius: 14px; background: rgba(255,255,255,.97); border: 1px solid var(--line); box-shadow: 0 10px 34px rgba(17,20,24,.16); backdrop-filter: blur(6px); }
.go-pick { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; cursor: pointer; }
.go-pick img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.go-pick span { min-width: 0; }
.go-pick b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go-pick small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go-bar .btn { min-height: 50px; padding: 0 24px; font-size: 16px; flex-shrink: 0; }
@media (max-width: 1080px) {
  .go-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); margin: 0; }
  body.ws-on .mobile-bar { display: none; }
  body.ws-on { padding-bottom: 96px; }
}
@media (max-width: 420px) { .go-bar .btn { padding: 0 16px; font-size: 15px; } .go-pick img { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .analysis.loading .bar { animation: none; } }

/* ===== Header 主 CTA「上傳空間照片」：每頁都有、手機放在漢堡旁、帶光暈特效 ===== */
.header-cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 0 20px 0 16px; border-radius: 999px; font: 600 15px/1 var(--font); color: var(--gold-ink); background: linear-gradient(135deg, #5b7cff 0%, var(--gold) 45%, #1d3fd6 100%); box-shadow: 0 0 0 0 rgba(47,91,255,.55), 0 6px 22px rgba(47,91,255,.35); animation: cta-pulse 2.4s ease-out infinite; transition: transform .2s; white-space: nowrap; }
.header-cta:hover { transform: translateY(-2px) scale(1.03); }
.header-cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg); animation: cta-shine 3.2s ease-in-out infinite; }
.header-cta .cta-ico { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #fff 0 22%, transparent 26%), radial-gradient(circle, transparent 0 52%, var(--gold-ink) 56% 66%, transparent 70%); flex-shrink: 0; }
.header-cta .short { display: none; }
.header-cta[aria-current="page"] { animation: none; box-shadow: 0 0 0 2px rgba(47,91,255,.35); }
@keyframes cta-pulse { 0% { box-shadow: 0 0 0 0 rgba(47,91,255,.6), 0 6px 22px rgba(47,91,255,.35); } 70% { box-shadow: 0 0 0 12px rgba(47,91,255,0), 0 6px 22px rgba(47,91,255,.35); } 100% { box-shadow: 0 0 0 0 rgba(47,91,255,0), 0 6px 22px rgba(47,91,255,.35); } }
@keyframes cta-shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.nav-cta { display: none; }
@media (max-width: 1080px) {
  .nav-cta { display: block; }
  .header-cta { margin-left: auto; min-height: 40px; padding: 0 14px 0 12px; font-size: 14px; }
  .menu-toggle { margin-left: 8px; }
}
@media (max-width: 420px) { .header-cta .long { display: none; } .header-cta .short { display: inline; } .site-header .wrap { gap: 10px; } .logo-text small { letter-spacing: .18em; } }
@media (prefers-reduced-motion: reduce) { .header-cta, .header-cta::after { animation: none; } .header-cta::after { display: none; } }
.site-footer .logo { color: #fff; }
.site-footer .logo-mark { background: #fff; color: var(--ink); }
.card h3 a:hover { color: var(--gold); }
.callout-mini { margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: #eef2ff; border: 1px solid #d5defe; font-size: 14px; }
.callout-mini b { color: var(--ink); }
.callout-mini ul { margin: 8px 0 0; padding-left: 18px; color: var(--text); }
.type-card .card-body h3 { font-size: 20px; }
.page-hero.with-img .hero-actions .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost, .cta-band .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.type-pick { text-align: center; margin-bottom: 26px; }
.type-pick h2 { font-size: 22px; margin-bottom: 14px; }
.type-pick .opts { justify-content: center; }
.type-opts button { padding: 10px 14px; }
.text-in { width: 100%; font: 400 16px/1.5 var(--font); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg-2); }
.text-in:focus, .tool textarea:focus, .ws-right textarea:focus { outline: none; border-color: var(--gold); }
.ws-right textarea { width: 100%; font: 400 15px/1.5 var(--font); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg-2); min-height: 70px; resize: vertical; }

/* 選單是 JS 塞進來的，先保留高度，開頁時內容不會被往下推 */
#site-header { display: block; height: calc(var(--header-h) + 37px); }
@media (max-width: 1080px) { #site-header { height: var(--header-h); } }

/* 篩選按鈕是 JS 產生的：先保留高度；手機一行左右滑，不換行把卡片往下推 */
.filters { min-height: 68px; align-content: flex-start; }
.filter-btns { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
@media (max-width: 760px) {
  .filter-btns { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; margin-right: -16px; padding-right: 16px; }
  .filter-btns::-webkit-scrollbar { display: none; }
  .filter-btns button { flex-shrink: 0; }
}
@media (min-width: 1081px) and (max-width: 1240px) { .nav > ul > li > a { padding: 8px 8px; font-size: 14px; letter-spacing: 0; } .site-header .wrap { gap: 16px; } .header-cta { padding: 0 14px 0 12px; } }
.nav > ul > li > a { white-space: nowrap; }

/* Generated dark-ink wordmark stays readable in the dark footer. */
.site-footer .logo.has-img { background:#fff; padding:12px 14px; border-radius:6px; width:max-content; max-width:100%; }
.site-footer .logo.has-img img { max-width:100%; height:auto; max-height:40px; }
@media(max-width:600px){.site-header .logo.has-img img{max-width:156px;height:auto;max-height:40px;}}

.site-credit{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:24px;margin-top:24px;border-top:1px solid #ffffff22;font-size:14px;color:#cbd0da}.site-credit strong{color:#9ab0ff}.site-credit-links{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.site-credit-line{color:#83e4a2!important}.site-credit a:hover{text-decoration:underline}@media(max-width:600px){.site-credit{align-items:flex-start;flex-direction:column;gap:12px}}
