/* 九九輸入法 官網
   設計語言：墨黑＋暖白紙色，金色只做點綴；大字、留白、細線，不用發光漸層。
   App 圖示的琥珀色只留在「產品畫面」裡（輔助九宮格亮起的鍵）。淺色 / 深色皆可。 */
:root {
  --ink: #090a11; --ink-2: #10121d; --ink-3: #171a29;
  --gold: #dcb878; --gold-2: #b98a3e;
  --amber-1: #ffd27a; --amber-2: #f08a24; --on-amber: #2a1700;
  --bg: #fbfaf8; --bg-soft: #f3f1ed; --card: #ffffff; --text: #15161c; --muted: #676973; --line: #e7e4de;
  --accent: #a2742a;
  --btn-bg: var(--text); --btn-fg: var(--bg);
  --ok: #1c8f5a; --bad: #c14a4a;
  --shadow: 0 30px 80px rgba(20, 18, 12, .10);
  --r: 22px; --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang TC", "PingFang HK", "PingFang SC", "Noto Sans TC", "Noto Sans SC",
          "Microsoft JhengHei", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090a11; --bg-soft: #0e101a; --card: #131623; --text: #f2f0ea; --muted: #9b9ca8; --line: #23263a;
    --accent: #dcb878; --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] { --bg: #090a11; --bg-soft: #0e101a; --card: #131623; --text: #f2f0ea; --muted: #9b9ca8; --line: #23263a; --accent: #dcb878; }

/* 永遠是深色的區域：按鈕反白、點綴色用亮金 */
.nav, .hero, .sec-ink, .footer, .cta-box, .plan-pro { --btn-bg: #ffffff; --btn-fg: #0b0c14; --accent: var(--gold); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.8 var(--font); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: color-mix(in srgb, var(--gold) 45%, transparent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.ph { display: inline-block; }   /* 中文標題的一段：整段一起換行（見 build.py 的 phr） */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { width: 20px; height: 20px; flex: none; }
/* 英文：標題字距收緊 */
html[lang^="en"] h1, html[lang^="en"] h2 { letter-spacing: -.028em; }
html[lang^="en"] h3 { letter-spacing: -.012em; }
html[lang^="en"] body { line-height: 1.7; }

/* ===== 按鈕 ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  font-weight: 600; font-size: 15px; line-height: 1; padding: 16px 28px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s cubic-bezier(.2, .7, .2, 1), background .2s, border-color .2s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-amber { background: var(--btn-bg); color: var(--btn-fg); }
a.btn-amber:hover { transform: translateY(-1px); opacity: .9; }
.btn-glass { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .2); }
a.btn-glass:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .34); }
span.btn { cursor: default; opacity: .62; }
.btn-line { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 22%, transparent); }
a.btn-line:hover { border-color: var(--text); }
.btn .ico { width: 17px; height: 17px; }

/* ===== 導覽列 ===== */
.nav { position: sticky; top: 0; z-index: 50; color: #fff; background: rgba(9, 10, 17, .88);
  backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav-row { display: flex; align-items: center; gap: 36px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: .02em; white-space: nowrap; }
.brand img { border-radius: 8px; width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; font-size: 13.5px; flex: 1; white-space: nowrap; }
.nav-links a { text-decoration: none; color: rgba(255, 255, 255, .66); transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23fff' stroke-opacity='.7' fill='none' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 8px 30px 8px 14px; font: 500 13px var(--font); cursor: pointer; }
.lang select:hover { border-color: rgba(255, 255, 255, .34); }
.lang select option { color: #111; }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 21px; cursor: pointer; padding: 4px 6px; }
@media (max-width: 1080px) {
  .nav-links { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(9, 10, 17, .98); padding: 6px 32px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 0; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .menu-btn { display: block; }
}
@media (max-width: 560px) { .nav-actions .btn { display: none; } .nav-row { gap: 12px; } }

/* ===== 主視覺 ===== */
.hero { position: relative; overflow: hidden; color: #fff; padding: 96px 0 0; background: var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1100px 620px at 50% -12%, rgba(96, 112, 232, .30), transparent 62%),
              radial-gradient(900px 520px at 50% 78%, rgba(220, 184, 120, .13), transparent 64%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero-copy { max-width: 1080px; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .18em; color: var(--gold);
  border: 1px solid rgba(220, 184, 120, .32); padding: 7px 16px; border-radius: 999px; }
.hero h1 { font-size: clamp(40px, 5.9vw, 80px); font-weight: 600; line-height: 1.12; letter-spacing: .01em; margin-top: 30px; text-wrap: wrap; }
.hl { background: linear-gradient(180deg, #f6e3b4 10%, #cfa25a 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.75; color: rgba(255, 255, 255, .68); margin: 28px auto 0; max-width: 700px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.hero-note { margin-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .46); letter-spacing: .02em; }
.trust { position: relative; list-style: none; margin: 84px 0 0; padding: 26px 0 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; color: rgba(255, 255, 255, .66); }
.trust li { display: flex; align-items: center; gap: 10px; justify-content: center; }
.trust .ico { color: var(--gold); width: 18px; height: 18px; }
/* 內頁（教學、文章、條款）的頁首 */
.hero-page { padding: 104px 0 88px; }
.hero-page h1 { font-size: clamp(36px, 5vw, 60px); margin-top: 22px; }
.hero-page .lead { margin-left: 0; }
@media (max-width: 960px) { .hero { padding-top: 76px; } .trust { grid-template-columns: repeat(2, 1fr); margin-top: 60px; } .trust li { justify-content: flex-start; } }

/* 進場動畫（只有主視覺；使用者要求減少動態時不做） */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-visual { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; } .hero-copy > :nth-child(3) { animation-delay: .14s; }
  .hero-copy > :nth-child(4) { animation-delay: .22s; } .hero-copy > :nth-child(5) { animation-delay: .28s; }
  .hero-visual { animation-delay: .36s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  /* 往下捲時，各區塊淡入（script.js 加上 .reveal / .in；沒有 JavaScript 時內容照常顯示） */
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* 主視覺的產品示範：Mac 視窗 ＋ 輔助九宮格 */
.hero-visual { position: relative; width: 100%; max-width: 880px; margin-top: 64px; padding: 58px 0 64px; min-height: 620px; text-align: left; }
.hero-visual::before { content: ""; position: absolute; left: -12%; right: -12%; top: 18%; bottom: -10%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(120, 136, 255, .22), transparent 72%); filter: blur(10px); }
.mac { position: relative; width: 88%; border-radius: 16px; overflow: visible; background: #f7f7fa; color: #15161c;
  box-shadow: 0 60px 130px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 255, 255, .1); }
.mac-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 16px 16px 0 0;
  background: linear-gradient(#efeff3, #e4e5ea); font-size: 12px; color: #5d6070; font-weight: 600; }
.mac-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mac-bar i:nth-child(2) { background: #febc2e; } .mac-bar i:nth-child(3) { background: #28c840; }
.mac-bar span { margin-left: auto; margin-right: auto; transform: translateX(-24px); }
.mac-body { padding: 30px 28px 170px; min-height: 320px; }
.chat-to { font-size: 12px; color: #8c8e9c; margin-bottom: 14px; }
.bubble { position: relative; display: inline-flex; align-items: center; min-height: 46px; max-width: 100%; padding: 9px 17px;
  border-radius: 21px 21px 6px 21px; background: #0a84ff; color: #fff; font-size: 21px; letter-spacing: .04em; }
.bubble .pre { color: #ffe3a6; text-decoration: underline; text-underline-offset: 4px; margin-left: 2px; letter-spacing: .1em; font-size: 17px; }
.caret { width: 2px; height: 22px; background: #fff; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cands { position: absolute; left: 6px; top: calc(100% + 8px); display: flex; gap: 2px; padding: 4px; border-radius: 10px; white-space: nowrap;
  background: rgba(255, 255, 255, .97); color: #15161c; box-shadow: 0 14px 34px rgba(15, 16, 30, .22), 0 0 0 1px rgba(15, 16, 30, .08);
  font-size: 16px; letter-spacing: 0; transition: opacity .18s, transform .18s; }
.cands.hidden { opacity: 0; transform: translateY(-4px); }
.cand { padding: 2px 7px; border-radius: 6px; }
.cand b { font-size: 11px; color: #80828f; margin-right: 3px; font-weight: 600; }
.cand.on { background: #0a84ff; color: #fff; } .cand.on b { color: #d6e9ff; }
.overlay-mock { position: absolute; right: 0; bottom: 34px; width: 232px; padding: 13px; border-radius: 20px;
  background: rgba(22, 24, 38, .72); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .13); box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
  transition: opacity .45s ease, transform .45s ease; }
.overlay-mock.off { opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none; }
.ov-title { font-size: 12px; font-weight: 600; color: #fff; margin: 0 2px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ov-key { position: relative; aspect-ratio: 1; border-radius: 11px; background: rgba(255, 255, 255, .07); display: flex; flex-direction: column;
  align-items: center; justify-content: center; transition: background .15s, transform .15s, box-shadow .15s; }
.ov-key .n { position: absolute; top: 3px; left: 6px; font-size: 9px; font-weight: 700; color: var(--amber-1); }
.ov-key .g { font-size: 20px; line-height: 1.1; color: #fff; }
.ov-key .s { font-size: 8.5px; color: rgba(255, 255, 255, .55); max-width: 100%; overflow: hidden; white-space: nowrap; }
.ov-key.on, .ov-zero.on { background: linear-gradient(180deg, var(--amber-1), var(--amber-2)); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(240, 138, 36, .5); }
.ov-key.on .g, .ov-key.on .s, .ov-key.on .n { color: var(--on-amber); }
.ov-zero { margin-top: 5px; height: 27px; border-radius: 9px; background: rgba(255, 255, 255, .07); display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--amber-1); transition: background .15s, box-shadow .15s; }
.ov-zero.on { color: var(--on-amber); }
.demo-cap { position: absolute; left: 0; bottom: 0; width: 88%; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .6); min-height: 22px; }
/* 新手 / 熟手模式開關 */
.mode-pill { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 15px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16); font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .86); }
.sw { position: relative; width: 30px; height: 18px; border-radius: 999px; background: #c9cbd6; transition: background .25s; flex: none; }
.sw i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .25s; }
.mode-pill .sw { background: linear-gradient(180deg, var(--amber-1), var(--amber-2)); }
.mode-pill .sw i { left: 14px; }
.mode-pill.off .sw { background: rgba(255, 255, 255, .22); }
.mode-pill.off .sw i { left: 2px; }
.mode-text { position: absolute; left: 0; top: 9px; right: 190px; font-size: 13px; color: var(--gold); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .hero h1 { font-size: 36px; }
  .hero-visual { margin-top: 44px; min-height: 0; }
  .mac { width: 100%; } .overlay-mock { width: 176px; right: -6px; bottom: 30px; padding: 10px; } .ov-key .g { font-size: 16px; }
  .mac-body { padding: 24px 20px 160px; min-height: 0; } .demo-cap { width: 100%; }
  .mode-text { font-size: 12px; right: 150px; } .mode-pill .mode-label { display: none; }
}

/* ===== 區塊 ===== */
.sec { padding: 136px 0; }
.sec-soft { background: var(--bg-soft); }
.sec-ink { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.sec-ink::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 480px at 50% -8%, rgba(96, 112, 232, .22), transparent 62%); }
.sec-ink > .wrap { position: relative; }
.sec-head { max-width: 940px; margin: 0 auto 72px; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 4.3vw, 54px); line-height: 1.16; margin-top: 18px; }
.sec-head p { margin: 22px auto 0; max-width: 640px; color: var(--muted); font-size: 18px; }
.sec-ink .sec-head p { color: rgba(255, 255, 255, .66); }
.sec-ink .sec-head p a { color: #fff; text-underline-offset: 4px; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.fine { margin-top: 26px; font-size: 13px; color: var(--muted); text-align: center; }
.tag { display: inline-block; margin-left: 8px; vertical-align: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; padding: 0 8px; line-height: 19px; }
@media (max-width: 760px) { .sec { padding: 88px 0; } .sec-head { margin-bottom: 48px; } .wrap { padding: 0 22px; } .sec-head p { font-size: 16px; } }

/* 卡片：白底細線，不用陰影 */
.keep-card, .step, .feat-card, .plan, .pp, .kmap-card, .kb-card, .post-card, .pain-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }

/* 痛點：以前 → 九九 */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain-card { display: grid; grid-template-rows: auto auto; overflow: hidden; }
.pain-old, .pain-new { display: flex; gap: 16px; align-items: flex-start; padding: 22px 28px; }
.pain-old { color: var(--muted); background: color-mix(in srgb, var(--text) 3%, var(--card)); }
.pain-old p { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent); }
.pain-new { border-top: 1px solid var(--line); }
.pain-new p { font-weight: 600; font-size: 18px; line-height: 1.6; }
.pl { display: block; font-size: 11px; font-weight: 600; letter-spacing: .18em; margin-bottom: 4px; }
.pain-old .pl { color: color-mix(in srgb, var(--muted) 80%, transparent); } .pain-new .pl { color: var(--accent); }
.ico-x { color: color-mix(in srgb, var(--muted) 70%, transparent); margin-top: 8px; width: 16px; height: 16px; }
.ico-ok { color: var(--accent); margin-top: 8px; width: 18px; height: 18px; stroke-width: 2.2; }
@media (max-width: 800px) { .pain-grid { grid-template-columns: 1fr; } .pain-old, .pain-new { padding: 20px 22px; } }

/* 保留 */
.keep-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.keep-card { padding: 34px 28px 36px; }
.keep-n { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .16em; }
.keep-card h3 { font-size: 20px; margin: 22px 0 10px; }
.keep-card p { color: var(--muted); font-size: 15.5px; line-height: 1.75; }
@media (max-width: 980px) { .keep-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .keep-grid { grid-template-columns: 1fr; } }

/* 升級三大重點（深色區） */
.up-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.up-card { padding: 48px 40px 20px; border-left: 1px solid rgba(255, 255, 255, .1); }
.up-card:first-child { border-left: 0; padding-left: 0; }
.up-glyph { font-size: clamp(40px, 4.6vw, 60px); font-weight: 600; line-height: 1.1; margin-bottom: 20px;
  background: linear-gradient(180deg, #f6e3b4 10%, #cfa25a 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.up-card p { color: rgba(255, 255, 255, .68); font-size: 16.5px; }
@media (max-width: 800px) { .up-grid { grid-template-columns: 1fr; border-top: 0; }
  .up-card, .up-card:first-child { padding: 34px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); } }

/* 比較表 */
.cmp-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp-table th, .cmp-table td { padding: 20px 28px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15.5px; }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table thead th { font-size: 13px; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding-top: 24px; padding-bottom: 24px; }
.cmp-table thead th.ours { color: var(--text); font-size: 15px; letter-spacing: .02em; }
.cmp-table thead th.ours img { display: inline-block; vertical-align: -5px; margin-right: 9px; border-radius: 6px; }
.cmp-table tbody th { font-weight: 600; width: 28%; }
.cmp-table td { color: var(--muted); width: 33%; }
.cmp-table td.ours, .cmp-table thead th.ours { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.cmp-table td.ours { color: var(--text); font-weight: 600; }
.cmp { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-right: 12px; vertical-align: -6px; }
.cmp .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.cmp.y { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.cmp.n { color: color-mix(in srgb, var(--muted) 60%, transparent); }
@media (max-width: 760px) { .cmp-table th, .cmp-table td { padding: 16px 18px; font-size: 14.5px; } }

/* 怎麼打 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 38px 32px 40px; }
.step-big { font-size: 44px; font-weight: 600; line-height: 1; margin-bottom: 26px; color: var(--accent); letter-spacing: -.01em; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.step .ex { margin-top: 12px; color: var(--text); }
.example { margin-top: 48px; text-align: center; font-size: 18px; line-height: 2.4; }
.example a { font-size: 15px; color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.kbd { display: inline-block; min-width: 32px; padding: 0 9px; margin: 0 2px; border-radius: 8px; font-weight: 600; font-size: 15px; line-height: 31px; text-align: center;
  border: 1px solid var(--line); background: var(--card); box-shadow: 0 1.5px 0 var(--line); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* 功能 */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card { padding: 36px 32px 38px; transition: border-color .25s, transform .25s cubic-bezier(.2, .7, .2, 1); }
.feat-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.feat-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 26px; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.feat-ic .ico { width: 21px; height: 21px; stroke-width: 1.6; }
.feat-card h3 { font-size: 20px; margin-bottom: 10px; }
.feat-card p { color: var(--muted); font-size: 15.5px; line-height: 1.75; }
@media (max-width: 980px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

/* 截圖 */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1080px; margin: 0 auto; }
.shot { margin: 0; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.shot-stage { position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  background: radial-gradient(90% 80% at 50% 0%, #262b52 0%, #12142a 55%, var(--ink) 100%); }
.shot-stage .in { position: absolute; inset: 34px; display: flex; align-items: center; justify-content: center; }
.shot-stage img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); }
.shot figcaption { flex: 1; padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 6px; }
.shot figcaption b { font-size: 17px; font-weight: 600; color: var(--text); }
.shot figcaption span { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
@media (max-width: 700px) { .shots { grid-template-columns: 1fr; } .shot-stage .in { inset: 22px; } }

/* 價格 */
.vs-strip { max-width: 860px; margin: -36px auto 48px; text-align: center; font-size: 14.5px; color: var(--muted); letter-spacing: .02em; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 44px 40px 40px; }
.plan h3 { font-size: 15px; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.price { font-size: clamp(46px, 5vw, 60px); font-weight: 600; margin-top: 18px; line-height: 1.05; letter-spacing: -.02em; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 10px; letter-spacing: 0; }
.plan-note { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.plan ul { list-style: none; padding: 26px 0 0; margin: 30px 0 36px; flex: 1; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 15.5px; }
.plan li .ico { width: 17px; height: 17px; color: var(--accent); margin-top: 6px; stroke-width: 2.2; }
.plan .btn { width: 100%; }
.plan-pro { --text: #ffffff; --muted: rgba(255, 255, 255, .62); --line: rgba(255, 255, 255, .12); color: #fff;
  background: radial-gradient(520px 300px at 50% -10%, rgba(96, 112, 232, .30), transparent 70%), var(--ink-2);
  border-color: rgba(220, 184, 120, .46); box-shadow: var(--shadow); }
.badge { position: absolute; top: 40px; right: 36px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; padding: 5px 13px; border-radius: 999px;
  color: var(--gold); border: 1px solid rgba(220, 184, 120, .46); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan { padding: 36px 28px 30px; } .badge { top: 32px; right: 24px; } }

/* 下載 */
.dl-row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.dl { min-width: 320px; padding: 36px 38px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .11); }
.dl h3 { font-size: 22px; }
.dl p { margin: 8px 0 26px; color: rgba(255, 255, 255, .62); font-size: 14.5px; }
.dl-soon { opacity: .72; }
/* 系統需求 */
.req { max-width: 1000px; margin: 28px auto 0; padding: 36px 40px; border-radius: var(--r); text-align: left;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .09); }
.req h3 { font-size: 13px; letter-spacing: .2em; color: rgba(255, 255, 255, .56); font-weight: 600; margin-bottom: 4px; }
.req > p { color: rgba(255, 255, 255, .7); font-size: 15px; }
.req ul { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: 1fr; gap: 9px; }
.req-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 20px; }
.req-cols > div > p { color: rgba(255, 255, 255, .7); font-size: 14.5px; }
.req h4 { font-size: 16px; color: #fff; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin: 0 0 14px; }
.req li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: rgba(255, 255, 255, .9); }
.req li .ico { width: 15px; height: 15px; color: var(--gold); margin-top: 7px; stroke-width: 2.4; }
.req .req-note { font-size: 13px; color: rgba(255, 255, 255, .5); margin-top: 8px; }
@media (max-width: 760px) { .req-cols { grid-template-columns: 1fr; gap: 28px; } .req { padding: 28px 24px; } .dl { min-width: 0; width: 100%; } }

/* 常見問題 */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 18px; line-height: 1.5; padding: 26px 48px 26px 0; position: relative; transition: color .15s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 15px; height: 1.5px; background: currentColor; opacity: .6; transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 48px 28px 0; color: var(--muted); font-size: 16.5px; }

/* 頁尾 */
.footer { background: var(--ink); color: rgba(255, 255, 255, .6); padding: 64px 0 60px; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.footer-row { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.footer .brand { color: #fff; }
.legal { margin-top: 16px; max-width: 560px; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .4); }
.footer-links { display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: flex-start; max-width: 520px; }
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, .68); transition: color .15s; }
.footer-links a:hover { color: #fff; }

/* ===== 教學頁 ===== */
.kmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kmap-card { padding: 24px; }
.kmap-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.kmap-fk { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 23px; font-weight: 600; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.kmap-head h3 { font-size: 18px; } .kmap-head small { color: var(--muted); font-size: 12px; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini div { position: relative; padding: 8px 4px 6px; border-radius: 11px; text-align: center; border: 1px solid var(--line); background: var(--bg-soft); }
.mini .c { font-size: 22px; line-height: 1.25; }
.mini .e { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .code { position: absolute; top: 3px; left: 6px; font-size: 9px; font-weight: 700; color: var(--accent); }
@media (max-width: 900px) { .kmap { grid-template-columns: 1fr; } }
.kb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kb-card { padding: 36px; }
.kb-card h3 { font-size: 20px; } .kb-card p { color: var(--muted); font-size: 15.5px; }
.kp { display: grid; grid-template-columns: repeat(3, 54px); gap: 6px; margin: 20px 0; }
.kp span { height: 48px; border-radius: 11px; display: grid; place-items: center; font-weight: 600; border: 1px solid var(--line); background: var(--bg-soft); }
@media (max-width: 720px) { .kb-grid { grid-template-columns: 1fr; } }
.steps-plain .step { padding-top: 34px; }
/* 條款、隱私權政策 */
.prose > * { max-width: 760px; }   /* 內文欄寬較窄，但左邊與頁首標題對齊 */
.prose h2 { font-size: 24px; margin: 56px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h2:first-of-type { margin-top: 40px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 10px; font-size: 16.5px; }
.prose ul { padding-left: 22px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.prose .fine { text-align: left; margin-top: 48px; }

/* ===== 面板對照：以前 vs 九九 ===== */
.pcmp { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.scr { margin: 0; }
.scr-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .14em; padding: 6px 13px;
  border-radius: 999px; margin-bottom: 18px; border: 1px solid var(--line); }
.scr-tag .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.scr-tag.bad { color: var(--muted); }
.scr-tag.ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.scr-win { position: relative; height: 350px; border-radius: 16px; overflow: hidden; background: #fbfbfd; border: 1px solid var(--line); box-shadow: var(--shadow); }
.scr-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; background: linear-gradient(#f0f0f4, #e6e7ec); }
.scr-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.scr-bar > i:nth-child(2) { background: #febc2e; } .scr-bar > i:nth-child(3) { background: #28c840; }
.scr-page { position: relative; padding: 24px 26px; display: flex; flex-direction: column; gap: 11px; }
.scr-page b { font-size: 15px; font-weight: 600; color: #1b1d29; margin-bottom: 4px; }
.scr-page > i { display: block; height: 9px; border-radius: 5px; background: #e6e7ee; }
.bigpanel { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 58%; border-radius: 10px; background: #d9dbe2; border: 1px solid #c4c6d0;
  box-shadow: 0 -10px 30px rgba(20, 22, 40, .18); display: flex; flex-direction: column; }
.bp-head { height: 26px; padding: 0 12px; display: flex; align-items: center; font-size: 12px; font-weight: 600; color: #5d6070; background: #cfd1da; border-radius: 10px 10px 0 0; }
.bp-body { flex: 1; display: flex; gap: 10px; padding: 10px; }
.bp-grid { flex: 1.3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bp-grid span { display: grid; place-items: center; border-radius: 6px; background: #f2f3f6; border: 1px solid #c4c6d0; font-size: 18px; color: #3c3f52; }
.bp-side { flex: 1; display: grid; gap: 6px; }
.bp-side span { border-radius: 6px; background: #eceef2; border: 1px solid #c4c6d0; }
.scr-old .scr-win { filter: saturate(.6); opacity: .86; }
.scr-new .scr-win { background: #fff; }
.tg { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #5d6070; font-weight: 600; }
.tg em { font-style: normal; }
.tg .tg-off { color: #8c8e9c; }
.mini-cands { position: absolute; left: 26px; top: 132px; display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: #fff;
  box-shadow: 0 12px 28px rgba(20, 22, 40, .18), 0 0 0 1px rgba(20, 22, 40, .08); font-size: 14px; color: #15161c; }
.mini-cands span { padding: 1px 6px; border-radius: 6px; }
.mini-cands b { font-size: 10px; color: #80828f; margin-right: 2px; }
.mini-cands .on { background: #0a84ff; color: #fff; } .mini-cands .on b { color: #d6e9ff; }
.scr figcaption { margin-top: 18px; font-size: 15.5px; font-weight: 600; text-align: center; }
.scr-old figcaption { color: var(--muted); font-weight: 500; }
.pp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.pp { display: flex; gap: 16px; padding: 28px; }
.pp-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.pp-n .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.pp h3 { font-size: 17.5px; margin-bottom: 6px; } .pp p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
@media (max-width: 860px) { .pcmp, .pp-row { grid-template-columns: 1fr; } .scr-win { height: 310px; } }

/* ===== 文章（Blog）===== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 14px; padding: 32px 30px; text-decoration: none;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s; }
.post-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.post-card[hidden] { display: none; }
.post-card h3 { font-size: 20px; line-height: 1.5; }
.post-card p { color: var(--muted); font-size: 15px; line-height: 1.75; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-cat { align-self: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; color: var(--accent); }
.post-meta { font-size: 13px; color: var(--muted); }
.more { text-align: center; margin-top: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.chip { font: inherit; font-size: 14px; font-weight: 600; line-height: 1; padding: 11px 20px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--line); transition: color .15s, border-color .15s, background .15s; }
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 40%, transparent); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-wrap { max-width: 780px; }
.hero-post { padding: 84px 0 72px; }
.hero-post h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.25; margin-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.crumbs a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.post-sub { margin-top: 20px; font-size: 18px; line-height: 1.75; color: rgba(255, 255, 255, .7); }
.post-info { margin-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .46); letter-spacing: .02em; }
.sec-post { padding-top: 72px; }
.toc { padding: 26px 30px; border-radius: 18px; background: var(--bg-soft); margin-bottom: 44px; }
.toc b { font-size: 12px; letter-spacing: .2em; color: var(--accent); font-weight: 600; }
.toc ol { margin: 10px 0 0; padding-left: 22px; }
.toc li { margin: 5px 0; font-size: 15.5px; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--accent); }
.post-body { font-size: 17.5px; line-height: 1.95; }
.post-body > * + * { margin-top: 20px; }
.post-body h2 { font-size: 28px; margin-top: 60px; padding-top: 8px; scroll-margin-top: 90px; }
.post-body h3 { font-size: 20px; margin-top: 36px; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li { margin: 6px 0; }
.post-body li::marker { color: var(--accent); font-weight: 600; }
.post-body a { color: var(--text); text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.post-body a:hover { color: var(--accent); }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; padding: 2px 8px; border-radius: 7px;
  background: var(--bg-soft); border: 1px solid var(--line); white-space: nowrap; }
.post-body blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); color: var(--muted); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.tbl th, .tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.tbl table:not(:has(thead)) { width: auto; }
.tbl table:not(:has(thead)) td { width: 58px; height: 54px; text-align: center; font-size: 20px; font-weight: 600; border: 1px solid var(--line); }
.cta-box { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-top: 64px; padding: 34px 36px; border-radius: var(--r);
  color: #fff; background: radial-gradient(520px 260px at 0% 0%, rgba(96, 112, 232, .32), transparent 70%), var(--ink-2); }
.cta-box img { border-radius: 16px; }
.cta-box h2 { font-size: 21px; }
.cta-box p { margin-top: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .66); }
@media (max-width: 640px) { .cta-box { grid-template-columns: 1fr; text-align: center; padding: 30px 24px; } .cta-box img { margin: 0 auto; }
  .post-body { font-size: 16.5px; } .tbl table { font-size: 14px; } .tbl th, .tbl td { padding: 9px 9px; } }
