/* 使用說明頁（/guide/、/guide/en/）：只放這一頁特有的版面。
   顏色、字型、頂欄、按鈕、提醒框、頁尾、手機底部分頁全用主站 /assets/app.css，外觀主題跟主站同一份設定（guide.js 套 data-theme）。
   2026-10-03 由 Vercel 說明網站併回主站（docs/13 第 7 節）。class 一律 g- 開頭：app.css 已經有 .band（報告大分數）、.row、.steps、
   .bar（進度條）、.num 等同名樣式，舊說明網站的寫法直接搬過來會被蓋掉。 */

/* 手機底部分頁（fixed）蓋住畫面最下面約 64px：用鍵盤或錨點捲動時，目標要留在它上面（上方的頂欄由 app.css 的 scroll-padding-top 處理） */
@media (max-width: 900px) { html { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); } }
/* viewport-fit=cover：手機橫放有瀏海時，內容不要跑到瀏海底下 */
@supports (padding: env(safe-area-inset-left)) {
  .g-layout, .g-foot .wrap { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* ---------- 版面：桌機左側目錄＋內文；1024 以下目錄改到內文上方 ---------- */
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 48px; align-items: start; }
@media (min-width: 1024px) { .g-layout { grid-template-columns: 232px minmax(0, 1fr); } }
.g-main { padding: 28px 0 24px; min-width: 0; } /* app.css 的 main 底部留 110–120px 給手機底部分頁；這頁的頁尾在 main 外面，改由頁尾留 */
.g-doc { max-width: 48rem; }
.g-head { margin-bottom: 24px; }
.g-head p { max-width: 44em; }

/* 桌機：左側固定目錄 */
.g-side { display: none; }
@media (min-width: 1024px) {
  .g-side { display: block; position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain; padding: 28px 6px 32px 0; }
}
.g-side-h { margin: 0 0 6px 12px; font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.g-toc ol { list-style: none; margin: 0; padding: 0; }
.g-toc ol ol { margin: 2px 0 8px 14px; padding-left: 8px; border-left: 1px solid var(--line); }
.g-toc a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: .93rem; line-height: 1.35; }
.g-toc ol ol a { font-size: .9rem; }
.g-toc a:hover { background: var(--sunken); color: var(--ink); }
.g-toc a[aria-current] { background: var(--primary-soft); color: var(--primary-ink); font-weight: 650; }
/* 有 JS 時，側欄只展開目前所在段落的子目錄（沒有 JS 就全部展開） */
.g-side.g-js li > ol { display: none; }
.g-side.g-js li.g-on > ol { display: block; }

/* 手機、平板：內文上方可展開的目錄 */
.g-tocm { margin: 0 0 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 1024px) { .g-tocm { display: none; } }
.g-tocm > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; font-weight: 650; cursor: pointer; list-style: none; }
.g-tocm > summary::-webkit-details-marker { display: none; }
.g-tocm > summary svg { width: 20px; height: 20px; color: var(--primary-ink); }
.g-tocm > summary::after { content: "+"; margin-left: auto; font-size: 1.35rem; line-height: 1; color: var(--primary-ink); }
.g-tocm[open] > summary::after { content: "−"; }
.g-tocm .g-toc { padding: 0 8px 10px; }

/* ---------- 內文 ---------- */
.g-doc > section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.g-doc h2 { margin-bottom: .7em; }
.g-doc h3 { font-size: 1.22rem; margin: 2.1em 0 .6em; }
.g-doc h4 { display: flex; align-items: center; gap: 10px; font-size: 1.04rem; font-weight: 650; margin: 1.8em 0 .55em; }
.g-doc h2 + h3, .g-faq > h3:first-child { margin-top: .4em; }
.g-doc p, .g-doc li { max-width: 46em; }
.g-list { margin: 0 0 1em; padding-left: 1.3em; }
.g-list li + li { margin-top: .5em; }
.g-doc .note { margin: 1em 0; }
.g-doc .note > :last-child { margin-bottom: 0; }
.g-doc code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; background: var(--sunken); border-radius: 6px; padding: 1px 6px; }
.g-top { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; }

/* 有先後順序的步驟：圓形編號 */
.g-steps { list-style: none; counter-reset: g; margin: 0 0 1.2em; padding: 0; display: grid; gap: 14px; }
.g-steps > li { counter-increment: g; position: relative; padding-left: 46px; min-height: 32px; }
.g-steps > li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 700 .9rem/1 var(--font-ui); }
.g-no { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 700 .88rem/1 var(--font-ui); }

/* 內文裡對應截圖框的橘色編號（跟截圖上的框同色） */
.g-mk { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0 4px 0 2px; border-radius: 50%; background: #c2410c; color: #fff; font: 700 .78rem/1 var(--font-ui); vertical-align: 2px; }

/* 表格（app.css 的 .table 把所有 th 轉大寫小字，列標題不適合 → 這頁自己一套） */
.g-tblwrap { margin: 12px 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.g-tbl { width: 100%; border-collapse: collapse; font-size: .94rem; }
.g-tbl th, .g-tbl td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.g-tbl thead th { background: var(--surface-2); font-weight: 700; }
.g-tbl tbody th { font-weight: 650; color: var(--ink); white-space: nowrap; }
.g-tbl tbody tr:last-child > * { border-bottom: 0; }
.g-num { font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .g-tbl th, .g-tbl td { padding: 10px; } .g-tbl tbody th { white-space: normal; } }

/* ---------- 真實截圖：瀏覽器框／手機框，①②③ 標記框跟著圖縮放；點圖放大 ---------- */
.g-shot { margin: 20px 0 28px; }
.g-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: zoom-in; border-radius: 14px; }
.g-zoom:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.g-browser .g-zoom { overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
@media (hover: hover) { .g-browser .g-zoom:hover, .g-phone .g-zoom:hover { box-shadow: var(--shadow-lg); } }
.g-bar { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 12px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.g-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.g-phone { max-width: 260px; margin-inline: auto; }
.g-phone .g-zoom { overflow: hidden; border: 8px solid #161a33; border-radius: 30px; background: #161a33; box-shadow: var(--shadow); }
.g-screen { position: relative; display: block; }
.g-screen img { width: 100%; }
.g-hot { position: absolute; border: 2.5px solid #c2410c; border-radius: 8px; background: rgba(194, 65, 12, .08); pointer-events: none; }
.g-hot b { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: #c2410c; color: #fff; font: 700 .8rem/24px var(--font-ui); text-align: center; box-shadow: 0 0 0 2px #fff; }
.g-hot.g-hot-l b { left: auto; right: calc(100% + 6px); top: calc(50% - 12px); } /* 很窄的框（例：複製鈕）編號放左邊，不蓋住目標 */
.g-shot figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.g-phone figcaption { text-align: center; }
.g-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; align-items: start; }
@media (min-width: 700px) { .g-pair { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); } .g-pair-eq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 放大看圖（<dialog>：Esc 關、關掉後焦點回到原本那張圖） */
.g-box { width: auto; max-width: 96vw; max-height: 94vh; padding: 0; border: 0; border-radius: 10px; background: transparent; box-shadow: none; overflow: visible; }
.g-box::backdrop { background: rgba(9, 12, 34, .85); backdrop-filter: none; }
.g-box img { display: block; width: auto; max-width: 96vw; max-height: 88vh; border-radius: 10px; background: #fff; }
.g-box-close { position: fixed; top: 12px; right: 12px; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: #141b4d; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.g-box-hint { display: none; }
/* L-06（2026-10-03 第六輪）：窄螢幕上的電腦截圖（瀏覽器框）放大成約 800px 寬，整個畫面可以左右、上下捲（原本只放到螢幕寬約 360px，
   圖裡 16px 的字只剩約 4.5px）；guide.js 依點的是哪一種截圖加 .g-box-wide。手機截圖（手機框）照舊縮到螢幕裡：本來就是手機畫面，字夠大 */
@media (max-width: 860px) {
  .g-box.g-box-wide { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; overflow: auto; overscroll-behavior: contain; border-radius: 0;
    padding: calc(68px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) calc(64px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); } /* 全螢幕：手機橫放有瀏海時，圖不要跑到瀏海底下 */
  .g-box.g-box-wide .g-box-close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
  .g-box.g-box-wide img { width: 800px; max-width: none; max-height: none; border-radius: 6px; }
  .g-box.g-box-wide .g-box-hint { display: block; position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 999px; background: #fff; color: #141b4d; font: 600 .85rem/1.3 var(--font-ui); white-space: nowrap; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); pointer-events: none; }
}

/* ---------- 常見問題、錯誤排除（可展開） ---------- */
.g-faq details { margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.g-faq summary { position: relative; display: flex; align-items: center; min-height: 48px; padding: 10px 48px 10px 16px; font-weight: 650; cursor: pointer; list-style: none; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary:hover, .g-tocm > summary:hover { background: var(--surface-2); color: var(--ink); }
.g-faq summary { border-radius: var(--radius-sm); }
.g-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.35rem; line-height: 1; color: var(--primary-ink); }
.g-faq details[open] > summary::after { content: "−"; }
.g-faq details > div { padding: 0 16px 14px; color: var(--ink-2); }
.g-faq details > div > :last-child { margin-bottom: 0; }
.g-faq > h3 { font-size: 1.08rem; margin: 2em 0 .7em; }

/* ---------- AI Studio 示意圖（Google 的淺色介面，不跟深淺主題切換） ---------- */
.g-mock { margin: 16px 0 24px; max-width: 34rem; overflow: hidden; border: 1px solid #d5d9e6; border-radius: 14px; background: #fff; color: #1f2330; font-size: .86rem; box-shadow: var(--shadow); }
.g-mock-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #eef0f5; border-bottom: 1px solid #e2e5ef; font-size: .78rem; color: #4a5068; }
.g-mock-bar em { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: #fff4e2; color: #8a4b00; font-style: normal; font-weight: 700; }
.g-mock-body { display: grid; grid-template-columns: 140px minmax(0, 1fr); min-height: 180px; }
.g-mock-side { display: grid; align-content: start; gap: 4px; padding: 12px 8px; background: #f7f8fb; border-right: 1px solid #e8eaf1; }
.g-mock-side span { padding: 6px 10px; border-radius: 8px; color: #4a5068; }
.g-mock-side span.on { background: #e8ebff; color: #2330b8; font-weight: 700; outline: 2.5px solid #c2410c; }
.g-mock-main { display: grid; align-content: start; gap: 10px; padding: 16px; }
.g-mock-dlg { padding: 12px 14px; border: 1px solid #d5d9e6; border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.g-mock-t { font-weight: 700; font-size: .95rem; }
.g-mock-p { margin: .5em 0; color: #4a5068; }
.g-mock-box { display: inline-block; width: 14px; height: 14px; margin-right: 4px; border: 2px solid #2e3ad0; border-radius: 3px; background: #2e3ad0; vertical-align: -2px; }
.g-mock-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e8eaf1; border-radius: 8px; }
.g-mock-row b { margin-left: auto; }
.g-mock-btn { justify-self: start; display: inline-block; padding: 6px 14px; border-radius: 999px; background: #2e3ad0; color: #fff; font-weight: 700; outline: 2.5px solid #c2410c; outline-offset: 2px; }
@media (max-width: 520px) { .g-mock-body { grid-template-columns: minmax(0, 1fr); } .g-mock-side { display: none; } }

/* ---------- 頂欄、頁尾（主站樣式之外的小調整） ---------- */
.top .nav a { display: inline-flex; align-items: center; min-height: 44px; }
.top .brand { min-height: 44px; } /* 可點範圍至少 44px 高（Logo 本身 32px） */
/* 「使用說明」入口跟主站同一個樣式（app.css .helplink：桌機文字、1180 以下圖示＋短字）；在這頁是目前頁 */
.top .helplink { min-height: 44px; }
.top .helplink[aria-current="page"] { color: var(--primary-ink); background: var(--primary-soft); }
/* 語言鈕在這頁是連結（換到另一語言的頁）：app.css 在 1100 以下會藏起頂欄的 a.iconbtn（主站的齒輪），這裡要留著 */
.top .wrap > a.iconbtn.g-lang { display: grid; height: 44px; }
.top .g-cta { border-radius: 999px; white-space: nowrap; }
@media (max-width: 480px) { .top .g-cta { display: none; } } /* 手機：頂欄留品牌與語言鈕（跟主站一樣），練習網站從底部分頁進去 */
.g-foot { margin-top: 24px; }
.g-foot .row a { display: inline-flex; align-items: center; min-height: 44px; }
.g-foot .row a[aria-current] { color: var(--ink); font-weight: 650; text-decoration: none; }
.g-foot p { margin: 4px 0 0; }
.g-foot p.g-contact { margin-top: 12px; } /* 對外聯絡信箱（同主站頁尾最後一行，main.js 的 .contact） */
@media (max-width: 900px) { .g-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } } /* 底部分頁蓋住的高度 */

@media (prefers-reduced-motion: reduce) { .g-zoom { transition: none; } }
@media print {
  .top, .g-side, .g-tocm, .tabbar, .g-top { display: none !important; }
  .g-layout { display: block; }
  .g-faq details > div { display: block; }
}

/* ---------- 截圖 ①②③ 框的位置：build.py 依 guide/_master/<語言>/<圖>.json 產生，不要手改（原本寫在行內 style，CSP 拿掉 'unsafe-inline' 後改成 class，2026-10-03） ---------- */
.g-hot.gm-zh-home-1 { left: 4.69%; top: 60.8%; width: 18.59%; height: 6.61%; }
.g-hot.gm-zh-home-2 { left: 4.69%; top: 68.91%; width: 18.75%; height: 6.61%; }
.g-hot.gm-zh-dashboard-1 { left: 5.86%; top: 22.8%; width: 16.93%; height: 3.99%; }
.g-hot.gm-zh-dashboard-2 { left: 4.69%; top: 29.42%; width: 62.19%; height: 27.05%; }
.g-hot.gm-zh-dashboard-3 { left: 4.69%; top: 57.82%; width: 62.19%; height: 18.56%; }
.g-hot.gm-zh-home-free-1 { left: 4.69%; top: 22.6%; width: 21.72%; height: 27.75%; }
.g-hot.gm-zh-home-free-2 { left: 27.66%; top: 22.6%; width: 21.72%; height: 27.75%; }
.g-hot.gm-zh-home-free-3 { left: 4.69%; top: 64.36%; width: 90.62%; height: 19.09%; }
.g-hot.gm-zh-demo-choice-1 { left: 4.69%; top: 40.02%; width: 44.84%; height: 11.97%; }
.g-hot.gm-zh-demo-choice-2 { left: 50.47%; top: 40.02%; width: 44.84%; height: 11.97%; }
.g-hot.gm-zh-speaking-live-1 { left: 7.58%; top: 62.13%; width: 57.97%; height: 19.67%; }
.g-hot.gm-zh-speaking-live-2 { left: 15.31%; top: 84.25%; width: 42.5%; height: 9.05%; }
.g-hot.gm-zh-aistudio-keys-1 { left: 0.32%; top: 22.18%; width: 13.25%; height: 5.51%; }
.g-hot.gm-zh-aistudio-keys-2 { left: 82.44%; top: 41.74%; width: 1.79%; height: 4.68%; }
.g-hot.gm-zh-aistudio-keys-3 { left: 85.33%; top: 8.68%; width: 9.62%; height: 5.51%; }
.g-hot.gm-zh-settings-1 { left: 6.95%; top: 36.81%; width: 38.55%; height: 6.05%; }
.g-hot.gm-zh-settings-2 { left: 6.95%; top: 44.36%; width: 42.42%; height: 9.9%; }
.g-hot.gm-zh-settings-3 { left: 6.95%; top: 55.75%; width: 10.94%; height: 5.88%; }
.g-hot.gm-zh-practice-1 { left: 4.69%; top: 24.65%; width: 90.62%; height: 30.62%; }
.g-hot.gm-zh-mic-meter-1 { left: 9.88%; top: 43.68%; width: 85.0%; height: 2.92%; }
.g-hot.gm-zh-mic-meter-2 { left: 7.14%; top: 59.8%; width: 15.15%; height: 11.02%; }
.g-hot.gm-zh-mic-ask-1 { left: 9.88%; top: 63.78%; width: 22.1%; height: 9.81%; }
.g-hot.gm-zh-mic-ask-2 { left: 33.41%; top: 63.78%; width: 19.0%; height: 9.81%; }
.g-hot.gm-zh-speaking-start-1 { left: 4.69%; top: 60.89%; width: 17.41%; height: 6.61%; }
.g-hot.gm-zh-writing-1 { left: 50.62%; top: 32.22%; width: 44.69%; height: 45.7%; }
.g-hot.gm-zh-writing-2 { left: 50.62%; top: 82.98%; width: 11.04%; height: 5.29%; }
.g-hot.gm-zh-records-1 { left: 4.69%; top: 17.05%; width: 90.62%; height: 6.05%; }
.g-hot.gm-zh-settings-data-1 { left: 6.95%; top: 56.17%; width: 9.75%; height: 5.88%; }
.g-hot.gm-zh-settings-data-2 { left: 17.64%; top: 56.17%; width: 9.75%; height: 5.88%; }
.g-hot.gm-en-home-1 { left: 4.69%; top: 68.08%; width: 18.12%; height: 6.61%; }
.g-hot.gm-en-home-2 { left: 4.69%; top: 76.19%; width: 25.65%; height: 6.61%; }
.g-hot.gm-en-dashboard-1 { left: 5.86%; top: 27.09%; width: 23.36%; height: 3.99%; }
.g-hot.gm-en-dashboard-2 { left: 4.69%; top: 33.71%; width: 62.19%; height: 29.28%; }
.g-hot.gm-en-dashboard-3 { left: 4.69%; top: 64.35%; width: 62.19%; height: 22.56%; }
.g-hot.gm-en-home-free-1 { left: 4.69%; top: 22.5%; width: 21.72%; height: 36.22%; }
.g-hot.gm-en-home-free-2 { left: 27.66%; top: 22.5%; width: 21.72%; height: 36.22%; }
.g-hot.gm-en-home-free-3 { left: 4.69%; top: 72.73%; width: 90.62%; height: 21.97%; }
.g-hot.gm-en-demo-choice-1 { left: 4.69%; top: 43.32%; width: 44.84%; height: 14.73%; }
.g-hot.gm-en-demo-choice-2 { left: 50.47%; top: 43.32%; width: 44.84%; height: 14.73%; }
.g-hot.gm-en-speaking-live-1 { left: 7.58%; top: 62.13%; width: 57.97%; height: 19.67%; }
.g-hot.gm-en-speaking-live-2 { left: 15.31%; top: 84.25%; width: 42.5%; height: 9.05%; }
.g-hot.gm-en-aistudio-keys-1 { left: 0.32%; top: 22.18%; width: 13.25%; height: 5.51%; }
.g-hot.gm-en-aistudio-keys-2 { left: 82.44%; top: 41.74%; width: 1.79%; height: 4.68%; }
.g-hot.gm-en-aistudio-keys-3 { left: 85.33%; top: 8.68%; width: 9.62%; height: 5.51%; }
.g-hot.gm-en-settings-1 { left: 6.95%; top: 36.81%; width: 38.55%; height: 6.05%; }
.g-hot.gm-en-settings-2 { left: 6.95%; top: 44.36%; width: 42.42%; height: 16.49%; }
.g-hot.gm-en-settings-3 { left: 6.95%; top: 62.35%; width: 12.74%; height: 5.88%; }
.g-hot.gm-en-practice-1 { left: 4.69%; top: 24.65%; width: 90.62%; height: 33.5%; }
.g-hot.gm-en-mic-meter-1 { left: 9.88%; top: 49.18%; width: 85.0%; height: 2.92%; }
.g-hot.gm-en-mic-meter-2 { left: 7.14%; top: 65.3%; width: 25.91%; height: 11.02%; }
.g-hot.gm-en-mic-ask-1 { left: 9.88%; top: 69.28%; width: 24.64%; height: 9.81%; }
.g-hot.gm-en-mic-ask-2 { left: 35.95%; top: 69.28%; width: 17.42%; height: 9.81%; }
.g-hot.gm-en-speaking-start-1 { left: 4.69%; top: 74.09%; width: 24.81%; height: 6.61%; }
.g-hot.gm-en-writing-1 { left: 50.62%; top: 32.22%; width: 44.69%; height: 45.7%; }
.g-hot.gm-en-writing-2 { left: 50.62%; top: 82.98%; width: 17.31%; height: 5.29%; }
.g-hot.gm-en-records-1 { left: 4.69%; top: 17.05%; width: 90.62%; height: 6.05%; }
.g-hot.gm-en-settings-data-1 { left: 6.95%; top: 56.06%; width: 11.6%; height: 5.88%; }
.g-hot.gm-en-settings-data-2 { left: 19.49%; top: 56.06%; width: 11.6%; height: 5.88%; }
