/* 光珠 · 组件样式 v1 · 依赖 tokens.css、fonts.css
   命名：gz-块__元素--变体；状态用 is-*（is-on / is-active / is-open / is-done / is-cur / is-run） */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: var(--fs-14); line-height: var(--lh-ui); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--text); }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
.gz-ic { font-family: var(--font-icon); font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; font-variation-settings: "FILL" 0, "wght" 400; flex: none; }
.gz-ic.is-fill { font-variation-settings: "FILL" 1, "wght" 400; }
.gz-mono { font-family: var(--font-mono); }
.gz-muted { color: var(--text-2); } .gz-faint { color: var(--text-3); }

/* ---------- 外壳 ---------- */
.gz-app { position: relative; display: flex; height: 100vh; overflow: hidden; }
.gz-ambient { position: absolute; inset: 0; pointer-events: none; background: var(--ambient); z-index: 0; }
.gz-rail { position: relative; z-index: 2; width: var(--rail-w); flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 0 14px; background: var(--bg-rail); backdrop-filter: blur(20px) saturate(140%); border-right: 1px solid var(--line); }
.gz-rail__logo { width: 28px; height: 28px; margin: 4px 0 20px; display: grid; place-items: center; }
.gz-rail__cta { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; margin-bottom: 10px; cursor: pointer; color: var(--text-2); font-size: var(--fs-11); font-weight: 500; }
.gz-rail__cta .gz-rail__btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent2-grad); color: var(--on-accent2); box-shadow: var(--accent2-sh); }
.gz-rail__item { position: relative; width: 60px; padding: 8px 0 6px; border: 0; border-radius: 12px; background: transparent; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; font-size: var(--fs-11); font-weight: 500; transition: background .2s, color .2s; }
.gz-rail__item:hover { color: var(--text); }
.gz-rail__item.is-active { background: linear-gradient(180deg, var(--accent-soft), transparent); box-shadow: inset 0 0 0 1px var(--accent-soft), inset 0 1px 0 var(--line-strong); color: var(--accent-text); font-weight: 600; }
.gz-rail__item.is-active .gz-ic { font-variation-settings: "FILL" 1, "wght" 400; text-shadow: var(--icon-glow, none); }
.gz-rail__spacer { flex: 1; }
.gz-rail__item .gz-dot { position: absolute; top: 6px; right: 14px; box-shadow: 0 0 0 2px var(--bg-rail), 0 0 10px currentColor; }
.gz-avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2); display: grid; place-items: center; font-weight: 600; cursor: pointer; flex: none; }
.gz-avatar--lg { width: 52px; height: 52px; font-size: 20px; background: var(--accent-soft); color: var(--accent-text); border: 0; }

.gz-body { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gz-top { position: relative; z-index: 3; height: var(--topbar-h); flex: none; display: flex; align-items: center; gap: 20px; padding: 0 24px 0 28px; border-bottom: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(18px) saturate(140%); }
.gz-top__area { flex: none; white-space: nowrap; font-size: 15px; font-weight: 600; padding-right: 20px; border-right: 1px solid var(--line); line-height: 20px; }
.gz-tabs { display: flex; gap: 22px; align-self: stretch; }
.gz-tab { display: flex; align-items: center; border: 0; background: none; padding: 0 1px; color: var(--text-2); font-size: var(--fs-14); cursor: pointer; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.gz-tab:hover { color: var(--text); }
.gz-tab.is-active { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent), 0 10px 14px -12px var(--accent); }
.gz-top__spacer { flex: 1; }
.gz-search { flex: 0 1 280px; min-width: 120px; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text-3); font-size: var(--fs-13); cursor: pointer; white-space: nowrap; overflow: hidden; }
.gz-search span:nth-child(2) { flex: 1; }
.gz-kbd { font-family: var(--font-mono); font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--text-3); }
.gz-main { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.gz-page { max-width: var(--content-max); margin: 0 auto; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.gz-page--wide { max-width: 1320px; }

/* 手机外壳 */
.gz-mtop, .gz-mtabs, .gz-chips { display: none; }
@media (max-width: 760px) {
  .gz-rail, .gz-top { display: none; }
  .gz-mtop { display: flex; height: 52px; flex: none; align-items: center; gap: 10px; padding: 0 12px 0 16px; }
  .gz-mtop__title { flex: 1; min-width: 0; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gz-chips { display: flex; gap: 8px; padding: 2px 16px 12px; overflow-x: auto; border-bottom: 1px solid var(--line); flex: none; }
  .gz-chips .gz-chip { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; font-size: var(--fs-14); }
  .gz-mtabs { display: flex; flex: none; padding: 6px 4px 24px; border-top: 1px solid var(--line); background: var(--bg-rail); backdrop-filter: blur(20px); }
  .gz-mtab { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; color: var(--text-3); font-size: var(--fs-11); font-weight: 500; position: relative; cursor: pointer; }
  .gz-mtab__pill { width: 40px; height: 30px; border-radius: 15px; display: grid; place-items: center; }
  .gz-mtab.is-active { color: var(--text); font-weight: 600; }
  .gz-mtab.is-active .gz-mtab__pill { background: var(--accent-soft); color: var(--accent-text); }
  .gz-mtab.is-active .gz-ic { font-variation-settings: "FILL" 1, "wght" 400; }
  .gz-mtab--create .gz-mtab__pill { width: 52px; background: var(--accent2-grad); color: var(--on-accent2); box-shadow: var(--accent2-sh); }
  .gz-page { padding: 18px; gap: 18px; }
  .gz-h1 { font-size: var(--fs-22); }
  .gz-hero { font-size: 28px; }
  .gz-split, .gz-split--3, .gz-home { grid-template-columns: minmax(0, 1fr) !important; }
  .gz-compare { grid-auto-flow: column; grid-auto-columns: 86%; grid-template-columns: none !important; overflow-x: auto; scroll-snap-type: x mandatory; }
  .gz-compare > * { scroll-snap-align: start; }
  .gz-insp { top: 26%; left: 0; width: auto; border-left: 0; border-top: 1px solid var(--line); border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .gz-insp__handle { display: block; }
  .gz-scrim { background: var(--overlay); }
  .gz-modal { align-items: flex-end; }
  .gz-modal__box { width: 100%; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .gz-hide-m { display: none !important; }
}

/* ---------- 光球 Logo（纯 CSS，与原型一致） ---------- */
.gz-orb { --s: 22px; position: relative; display: inline-block; width: var(--s); height: var(--s); flex: none; }
.gz-orb i { position: absolute; border-radius: 50%; pointer-events: none; }
.gz-orb i:nth-child(1) { inset: calc(var(--s) * -0.95); background: radial-gradient(circle, var(--orb-mist) 0%, var(--orb-mist-2) 40%, transparent 70%); filter: blur(calc(var(--s) * .12)); animation: gz-mist 6.4s ease-in-out infinite; }
.gz-orb i:nth-child(2) { inset: calc(var(--s) * -0.5); background: radial-gradient(circle at 36% 40%, var(--orb-mist), transparent 52%), radial-gradient(circle at 66% 62%, oklch(1 0 0 / .16), transparent 48%); filter: blur(calc(var(--s) * .1)); animation: gz-drift 18s linear infinite; }
.gz-orb i:nth-child(3) { inset: calc(var(--s) * -0.06); background: radial-gradient(circle, oklch(1 0 0 / .96) 0%, oklch(1 0 0 / .62) 20%, var(--orb-mist) 46%, transparent 68%); filter: blur(calc(var(--s) * .05)); animation: gz-breathe 6.4s ease-in-out infinite; }
.gz-orb i:nth-child(4) { inset: calc(var(--s) * 0.3); background: radial-gradient(circle, #fff 0%, oklch(1 0 0 / .9) 40%, oklch(1 0 0 / 0) 100%); filter: blur(calc(var(--s) * .03)); animation: gz-glow 6.4s ease-in-out infinite; }
:root, [data-theme="dark"] { --orb-mist: oklch(0.99 0.012 240 / .24); --orb-mist-2: oklch(0.99 0.012 240 / .09); }
[data-theme="light"] { --orb-mist: oklch(0.72 0.09 240 / .43); --orb-mist-2: oklch(0.72 0.09 240 / .16); }
.gz-orb.is-still i { animation: none; }
@keyframes gz-breathe { 0%,100% { transform: scale(.92); opacity: .82 } 50% { transform: scale(1.06); opacity: 1 } }
@keyframes gz-mist { 0%,100% { transform: scale(.9); opacity: .5 } 50% { transform: scale(1.14); opacity: 1 } }
@keyframes gz-drift { to { transform: rotate(360deg) } }
@keyframes gz-glow { 0%,100% { opacity: .85 } 50% { opacity: 1 } }
@keyframes gz-pulse { 0%,100% { box-shadow: 0 0 0 0 oklch(0.85 0.04 240 / .5) } 50% { box-shadow: 0 0 0 5px oklch(0.85 0.04 240 / 0) } }
@keyframes gz-shimmer { 0% { background-position: 100% 0 } 100% { background-position: -100% 0 } }
@keyframes gz-spin { to { transform: rotate(360deg) } }
@keyframes gz-drain { from { width: 100% } to { width: 0 } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- 文字 ---------- */
.gz-eyebrow { font-family: var(--font-mono); font-size: var(--fs-12); letter-spacing: .12em; color: var(--text-3); }
.gz-hero { margin: 6px 0 0; font-size: 38px; font-weight: 300; letter-spacing: .04em; line-height: 1.2; }
.gz-h1 { margin: 0; font-size: 28px; font-weight: 400; letter-spacing: .03em; line-height: 1.3; text-wrap: pretty; }
.gz-sub { margin: 4px 0 0; color: var(--text-2); }
.gz-label { font-size: var(--fs-12); letter-spacing: .16em; color: var(--text-3); font-weight: 500; }
.gz-crumb { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--text-3); }
.gz-crumb a { color: var(--text-2); }
.gz-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.gz-head__main { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 10px; }
.gz-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--fs-12); color: var(--text-2); }

/* ---------- 按钮 ---------- */
.gz-btn { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-size: var(--fs-14); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; text-decoration: none; }
.gz-btn:hover { background: var(--surface-2); color: var(--text); }
.gz-btn .gz-ic { font-size: 18px; }
.gz-btn--primary { border: 0; background: var(--accent-grad); color: var(--on-accent); box-shadow: var(--accent-sh); font-weight: 600; }
.gz-btn--primary:hover { background: var(--accent-grad); color: var(--on-accent); filter: brightness(1.05); }
.gz-btn--create { border: 0; background: var(--accent2-grad); color: var(--on-accent2); box-shadow: var(--accent2-sh); font-weight: 600; }
.gz-btn--create:hover { background: var(--accent2-grad); color: var(--on-accent2); filter: brightness(1.05); }
.gz-btn--start { color: var(--accent2-text); font-weight: 500; }
.gz-btn--start:hover { background: var(--accent2-soft); border-color: var(--accent2); color: var(--accent2-text); }
.gz-btn--ghost { border-color: transparent; color: var(--text-2); }
.gz-btn--danger { border-color: var(--st-err); color: var(--st-err); }
.gz-btn--danger-fill { border: 0; background: var(--st-err); color: oklch(0.99 0 0); font-weight: 600; }
.gz-btn--sm { height: 32px; padding: 0 12px; font-size: var(--fs-13); border-radius: var(--r-sm); }
.gz-btn--xs { height: 28px; padding: 0 10px; font-size: var(--fs-12); border-radius: 7px; }
.gz-btn--icon { width: 40px; padding: 0; color: var(--text-2); }
.gz-btn--icon.gz-btn--sm { width: 32px; }
.gz-btn[disabled], .gz-btn.is-disabled { opacity: .45; pointer-events: none; }

/* ---------- 卡片、列表 ---------- */
.gz-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--card-sh); }
.gz-card--pad { padding: 16px 18px; }
.gz-card--pad-lg { padding: 22px; }
.gz-card--link { cursor: pointer; transition: border-color .2s; }
.gz-card--link:hover { border-color: var(--line-strong); }
.gz-list { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--card-sh); overflow: hidden; }
.gz-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.gz-row:first-child { border-top: 0; }
.gz-row--link { cursor: pointer; } .gz-row--link:hover { background: var(--surface-2); }
.gz-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gz-row__title { font-size: var(--fs-14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gz-row__sub { font-size: var(--fs-12); color: var(--text-3); display: flex; gap: 10px; white-space: nowrap; overflow: hidden; }
.gz-thumb { width: 72px; height: 42px; flex: none; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--surface-3) 6px 7px); position: relative; }
.gz-thumb--lg { width: 96px; height: 56px; border-radius: 8px; }
.gz-thumb--16x9 { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 10px; }
.gz-thumb__len { position: absolute; right: 4px; bottom: 3px; font-family: var(--font-mono); font-size: 10px; padding: 0 4px; border-radius: 3px; background: oklch(0 0 0 / .55); color: #fff; }
.gz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--min, 240px), 1fr)); gap: 14px; }
.gz-split { display: grid; grid-template-columns: minmax(0, 1fr) var(--side, 300px); gap: 28px; align-items: start; }
.gz-split--3 { grid-template-columns: 190px minmax(0, 1fr) 300px; gap: 36px; }
.gz-home { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gz-stack { display: flex; flex-direction: column; gap: var(--gap, 12px); min-width: 0; }
.gz-inline { display: flex; align-items: center; gap: var(--gap, 8px); flex-wrap: wrap; }
.gz-sticky { position: sticky; top: 8px; }

/* ---------- 标签、筛选、分段 ---------- */
.gz-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--r-xs); background: var(--surface-2); color: var(--text-2); font-size: var(--fs-12); white-space: nowrap; }
.gz-tag--line { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.gz-tag--accent { background: var(--accent-soft); color: var(--accent-text); }
.gz-tag--create { background: var(--accent2-soft); color: var(--accent2-text); font-weight: 500; }
.gz-chip { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: 16px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: var(--fs-13); cursor: pointer; white-space: nowrap; }
.gz-chip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.gz-filter { height: 32px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: var(--fs-13); cursor: pointer; white-space: nowrap; }
.gz-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gz-seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: var(--r-md); background: var(--surface-2); flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.gz-seg__btn { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-size: var(--fs-13); cursor: pointer; white-space: nowrap; }
.gz-seg__btn.is-on { background: var(--surface); box-shadow: var(--shadow-1); color: var(--text); font-weight: 600; }
.gz-seg--line { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.gz-seg--line .gz-seg__btn.is-on { background: var(--surface-2); box-shadow: none; font-weight: 400; }
.gz-pf { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex: none; }
.gz-pf--bili { background: var(--pf-bili); } .gz-pf--douyin { background: var(--pf-douyin); } .gz-pf--xhs { background: var(--pf-xhs); }
.gz-pager { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--text-2); }
.gz-pager a, .gz-pager span { min-width: 32px; height: 32px; padding: 0 8px; display: grid; place-items: center; border-radius: var(--r-sm); color: inherit; }
.gz-pager .is-on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.gz-pager .gz-pager__next { border: 1px solid var(--line); }
.gz-pager .is-disabled { color: var(--text-3); }

/* ---------- 表单 ---------- */
.gz-input, .gz-textarea { width: 100%; height: 42px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-14); outline: none; transition: border-color .15s, box-shadow .15s; }
.gz-input--lg { height: 48px; font-size: 16px; }
.gz-textarea { height: auto; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.gz-input:focus, .gz-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.gz-input.is-error { border-color: var(--st-err); }
.gz-field { display: flex; flex-direction: column; gap: 8px; }
.gz-field > label { font-size: var(--fs-13); color: var(--text-2); font-weight: 500; }
.gz-hint { font-size: var(--fs-12); color: var(--text-3); }
.gz-err-text { font-size: var(--fs-13); color: var(--st-err); }
.gz-choice { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; color: var(--text); text-align: left; cursor: pointer; transition: all .2s; }
.gz-choice.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 24px -10px var(--accent); }
.gz-check { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1.5px solid var(--line-strong); background: transparent; display: grid; place-items: center; color: var(--on-accent); cursor: pointer; padding: 0; }
.gz-check .gz-ic { font-size: 16px; opacity: 0; }
.gz-check.is-on { border-color: var(--accent); background: var(--accent-grad); }
.gz-check.is-on .gz-ic { opacity: 1; }

/* ---------- 状态 ---------- */
.gz-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--st-queue); }
.gz-dot--ok { background: var(--st-ok); color: var(--st-ok); } .gz-dot--warn { background: var(--st-warn); color: var(--st-warn); } .gz-dot--err { background: var(--st-err); color: var(--st-err); }
.gz-dot--wait { background: var(--accent2); } .gz-dot--done { background: var(--accent); }
.gz-dot--run { background: var(--st-run); animation: gz-pulse 2s ease-in-out infinite; }
.gz-dot--glow { box-shadow: 0 0 10px currentColor; }
.gz-progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.gz-progress > span { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .6s; }
.gz-progress--run > span { background: linear-gradient(90deg, var(--st-run) 0%, oklch(0.98 0.01 240) 50%, var(--st-run) 100%); background-size: 200% 100%; animation: gz-shimmer 2.2s linear infinite; }
.gz-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.gz-step { display: flex; flex-direction: column; gap: 8px; padding: 0 0 8px; border: 0; border-bottom: 2px solid transparent; background: none; text-align: left; cursor: pointer; min-width: 0; color: var(--text-3); }
.gz-step::before { content: ""; height: 4px; border-radius: 2px; background: var(--surface-3); }
.gz-step__name { font-size: var(--fs-14); white-space: nowrap; }
.gz-step__sub { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gz-step.is-done { color: var(--text-2); } .gz-step.is-done::before { background: var(--accent); box-shadow: 0 0 10px var(--accent-soft); }
.gz-step.is-cur { color: var(--text); } .gz-step.is-cur::before { background: var(--accent2); box-shadow: 0 0 12px var(--accent2-soft); }
.gz-step.is-run::before { background: linear-gradient(90deg, var(--st-run) 0%, oklch(0.98 0.01 240) 50%, var(--st-run) 100%); background-size: 200% 100%; animation: gz-shimmer 2.2s linear infinite; }
.gz-step.is-active { border-bottom-color: var(--text); } .gz-step.is-active .gz-step__name { font-weight: 600; color: var(--text); }
.gz-steps--mini { gap: 3px; } .gz-steps--mini .gz-step { padding: 0; cursor: default; } .gz-steps--mini .gz-step__name { font-size: 11px; }
.gz-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: var(--fs-13); line-height: 1.6; flex-wrap: wrap; }
.gz-banner--info { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.gz-banner--create { background: var(--accent2-soft); }
.gz-banner--warn { background: oklch(0.84 0.1 75 / .1); box-shadow: inset 0 0 0 1px var(--st-warn); }
.gz-banner--err { background: oklch(0.72 0.13 28 / .1); box-shadow: inset 0 0 0 1px var(--st-err); }
.gz-banner__text { flex: 1; min-width: 200px; }
.gz-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: gz-spin 1s linear infinite; flex: none; }

/* 空 / 加载 / 报错 */
.gz-empty { padding: 36px 24px; border-radius: 16px; border: 1px dashed var(--line-strong); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.gz-empty .gz-ic { font-size: 30px; color: var(--text-3); }
.gz-empty__title { font-size: 16px; font-weight: 500; }
.gz-empty__text { font-size: var(--fs-13); color: var(--text-2); line-height: 1.7; max-width: 30em; }
.gz-skel { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: gz-shimmer 1.6s linear infinite; }
.gz-error { padding: 12px 14px; border-radius: 12px; background: oklch(0.7 0.13 28 / .08); box-shadow: inset 0 0 0 1px oklch(0.7 0.13 28 / .35); display: flex; flex-direction: column; gap: 6px; }
.gz-error__title { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: 600; }
.gz-error__title .gz-ic { color: var(--st-err); font-size: 17px; }

/* ---------- 长文阅读、出处、采纳 ---------- */
.gz-reader { max-width: var(--measure); font-size: 17px; line-height: 1.85; min-width: 0; }
.gz-reader h2 { margin: 0 0 12px; font-size: 20px; font-weight: 500; letter-spacing: .02em; line-height: 1.5; }
.gz-reader h2 .gz-mono { font-size: 13px; color: var(--text-3); margin-right: 10px; }
.gz-reader p { margin: 0 0 14px; text-wrap: pretty; }
.gz-reader section { margin-bottom: 34px; scroll-margin-top: 16px; }
.gz-cite { display: inline-block; margin: 0 1px; padding: 0 5px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-text); font-family: var(--font-mono); font-size: 11px; line-height: 17px; vertical-align: 4px; cursor: pointer; user-select: none; }
.gz-toc { display: flex; flex-direction: column; gap: 2px; }
.gz-toc a { display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; border-radius: 8px; color: var(--text-2); font-size: var(--fs-13); line-height: 1.45; }
.gz-toc a:hover { color: var(--text); }
.gz-toc a.is-on { background: var(--accent-soft); color: var(--text); }
.gz-toc a .gz-mono { font-size: 11px; color: var(--text-3); }
.gz-adopt { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.gz-adopt__item { display: flex; gap: 6px; align-items: flex-start; padding: 10px 10px 10px 12px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-13); line-height: 1.6; transition: background .6s; }
.gz-adopt__item.is-flash { background: var(--accent-soft); }
.gz-adopt__item small { display: block; font-size: 11px; color: var(--text-3); margin-top: 3px; }
.gz-adopt-pop { position: absolute; z-index: 40; transform: translate(-50%, -100%); height: 36px; padding: 0 14px; display: none; align-items: center; gap: 6px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--glass-strong); backdrop-filter: blur(18px); box-shadow: var(--shadow-2); font-size: var(--fs-13); font-weight: 600; cursor: pointer; white-space: nowrap; }
.gz-adopt-pop.is-open { display: flex; }
.gz-adopt-pop .gz-ic { color: var(--accent-text); font-size: 17px; }
.gz-fly { position: fixed; z-index: 90; width: 240px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--accent), 0 10px 30px -8px var(--accent); font-size: var(--fs-13); line-height: 1.5; pointer-events: none; max-height: 4.6em; overflow: hidden; transition: left .65s cubic-bezier(.2,.7,.2,1), top .65s cubic-bezier(.2,.7,.2,1), opacity .65s, transform .65s; transform-origin: top left; }
.gz-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gz-ins { background: var(--accent-soft); border-radius: 3px; }
.gz-del { background: oklch(0.7 0.13 28 / .16); text-decoration: line-through; color: var(--text-2); border-radius: 3px; }
.gz-hl { background: var(--accent2-soft); border-radius: 3px; padding: 0 2px; }

/* ---------- 浮层 ---------- */
.gz-pop { position: absolute; z-index: 45; width: 320px; max-width: calc(100vw - 16px); padding: 14px 16px; border-radius: 12px; background: var(--glass-strong); backdrop-filter: blur(24px); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); display: none; flex-direction: column; gap: 8px; font-size: var(--fs-13); line-height: 1.7; color: var(--text-2); }
.gz-pop.is-open { display: flex; }
.gz-menu { position: absolute; z-index: 30; min-width: 200px; padding: 6px; border-radius: 12px; background: var(--glass-strong); backdrop-filter: blur(24px); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); display: none; flex-direction: column; }
.gz-menu.is-open { display: flex; }
.gz-menu__item { height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: var(--fs-13); cursor: pointer; text-align: left; white-space: nowrap; }
.gz-menu__item:hover { background: var(--surface-2); }
.gz-menu__item .gz-ic { font-size: 18px; color: var(--text-2); }
.gz-menu__item--danger, .gz-menu__item--danger .gz-ic { color: var(--st-err); }
.gz-menu__sep { height: 1px; background: var(--line); margin: 4px 6px; }
.gz-scrim { position: fixed; inset: 0; z-index: 20; background: transparent; display: none; }
.gz-scrim.is-open { display: block; }
.gz-insp { position: fixed; z-index: 21; top: 0; right: 0; bottom: 0; width: var(--inspector-w); background: var(--glass-strong); backdrop-filter: blur(24px) saturate(150%); border-left: 1px solid var(--line); box-shadow: var(--shadow-2); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.gz-insp.is-open { transform: none; }
.gz-insp__handle { display: none; width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 8px auto 0; }
.gz-insp__head { height: 52px; flex: none; display: flex; align-items: center; padding: 0 8px 0 18px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.gz-insp__body { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.gz-insp__foot { flex: none; padding: 12px 18px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.gz-modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: var(--overlay); }
.gz-modal.is-open { display: flex; }
.gz-modal__box { width: min(520px, calc(100vw - 24px)); padding: 22px 22px 26px; border-radius: var(--r-xl); background: var(--glass-strong); backdrop-filter: blur(28px) saturate(150%); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 16px; }
.gz-modal__title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.gz-palette { position: fixed; inset: 0; z-index: 70; display: none; background: var(--overlay); }
.gz-palette.is-open { display: block; }
.gz-palette__box { position: absolute; left: 50%; top: 72px; transform: translateX(-50%); width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 100px); display: flex; flex-direction: column; border-radius: 16px; background: var(--glass-strong); backdrop-filter: blur(28px) saturate(150%); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); overflow: hidden; }
.gz-palette__input { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 56px; border-bottom: 1px solid var(--line); }
.gz-palette__input input { flex: 1; border: 0; background: none; outline: none; color: var(--text); font: inherit; font-size: 16px; }
.gz-palette__list { overflow: auto; padding: 6px 8px 10px; }
.gz-palette__group { font-size: var(--fs-12); letter-spacing: .16em; color: var(--text-3); padding: 12px 10px 4px; }
.gz-palette__item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.gz-palette__item:hover, .gz-palette__item.is-on { background: var(--surface-2); color: var(--text); }
.gz-toast { position: fixed; z-index: 95; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 10px; background: var(--toast-bg); border: 1px solid var(--line-strong); backdrop-filter: blur(18px); box-shadow: var(--shadow-2); font-size: var(--fs-14); display: flex; align-items: center; gap: 10px; transition: opacity .2s, transform .2s; overflow: hidden; }
.gz-toast.is-open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.gz-toast .gz-ic { color: var(--accent-text); font-variation-settings: "FILL" 1; font-size: 18px; }
.gz-toast__undo { border: 0; background: none; color: var(--accent-text); font-weight: 600; cursor: pointer; }
.gz-toast__bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); }
@media (max-width: 760px) { .gz-toast { bottom: 104px; } }

/* ---------- 后台 ---------- */
.gz-health { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gz-bars { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.gz-bars span { flex: 1; border-radius: 2px; background: var(--surface-3); }
.gz-review:focus { outline: none; }
.gz-review .gz-row.is-focus { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.gz-review .gz-row.is-decided { opacity: .55; }
.gz-keys { display: flex; gap: 8px; flex-wrap: wrap; font-size: var(--fs-12); color: var(--text-3); }
.gz-keys .gz-kbd { min-width: 18px; text-align: center; color: var(--text-2); }

.gz-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gz-stat { padding: 10px; border-radius: 8px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gz-stat span { font-size: 11px; color: var(--text-3); white-space: nowrap; } .gz-stat b { font-weight: 400; font-size: 15px; white-space: nowrap; }
.gz-rel { position: relative; }
.gz-show-m { display: none !important; }
@media (max-width: 760px) { .gz-show-m { display: flex !important; } }
@media (max-width: 1100px) { .gz-split--3 { grid-template-columns: minmax(0, 1fr) 280px; } .gz-split--3 > .gz-toc { display: none; } }
.gz-theme-btn { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; transition: color .15s, border-color .15s; }
.gz-theme-btn:hover { color: var(--text); border-color: var(--line-strong); }
.gz-theme-btn .gz-ic { font-size: 19px; }
[data-theme="light"] .gz-when-dark, :root:not([data-theme="light"]) .gz-when-light { display: none; }

/* ---------- 动效（克制：只用于进入与反馈，减少动态效果时全部关闭） ---------- */
@keyframes gz-rise { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
@keyframes gz-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes gz-pop { from { opacity: 0; transform: scale(.97) } to { opacity: 1; transform: none } }
@keyframes gz-slide-b { from { opacity: 0; transform: translateY(48px) } to { opacity: 1; transform: none } }
@keyframes gz-drop { from { opacity: 0; transform: translate(-50%, -8px) } to { opacity: 1; transform: translate(-50%, 0) } }
.gz-main > .gz-page { animation: gz-rise .26s cubic-bezier(.2,.7,.2,1) both; }
.gz-menu.is-open { animation: gz-pop .16s ease-out; transform-origin: top right; }
.gz-pop.is-open { animation: gz-pop .14s ease-out; }
.gz-modal.is-open, .gz-palette.is-open, .gz-scrim.is-open { animation: gz-fade .2s ease-out; }
.gz-modal.is-open .gz-modal__box { animation: gz-pop .2s cubic-bezier(.2,.7,.2,1); }
.gz-palette.is-open .gz-palette__box { animation: gz-drop .2s cubic-bezier(.2,.7,.2,1); }
.gz-card--link, .gz-row--link { transition: background .15s, border-color .2s, transform .2s, box-shadow .2s; }
.gz-card--link:hover { transform: translateY(-1px); box-shadow: var(--card-sh), 0 10px 24px -14px oklch(0 0 0 / .35); }
.gz-choice:active, .gz-btn:active { transform: scale(.98); }
.gz-check .gz-ic { transition: opacity .15s, transform .15s; transform: scale(.6); } .gz-check.is-on .gz-ic { transform: none; }
[data-gz-pane-of]:not([hidden]) { animation: gz-fade .18s ease-out; }
@media (max-width: 760px) { .gz-modal.is-open .gz-modal__box { animation: gz-slide-b .28s cubic-bezier(.2,.7,.2,1); } }

/* ---------- 接入补充(2026-10-22,base.html 用) ---------- */
/* 头像菜单放在外壳之外:电脑从图标栏底部弹出,手机从顶条右上弹出(交付包里它在图标栏内,手机上图标栏隐藏会连菜单一起藏掉) */
.gz-user-menu { position: fixed; left: calc(var(--rail-w) - 12px); bottom: 14px; width: 272px; }
@media (max-width: 760px) { .gz-user-menu { left: auto; right: 8px; bottom: auto; top: 52px; width: min(272px, calc(100vw - 16px)); } }
/* iOS Safari 的 100vh 比可见区高,底部 Tab 会被工具栏挡住 */
@supports (height: 100dvh) { .gz-app { height: 100dvh; } }
.gz-mtabs { padding-bottom: max(24px, env(safe-area-inset-bottom)); }

/* 页宽(2026-10-22 用户定:不要大面积留白)。默认页 1200 是长文/表单页;列表、看板、卡片墙用 --wide,
   运维这类满屏数据页用 --full。窄内容不要靠留白撑页面,用右栏或网格把宽度用起来。 */
.gz-page--wide { max-width: 1680px; }
.gz-page--full { max-width: none; }

/* ---------- 合并补充(2026-10-22,各组提的通用规则) ---------- */
/* --gap 是继承属性:外层设 28px 会一路传进嵌套的 stack/inline。每层给自己的默认值,只认自己身上写的 --gap */
.gz-stack { --gap: 12px; }
.gz-inline { --gap: 8px; }
/* 原生单选/复选包在 choice / chip / seg 按钮里时的选中态 */
.gz-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 24px -10px var(--accent); }
.gz-chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
/* 缩略图里放真实封面 */
.gz-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* 已生效的筛选 */
.gz-filter.is-on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
/* 排队中的点(默认灰) */
.gz-dot--queue { background: var(--st-queue); }
/* 提交中:app.js 给按钮加 .is-loading */
.gz-btn.is-loading { pointer-events: none; opacity: .7; }
/* 带说明的禁用按钮:要能悬停看到 title 里的原因,但点不动 */
.gz-btn.is-disabled[title], .gz-menu__item.is-disabled[title] { pointer-events: auto; cursor: not-allowed; }
/* 默认页也放到 1680px(1920 宽屏下 1200px 两侧空出一大块,用户不要)。长文正文由 .gz-reader 的 --measure 控制行长 */
.gz-page { max-width: 1680px; }
/* 面包屑不折行(手机上「定稿台」曾被拆成两行) */
.gz-crumb { flex-wrap: nowrap; min-width: 0; }
.gz-crumb a, .gz-crumb > span { white-space: nowrap; }
.gz-crumb > span:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* 四席席位名在窄卡片里不折行(项目页采纳步、四席追问页共用) */
.pj-seat__head > b { white-space: nowrap; }
