/* 官網 v3 首頁（見 site/DESIGN.md）。接在 site.css 之後，只作用在 body.v3；顏色、圓角、陰影、字體都用 site.css 的 token（取自 web/design-tokens 的 kryspal 主題）。無內嵌樣式、無外部資源。 */

body.v3 {
  --line: var(--separator);
  --line-2: var(--edge);
  --ov-1: rgba(190, 232, 255, 0.05);
  --ov-2: rgba(190, 232, 255, 0.1);
  --fg: var(--text);
  --fg-2: var(--text-2);
  --fg-3: var(--text-3);
  --out: cubic-bezier(0.23, 1, 0.32, 1);
  --slow: cubic-bezier(0.165, 0.84, 0.44, 1);
  background: var(--bg-base);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
}
:root[data-theme='light'] body.v3 { --ov-1: rgba(13, 60, 90, 0.05); --ov-2: rgba(13, 60, 90, 0.1); }
body.v3 .wrap { max-width: 1204px; padding: 0 20px; }
body.v3 .narrow { max-width: 1204px; }
/* 閱讀型長文只限制文字段落的行寬，容器、標題與區塊邊界和其他頁一致 */
body.v3 .doc > p, body.v3 .doc > ul, body.v3 .doc > ol, body.v3 .doc > h2, body.v3 .doc > h3, body.v3 .doc li, body.v3 .doc .ans, body.v3 .doc .log p, body.v3 .doc .log ul, body.v3 .fq p { max-width: 760px; }
@media (min-width: 720px) { body.v3 .wrap { padding: 0 32px; } }
body.v3 .mono { font-family: var(--mono); }
body.v3 .center { text-align: center; }

/* ---------- 導覽：懸浮膠囊 ---------- */
body.v3 .top { position: fixed; left: 0; right: 0; top: 12px; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
body.v3 .top .wrap { max-width: 1204px; }
body.v3 .top .wrap > * { pointer-events: auto; }
body.v3 .top .wrap { min-height: 56px; padding: 0 12px 0 20px; margin: 0 auto; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); width: calc(100% - 24px); max-width: 1204px; pointer-events: auto; transition: background 0.3s ease, border-color 0.3s ease; }
body.v3 .nav a { color: var(--fg-2); border-radius: 6px; transition: color 0.2s ease, background 0.2s ease; }
body.v3 .nav a:hover { color: var(--fg); background: var(--ov-1); }
body.v3 .nav .lang { border-color: var(--line-2); }
body.v3 .mmenu summary { border-color: var(--line-2); min-height: 44px; display: inline-flex; align-items: center; }
body.v3 .mmenu nav { background: var(--surface-strong); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -16px #000; }
body.v3 main { padding-top: 0; padding-bottom: clamp(72px, 10vw, 140px); }

/* ---------- 標題層級 ---------- */
body.v3 h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -0.03em; }
body.v3 h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.022em; }
body.v3 h3 { font-size: 20px; line-height: 1.3; font-weight: 590; letter-spacing: -0.012em; }
body.v3 .lead { color: var(--fg-2); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; }
body.v3 .muted { color: var(--fg-2); }
body.v3 .small { color: var(--fg-3); }
body.v3 .grad { color: var(--accent); }
/* 品牌字體只含字母、數字與 &'(),-./:· 等少數符號；? ! ; 引號、破折號等交給下面這個「標點」字體：宣告成 400–700 一整段，瀏覽器就不會把後備字體合成粗體（那會比標題粗） */
@font-face { font-family: 'Kryspal Punct'; font-weight: 400 700; src: local('Helvetica Neue'), local('Arial'), local('Segoe UI'), local('Roboto'), local('Noto Sans'), local('DejaVu Sans'); unicode-range: U+21, U+22, U+23, U+25, U+2B, U+3B, U+3F, U+40, U+2013, U+2014, U+2018, U+2019, U+201C, U+201D; }
html[lang='en'] body.v3 h1, html[lang='en'] body.v3 h2 { font-family: 'Kryspal Display', 'Kryspal Punct', var(--font); font-weight: 600; letter-spacing: 0; }
body.v3 .sec { padding: clamp(72px, 10vw, 150px) 0 0; }
body.v3 .sec-head { max-width: 720px; margin: 0 0 clamp(32px, 4vw, 56px); }
body.v3 .sec-head h2 { margin-bottom: 12px; }

/* ---------- 按鈕 ---------- */
body.v3 .btn { min-height: 44px; border-radius: 6px; font-size: 15px; font-weight: 500; letter-spacing: 0.01em; border-color: var(--line-2); background: var(--ov-1); color: var(--fg); transition: transform 0.4s var(--out), background 0.2s ease, border-color 0.2s ease; }
body.v3 .btn:hover { background: var(--ov-2); border-color: rgba(255, 255, 255, 0.22); }
body.v3 .btn.primary { background: var(--accent-solid); color: var(--accent-on); border-color: transparent; box-shadow: var(--shadow-control), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
body.v3 .btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ---------- 首屏 ---------- */
.h-hero { position: relative; padding: 132px 0 0; text-align: center; overflow: hidden; }
.h-hero h1 { max-width: 20ch; margin: 0 auto 20px; }
.h-hero .lead { max-width: 640px; margin: 0 auto 32px; }
.h-hero .btns { margin-bottom: 0; }
.h-hero .hero-demo { margin: 18px 0 0; font-size: 15px; }
.h-hero .hero-demo a { color: var(--fg-2); text-decoration: none; }
.h-hero .hero-demo a:hover { color: var(--fg); }
.frame { --p: 0; position: relative; margin: clamp(48px, 7vw, 96px) auto 0; max-width: 1120px; perspective: 1600px; }
/* 首屏畫面外框就是 .dev（和全站一樣）；這層只負責傾斜與回正 */
.frame .glass { transform: rotateX(calc(10deg * (1 - var(--p)))) translateY(calc(-40px * var(--p))) scale(calc(0.96 + 0.04 * var(--p))); transform-origin: 50% 0; will-change: transform; }
.frame .zoom { display: block; }
.frame::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, transparent, var(--bg-base)); pointer-events: none; }
.strip { text-align: center; color: var(--fg-2); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; margin: 36px auto clamp(28px, 4vw, 56px); max-width: 760px; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.bc { position: relative; display: flex; flex-direction: column; border-radius: 10px; background: linear-gradient(137deg, var(--surface), var(--bg-raised)); box-shadow: var(--shadow-card); overflow: hidden; min-height: 300px; transition: box-shadow 0.4s var(--out), transform 0.4s var(--out); }
.bc:hover { box-shadow: var(--shadow-facet-hover); }
.bc.w2 { grid-column: span 2; }
.bc .demo { flex: 1; display: grid; place-items: center; padding: 28px 24px 8px; min-height: 160px; }
.bc .txt { padding: 8px 24px 24px; }
.bc h3 { margin: 0 0 6px; font-size: 17px; }
.bc p { margin: 0; color: var(--fg-2); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .bc.w2 { grid-column: auto; } .bc { min-height: 0; } }

/* 迷你動態：停在最終樣子；進入視窗（.on）才播放 */
.m-rail { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.m-rail .track { display: flex; gap: 10px; width: max-content; }
.m-rail img { width: 92px; height: 138px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line-2); flex: none; }
.m-apps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 280px; }
.m-apps span, .m-orig span, .m-ver .vp { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 6px; background: var(--ov-1); box-shadow: 0 0 0 1px var(--line-2); color: var(--fg); }
.m-orig { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 280px; }
.m-orig span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.m-orig span:nth-child(1), .m-orig span:nth-child(2) { color: var(--accent-on); background: var(--accent) }
.m-sub { list-style: none; margin: 0; padding: 6px; width: 100%; max-width: 230px; border-radius: 10px; background: var(--surface-strong); box-shadow: 0 0 0 1px var(--line-2); font-size: 13px; }
.m-sub li { padding: 7px 12px; border-radius: 6px; color: var(--fg-2); }
.m-sub li:nth-child(2) { background: rgba(92, 214, 242, 0.14); color: var(--fg); }
.m-skip { width: 100%; max-width: 280px; display: grid; gap: 14px; justify-items: end; }
.m-skip .tl { width: 100%; height: 6px; border-radius: 3px; background: var(--ov-2); position: relative; }
.m-skip .tl b { position: absolute; left: 8%; width: 22%; top: 0; bottom: 0; border-radius: 3px; background: var(--accent); box-shadow: 0 0 12px rgba(92, 214, 242, 0.6); }
.m-skip .sk { font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 6px; background: var(--text); color: var(--bg-base); }
.m-ver { display: flex; gap: 8px; }
.m-ver .vp.on { color: var(--accent-on); background: var(--accent) }
.m-imp { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--fg); width: 100%; max-width: 220px; }
.m-imp li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px; background: var(--ov-1); box-shadow: 0 0 0 1px var(--line); }
.m-imp i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.m-imp i::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--accent-on); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.m-cloud svg { width: 100%; max-width: 188px; height: auto; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.m-own svg { width: 72px; height: 72px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .bento.on .m-rail .track { animation: rail 40s linear infinite; }
  .bento.on .m-sub li:nth-child(2) { animation: pick 6s ease-in-out infinite; }
  .bento.on .m-sub li:nth-child(4) { animation: pick2 6s ease-in-out infinite; }
  .bento.on .m-skip .sk { animation: pulse 2.4s ease-in-out infinite; }
  .bento.on .m-ver .vp { animation: swap 5s ease-in-out infinite; }
  .bento.on .m-ver .vp:nth-child(2) { animation-name: swap2; }
  .bento.on .m-imp i { animation: tick 4.5s ease-out infinite; }
  .bento.on .m-imp li:nth-child(2) i { animation-delay: 0.5s; } .bento.on .m-imp li:nth-child(3) i { animation-delay: 1s; }
  .bento.on .m-own svg { animation: float 4s ease-in-out infinite; }
  @keyframes rail { to { transform: translateX(-50%); } }
  @keyframes pick { 0%, 40% { background: rgba(92, 214, 242, 0.14); color: var(--text); } 50%, 90% { background: none; color: rgba(255, 255, 255, 0.66); } 100% { background: rgba(92, 214, 242, 0.14); color: var(--text); } }
  @keyframes pick2 { 0%, 40% { background: none; } 50%, 90% { background: rgba(92, 214, 242, 0.14); color: var(--text); } 100% { background: none; } }
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); } 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }
  @keyframes swap { 0%, 45% { background: var(--accent); color: var(--accent-on); } 55%, 95% { background: var(--ov-1); color: var(--text); } 100% { background: var(--accent); color: var(--accent-on); } }
  @keyframes swap2 { 0%, 45% { background: var(--ov-1); color: var(--text); } 55%, 95% { background: var(--accent); color: var(--accent-on); } 100% { background: var(--ov-1); color: var(--text); } }
  @keyframes tick { 0% { transform: scale(0.2); opacity: 0; } 20%, 85% { transform: none; opacity: 1; } 100% { transform: scale(0.2); opacity: 0; } }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
}


/* ---------- 捲動敘事 ---------- */
.h-story { padding: clamp(80px, 11vw, 168px) 0 0; }
.h-story h2 { max-width: 16ch; margin-bottom: clamp(32px, 5vw, 64px); }
.story { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.sn { list-style: none; margin: 0; padding: 0; }
.step { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.5; transition: opacity 0.5s var(--out); }
.step.cur { opacity: 1; }
.step .n { font: 500 12px var(--mono); color: var(--accent); letter-spacing: 0.1em; margin-bottom: 10px; }
.step h3 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 10px; letter-spacing: -0.022em; }
.step p { color: var(--fg-2); max-width: 36ch; margin: 0; }
.views { position: relative; align-self: stretch; }
.sticky { position: sticky; top: 14vh; aspect-ratio: 1440 / 900; }
.sticky .v { position: absolute; inset: 0; opacity: 0; transform: translateY(16px) scale(0.985); transition: opacity 0.6s var(--out), transform 0.8s var(--out); pointer-events: none; }
.sticky .v.cur { opacity: 1; transform: none; pointer-events: auto; }
.sticky .zoom { display: block; }
/* 沒有 JS（或 JS 還沒跑）時：四個步驟依序排列，每步附一張截圖，不依賴切換 */
.simg { display: block; margin-top: 20px; }
.story:not(.live) { grid-template-columns: 1fr; }
.story:not(.live) .views { display: none; }
.story:not(.live) .step { min-height: 0; opacity: 1; padding: 0 0 36px; }
.story.live .simg { display: none; }
@media (max-width: 860px) {
  .story.live { grid-template-columns: 1fr; }
  .story.live .views { display: none; }
  .story.live .step { min-height: 0; opacity: 1; padding: 0 0 36px; }
  .story.live .simg { display: block; }
  .h-story .step::after { content: none; }
}

/* ---------- 效能（倍數卡；perf.json 沒有數字時整個區塊不輸出） ---------- */
.pcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pc { padding: 28px 24px; border-radius: 10px; background: linear-gradient(137deg, var(--surface), var(--bg-raised)); box-shadow: var(--shadow-card); }
.pc .big { display: block; font-size: clamp(48px, 6vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--accent); margin-bottom: 14px; }
.pc h3 { font-size: 17px; margin: 0 0 6px; }
.pc .small { margin: 0; }


/* ---------- 架構 ---------- */
.arch { display: grid; gap: 32px; }
.nodes { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.nd { position: relative; z-index: 1; padding: 22px; border-radius: 10px; background: linear-gradient(137deg, var(--surface), var(--bg-raised)); box-shadow: 0 0 0 1px var(--line-2), inset 0 1px 0 var(--ov-1); }
.nd.n1 { box-shadow: var(--shadow-facet-hover); }
.nd b { display: block; font-weight: 590; margin-bottom: 4px; } .nd span { color: var(--fg-2); font-size: 14px; }
.wire { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 40px; transform: translateY(-50%); z-index: 0; }
.wire path { vector-effect: non-scaling-stroke; fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; opacity: 0.8; }
@media (prefers-reduced-motion: no-preference) {
  .arch.on .wire path { animation: dash 1.4s linear infinite; }
}
@media (max-width: 760px) {
  .nodes { grid-template-columns: 1fr; gap: 36px; } .wire { display: none; }
  }

/* ---------- 方案、FAQ、結尾 ---------- */
.pls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.pl { padding: 24px; border-radius: 10px; background: linear-gradient(137deg, var(--surface), var(--bg-raised)); box-shadow: var(--shadow-card); }
.pl.ft { box-shadow: var(--shadow-facet-hover); }
.pl h3 { font: 500 13px var(--mono); letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px; }
.pl p { margin: 0; color: var(--fg-2); }
@media (max-width: 760px) { .pls { grid-template-columns: 1fr; } }
.fq { border-bottom: 1px solid var(--line); }
.fq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 500; font-size: 17px; position: relative; min-height: 44px; }
.fq summary::-webkit-details-marker { display: none; }
.fq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 22px; color: var(--fg-3); transition: transform 0.3s var(--out); }
.fq[open] summary::after { transform: rotate(45deg); }
.fq p { color: var(--fg-2); margin: 0 0 20px; max-width: 60ch; }
.h-faq .center { margin-top: 24px; }
.h-cta { text-align: center; position: relative; }
.h-cta .lead { margin: 0 auto 28px; }

/* ---------- 進場 ---------- */
@media (prefers-reduced-motion: no-preference) {
  body.v3 .rv { transition: opacity 1s var(--slow), transform 1s var(--slow); }
}
@media (prefers-reduced-motion: reduce) {
  .frame .glass { transform: none !important; }
  .sticky .v, .step { transition: none; }
}
body.v3 .foot { margin-top: 0; border-top: 1px solid var(--line); background: var(--bg-base); }
:root[data-theme='light'] body.v3 .grad { color: var(--accent); }
:root[data-theme='light'] .frame::after { background: linear-gradient(180deg, transparent, var(--bg-base)); }
body.v3:not(.home) main { padding-top: 88px; }

/* 架構區：為什麼快，四張卡 */
.apts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.apts li { padding: 22px; border-radius: 10px; background: linear-gradient(137deg, var(--surface), var(--bg-raised)); box-shadow: var(--shadow-card); }
.apts h3 { font-size: 17px; margin: 0 0 6px; }
.apts p { color: var(--fg-2); font-size: 15px; margin: 0; }
.h-scale .pcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 三欄的數字卡：字型換成較寬的系統字型時「~200,000」會超出卡片，字級依視窗寬度縮、不換行 */
@media (min-width: 761px) { .h-scale .pc:not(.hero) .big { font-size: clamp(32px, 3.6vw, 56px); white-space: nowrap; } }
@media (max-width: 760px) { .h-scale .pcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h-scale .pc { padding: 20px 16px; min-width: 0; } .h-scale .pc .big { font-size: clamp(22px, 6.4vw, 40px); white-space: nowrap; } .h-scale .pc.hero .big { font-size: clamp(64px, 20vw, 96px); } }

/* 比較頁：我們這欄強調；手機改成逐列卡片 */
.mk { display: inline-block; width: 1.4em; font-weight: 700; }
.mk.y { color: var(--accent); }
.mk.n { color: var(--text-3); }
table.cmp td.dash { color: var(--text-3); }
table.cmp td:nth-child(2) { font-weight: 500; }
.cmp-note { margin-top: 20px; }
@media (max-width: 760px) {
  .tablewrap { overflow: visible; background: none; box-shadow: none; }
  table.cmp, table.cmp tbody, table.cmp tr, table.cmp td, table.cmp th { display: block; min-width: 0; width: auto; }
  table.cmp thead { display: none; }
  table.cmp tr { margin-bottom: 12px; border-radius: 10px; background: linear-gradient(137deg, var(--surface), var(--bg-raised)); box-shadow: var(--shadow-card); overflow: hidden; }
  table.cmp tbody th { width: auto; padding: 14px 16px 6px; color: var(--text); font-size: 16px; border: 0; }
  table.cmp td { padding: 6px 16px; border: 0; background: none !important; }
  table.cmp td::before { content: attr(data-label); display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
  table.cmp td:nth-child(2) { background: var(--accent-soft) !important; margin: 4px 0; padding: 10px 16px; }
  table.cmp td:last-child { padding-bottom: 14px; }
}

table.cmp tr.grp th { background: none; padding: 22px 18px 8px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border: 0; }
table.cmp .sub { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--text-3); }
@media (max-width: 760px) { table.cmp tr.grp { background: none; box-shadow: none; margin: 18px 0 6px; } table.cmp tr.grp th { padding: 0 4px; } }

/* 演員時間軸（首頁小卡） */
/* 倍數大卡（最前面一張，跨整列） */
/* 中文搜索（只在中文版） */
.srch { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.srch .box { padding: 20px; border-radius: 10px; background: linear-gradient(137deg, var(--surface), var(--bg-raised)); box-shadow: var(--shadow-card); min-height: 220px; }
.srch .field { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 6px; background: var(--surface-strong); box-shadow: 0 0 0 1px var(--line-2); }
.srch .field svg { width: 18px; height: 18px; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; flex: none; }
.srch .qwrap { position: relative; flex: 1; height: 24px; font: 500 16px/24px var(--mono); color: var(--fg); }
.srch .qs { position: absolute; left: 0; top: 0; opacity: 0; }
.srch .qs.q0 { opacity: 1; }
.srch .results { list-style: none; margin: 14px 0 0; padding: 0; position: relative; height: 56px; }
.srch .rs { position: absolute; left: 0; right: 0; top: 0; opacity: 0; display: flex; align-items: center; height: 48px; padding: 0 14px; border-radius: 6px; background: var(--accent-soft); font-size: 17px; }
.srch .rs.r0 { opacity: 1; }
.srch .pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 17px; color: var(--fg-2); }
.srch .pts li { position: relative; padding-left: 22px; }
.srch .pts li::before { content: ''; position: absolute; left: 2px; top: 0.7em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .srch.on .qs.q0 { animation: qa 9s infinite; } .srch.on .qs.q1 { animation: qb 9s infinite; } .srch.on .qs.q2 { animation: qc 9s infinite; }
  .srch.on .rs.r0 { animation: qa 9s infinite; } .srch.on .rs.r1 { animation: qb 9s infinite; } .srch.on .rs.r2 { animation: qc 9s infinite; }
  @keyframes qa { 0%, 30% { opacity: 1; } 33%, 97% { opacity: 0; } 100% { opacity: 1; } }
  @keyframes qb { 0%, 30% { opacity: 0; } 33%, 63% { opacity: 1; } 66%, 100% { opacity: 0; } }
  @keyframes qc { 0%, 63% { opacity: 0; } 66%, 97% { opacity: 1; } 100% { opacity: 0; } }
}
@media (max-width: 860px) { .srch { grid-template-columns: 1fr; } }

/* 演員時間軸小卡（縱向，佔兩列放在最右欄）和格線對齊 */
.bc.tall { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 900px) { .bc.tall { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 620px) { .bc.w2, .bc.tall { grid-column: auto; } }

/* 安裝頁：進階區（可摺疊）與遷移提示的距離 */
details.adv { margin: 28px 0 0; border-radius: 10px; background: linear-gradient(137deg, var(--surface), var(--bg-raised)); box-shadow: var(--shadow-card); }
details.adv summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 590; }
details.adv summary::-webkit-details-marker { display: none; }
details.adv summary::after { content: '+'; float: right; color: var(--text-3); font-size: 20px; line-height: 1; }
details.adv[open] summary::after { content: '−'; }
.adv-body { padding: 0 20px 18px; display: grid; gap: 12px; }
.adv-i strong { display: block; font-size: 15px; margin-bottom: 4px; }
.adv-i pre { margin: 0; }
.doc .cta-note { margin-top: var(--block-gap); }

/* 長文頁：不要窄欄加兩側空白 */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc-side { position: sticky; top: 88px; }
.toc-side .toc-h { font: 600 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 0 0 10px; }
.toc-side ol, .toc-drop ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc-side a, .toc-drop a { display: block; padding: 6px 12px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-size: 14px; line-height: 1.4; }
.toc-side a:hover, .toc-drop a:hover { color: var(--text); background: var(--ov-1); }
.toc-side a[aria-current='true'] { color: var(--text); background: var(--accent-soft); }
.toc-drop { display: none; margin: 0 0 20px; border-radius: 10px; background: linear-gradient(137deg, var(--surface), var(--bg-raised)); box-shadow: var(--shadow-card); }
.toc-drop summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 590; }
.toc-drop summary::-webkit-details-marker { display: none; }
.toc-drop ol { padding: 0 8px 10px; }
.legal-body { max-width: none; }
.legal-body > p, .legal-body > ul, .legal-body > ol, .legal-body li { max-width: none; }
.legal-body h2 { scroll-margin-top: 88px; }
.legal-body h2:first-child { margin-top: 0; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 0; } .toc-side { display: none; } .toc-drop { display: block; } }
.legal-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.legal-two .doc > h2:first-child { margin-top: 0; }
@media (max-width: 760px) { .legal-two { grid-template-columns: 1fr; } }
/* 遷移頁：步驟與注意事項用格子 */
.mig h2 { margin: clamp(40px, 6vw, 72px) 0 20px; font-size: 26px; }
.mig h2:first-child { margin-top: 0; }
.cardrow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.cardrow li { padding: 18px 20px; border-radius: 10px; background: linear-gradient(137deg, var(--surface), var(--bg-raised)); box-shadow: var(--shadow-card); color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 0; }
.stepgrid { counter-reset: s; list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stepgrid li { counter-increment: s; position: relative; padding: 20px 22px 20px 64px; border-radius: 10px; background: linear-gradient(137deg, var(--surface), var(--bg-raised)); box-shadow: var(--shadow-card); color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 0; }
.stepgrid li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 14px/30px var(--mono); text-align: center; }
.stepgrid strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
@media (max-width: 760px) { .stepgrid { grid-template-columns: 1fr; } }
.mig-note { margin-top: clamp(40px, 6vw, 72px); }
/* FAQ：兩欄 */
.faqgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; align-items: start; }
.faqgrid details.faq { margin: 0; }
@media (max-width: 860px) { .faqgrid { grid-template-columns: 1fr; } }
/* 更新日誌：左標題、右分組成格 */
.log { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.log-h h2 { margin: 0 0 6px; }
.log-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.log-groups > * { min-width: 0; }
@media (max-width: 860px) { .log { grid-template-columns: 1fr; } .log-groups { grid-template-columns: 1fr; } }
/* 長文頁的小節標題：不用大號行銷標題 */
body.v3 .legal-body h2, body.v3 .mig h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; margin: 44px 0 14px; }
body.v3 .legal-body h2:first-child, body.v3 .legal-body > h2:first-of-type { margin-top: 0; }
body.v3 .mig h2:first-child { margin-top: 0; }

/* 比較頁：格子裡只有短詞、數字與圖示；我們這欄的關鍵數字用大字與品牌色 */
table.cmp td .tx { font-size: 15px; }
table.cmp td .bigv { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; color: var(--accent); }
table.cmp td .mk { width: auto; margin-right: 6px; }
table.cmp tbody th { width: 160px; }
@media (max-width: 760px) { table.cmp td .bigv { font-size: 22px; } }

/* 30× 大卡：左邊大字與說明，右邊垂直置中的按鈕（窄螢幕在大字下方，不撐滿） */
.pc.hero { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(24px, 4vw, 40px); text-align: left; }
.pc.hero .hl { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); min-width: 0; }
.pc.hero .big { font-size: clamp(64px, 10vw, 112px); margin: 0; }
.pc.hero h3 { font-size: clamp(20px, 2.4vw, 28px); margin: 0; font-weight: 590; max-width: 24ch; }
.pc-foot { grid-column: 1 / -1; margin: -4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted, #8a9bb0); text-align: left; }
.pc.hero .cta { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 26px; border-radius: 999px; color: var(--accent); font-weight: 590; font-size: 16px; text-decoration: none; background: var(--accent-soft); box-shadow: inset 0 1px 0 var(--edge-glint, rgba(220, 245, 255, 0.4)), 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); flex: none; }
.pc.hero .cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pc.hero .cta:hover { box-shadow: var(--shadow-facet-hover); }
.pc.hero .cta:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .pc.hero .cta { transition: box-shadow 0.25s ease, transform 0.25s var(--out); }
  .pc.hero .cta svg { transition: transform 0.25s var(--out); }
  .pc.hero .cta:hover { transform: translateY(-1px); }
  .pc.hero .cta:hover svg { transform: translateX(4px); }
}
@media (max-width: 620px) { .pc.hero { flex-direction: column; align-items: flex-start; } .pc.hero .hl { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* 演員時間軸小卡：每年 1～3 張海報，軸從上到下撐滿整張縱向卡 */
.bc.tall .demo { align-items: stretch; place-items: stretch; padding: 24px 24px 8px; }
.m-tl { list-style: none; margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; border-left: 2px solid var(--line-2); width: 100%; max-width: 300px; margin-inline: auto; }
.m-tl li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; }
.m-tl li::before { content: ''; position: absolute; left: -26px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--accent); }
.m-tl b { font: 600 13px var(--mono); color: var(--accent); }
.m-tl .pr { display: flex; gap: 6px; }
.m-tl img { width: 44px; height: 66px; border-radius: 4px; box-shadow: 0 0 0 1px var(--line-2); }
@media (max-width: 900px) { .bc.tall .demo { align-items: center; } .m-tl { justify-content: flex-start; } }

/* 安裝尚未開放：「即將發布」的停用按鈕與導覽項（tools/soon.py） */
.btn.soon { opacity: 0.55; cursor: default; pointer-events: none; box-shadow: none; }
body.v3 .nav .soon-tag, .mmenu .soon-tag { color: var(--fg-3, var(--fg-2)); font-size: 14px; font-weight: 500; padding: 6px 13px; white-space: nowrap; cursor: default; }
.foot .soon-tag, footer .soon-tag { display: block; color: var(--fg-3, var(--fg-2)); cursor: default; }

/* 價格頁：每個方案列出各計費週期的價格，公測說明在方案上方 */
.beta-line { margin: 0 0 18px; color: var(--fg-2, var(--text-2)); font-size: 15px; text-align: center; }
.plan .price { font-size: 15px; font-weight: 500; }
.plan .price .pr { display: block; margin: 2px 0; }
.plan .price .pr b { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.plan .price .pr small { display: inline; font-size: 13px; color: var(--fg-2, var(--text-2)); }
.plan .price .pr.eb .u { color: var(--fg-2, var(--text-2)); font-weight: 500; }
.plan .price .pr.eb b { color: var(--accent, var(--fg)); }
.beta-line { margin: 18px 0 8px; }

/* 價格頁的方案對照表：四欄（項目、FREE、PRO、MAX），勾與「—」 */
/* 方案頁區塊之間的間距：升級列、體驗卡、比較表共用 */
body.v3 { --block-gap: 40px; }
.plans-cmp { margin-top: 28px; }
.plan-trial { max-width: 720px; margin: var(--block-gap) auto; }
.plans-cmp th[scope='row'] { width: 46%; font-weight: 500; }
.plans-cmp td { text-align: center; }
.plans-cmp td .tx { margin-left: 4px; }

/* 方案識別（變更單 0144）：色取自 web/src/shared/plan/plan.css 的 --kn-plan-* token，官網用靜態版 */
:root {
  --kn-plan-pro-a: #a9b4ff; --kn-plan-pro-b: #7a86f0; --kn-plan-pro-ink: #0f1330; --kn-plan-pro-edge: rgba(190, 200, 255, 0.55); --kn-plan-pro-glow: rgba(122, 134, 240, 0.4);
  --kn-plan-max-a: #ffe7a6; --kn-plan-max-b: #d9a441; --kn-plan-max-ink: #2a1c02; --kn-plan-max-edge: rgba(255, 226, 150, 0.6); --kn-plan-max-glow: rgba(224, 170, 70, 0.42);
}
:root[data-theme='light'] {
    --kn-plan-pro-a: #8d99ff; --kn-plan-pro-b: #5563d6; --kn-plan-pro-ink: #ffffff; --kn-plan-pro-edge: rgba(70, 85, 200, 0.5); --kn-plan-pro-glow: rgba(85, 99, 214, 0.28);
    --kn-plan-max-a: #f4c65c; --kn-plan-max-b: #b27a12; --kn-plan-max-ink: #ffffff; --kn-plan-max-edge: rgba(170, 115, 15, 0.55); --kn-plan-max-glow: rgba(178, 122, 18, 0.26);
  }
.kn-plan { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; font: 700 12px/1 inherit; letter-spacing: 0.08em; color: var(--kn-plan-pro-ink); background: linear-gradient(135deg, var(--kn-plan-pro-a), var(--kn-plan-pro-b)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 0 1px var(--kn-plan-pro-edge), 0 2px 8px -2px var(--kn-plan-pro-glow); }
.kn-plan[data-plan='max'] { color: var(--kn-plan-max-ink); background: linear-gradient(135deg, var(--kn-plan-max-a), var(--kn-plan-max-b)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 0 1px var(--kn-plan-max-edge), 0 2px 8px -2px var(--kn-plan-max-glow); }
.plan-free { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--fg-2, var(--text-2)); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.plan-flag { font-size: 12px; font-weight: 600; color: var(--fg-2, var(--text-2)); }
.plan[data-plan='pro'] { box-shadow: 0 0 0 1px var(--kn-plan-pro-edge), 0 8px 28px -12px var(--kn-plan-pro-glow); }
.plan[data-plan='max'] { box-shadow: 0 0 0 1px var(--kn-plan-max-edge), 0 8px 28px -12px var(--kn-plan-max-glow); }
.plan h2 { font-size: 22px; margin: 10px 0 4px; }
.plan-note { margin: 6px 0 0; font-size: 13px; color: var(--fg-2, var(--text-2)); }
.trial-cta { margin: 6px 0 24px; }
.matrix { margin-top: 24px; display: grid; gap: 14px; }
.mgrp > summary { cursor: pointer; font-weight: 700; font-size: 16px; padding: 10px 2px; list-style: none; }
.mgrp > summary::-webkit-details-marker { display: none; }
.mgrp > summary::after { content: '–'; float: right; color: var(--fg-2, var(--text-2)); }
.mgrp:not([open]) > summary::after { content: '+'; }
.plans-cmp .tx { margin-left: 0; }
.plan li.lead-li { color: var(--fg, var(--text)); padding-left: 0; }
.plan li.lead-li::before { content: none; }

/* 價格卡（行銷版重排）：三欄等寬等高、每行不換行；平板與手機一欄 */
.wrap.wide { max-width: 1200px; }
.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 1099px) { .plans { grid-template-columns: minmax(0, 520px); justify-content: center; } }
.plan { padding: 18px 20px; }
.plan h2 { font-size: 22px; margin: 8px 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan .price { display: flex; flex-direction: column; gap: 2px; min-height: 0; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ov-2, rgba(255, 255, 255, 0.1)); }
.plan .p-main { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.plan .p-main b { font-size: 34px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.plan .p-unit { font-size: 13px; font-weight: 500; color: var(--fg-2, var(--text-2)); }
.plan .p-then { min-height: 18px; font-size: 13px; color: var(--fg-2, var(--text-2)); }
.plan .p-then.p-pay { min-height: 0; font-size: 12px; color: var(--fg-3, var(--text-3)); }
.plan .p-alt { font-size: 13px; color: var(--fg-2, var(--text-2)); white-space: nowrap; }
.plan .chip { display: inline-block; max-width: 100%; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--kn-plan-max-text, var(--kn-plan-max-b)); background: color-mix(in srgb, var(--kn-plan-max-a) 18%, transparent); box-shadow: 0 0 0 1px var(--kn-plan-max-edge); }
.plan ul { margin: 0; gap: 8px; align-content: start; }
.plan li { display: flex; align-items: center; gap: 9px; padding-left: 0; font-size: 14px; line-height: 1.35; white-space: nowrap; color: var(--fg, var(--text)); }
.plan li::before { content: none; }
.plan li svg { flex: none; width: 15px; height: 15px; color: var(--kn-plan-pro-b); }
.plan[data-plan='max'] li svg { color: var(--kn-plan-max-b); }
.plan[data-plan='free'] li svg { color: var(--fg-2, var(--text-2)); }
.plan li.lead-li { display: block; padding-top: 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: none; color: var(--fg-2, var(--text-2)); }
.plan[data-plan='max'] { background: linear-gradient(180deg, color-mix(in srgb, var(--kn-plan-max-a) 10%, var(--surface, transparent)), var(--surface, transparent)); box-shadow: 0 0 0 1.5px var(--kn-plan-max-edge), 0 18px 48px -16px var(--kn-plan-max-glow); }
/* MAX 卡不位移不放大：強調用邊框與標籤，三張卡的頂部對齊 */
.soon-chip { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 0.78em; font-weight: 600; line-height: 1.5; white-space: nowrap; vertical-align: 0.08em; color: var(--fg-2, var(--text-2)); background: var(--ov-1, rgba(255, 255, 255, 0.06)); box-shadow: 0 0 0 1px var(--ov-2, rgba(255, 255, 255, 0.12)); }
body.v3 .plans .plan h2 { font-size: 17px; line-height: 1.25; letter-spacing: 0; }
@media (min-width: 1100px) { .plan .price { min-height: 118px; } }

/* 主題切換：預設深色；月亮＝目前是深色（aria-pressed），太陽＝目前是淺色 */
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: 6px; padding: 0; border: 1px solid var(--line-2, var(--edge-strong)); border-radius: 999px; background: transparent; color: var(--fg-2, var(--text-2)); cursor: pointer; flex: none; }
.theme-btn:hover { color: var(--fg, var(--text)); background: var(--ov-1, var(--accent-soft)); }
.theme-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.theme-btn .i-sun { display: none; }
:root[data-theme='light'] .theme-btn .i-moon { display: none; }
:root[data-theme='light'] .theme-btn .i-sun { display: inline; }
.top .mmenu { margin-left: 0; }
@media (max-width: 720px) { .theme-btn { margin-left: auto; } .top .mmenu { margin-left: 8px; } }
:root[data-theme='light'] { color-scheme: light; }
.pcs .scale-note { grid-column: 1 / -1; margin: 6px 0 0; text-align: center; }

/* 價格卡第一行：這個方案的上限（成員、裝置、同時播放）；可用伺服器在價格下方 */
.plan .p-limits { margin: 8px 0 0; font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--fg, var(--text)); }
.plan[data-plan='pro'] .p-limits { color: var(--kn-plan-pro-text, var(--kn-plan-pro-b)); }
.plan[data-plan='max'] .p-limits { color: var(--kn-plan-max-text, var(--kn-plan-max-b)); }
.plan h2 { margin-top: 4px; }
.plan .p-servers { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--fg-2, var(--text-2)); }
@media (max-width: 1099px) { .plan .p-limits { font-size: 16px; } }

.pl .pl-lim { margin: 6px 0 8px; font-weight: 700; color: var(--fg, var(--text)); }

/* 領取公測授權 */
.claim { max-width: 520px; margin: 0 auto 64px; display: flex; flex-direction: column; gap: 16px; }
.claim-points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }
.claim form { display: flex; flex-direction: column; gap: 14px; }
.claim[hidden], .claim form[hidden], .claim [hidden] { display: none; }
.claim label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.claim input[type='email'], .claim input[type='text'], .claim input[type='url'], .claim select, .claim textarea { min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--edge-strong); background: var(--surface, transparent); color: var(--text); font: inherit; font-weight: 400; }
.claim textarea { padding: 12px 14px; min-height: 140px; resize: vertical; line-height: 1.5; }
.claim select { appearance: auto; }
.claim input[aria-invalid='true'], .claim select[aria-invalid='true'], .claim textarea[aria-invalid='true'] { border-color: #e5484d; }
.claim .hint { font-weight: 400; font-size: 14px; color: var(--text-2); }
.claim.apply { max-width: 640px; margin-left: 0; }
.claim fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.claim legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.claim .chan { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.claim .chan input { flex: 1; min-width: 0; }
.claim .chan .linkbtn { flex: none; align-self: center; }
.claim input:focus-visible, .claim select:focus-visible, .claim textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.partner-status { max-width: 760px; margin: 0 0 8px; }
.rules { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.rules li { padding: 14px 18px; border-radius: 10px; background: linear-gradient(137deg, var(--surface), var(--bg-raised)); box-shadow: var(--shadow-card); color: var(--text-2); font-size: 16px; line-height: 1.55; }
.claim .chk { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--text-2); }
.claim .err { margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 15px; color: var(--text); background: color-mix(in srgb, #e5484d 16%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, #e5484d 55%, transparent); }
.claim .btn[disabled] { opacity: 0.6; cursor: progress; }
.claim .ok:focus { outline: none; }
.claim .linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; align-self: flex-start; }

/* 文件區（/docs/）：左側目錄與搜尋、正文、章節卡 */
.docs-search { position: relative; margin: 0 0 16px; }
.ds-in { width: 100%; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--edge-strong); background: transparent; color: var(--text); font: inherit; font-size: 14px; }
.ds-in:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds-out { list-style: none; margin: 6px 0 0; padding: 4px; border-radius: 10px; background: var(--bg-raised, var(--surface)); box-shadow: var(--shadow-card), 0 0 0 1px var(--edge-strong); display: grid; gap: 2px; position: relative; z-index: 5; }
.ds-out[hidden] { display: none; }
.ds-out a { display: grid; gap: 2px; padding: 8px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; }
.ds-out a:hover, .ds-out a:focus-visible { background: var(--ov-1); outline: none; }
.ds-out span { font-size: 12px; color: var(--text-3); }
.ds-out em { font-style: normal; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-out .none { padding: 10px; font-size: 14px; color: var(--text-3); }
.dn, .dn ol { list-style: none; margin: 0; padding: 0; }
.dn { display: grid; gap: 22px; }
.dn-h { margin: 0 0 6px; padding: 0 4px; font: 700 12px/1.3 var(--font); color: var(--text-3); cursor: default; user-select: none; }
html[lang='en'] .dn-h { letter-spacing: 0.08em; text-transform: uppercase; }
.dn ol { display: grid; gap: 2px; }
.dn a { display: block; padding: 6px 12px 6px 16px; margin-left: 0; border-radius: 6px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; font-size: 14px; line-height: 1.4; }
.dn a:hover { color: var(--text); background: var(--ov-1); }
.dn a[aria-current='page'] { color: var(--text); background: var(--accent-soft); border-left-color: var(--accent); font-weight: 590; }
.kn-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; box-shadow: 0 0 0 1px var(--edge-strong); }
.plan-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; color: var(--text-2); }


/* 文件區的方案小標籤：透明底、1px 方案色描邊與約 12% 淡底，沒有漸層與光暈 */
.dbadge { --dbc: var(--text-2); display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font: 600 10.5px/1 var(--font); letter-spacing: 0.04em; white-space: nowrap; vertical-align: 0.12em; color: var(--dbc); background: color-mix(in srgb, var(--dbc) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dbc) 55%, transparent); }
.dbadge[data-plan='pro'] { --dbc: var(--kn-plan-pro-a); }
.dbadge[data-plan='max'] { --dbc: var(--kn-plan-max-a); }
:root[data-theme='light'] .dbadge[data-plan='pro'] { --dbc: var(--kn-plan-pro-b); }
:root[data-theme='light'] .dbadge[data-plan='max'] { --dbc: var(--kn-plan-max-b); }
:root[data-theme='light'] .dbadge[data-plan='free'] { --dbc: var(--text-3); }
.docs-body h2 .dbadge, .docs-body h3 .dbadge, .docs-body h4 .dbadge { margin-left: 6px; }
.docs-body .dbadge + .dbadge { margin-left: 4px; }

/* 文件區版面：目錄／正文兩欄，系統字體，正文 860px（中文 820px）；「本頁目錄」在所有桌面寬度都是正文右上角的浮出按鈕，手機（< 900px）用頂部可展開的目錄 */
html[lang="zh-Hans"] body.v3 .wrap.docs { --docs-w: 820px; }
body.v3 .wrap.docs { --docs-w: 860px; max-width: 1240px; padding-inline: 32px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 96px; padding-bottom: 96px; }
.docs-side { position: sticky; top: 96px; max-height: calc(100vh - 96px); overflow: auto; padding-right: 6px; }
.docs-side .docs-search { position: sticky; top: 0; z-index: 2; background: var(--bg-base); padding-bottom: 8px; margin: 0 0 8px; }
.docs-drop { display: none; border-radius: 10px; background: linear-gradient(137deg, var(--surface), var(--bg-raised)); box-shadow: var(--shadow-card); }
.docs-drop summary { cursor: pointer; list-style: none; padding: 12px 16px; display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.docs-drop summary span { color: var(--text-3); }
.docs-drop summary b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-drop > .docs-search, .docs-drop > .dn { margin: 0 14px 14px; }
.docs-body { min-width: 0; font-family: var(--font); }
.docs-body > * { max-width: var(--docs-w); }
body.v3 .docs-body > p, body.v3 .docs-body > ul, body.v3 .docs-body > ol, body.v3 .docs-body > h2, body.v3 .docs-body > h3, body.v3 .docs-body li { max-width: var(--docs-w); }
.docs-body > .tablewrap, .docs-body > pre, .docs-body > .dh-grid, .docs-body > .docs-search, .docs-body > .dh-head { max-width: none; }
.docs-body > .pager { max-width: var(--docs-w); }
.crumbs { margin: 0 0 8px; font-size: 13px; color: var(--text-3); }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
body.v3 .docs-body h1 { font: 700 36px/1.2 var(--font); letter-spacing: -0.02em; margin: 0 0 12px; }
.docs-body .lead { font-size: 18px; line-height: 1.6; color: var(--text-2); margin: 0 0 32px; }
.docs-body p, .docs-body li { font-size: 16px; line-height: 1.7; }
html[lang='zh-Hans'] .docs-body p, html[lang='zh-Hans'] .docs-body li { line-height: 1.75; }
.docs-body p { margin: 0 0 16px; }
body.v3 .docs-body h2 { font: 650 24px/1.3 var(--font); letter-spacing: -0.01em; margin: 48px 0 12px; scroll-margin-top: 96px; }
body.v3 .docs-body h3 { font: 650 18px/1.4 var(--font); margin: 32px 0 8px; scroll-margin-top: 96px; }
body.v3 .docs-body h4 { font: 650 15px/1.4 var(--font); margin: 24px 0 8px; color: var(--text-2); }
/* 標題用品牌字體，與其他頁一致（英文版；中文不用）：字重 600、字距 0 */
html[lang='en'] body.v3 .docs-body h1, html[lang='en'] body.v3 .docs-body h2 { font-family: 'Kryspal Display', 'Kryspal Punct', var(--font); font-weight: 600; letter-spacing: 0; }
html[lang='zh-Hans'] .docs-body h2, html[lang='zh-Hans'] .docs-body h3, html[lang='zh-Hans'] .docs-body h4, html[lang='zh-Hans'] body.v3 .docs-body h1 { font-weight: 700; }
.docs-body ul, .docs-body ol { padding-left: 24px; margin: 0 0 16px; }
.docs-body li { margin-bottom: 8px; }
.docs-body li > ul, .docs-body li > ol { margin: 8px 0 0; }
.docs-body .anchor { margin-left: 8px; color: var(--text-3); text-decoration: none; font-weight: 400; opacity: 0; transition: opacity 0.15s; }
.docs-body h2:hover .anchor, .docs-body h3:hover .anchor, .docs-body .anchor:focus-visible { opacity: 1; }
.docs-body .tablewrap { overflow-x: auto; margin: 16px 0 24px; }
.docs-body table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.docs-body th, .docs-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--edge); vertical-align: top; }
.docs-body th { color: var(--text-2); font-weight: 600; border-bottom-color: var(--edge-strong); }
.docs-body td:first-child code, .docs-body th:first-child code { white-space: nowrap; }
.docs-body code { font-family: var(--mono); font-size: 0.9em; padding: 2px 6px; border-radius: 4px; background: var(--ov-2); }
.docs-body pre { overflow: auto; padding: 16px; margin: 16px 0 24px; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-card); font-size: 13px; line-height: 1.6; }
.docs-body pre code { padding: 0; background: none; font-size: inherit; }
/* code blocks never wrap: one line stays one line, long lines scroll sideways (owner rule) */
pre, .docs-body pre, .adv-i pre { white-space: pre; overflow-wrap: normal; word-break: normal; }
.docs-body blockquote, .docs-body .note { margin: 16px 0 24px; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.docs-body blockquote p:last-child { margin-bottom: 0; }
.docs-body img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow-card); }
.docs-body figcaption { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.docs-body .kn-plan, .docs-body .kn-badge { vertical-align: middle; }
.docs-toc-m ol { list-style: none; margin: 0; padding: 0; }
.docs-toc-m { display: none; margin: 0 0 24px; border-radius: 10px; background: linear-gradient(137deg, var(--surface), var(--bg-raised)); box-shadow: var(--shadow-card); font-size: 14px; }
.docs-toc-m summary { cursor: pointer; padding: 10px 16px; font-weight: 590; }
.docs-toc-m ol { padding: 0 16px 12px; }
.docs-toc-m a { display: block; padding: 5px 0; color: var(--text-2); text-decoration: none; }
.docs-toc-m li.l3 a { padding-left: 14px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--edge); }
.pager .pg { display: grid; gap: 4px; padding: 16px 20px; border-radius: 10px; background: linear-gradient(137deg, var(--surface), var(--bg-raised)); box-shadow: var(--shadow-card); color: var(--text); text-decoration: none; }
.pager .pg:hover { box-shadow: var(--shadow-card), 0 0 0 1px var(--edge-strong); }
.pager .pg span { font-size: 12px; color: var(--text-3); }
.pager .pg b { font-size: 15px; font-weight: 600; }
.pager .next { text-align: right; grid-column: 2; }
html[lang='zh-Hans'] { --font: system-ui, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', 'Segoe UI', Roboto, sans-serif; }
html[lang='zh-Hans'] body { text-spacing-trim: trim-start; text-autospace: normal; }
/* 本頁目錄的浮出按鈕：貼在正文右上角，捲動時固定；高度 0，不佔版面 */
.toc-pop { position: sticky; top: 84px; z-index: 5; height: 0; max-width: none !important; text-align: right; }
.toc-pop-btn { position: absolute; right: 0; top: 0; cursor: pointer; font: 600 13px/1 var(--font); color: var(--text-2); background: var(--surface); border: 1px solid var(--edge); border-radius: 999px; padding: 9px 14px; box-shadow: var(--shadow-card); }
.toc-pop-btn:hover, .toc-pop-btn[aria-expanded='true'] { color: var(--text); border-color: var(--edge-strong); }
.toc-pop-panel { position: absolute; right: 0; top: 42px; width: min(320px, 90vw); max-height: min(70vh, 560px); overflow: auto; text-align: left; padding: 12px 14px; border-radius: 12px; background: var(--bg-raised); border: 1px solid var(--edge-strong); box-shadow: var(--shadow-card); font-size: 14px; }
.toc-pop-panel[hidden] { display: none; }
.toc-pop-panel ol { list-style: none; margin: 0; padding: 0; }
.toc-pop-panel a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--edge); color: var(--text-2); text-decoration: none; line-height: 1.4; }
.toc-pop-panel li.l3 a { padding-left: 24px; }
.toc-pop-panel a:hover { color: var(--text); }
.toc-pop-panel a.on { color: var(--text); border-left-color: var(--accent); }
@media (max-width: 899px) {
  .toc-pop { display: none; }
  .docs-toc-m { display: block; }
  body.v3 .wrap.docs { grid-template-columns: minmax(0, 1fr); gap: 0; padding-inline: 16px; padding-top: 80px; }
  .docs-side { display: none; }
  .docs-drop { display: block; margin: 0 0 24px; }
  body.v3 .docs-body h1 { font-size: 28px; }
  .docs-body table { font-size: 14px; }
  .docs-body table.wide { min-width: 560px; }
  .docs-body pre { margin-inline: -16px; border-radius: 0; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: auto; }
}
/* API 參考：每個端點一個區塊、方法徽章、窄螢幕參數表上下堆疊 */
.docs-body .op { margin: 0; padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--edge); max-width: none; }
.docs-body .op > * { max-width: var(--docs-w); }
.docs-body .op > .tablewrap { max-width: none; }
.docs-body .op h3 { margin-top: 0; font-size: 17px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.docs-body .op h3 code { background: none; padding: 0; font-size: 0.95em; }
.mbadge { display: inline-block; min-width: 56px; text-align: center; padding: 2px 8px; border-radius: 4px; font: 600 12px/1.5 var(--mono); color: var(--mb); background: color-mix(in srgb, var(--mb) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mb) 45%, transparent); }
.m-get { --mb: #34c27a; }
.m-post { --mb: #4a9eff; }
.m-put, .m-patch { --mb: #e0a030; }
.m-delete { --mb: #f0605d; }
:root[data-theme='light'] .m-get { --mb: #137a4a; }
:root[data-theme='light'] .m-post { --mb: #1f62b8; }
:root[data-theme='light'] .m-put, :root[data-theme='light'] .m-patch { --mb: #8a5a00; }
:root[data-theme='light'] .m-delete { --mb: #b3261e; }
@media (max-width: 899px) {
  .docs-body .tablewrap.stack table { min-width: 0; }
  .docs-body .tablewrap.stack thead { display: none; }
  .docs-body .tablewrap.stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--edge); }
  .docs-body .tablewrap.stack td { display: block; padding: 2px 0; border: 0; white-space: normal; }
  .docs-body .tablewrap.stack td:empty { display: none; }
  .docs-body .tablewrap.stack td[data-label]::before { content: attr(data-label) ': '; color: var(--text-3); font-size: 12px; }
}
.docs-body details.schema { border-bottom: 1px solid var(--edge); max-width: none; scroll-margin-top: 96px; }
.docs-body details.schema > summary { cursor: pointer; padding: 10px 0; list-style: revert; }
.docs-body details.schema > summary code { background: none; padding: 0; }
.docs-body details.schema[open] { padding-bottom: 16px; }
.docs-body details.schema > * { max-width: var(--docs-w); }
.docs-body details.schema > summary, .docs-body details.schema > .tablewrap { max-width: none; }
/* API 參考的欄位／參數清單 */
.docs-body ul.fields { list-style: none; padding: 0; margin: 8px 0 24px; border-top: 1px solid var(--edge); max-width: none; }
.docs-body ul.fields > li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--edge); }
.docs-body .fields .fh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.docs-body .fields .ft, .docs-body .fields .fi { font-size: 13px; color: var(--text-3); }
.docs-body .fields .fr { font-size: 12px; font-weight: 600; color: var(--warn, #e0a030); }
.docs-body .fields .fd { margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: var(--docs-w); }
.docs-body .fields .fd p { margin: 0 0 6px; font-size: inherit; line-height: inherit; }
.docs-body .fields .fd p:last-child { margin-bottom: 0; }

.docs-body h2 + .op { border-top: 0; margin-top: 0; padding-top: 0; }
.dbadge[data-plan='free'] { background: var(--ov-2); box-shadow: none; color: var(--text-2); }
/* 文件首頁：置中、快速開始、章節卡多欄瀑布 */
body.v3 .wrap.docs.docs-home { display: block; max-width: 1120px; }
.dh-head { text-align: center; margin: 0 0 32px; }
body.v3 .docs-home .dh-head h1 { margin-bottom: 8px; }
.docs-home .dh-head .lead { margin: 0 auto 24px; max-width: 640px; }
.docs-home .docs-search { max-width: 640px; margin: 0 auto; }
.docs-home .ds-in { min-height: 48px; font-size: 16px; padding: 0 16px; }
.docs-home .ds-out { text-align: left; }
.qs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 40px; max-width: none; }
.qs-card { display: grid; gap: 4px; align-content: start; padding: 20px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-facet, var(--shadow-card)); color: var(--text); text-decoration: none; }
.qs-card:hover { box-shadow: var(--shadow-facet, var(--shadow-card)), 0 0 0 1px var(--edge-strong); }
.qs-card .di { color: var(--accent); margin-bottom: 8px; }
.qs-card b { font-size: 16px; font-weight: 600; }
.qs-card span { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.dh-grid { display: block; columns: 3 300px; column-gap: 20px; max-width: none; }
.dh-card { break-inside: avoid; margin: 0 0 20px; padding: 20px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-facet, var(--shadow-card)); }
body.v3 .docs-home .dh-card h2 { display: flex; align-items: center; gap: 8px; font: 650 17px/1.3 var(--font); margin: 0 0 4px; }
.dh-card h2 .di { color: var(--accent); flex: none; }
.dh-card .dh-d { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.dh-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dh-card li { margin: 0; }
.dh-card li a { display: block; padding: 6px 8px; margin: 0 -8px; border-radius: 6px; font-size: 15px; line-height: 1.4; color: var(--text); text-decoration: none; }
.dh-card li a:hover { background: var(--ov-1); color: var(--accent); }
@media (max-width: 899px) {
  .qs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
  .qs-card { padding: 14px; }
  .qs-card span { font-size: 13px; }
  .dh-card { padding: 16px; }
}

html .wrap.docs.docs-home .docs-body > * { max-width: none; }
.plans .p-up { grid-column: 3; margin: 0; text-align: center; font-size: 14px; }
.plans .p-up a { color: var(--accent); }
@media (max-width: 1099px) { .plans .p-up { grid-column: auto; } }

/* 比較頁 v2：上面四張強項卡，我們這欄整欄高亮 */
.cmp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 clamp(28px, 4vw, 48px); }
.cmpc { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 24px 22px; }
.cmpc .big { margin: 0; font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.cmpc .chip { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 12px/1.5 var(--mono); letter-spacing: 0.04em; }
.cmpc h3 { margin: 8px 0 0; }
.cmpc p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.cmpc .vs { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--separator); color: var(--text-3); }
.cmpc .facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.cmpc .facts b { color: var(--text); font-weight: 600; }
@media (max-width: 1100px) { .cmp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cmp-cards { grid-template-columns: 1fr; } }
table.cmp thead th:nth-child(2) { background: var(--accent-soft); color: var(--accent); font-weight: 700; box-shadow: inset 0 3px 0 var(--accent); }
table.cmp tbody tr:not(.grp) td:nth-child(2) { box-shadow: inset 1px 0 0 var(--accent-soft), inset -1px 0 0 var(--accent-soft); }
table.cmp td:nth-child(2) .sub { color: var(--text-2); }
.cmp-price { margin: -12px 0 clamp(28px, 4vw, 48px); text-align: center; color: var(--text-2); font-size: 15px; }
.cmp-price a { color: var(--accent); }
/* 價格頁：功能名稱連到文件裡的功能詳解（不改變原本的字色，只在懸停時有底線） */
a.flink { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--text-3); cursor: pointer; }
a.flink:hover, a.flink:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }
.dh-card li.dh-soon { padding: 6px 0; font-size: 15px; line-height: 1.4; color: var(--text-2); }
body.v3 .docs-body p.dh-cross { margin: var(--block-gap) 0 0; }
.dh-cross a { color: var(--accent); }

/* 價格頁的付款週期（PRO 卡三種價格都在 HTML 裡，依 .bill-scope 的 data-billing 顯示一種；沒有 JS 時預設按月，其他價格在小字連結裡） */
.bill-toggle { display: flex; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 20px; padding: 4px; border-radius: 999px; background: var(--ov-1, rgba(255, 255, 255, 0.06)); box-shadow: 0 0 0 1px var(--ov-2, rgba(255, 255, 255, 0.12)); }
.bill-toggle[hidden] { display: none; }
.bill-toggle button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--fg-2, var(--text-2)); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.bill-toggle button:hover { color: var(--fg, var(--text)); }
.bill-toggle button[aria-checked='true'] { background: var(--accent-solid); color: var(--accent-on); }
.bill-toggle button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bill-save { font-size: 12px; font-weight: 600; opacity: 0.85; }
@media (max-width: 420px) { .bill-toggle button { padding: 0 11px; font-size: 14px; } .bill-save { display: none; } }
.pv { display: flex; flex-direction: column; gap: 4px; }
/* 三種週期的價格塊疊在同一個 grid 區域，只切換可見度：價格區的高度是三者中最高的，切換週期時卡片高度零變化；
   隱藏的那兩塊用 visibility:hidden，不佔鍵盤焦點也不被讀出 */
.plan .price:has(> .pv) { display: grid; }
.bill-scope .pv { grid-area: 1 / 1; visibility: hidden; }
.bill-scope[data-billing='monthly'] .pv[data-b='monthly'], .bill-scope[data-billing='yearly'] .pv[data-b='yearly'], .bill-scope[data-billing='lifetime'] .pv[data-b='lifetime'] { visibility: visible; }
.plan .p-alt a { color: var(--accent, inherit); text-decoration: underline; text-underline-offset: 2px; }
.plan .p-alt { white-space: normal; }
.plan .p-buy { margin-top: 8px; }
.plan .p-buy .btn { display: flex; width: 100%; justify-content: center; align-items: center; min-height: 42px; font-size: 15px; font-weight: 600; text-decoration: none; }
.life-only-code:empty, .only-life { display: none; }
.bill-scope:not([data-billing='lifetime']) .only-life { display: inline; font-weight: 600; }
.bill-scope:not([data-billing='lifetime']) .life-only-code { display: none; }
.bill-scope:not([data-billing='lifetime']) .promo { opacity: 0.6; }

/* 價格頁三張卡對齊（三欄時，≥1100px）：用 subgrid 讓三張卡的每一段（限額、標題、價格、伺服器數、清單）共用同一組列高，
   不用預留固定高度，所以卡片只有內容需要的高度；按鈕靠價格區塊底部，FREE 沒有按鈕就是留白。
   不支援 subgrid 的舊瀏覽器退回固定的最小高度。清單的項目太長時換行，不撐出卡片。 */
@media (min-width: 1100px) {
  .plan .price > .pv { flex: 1; }
  .plan .price .pv .p-buy, .plan .price > .p-buy { margin-top: auto; }
  @supports (grid-template-rows: subgrid) {
    .plans { row-gap: 0; }
    .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
    .plans .p-up { margin-top: 16px; }
    body.v3 .plans .plan h2 { white-space: normal; overflow: visible; text-overflow: clip; }
  }
  @supports not (grid-template-rows: subgrid) {
    .plan .p-limits { min-height: 2.6em; }
    body.v3 .plans .plan h2 { white-space: normal; overflow: visible; text-overflow: clip; min-height: 2.5em; }
    .plan .price { min-height: 138px; }
    .bill-scope[data-billing='yearly'] .plan .price { min-height: 164px; }
  }
}
.plan li { white-space: normal; align-items: flex-start; }
.plan li svg { margin-top: 2px; }


/* ---------- 動效（2026-10-16）：卡片懸停微抬、首屏畫面輕微浮動；都尊重 prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  body.v3 .bc, body.v3 .pl, body.v3 .pc, body.v3 .plan, body.v3 .qs-card { transition: opacity 1s var(--slow), transform 1s var(--slow), box-shadow 0.15s ease, translate 0.15s ease; }
  .frame .zoom { animation: hfloat 7s ease-in-out infinite alternate; }
  @keyframes hfloat { from { transform: translateY(0); } to { transform: translateY(-6px); } }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  body.v3 .bc:hover, body.v3 .pl:hover, body.v3 .pc:hover, body.v3 .plan:hover, body.v3 .qs-card:hover { translate: 0 -2px; box-shadow: var(--shadow-facet-hover); }
}
/* 導覽與頁尾的「安裝」：未開放時照常顯示名稱，旁邊一個小小的 soon 標籤，不可點 */
.nav-soon { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-3, var(--fg-2)); cursor: default; white-space: nowrap; }
.nav-soon i { font-style: normal; font-size: 0.72em; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); }
body.v3 .nav .nav-soon, .mmenu .nav-soon { font-size: 14px; font-weight: 500; padding: 6px 13px; }
.foot .nav-soon, footer .nav-soon { display: flex; }

/* ---------- 首頁的演員頁：桌面截圖＋疊一張手機截圖 ---------- */
.shotpair { position: relative; width: 100%; display: block; }
.shotpair > .zoom { display: block; width: 100%; }
.bc.tall .demo { place-items: stretch; }
.shotpair .sp-ph { position: absolute; right: -2%; bottom: -5%; width: 19%; min-width: 64px; z-index: 2; }
.shotpair .sp-ph .zoom { display: block; }
.bc.tall .demo { flex-direction: column; justify-content: flex-start; }
.act-demo { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.act-demo .shotpair { margin-bottom: 4%; }
.act-tl { display: grid; place-items: center; }
.pv-label { display: none; }

/* ---------- 功能預覽窗（原生 <dialog>） ---------- */
a[data-fp] { cursor: pointer; }
a[data-fp]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
dialog.fp { padding: 0; border: 0; border-radius: 14px; width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; color: var(--fg, var(--text)); background: var(--bg-raised, var(--surface)); box-shadow: var(--shadow-facet-hover, 0 24px 80px rgba(0, 0, 0, 0.55)); }
dialog.fp::backdrop { background: rgba(2, 6, 12, 0.66); }
.fp-bar { position: absolute; top: 10px; right: 10px; margin: 0; z-index: 2; }
.fp-x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; color: var(--fg, var(--text)); background: color-mix(in srgb, var(--bg-base, #000) 70%, transparent); }
.fp-x:hover { background: var(--ov-2, rgba(255, 255, 255, 0.12)); }
.fp-body { display: grid; gap: 14px; padding: 0 0 22px; }
.fp-img[hidden] { display: none; }
dialog.fp.noimg { width: min(520px, calc(100vw - 32px)); }
dialog.fp.noimg .fp-body { padding-top: 56px; }
.fp-img { display: block; width: 100%; height: auto; background: var(--surface-strong, var(--surface)); }
.fp-text { margin: 0; padding: 0 24px; font-size: 17px; line-height: 1.5; color: var(--fg, var(--text)); max-width: 62ch; }
@media (max-width: 640px) {
  dialog.fp, dialog.fp.noimg { width: 100vw; max-width: 100vw; max-height: 100vh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .fp-text { padding: 0 16px; font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.fp[open] { animation: fpin 0.18s ease-out; }
  dialog.fp[open]::backdrop { animation: fpfade 0.18s ease-out; }
  @keyframes fpin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes fpfade { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- 第三方組件授權頁：每組一張緊湊表格；手機上每列變成一張小卡 ---------- */
.lic-wrap { margin: 14px 0 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); background: var(--surface); overflow-x: auto; }
table.lic { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
table.lic th, table.lic td { padding: 8px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--edge); }
table.lic thead th { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
table.lic tbody tr:last-child > * { border-bottom: 0; }
table.lic tbody th { font-weight: 400; min-width: 150px; }
table.lic tbody th b { font-weight: 600; }
.lic-v { display: block; font-size: 12.5px; color: var(--fg-2); }
.lic-n { display: block; margin-top: 3px; font-size: 12.5px; color: var(--fg-2); }
table.lic td:nth-child(3), table.lic td:nth-child(4) { white-space: nowrap; width: 1%; }
@media (max-width: 720px) {
  .lic-wrap { background: none; box-shadow: none; overflow: visible; }
  table.lic, table.lic tbody { display: block; }
  table.lic thead { display: none; }
  table.lic tr { display: block; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
  table.lic th, table.lic td { display: block; padding: 3px 0; border: 0; white-space: normal !important; min-width: 0 !important; }
  table.lic td::before { content: attr(data-label); display: inline-block; min-width: 64px; margin-right: 8px; font-size: 12px; color: var(--fg-2); }
  table.lic tbody th { padding-bottom: 6px; }
  table.lic tbody th::before { content: none; }
}
.lic-page h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 28px 0 0; }
.lic-page .lic-wrap { margin: 10px 0 14px; }
.lic-page p { margin: 8px 0; }
table.lic th, table.lic td { padding: 6px 14px; }
.lic-wrap { overflow-y: hidden; }
@media (max-width: 720px) {
  table.lic td:nth-child(3), table.lic td:nth-child(4) { display: inline-block; margin-right: 18px; }
  table.lic td::before { display: block; margin: 0 0 1px; }
  table.lic tr { padding: 8px 14px; margin-bottom: 12px; }
  table.lic td::before { margin-right: 6px; min-width: 0; }
}
@media (max-width: 720px) {
  table.lic td:nth-child(2)::before { content: none; }
  table.lic td:nth-child(3), table.lic td:nth-child(4) { margin-right: 22px; margin-top: 4px; }
  table.lic th { padding-bottom: 2px; }
  .lic-page h2 { margin-top: 20px; }
}
.gh-link { display: inline-flex; align-items: center; gap: 6px; }
.foot a.gh-link { display: flex; }
.gh-link .gh-ico { flex: none; width: 16px; height: 16px; }

/* 版面規則：閱讀欄（.narrow.doc 與文件頁）內的文字、清單、程式碼、表格、提示框、折疊區同寬同左緣；程式碼與表格超出時在區塊內橫向捲動 */
body.v3 .narrow.doc > pre, body.v3 .narrow.doc > details, body.v3 .narrow.doc > .note, body.v3 .narrow.doc > table { max-width: 760px; }
body.v3 .docs-body > :not(.dh-grid):not(.qs):not(.dh-head):not(.docs-search):not(.pager) { max-width: var(--docs-w); }
body.v3 .legal-body.doc > *, body.v3 .legal-body.doc li { max-width: none; }
body.v3 .doc.lic-page > *, body.v3 .doc.lic-page li { max-width: none; }
.adv-body > h3 { margin: 22px 0 8px; font-size: 17px; }
.adv-body > h3:first-child { margin-top: 4px; }
body.v3 .doc ol.steps, .doc ol.steps { padding-left: 0; }

/* 首頁主視覺的第二行小字、設備卡、功能頁的適合與否、路線圖的清單 */
.h-hero .lead.sub { font-size: clamp(15px, 1.5vw, 17px); color: var(--fg-3, var(--fg-2)); margin-top: -14px; }
.h-devices .card h3 { margin: 0 0 8px; }
.fit-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .fit-grid { grid-template-columns: 1fr; } }
.fit .card ul, .rm-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; color: var(--fg-2, var(--text-2)); }
.fit .card li { position: relative; padding-left: 24px; }
.fit .card li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.fit .yes li::before { content: '✓'; color: var(--accent); }
.fit .no li::before { content: '✕'; color: var(--fg-3, var(--text-3)); }
.rm-list li { position: relative; padding-left: 16px; }
.rm-list li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* 頁尾底欄：版權與條款同一行小字 */
.foot .fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 13px; }
.foot .fine a { display: inline; padding: 0; }
@media (min-width: 721px) { .foot .cols { grid-template-columns: 1.4fr repeat(3, 1fr); } }

body.v3 .doc h2.sm { font-size: clamp(20px, 2.2vw, 24px); margin-top: 36px; }

/* 卡片網格規則：最後一排不留空位。奇數個時最後一張橫跨整排 */
.faqgrid > details.faq:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rm-grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 720px) { .rm-grid { grid-template-columns: 1fr; } }

/* 單欄閱讀頁：760 的閱讀欄水平置中，小標、標題、副標題也在這一欄裡（文字仍靠左）；有側欄的頁（文件、開發者）與展示頁不動 */
body.v3 .wrap.rd, body.v3 .narrow { max-width: 824px; }
body.v3 .wrap.rdw { max-width: 1136px; }
body.v3 .rd .stepgrid, body.v3 .rd.faqgrid, body.v3 .rd.legal-two, body.v3 .rd .log, body.v3 .rd .log-groups { grid-template-columns: minmax(0, 1fr); }
body.v3 .rd.faqgrid > details.faq:last-child:nth-child(odd) { grid-column: auto; }
body.v3 .rd .cardrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.v3 .rd .cardrow > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 620px) { body.v3 .rd .cardrow { grid-template-columns: minmax(0, 1fr); } }

/* 名稱識別示意卡：左邊原始檔名，中間箭頭，右邊整理好的結果 */
.namerec { display: grid; gap: 12px; padding: 20px; border-radius: var(--radius-lg, 16px); background: var(--surface); box-shadow: var(--shadow-card); }
.nr-head, .nr-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); gap: 12px; align-items: center; }
.nr-head { font-size: 11px; white-space: nowrap; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3, var(--fg-3)); }
.nr-head span:nth-child(2) { text-align: center; color: var(--accent); }
.nr-raw { display: block; padding: 12px 14px; border-radius: 10px; background: var(--bg-raised, var(--surface-strong)); box-shadow: 0 0 0 1px var(--edge, var(--line)); font: 12.5px/1.5 var(--mono); color: var(--text-2, var(--fg-2)); overflow-wrap: anywhere; }
.nr-arrow { display: grid; place-items: center; color: var(--accent); }
.nr-res { display: flex; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 10px; background: var(--accent-soft); }
.nr-res img { width: 40px; height: 60px; object-fit: cover; border-radius: 6px; flex: none; }
.nr-res b { display: block; font-size: 15px; line-height: 1.3; color: var(--text, var(--fg)); }
.nr-res span { display: block; font-size: 13px; color: var(--text-2, var(--fg-2)); margin-top: 2px; }
@media (max-width: 620px) {
  .nr-head { display: none; }
  .nr-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--separator, var(--line)); }
  .nr-row:last-child { border-bottom: 0; padding-bottom: 0; }
  .nr-arrow { transform: rotate(90deg); height: 22px; }
}

/* 跳過片頭示意：合成畫面（暖色夕陽，和字幕那節的藍色不同）、片頭區段、放大的按鈕、自動跳過的設定面板；播放器本身一律是深色 */
.skipvis { display: grid; gap: 14px; }
.sv-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #1b1233 0%, #5a2a52 48%, #e0794f 100%); box-shadow: 0 0 0 1px var(--edge, var(--line)), var(--shadow-card); }
.sv-sun { position: absolute; left: 50%; bottom: 20%; width: 34%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #ffe3a3 0%, #ffb067 55%, rgba(255, 140, 90, 0) 72%); }
.sv-screen::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, rgba(20, 10, 30, 0) 0%, rgba(14, 8, 22, 0.55) 100%), linear-gradient(170deg, transparent 40%, #2a1230 41%); }
.sv-btn { position: absolute; z-index: 2; right: 5%; bottom: 22%; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 10px; background: rgba(255, 255, 255, 0.94); color: #10131a; font-size: clamp(15px, 2vw, 20px); font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.sv-btn span { display: inline; font-size: inherit; color: inherit; }
.sv-bar { position: absolute; z-index: 2; left: 5%; right: 5%; bottom: 11%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); }
.sv-seg { position: absolute; left: 3%; width: 22%; top: -2px; bottom: -2px; border-radius: 4px; background: rgba(120, 220, 255, 0.55); box-shadow: 0 0 0 1px rgba(160, 235, 255, 0.9); }
.sv-seg em { position: absolute; left: 0; top: -22px; font-style: normal; font-size: 12px; font-weight: 600; color: #bdefff; white-space: nowrap; }
.sv-pos { position: absolute; left: 12%; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); background: #fff; }
.sv-time { position: absolute; z-index: 2; left: 5%; bottom: 3.5%; font: 12px/1 var(--mono); color: rgba(255, 255, 255, 0.85); }
.sv-panel { padding: 16px 18px; border-radius: 12px; background: #10141c; color: #e8edf5; box-shadow: 0 0 0 1px var(--edge, var(--line)), var(--shadow-card); }
.sv-panel p { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #e8edf5; }
.sv-panel p b { margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; background: rgba(120, 220, 255, 0.18); color: #9fe3ff; }
.sv-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sv-panel li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); font-size: 13px; color: #aab3c2; }
.sv-panel li.on { color: #e8edf5; }
.sv-panel li i { position: relative; flex: none; width: 28px; height: 16px; border-radius: 8px; background: rgba(255, 255, 255, 0.2); }
.sv-panel li i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.sv-panel li.on i { background: #4cc3f0; }
.sv-panel li.on i::after { left: 14px; }
@media (max-width: 620px) { .sv-btn { padding: 8px 14px; gap: 6px; bottom: 24%; } .sv-seg em { top: -18px; font-size: 11px; } .sv-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sv-panel li::before { display: none; }

/* 功能頁示意：數字卡、直接播放列、遷移清單、雙字幕、截圖特寫 */
.crop { position: relative; height: 0; overflow: hidden; border-radius: 12px; box-shadow: 0 0 0 1px var(--edge, var(--line)), var(--shadow-card); background: #0b0f16; }
.crop img { position: absolute; max-width: none; height: auto; }
.trio:has(.crop) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.trio:has(.crop) > div { position: relative; }
.trio:has(.crop) .shot-caption { position: absolute; z-index: 2; right: 10px; top: 8px; margin: 0; padding: 2px 10px; border-radius: 999px; background: rgba(8, 12, 20, 0.7); color: #e8edf5; font-size: 12px; }
.scalevis { display: grid; gap: 12px; }
.sc-card { display: flex; align-items: baseline; gap: 16px; padding: 22px 26px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-card); }
.sc-card b { font-size: clamp(34px, 4.6vw, 54px); line-height: 1; letter-spacing: -0.02em; color: var(--accent); white-space: nowrap; }
.sc-card span { font-size: 17px; color: var(--text-2, var(--fg-2)); }
.scalevis > p { margin: 2px 4px 0; font-size: 14px; color: var(--text-3, var(--fg-3)); }
.directvis { padding: 20px; border-radius: 14px; background: #10141c; color: #e8edf5; box-shadow: 0 0 0 1px var(--edge, var(--line)), var(--shadow-card); }
.dv-h { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8a95a8; }
.dv-row { display: flex; gap: 16px; align-items: center; }
.dv-row img { width: 72px; height: 108px; object-fit: cover; border-radius: 8px; flex: none; }
.dv-row > div { min-width: 0; flex: 1; }
.dv-row b { display: block; font-size: 19px; }
.dv-row span { display: block; font-size: 14px; color: #aab3c2; margin: 2px 0 10px; }
.dv-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); }
.dv-bar i { display: block; width: 38%; height: 100%; border-radius: 3px; background: #4cc3f0; }
.dv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dv-chips span { margin: 0; padding: 4px 12px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, 0.08); color: #c8d0dc; }
.dv-chips span.hot { background: rgba(80, 210, 140, 0.18); color: #7ee2ab; font-weight: 700; font-size: 15px; }
.importvis { display: grid; grid-template-columns: auto 40px minmax(0, 1fr); gap: 16px; align-items: center; padding: 22px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-card); }
.iv-src { display: grid; gap: 10px; }
.iv-src span { padding: 12px 18px; border-radius: 10px; background: var(--bg-raised, var(--surface-strong)); box-shadow: 0 0 0 1px var(--edge, var(--line)); font-weight: 600; text-align: center; }
.iv-arrow { display: grid; place-items: center; color: var(--accent); }
.iv-dst { padding: 16px 18px; border-radius: 12px; background: var(--accent-soft); }
.iv-dst p { margin: 0 0 10px; font-weight: 700; }
.iv-dst ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.iv-dst li { display: flex; align-items: center; gap: 10px; color: var(--text, var(--fg)); }
.iv-dst li::before { display: none; }
.iv-dst li svg { color: var(--accent); flex: none; }
.iv-dst li span { flex: 1; }
.iv-dst li b { font-variant-numeric: tabular-nums; color: var(--text-2, var(--fg-2)); }
@media (max-width: 520px) { .importvis { grid-template-columns: minmax(0, 1fr); } .iv-src { grid-template-columns: 1fr 1fr; } .iv-arrow { transform: rotate(90deg); height: 24px; } }
.sv-screen.cool { background: linear-gradient(180deg, #0c1a3a 0%, #1f4a7a 55%, #4aa3c8 100%); }
.sv-screen.cool .sv-sun { background: radial-gradient(circle, #e8f7ff 0%, #9fd8f2 55%, rgba(120, 200, 240, 0) 72%); }
.sv-subs { position: absolute; z-index: 2; left: 0; right: 0; bottom: 9%; text-align: center; }
.sv-subs p { margin: 0 auto 4px; width: fit-content; max-width: 92%; padding: 2px 10px; border-radius: 4px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: clamp(14px, 2vw, 20px); line-height: 1.4; }
.sv-subs p.b { color: #ffe08a; }
.subsvis .sv-panel ul.two { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.subsvis .sv-panel li em { font-style: normal; font-size: 12px; color: #9fe3ff; }
@media (max-width: 620px) { .subsvis .sv-panel ul.two { grid-template-columns: 1fr; } }

/* 程式碼區塊：右側留出複製按鈕的位置，長行自動換行（不橫向捲動，文字不會跑到按鈕下面）；複製的內容不受換行影響 */
body.v3 pre { padding-right: 88px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* 中文搜索示意：在功能頁的配圖欄裡鋪滿，不留右邊空位 */
.vis > .srch { display: block; }
