/* 星界课件助手 · 老师端（新界面，2026-10）
   《教育导演论》：AI 负责知识，VR 负责空间，老师负责导演。
   深色、安静、有分量：世界的画面当主角，界面像一层薄玻璃浮在上面。
   只用 Chromium 108（Electron 22，Win7 能跑）支持的写法：不用 CSS 嵌套、color-mix()。 */

/* 标题用的宋体：思源宋体常用字子集（随软件分发，Windows 上也是同一套字；见 /shared/fonts/LICENSE-OFL.txt） */
@font-face { font-family: "XJ Serif"; src: url("/shared/fonts/xj-serif-600.woff2") format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "XJ Serif"; src: url("/shared/fonts/xj-serif-400.woff2") format("woff2"); font-weight: 100 499; font-display: swap; }

:root {
  --bg: #0b0b0c;
  --bg2: #121214;
  --bg3: #18181b;
  --panel: rgba(20, 20, 23, .64);
  --panel-solid: #17171a;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .15);
  --text: #f3efe7;
  --text2: rgba(243, 239, 231, .7);
  --text3: rgba(243, 239, 231, .45);
  --acc-rgb: 228, 190, 124;
  --gold: #e4be7c;
  --gold-hi: #efcd90;
  --gold-soft: rgba(var(--acc-rgb), .13);
  --gold-line: rgba(var(--acc-rgb), .4);
  --on-gold: #1b1409;
  --seal: #b5342b;
  --danger: #e2786b;
  --ok: #8cc0ab;
  --S: #86a3cf;
  --F: #e4be7c;
  --P: #8cc0ab;
  --T: #d7a0b5;
  --serif: "XJ Serif", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 20px;
  --r: 14px;
  --shadow: 0 40px 100px -30px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: 56px;
  --dock: 0px;
  /* 旧组件（乐谱核对、充值弹窗……）用的变量，换成深色 */
  --paper: #121214; --paper-2: #1b1b1f; --card: #17171a; --ink: #f3efe7; --ink-2: rgba(243, 239, 231, .7); --ink-3: rgba(243, 239, 231, .45);
  --red: #e2786b; --red-2: #ef8a7d; --red-soft: rgba(226, 120, 107, .14); --green: #8cc0ab; --green-soft: rgba(140, 192, 171, .14);
  --amber: #e4be7c; --amber-soft: rgba(var(--acc-rgb), .13); --blue: #86a3cf; --blue-soft: rgba(134, 163, 207, .14);
  --radius: 14px; --font: var(--sans);
  color-scheme: dark;
}

html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { color: var(--text); }
::selection { background: rgba(var(--acc-rgb), .35); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.ic { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
.ic svg { width: 100%; height: 100%; display: block; }
.serif { font-family: var(--serif); }
.muted { color: var(--text2); }
.faint { color: var(--text3); font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.hidden { display: none !important; }
.en { font-size: 10px; letter-spacing: .24em; color: var(--text3); text-transform: uppercase; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .26em; color: var(--gold); }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.empty { padding: 60px 20px; text-align: center; color: var(--text3); }

/* 星尘和顶上的光：很淡，只为了让黑不死板 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 14px 22px, rgba(255,255,255,.55) 50%, transparent 52%),
    radial-gradient(1px 1px at 160px 96px, rgba(255,255,255,.35) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 230px 180px, rgba(255,255,255,.4) 50%, transparent 52%),
    radial-gradient(1200px 700px at 78% -12%, rgba(var(--acc-rgb), .07), transparent 60%);
  background-size: 260px 260px, 340px 340px, 420px 420px, 100% 100%;
}
#view { position: relative; z-index: 1; padding-right: var(--dock); min-height: 100vh; }

/* —— 按钮、标签、输入框（覆盖 base.css） —— */
.btn {
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04);
  color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  transition: background .25s, border-color .25s, transform .2s var(--ease), box-shadow .25s, opacity .2s;
}
.btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn.primary, .btn.gold { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; }
.btn.primary:hover, .btn.gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); box-shadow: 0 10px 40px -10px rgba(var(--acc-rgb), .55); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text2); }
.btn.ghost:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.btn.small, .btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.big { height: 48px; padding: 0 26px; font-size: 15px; }
.btn.danger { color: var(--danger); border-color: rgba(226, 120, 107, .4); }
.btn .ic { width: 16px; height: 16px; }

.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; background: rgba(255, 255, 255, .06); color: var(--text2); white-space: nowrap; font-weight: 500; border: 1px solid transparent; }
.chip.red { background: var(--red-soft); color: var(--danger); }
.chip.green { background: var(--green-soft); color: var(--ok); }
.chip.amber { background: var(--gold-soft); color: var(--gold); }
.chip.blue { background: var(--blue-soft); color: var(--S); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.pill.line { border: 1px solid var(--line2); color: var(--text2); }
.glass { background: var(--panel); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); border: 1px solid var(--line2); }
.pill.glass { color: var(--text); }

input[type=text], input[type=password], input[type=tel], input[type=number], input:not([type]), textarea, select {
  width: 100%; background: rgba(0, 0, 0, .28); border: 1px solid var(--line2); border-radius: var(--r); color: var(--text); font: inherit; font-size: 15px;
  padding: 11px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:hover, textarea:hover, select:hover { border-color: rgba(255, 255, 255, .26); }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .14); }
input::placeholder, textarea::placeholder { color: rgba(243, 239, 231, .32); }
textarea { resize: vertical; min-height: 52px; line-height: 1.8; }
select option { background: #1b1b1f; }
label.field { display: block; margin: 0 0 14px; }
label.field > span, .label { display: block; font-size: 12px; color: var(--text3); margin: 0 0 7px; letter-spacing: .04em; font-weight: 400; }

.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: none; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 200; padding: 11px 18px; border-radius: 999px; font-size: 13px; background: rgba(28, 28, 32, .94);
  color: var(--text); border: 1px solid var(--line2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); max-width: min(90vw, 640px); }
.modal-back { position: fixed; inset: 0; background: rgba(5, 5, 6, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 150; padding: 16px; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px 30px; border-radius: 24px; background: rgba(24, 24, 27, .96); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.modal h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 8px; letter-spacing: .03em; }
.modal p { color: var(--text2); }
.modal .row:last-child { margin-top: 20px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.dropzone { border: 1.5px dashed var(--line2); border-radius: var(--r); padding: 14px; text-align: center; color: var(--text3); font-size: 13px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.dropzone:hover, .dropzone.over { border-color: var(--gold-line); background: rgba(var(--acc-rgb), .05); color: var(--text2); }
.banner { display: flex; gap: 14px; align-items: center; padding: 16px 20px; margin-bottom: 18px; border-radius: var(--r); background: var(--gold-soft); color: var(--text); border: 1px solid var(--gold-line); }
.banner.green { background: var(--green-soft); border-color: rgba(140,192,171,.35); }
.banner.red { background: var(--red-soft); border-color: rgba(226,120,107,.4); }
.banner.plain { background: rgba(255,255,255,.03); border-color: var(--line); }
.banner .grow { flex: 1; }
.md h1 { font-family: var(--serif); font-size: 20px; margin: 0 0 10px; } .md h2 { font-size: 16px; margin: 18px 0 6px; } .md ul { margin: 4px 0; padding-left: 20px; } .md p { margin: 6px 0; } .md li { margin: 3px 0; color: var(--text2); }
.md code { background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px; }

/* 节奏条：打开—聚焦—加工—转化 */
.rbar { display: flex; gap: 3px; height: 5px; }
.rbar i { display: block; height: 100%; border-radius: 999px; }
.rbar i.S, .dot.S { background: var(--S); }
.rbar i.F, .dot.F { background: var(--F); }
.rbar i.P, .dot.P { background: var(--P); }
.rbar i.T, .dot.T { background: var(--T); }
.rlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--text3); }
.rlegend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 2px; display: inline-block; flex: none; }
.view-in { animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* —— 顶栏 —— */
.xtop { position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 60; display: flex; align-items: center; gap: 24px; padding: 0 28px; border-bottom: 1px solid transparent; transition: background .4s, border-color .4s; }
.xtop.solid { background: rgba(11, 11, 12, .78); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand .mark { width: 22px; height: 22px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(var(--acc-rgb), .45)); }
.brand .name { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .14em; }
.brand .sub { font-size: 12px; color: var(--text3); letter-spacing: .1em; padding-left: 10px; border-left: 1px solid var(--line2); }
.xnav { display: flex; gap: 2px; }
.xnav a { padding: 8px 15px; border-radius: 999px; color: var(--text2); font-size: 14px; cursor: pointer; transition: color .2s, background .2s; }
.xnav a:hover { color: var(--text); }
.xnav a.on { color: var(--text); background: rgba(255, 255, 255, .08); }
.agent-toggle { position: relative; }
.agent-toggle.on { background: rgba(var(--acc-rgb), .12); border-color: var(--gold-line); color: var(--gold); }
.agent-toggle .live { position: absolute; top: 7px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .2); animation: pulse 1.2s ease-in-out infinite alternate; }
.credits { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; font-size: 13px; color: var(--text2); cursor: pointer; background: transparent; }
.credits b { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.credits .sub { padding: 0 7px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 11px; line-height: 18px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 14px; background: linear-gradient(135deg, #3b3a40, #1c1c20); border: 1px solid var(--line2); cursor: pointer; color: var(--text); }
.menu { position: fixed; top: 70px; right: 20px; z-index: 120; min-width: 220px; border-radius: 18px; padding: 8px; animation: rise .3s var(--ease) both; }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .who b { display: block; font-family: var(--serif); font-size: 15px; }
.menu .who span { font-size: 12px; color: var(--text3); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; border: 0; background: none; color: var(--text2); font-size: 14px; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.menu .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu .on-off { margin-left: auto; font-size: 12px; color: var(--text3); }

/* —— 世界库 —— */
.hero { position: relative; height: min(84vh, 760px); min-height: 560px; overflow: hidden; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
.hero .slide.on { opacity: 1; }
.hero .pano { position: absolute; top: 0; bottom: 0; left: 0; width: 150%; background-size: cover; background-position: center; animation: drift 80s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-33.33%, 0, 0); } }
.hero .shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11,11,12,.94) 0%, rgba(11,11,12,.62) 34%, rgba(11,11,12,.08) 66%, rgba(11,11,12,0) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(11,11,12,0) 32%),
  linear-gradient(180deg, rgba(11,11,12,.7) 0%, rgba(11,11,12,0) 16%); }
.hero .copy { position: absolute; left: var(--pad); bottom: 100px; width: min(620px, 52vw); }
.hero .copy .inner { animation: rise .9s var(--ease) both; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 4.3vw, 62px); line-height: 1.14; letter-spacing: .03em; margin: 18px 0 8px; }
.hero h1 .h1-sub { display: block; margin: .38em 0 0; font-size: .46em; font-weight: 400; color: var(--gold); letter-spacing: .24em; line-height: 1.4; }
.hero .tagline { font-family: var(--serif); font-size: 20px; color: var(--text2); margin: 0 0 16px; letter-spacing: .06em; }
.hero .lead { font-size: 15px; line-height: 1.9; color: var(--text2); margin: 0; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13px; color: var(--text3); }
.hero .rhythm { margin-top: 24px; max-width: 420px; }
.hero .rhythm .rlabel { display: flex; justify-content: space-between; font-size: 12px; color: var(--text3); margin-bottom: 9px; }
.hero .actions { display: flex; gap: 12px; margin-top: 28px; }
.hero .dots { position: absolute; right: var(--pad); bottom: 108px; display: flex; gap: 10px; align-items: center; }
.hero .dots button { width: 30px; height: 2px; padding: 0; border: 0; background: rgba(255,255,255,.25); cursor: pointer; transition: background .3s, width .3s; }
.hero .dots button.on { background: var(--gold); width: 46px; }
.hero .dots .lab { font-size: 12px; color: var(--text3); margin-right: 8px; letter-spacing: .08em; }
.hero.plain { height: auto; min-height: 0; padding: 120px var(--pad) 10px; }
.hero.plain h1 { margin-top: 12px; }

.filters { position: sticky; top: 64px; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 14px var(--pad) 18px; background: linear-gradient(var(--bg) 72%, rgba(11,11,12,0)); flex-wrap: nowrap; }
.fchip { height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--text2); font-size: 13px; cursor: pointer; transition: all .2s; white-space: nowrap; }
.fchip:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.fchip.on { background: var(--text); color: #121212; border-color: var(--text); }
.seg { display: flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); margin-right: 10px; }
.seg button { height: 30px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--text2); font-size: 13px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: rgba(255,255,255,.12); color: var(--text); }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 38px; width: 300px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--text3); background: rgba(255,255,255,.02); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 13px; padding: 0; box-shadow: none; }
.search input:focus { box-shadow: none; }

.section { position: relative; padding: 24px var(--pad) 10px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.section-head h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0; letter-spacing: .05em; }
.section-head p { margin: 0 0 0 auto; color: var(--text3); font-size: 13px; }
.grid-enter { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-present { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.wcard { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg2); border: 1px solid var(--line); cursor: pointer; transition: transform .6s var(--ease), border-color .3s, box-shadow .6s var(--ease); }
.wcard:hover { transform: translate3d(0, -4px, 0); border-color: var(--line2); box-shadow: var(--shadow); }
.wcard .img { aspect-ratio: 16 / 9; background: #1a1a1d center / cover no-repeat; transition: transform 1.4s var(--ease); }
.wcard:hover .img { transform: scale(1.05); }
.wcard .tag { position: absolute; top: 14px; left: 14px; }
.wcard .facts { font-size: 12px; color: var(--text3); display: flex; gap: 14px; flex-wrap: wrap; }
.wcard .price { margin-left: auto; font-size: 13px; color: var(--text2); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.wcard .price b { color: var(--gold); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.wcard .go { position: absolute; top: 16px; right: 16px; opacity: 0; transform: translate3d(-6px, 0, 0); transition: all .4s var(--ease); }
.wcard:hover .go { opacity: 1; transform: none; }
.wcard.enter { aspect-ratio: 16 / 9.4; }
.wcard.enter .img { position: absolute; inset: 0; aspect-ratio: auto; }
.wcard.enter .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,8,9,.94) 0%, rgba(8,8,9,.55) 38%, rgba(8,8,9,0) 66%); }
.wcard.enter .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 26px 22px; }
.wcard.enter h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 4px; letter-spacing: .03em; }
.wcard.enter .tl { font-family: var(--serif); font-size: 15px; color: var(--text2); margin: 0 0 14px; }
.wcard .row2 { display: flex; align-items: center; gap: 16px; }
.wcard.enter .row2 .rbar { flex: 1; max-width: 260px; }
.wcard.present .body { padding: 16px 18px 18px; }
.wcard.present .tag { top: 12px; left: 12px; }
.wcard.present h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 0 0 4px; letter-spacing: .02em; }
.wcard.present .tl { color: var(--text2); font-size: 13px; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.wcard.off { cursor: default; opacity: .6; }
.wcard.future { cursor: default; display: grid; place-items: center; text-align: center; padding: 34px; background: transparent; border: 1px dashed rgba(255,255,255,.16); min-height: 200px; }
.wcard.future:hover { transform: none; box-shadow: none; }
.wcard.future h3 { font-family: var(--serif); font-size: 20px; margin: 12px 0 8px; font-weight: 600; }
.wcard.future p { color: var(--text3); font-size: 13px; line-height: 1.8; margin: 0 auto; max-width: 420px; }
.foot-note { padding: 40px var(--pad) 120px; color: var(--text3); font-size: 12px; text-align: center; letter-spacing: .08em; }

/* —— 进入一个世界（全屏全景，拖动环顾）/ 翻页看模板 —— */
.overlay { position: fixed; inset: 0; z-index: 90; background: #000; animation: fadein .5s var(--ease) both; }
.pano-view { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; animation: zoomin 1.4s var(--ease) both; }
@keyframes zoomin { from { transform: scale(1.08); } to { transform: none; } }
.pano-view.grabbing { cursor: grabbing; }
.pano-strip { position: absolute; top: 0; bottom: 0; left: 0; display: flex; will-change: transform; }
.pano-tile { height: 100%; background-size: 100% 100%; flex: none; }
.overlay .vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 36%, rgba(0,0,0,0) 54%), linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 18%); }
.overlay .back { position: absolute; top: 22px; left: 24px; z-index: 3; }
.overlay .hint { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.62); display: flex; align-items: center; gap: 10px; pointer-events: none; }
.overlay .hint i { width: 36px; height: 1px; background: rgba(255,255,255,.4); }
.overlay .panel { position: absolute; left: 28px; right: 28px; bottom: 28px; border-radius: 24px; padding: 24px 28px; display: grid; grid-template-columns: minmax(260px, 1fr) 2fr auto; gap: 34px; align-items: end; animation: rise .9s .2s var(--ease) both; z-index: 2; }
.overlay .panel h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 12px 0 4px; letter-spacing: .03em; }
.overlay .panel .tl { font-family: var(--serif); color: var(--text2); font-size: 15px; margin: 0 0 12px; }
.overlay .panel .facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text3); }
.overlay .lab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.overlay .lab b { font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .1em; }
.ph-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.ph-col { border-top: 2px solid var(--c); padding-top: 10px; }
.ph-col .h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.ph-col .h b { font-family: var(--serif); font-size: 14px; }
.ph-col .h span { margin-left: auto; font-size: 11px; color: var(--text3); }
.ph-col ul { margin: 0; padding: 0; list-style: none; }
.ph-col li { font-size: 12.5px; color: var(--text2); line-height: 1.6; padding: 2px 0; }
.overlay .acts { display: flex; flex-direction: column; gap: 10px; }
.overlay .pages { position: absolute; inset: 70px 28px 300px; display: flex; flex-direction: column; gap: 12px; }
.overlay .pages .stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.overlay .pages .stage img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.overlay .pages .stage .nav { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(0,0,0,.45); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.overlay .pages .stage .nav.prev { left: 0; } .overlay .pages .stage .nav.next { right: 0; }
.overlay .pages .strip2 { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px; justify-content: center; }
.overlay .pages .strip2 img { height: 54px; border-radius: 5px; opacity: .45; cursor: pointer; border: 2px solid transparent; flex: none; }
.overlay .pages .strip2 img.on { opacity: 1; border-color: var(--gold); }
.overlay .vtabs { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.overlay .vtabs button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.35); color: rgba(255,255,255,.8); cursor: pointer; font-size: 13px; }
.overlay .vtabs button.on { background: #fff; color: #1d1c1a; border-color: #fff; }
.play { position: fixed; inset: 0; z-index: 140; background: #000; animation: fadein .35s both; }
.play iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.play .close { position: absolute; top: 16px; left: 16px; z-index: 2; }

/* —— 编排一节课 —— */
.compose { display: grid; grid-template-columns: minmax(340px, .8fr) 1.2fr; gap: 40px; padding: 96px var(--pad) 150px; }
.compose .left { position: sticky; top: 88px; align-self: start; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text3); margin-bottom: 16px; }
.crumb a { color: var(--text3); cursor: pointer; }
.crumb a:hover { color: var(--text); }
.crumb .ic { width: 14px; height: 14px; }
.world-panel { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.world-panel .img { position: relative; aspect-ratio: 16 / 10; background: #1a1a1d center / cover no-repeat; }
.world-panel .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,18,20,1) 0%, rgba(18,18,20,0) 50%); }
.world-panel .wlabel { position: absolute; left: 22px; bottom: 14px; z-index: 2; }
.world-panel .wlabel h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 8px 0 0; }
.world-panel .info { padding: 6px 22px 22px; }
.world-panel .info p { color: var(--text2); font-size: 13px; line-height: 1.8; margin: 0 0 14px; }
.director { margin-top: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); padding: 18px 20px 8px; background: rgba(255,255,255,.02); }
.director .head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.director .head h4 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 0; }
.director .head span { margin-left: auto; font-size: 12px; color: var(--text3); }
.director .say { font-size: 12.5px; color: var(--text3); line-height: 1.8; margin: 0 0 6px; }
.director .row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.director .row .st { margin-left: auto; font-size: 12px; color: var(--text3); display: inline-flex; align-items: center; gap: 6px; }
.director .row.done .st { color: var(--gold); }
.director .row .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; border: 1px solid var(--line2); color: var(--text3); }
.director .row.done .n { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.form-top { margin-bottom: 22px; }
.form-top h1 { font-family: var(--serif); font-size: 34px; font-weight: 600; margin: 12px 0 6px; letter-spacing: .04em; }
.form-top p { margin: 0; color: var(--text3); font-size: 14px; }
.topic-row { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 12px; margin-bottom: 12px; }
.draft-bar { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 14px 16px; border-radius: var(--r); border: 1px dashed var(--line2); color: var(--text2); font-size: 13px; }
.draft-bar.busy { border-color: var(--gold-line); color: var(--gold); }
.materials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mat { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 13px; }
.mat small { color: var(--P); font-size: 12px; }
.mat.add { border-style: dashed; color: var(--text2); cursor: pointer; }
.mat.add:hover { color: var(--text); border-color: var(--line2); }
.mat .x { cursor: pointer; color: var(--text3); }
.mat-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.mat-role { border: 1px dashed var(--line2); border-radius: var(--r); padding: 12px 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.mat-role:hover, .mat-role.over { border-color: var(--gold-line); background: rgba(var(--acc-rgb), .04); }
.mat-role b { font-size: 13.5px; font-weight: 500; }
.mat-role .faint { display: block; margin-top: 2px; }
.mat-role .files { font-size: 12px; color: var(--P); margin-top: 6px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text2); margin-top: 12px; cursor: pointer; }
.check-row input { width: auto; }

.steps { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.gstep { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255,255,255,.022); padding: 22px 24px 22px 76px; transition: border-color .3s, background .3s; }
.gstep:hover { border-color: var(--line2); }
.gstep .letter { position: absolute; left: 22px; top: 20px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-family: var(--serif); font-size: 17px; border: 1px solid var(--line2); color: var(--text2); }
.gstep.owned { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(var(--acc-rgb), .06), rgba(var(--acc-rgb), .015)); }
.gstep.owned .letter { border-color: var(--gold-line); color: var(--gold); }
.gstep .top-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gstep h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0; letter-spacing: .04em; }
.gstep .q { color: var(--text3); font-size: 13px; margin: 4px 0 14px; line-height: 1.7; }
.gstep .area.big, .area.big { font-family: var(--serif); font-size: 17px; }
.own { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; letter-spacing: .04em; white-space: nowrap; }
.own .ic { width: 13px; height: 13px; }
.own.ai { background: rgba(255,255,255,.05); color: var(--text3); border: 1px solid var(--line2); }
.own.mine { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.own.need { background: transparent; color: var(--T); border: 1px dashed rgba(215,160,181,.55); }
.draft-line { margin-top: 10px; font-size: 12.5px; color: var(--text3); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.draft-line s { text-decoration-color: rgba(255,255,255,.25); }
.link { color: var(--text2); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; background: none; border: 0; padding: 0; font-size: 12.5px; }
.link:hover { color: var(--text); }
.scenes { display: flex; flex-wrap: wrap; gap: 8px; }
.scene-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); font-size: 14px; }
.scene-chip input { width: 9em; padding: 0; border: 0; background: none; box-shadow: none; font-size: 14px; }
.scene-chip input:focus { box-shadow: none; }
.scene-chip .x { color: var(--text3); cursor: pointer; padding: 4px; }
.scene-chip.add { border-style: dashed; color: var(--text3); cursor: pointer; padding: 0 14px; }
.tasks { border-top: 1px solid var(--line); }
.task { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.task .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.task input { padding: 2px 0; border: 0; background: none; box-shadow: none; font-size: 14.5px; }
.task input.sub { font-size: 12.5px; color: var(--text3); }
.task input:focus { box-shadow: none; }
.task .x { color: var(--text3); cursor: pointer; padding: 4px; }
.seal { width: 34px; height: 34px; border-radius: 7px; flex: none; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; background: var(--seal); color: #fff4e7; box-shadow: inset 0 0 0 2px rgba(255,255,255,.14); transform: rotate(-4deg); }
.seal.plain { background: transparent; color: var(--text2); border: 1px solid var(--line2); box-shadow: none; transform: none; font-size: 14px; }
.focus-q { margin-top: 16px; border-radius: var(--r); border: 1px solid var(--gold-line); background: rgba(var(--acc-rgb), .05); padding: 14px 16px 16px; }
.focus-q .top-line { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.focus-q .top-line b { font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .06em; }
.ops { display: flex; flex-wrap: wrap; gap: 8px; }
.op { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(140,192,171,.4); color: #d4ebe2; background: rgba(140,192,171,.1); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.suggest button { min-height: 34px; padding: 6px 14px; border-radius: 999px; border: 1px dashed var(--line2); background: transparent; color: var(--text2); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.suggest button:hover { color: var(--text); border-color: rgba(255,255,255,.35); }
.suggest .ic { width: 14px; height: 14px; }
.nudge { margin-top: 12px; font-size: 12.5px; color: var(--text3); display: flex; gap: 8px; align-items: center; }
.nudge .ic { width: 14px; height: 14px; color: var(--gold); }
.skel { display: inline-block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.bottombar { position: fixed; left: 0; right: var(--dock); bottom: 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 16px var(--pad); background: rgba(11,11,12,.84); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); animation: barin .5s var(--ease) both; }
.bottombar .sum { font-size: 13px; color: var(--text3); display: flex; gap: 18px; flex-wrap: wrap; }
.bottombar .sum b { color: var(--text); font-weight: 500; }
.bottombar .sum .gold { color: var(--gold); }

/* —— 一节课：剧本 —— */
.lesson { padding: 92px 40px 100px; }
.l-head { display: flex; align-items: flex-end; gap: 24px; margin: 6px 16px 22px; flex-wrap: wrap; }
.l-head h1 { font-family: var(--serif); font-size: 38px; font-weight: 600; margin: 10px 0 8px; letter-spacing: .04em; }
.l-head .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text3); align-items: center; }
.l-head .acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 16px 20px; }
.note { border-radius: var(--r-lg); padding: 16px 18px 18px; border: 1px solid var(--line); background: rgba(255,255,255,.022); cursor: text; transition: border-color .2s; }
.note:hover { border-color: var(--line2); }
.note.owned { border-color: var(--gold-line); }
.note.blank { border-style: dashed; }
.note .k { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text3); letter-spacing: .1em; }
.note .k .own { margin-left: auto; }
.note p { font-family: var(--serif); font-size: 17px; line-height: 1.7; margin: 8px 0 0; }
.note.blank p { color: var(--text3); font-family: var(--sans); font-size: 14px; }
.note textarea { margin-top: 8px; font-family: var(--serif); font-size: 16px; }
.ltabs { display: flex; gap: 4px; margin: 0 16px 18px; border-bottom: 1px solid var(--line); }
.ltabs button { border: 0; background: none; padding: 10px 14px 12px; cursor: pointer; color: var(--text3); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.ltabs button:hover { color: var(--text); }
.ltabs button.on { color: var(--text); border-bottom-color: var(--gold); }
.ltabs .n { min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 9px; background: var(--seal); color: #fff; font-size: 11px; text-align: center; }
.lbody { margin: 0 16px; }

.timeline { border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); padding: 20px 22px 16px; }
.tl-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tl-head b { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .08em; }
.tl-head span { font-size: 12px; color: var(--text3); }
.tl-head .rlegend { margin: 0 0 0 auto; }
.band { position: relative; height: 128px; }
.band .curve { position: absolute; inset: 0; }
.band .curve svg { width: 100%; height: 100%; overflow: visible; display: block; }
.band .ph { position: absolute; bottom: 0; height: 44px; border-left: 1px solid var(--line); padding: 0 0 0 10px; white-space: nowrap; overflow: hidden; }
.band .ph:first-of-type { border-left: 0; padding-left: 0; }
.band .ph b { font-family: var(--serif); font-size: 15px; font-weight: 600; }
.band .ph .en { margin-left: 6px; }
.band .ph.narrow .en { display: none; }
.band .ph .m { display: block; font-size: 11.5px; color: var(--text3); margin-top: 3px; }
.band .tick { position: absolute; bottom: 52px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--c); cursor: pointer; transition: transform .2s, background .2s; z-index: 2; padding: 0; }
.band .tick:hover { transform: scale(1.4); }
.band .tick.on { background: var(--c); transform: scale(1.5); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.band .mk { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text2); white-space: nowrap; pointer-events: none; z-index: 3; }
.band .mk .sym { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font-size: 12px; font-weight: 700; transform: rotate(45deg); }
.band .mk .sym span { transform: rotate(-45deg); }
.band .mk.unset .sym { background: transparent; border: 1.5px dashed var(--gold); color: var(--gold); }
.band .mk.pause .sym { background: transparent; border: 1.5px solid var(--P); color: var(--P); transform: none; border-radius: 50%; }
.band .mk .stem { width: 1px; height: 26px; background: linear-gradient(var(--gold-line), rgba(var(--acc-rgb), 0)); }
.band .mk.pause .stem { background: linear-gradient(rgba(140,192,171,.5), rgba(140,192,171,0)); }
.strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; margin-top: 16px; scroll-behavior: smooth; }
.group { display: flex; flex-direction: column; gap: 8px; flex: none; }
.group .gh { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text3); padding-left: 2px; white-space: nowrap; }
.group .gh b { color: var(--text2); font-weight: 500; }
.group .row { display: flex; gap: 8px; }
.thumb { position: relative; width: 160px; aspect-ratio: 16 / 9; border-radius: 10px; background: #1b1b1f center / cover no-repeat; cursor: pointer; opacity: .62; box-shadow: 0 0 0 1px var(--line); transition: opacity .25s, transform .3s var(--ease), box-shadow .25s; flex: none; display: flex; align-items: flex-end; padding: 6px 8px; font-size: 11px; color: var(--text2); overflow: hidden; }
.thumb.noimg { background: rgba(255,255,255,.03); opacity: .8; }
.thumb:hover { opacity: 1; transform: translate3d(0, -2px, 0); }
.thumb.on { opacity: 1; box-shadow: 0 0 0 2px var(--gold), 0 14px 30px -12px rgba(0,0,0,.8); }
.thumb .no { position: absolute; left: 7px; top: 6px; font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.55); color: rgba(255,255,255,.85); }
.thumb .flag { position: absolute; right: 7px; top: 7px; width: 14px; height: 14px; border-radius: 3px; transform: rotate(45deg); background: var(--gold); }
.thumb .flag.pause { transform: none; border-radius: 50%; background: transparent; border: 1.5px solid var(--P); }
.thumb::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--c); opacity: .75; }
.detail { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; margin-top: 26px; align-items: start; }
.shot { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: var(--shadow); border: 1px solid var(--line); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: fadein .45s both; cursor: zoom-in; }
.shot .none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text3); font-size: 13px; }
.shot .nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(0,0,0,.45); color: var(--text); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .3s; }
.shot:hover .nav { opacity: 1; }
.shot .nav.prev { left: 14px; } .shot .nav.next { right: 14px; }
.info .ph-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text2); letter-spacing: .08em; }
.info h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 10px 0 16px; letter-spacing: .03em; }
.blk { padding: 14px 0; border-top: 1px solid var(--line); }
.blk .k { font-size: 12px; color: var(--text3); letter-spacing: .1em; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.dline { display: flex; gap: 10px; font-size: 15px; line-height: 1.8; margin: 2px 0; }
.dline b { flex: none; color: var(--text2); font-weight: 500; min-width: 2.6em; }
.dline span { font-family: var(--serif); }
.tip { border-radius: var(--r); border: 1px solid var(--gold-line); background: rgba(var(--acc-rgb), .06); padding: 14px 16px; font-size: 14px; line-height: 1.8; margin-top: 4px; }
.tip .k { color: var(--gold); display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .08em; margin-bottom: 4px; }
.tip .k .ic { width: 14px; height: 14px; }
.edit-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lower { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; margin-top: 28px; }
.check { border-radius: var(--r-lg); border: 1px solid var(--line); padding: 18px 20px; background: rgba(255,255,255,.02); }
.check h4, .later h4 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.check .sub, .later .sub { font-size: 12.5px; color: var(--text3); margin: 0 0 10px; }
.check ul { margin: 0; padding: 0; }
.check li { list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.75; color: var(--text2); }
.check li .st { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; }
.check li .st.ok { background: rgba(140,192,171,.16); color: var(--P); }
.check li .st.warn { background: rgba(var(--acc-rgb), .16); color: var(--gold); font-size: 12px; font-weight: 700; }
.check li .st .ic { width: 12px; height: 12px; }
.later { border-radius: var(--r-lg); border: 1px dashed rgba(255,255,255,.16); padding: 18px 20px; display: flex; flex-direction: column; }
.later .trace { flex: 1; min-height: 92px; margin-top: 10px; }

/* 逐页改（PPT、希沃）：在剧本的细节里 */
.ped .tf { margin-bottom: 12px; }
.ped .tf .lab { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text3); margin-bottom: 6px; }
.ped .tf .cnt { margin-left: auto; font-size: 12px; color: var(--text3); }
.ped .tf .cnt.over { color: var(--danger); font-weight: 600; }
.ped .tf textarea { min-height: 44px; font-size: 14.5px; padding: 9px 12px; }
.ped .tf .orig { font-size: 12px; color: var(--text3); margin-top: 4px; }
.ped .imf { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.ped .imf .ph { border-radius: 10px; border: 1px solid var(--line); background: #1b1b1f center / contain no-repeat; aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--text3); font-size: 12px; }
.ped .imf textarea { font-size: 13.5px; min-height: 64px; padding: 8px 10px; }
.savebar { position: sticky; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 18px; z-index: 4; margin-top: 14px; }
.savebar .grow { flex: 1; font-size: 13.5px; }

/* 准备素材、制作中 */
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.role { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.role .head { display: flex; align-items: center; gap: 8px; }
.role .head h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 0; }
.role .hint { font-size: 13px; color: var(--text3); margin-top: -6px; }
.item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.item .thumb2 { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: #1b1b1f; flex: none; cursor: zoom-in; }
.item .icon { width: 60px; height: 60px; border-radius: 8px; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.item .info { flex: 1; min-width: 0; }
.item .name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item audio { width: 100%; height: 30px; margin-top: 4px; }
.item .ops { display: flex; flex-direction: column; gap: 4px; }
.item select { width: auto; padding: 3px 8px; font-size: 12px; }
.cands { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.cands .lbl { font-size: 12px; color: var(--text3); }
.prog { border-radius: 24px; padding: 26px 28px; max-width: 760px; }
.prog h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.prog .sub { color: var(--text3); font-size: 13px; margin: 0 0 18px; }
.prog ul { margin: 0; padding: 0; }
.prog li { list-style: none; display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 14px; color: var(--text3); border-top: 1px solid var(--line); }
.prog li .n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 11px; flex: none; }
.prog li .t { flex: 1; }
.prog li.on { color: var(--text); }
.prog li.on .n { border-color: var(--gold); color: var(--gold); animation: pulse 1s ease-in-out infinite alternate; }
.prog li.done { color: var(--text2); }
.prog li.done .n { background: var(--gold); border-color: var(--gold); color: var(--on-gold); animation: none; }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(var(--acc-rgb), .4); } to { box-shadow: 0 0 0 6px rgba(var(--acc-rgb), 0); } }
.bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 2px; transition: width .4s; }
.log { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--text3); background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; margin-top: 16px; max-width: 760px; }
.files { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; max-width: 760px; }
.files a.file { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--text); }
.files a.file:hover { border-color: var(--line2); }
.files .file .ext { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; background: #55524c; flex: none; letter-spacing: .03em; }
.files .file .ext.enbx { background: #2e7d5b; } .files .file .ext.pptx { background: #c4532c; } .files .file .ext.zip { background: #6c5a9c; }
.files .file .grow { flex: 1; min-width: 0; }
.files .file .chip { cursor: pointer; height: 30px; padding: 0 12px; }
.files .file .chip.go { background: var(--gold); color: var(--on-gold); }
.report { padding: 22px 26px; max-width: 860px; }

/* —— 我的课 —— */
.page { padding: 104px var(--pad) 120px; }
.page h1 { font-family: var(--serif); font-size: 36px; font-weight: 600; margin: 12px 0 6px; letter-spacing: .04em; }
.page > p { color: var(--text3); margin: 0 0 28px; font-size: 14px; }
.state-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text3); }
.state-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--text3); }
.state-dot.done i { background: var(--ok); } .state-dot.running i, .state-dot.queued i { background: var(--gold); animation: pulse 1s infinite alternate; } .state-dot.failed i, .state-dot.stopped i { background: var(--danger); }

/* —— 助手：智能体侧边栏 —— */
.agent { position: fixed; top: 76px; right: 14px; bottom: 14px; width: 384px; z-index: 70; border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; animation: slidein .45s var(--ease) both; }
@keyframes slidein { from { opacity: 0; transform: translate3d(24px, 0, 0); } to { opacity: 1; transform: none; } }
.agent .ah { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px 18px; border-bottom: 1px solid var(--line); }
.agent .ah .mark { width: 20px; height: 20px; color: var(--gold); }
.agent .ah b { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .06em; }
.agent .state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text3); }
.agent .state i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.agent .state.busy { color: var(--gold); }
.agent .state.busy i { background: var(--gold); animation: pulse 1s ease-in-out infinite alternate; }
.agent .ctx { margin: 10px 16px 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text3); }
.agent .ctx .pill { display: block; min-width: 0; line-height: 24px; overflow: hidden; text-overflow: ellipsis; }
.agent .body { flex: 1; overflow-y: auto; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.agent .hello { padding: 18px 4px 6px; }
.agent .hello h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 8px; letter-spacing: .04em; }
.agent .hello p { color: var(--text2); font-size: 13.5px; line-height: 1.8; margin: 0 0 6px; }
.task-card { border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.025); overflow: hidden; }
.task-card .ask { padding: 12px 14px; font-size: 14px; line-height: 1.7; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.task-card .ask .who { flex: none; font-size: 11px; color: var(--text3); letter-spacing: .1em; padding-top: 3px; }
.task-card .ask .t { font-family: var(--serif); }
.task-card .plan { padding: 10px 14px 6px; border-bottom: 1px solid var(--line); }
.task-card .plan .k, .task-card .steps-k { font-size: 11px; color: var(--text3); letter-spacing: .14em; margin-bottom: 6px; }
.todo { display: flex; align-items: flex-start; gap: 9px; padding: 3px 0; font-size: 13px; color: var(--text2); line-height: 1.6; }
.todo .box { flex: none; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--line2); margin-top: 3px; display: grid; place-items: center; }
.todo.completed { color: var(--text3); }
.todo.completed .t { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.2); }
.todo.completed .box { background: var(--ok); border-color: var(--ok); color: #0b0b0c; }
.todo.completed .box .ic { width: 11px; height: 11px; }
.todo.in_progress { color: var(--text); }
.todo.in_progress .box { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .15); }
.task-card .stepsl { padding: 8px 14px 4px; }
.astep { display: flex; gap: 10px; padding: 6px 0; font-size: 13px; }
.astep .st { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.astep .st.run { border: 1.5px solid var(--gold); border-top-color: transparent; animation: spin .8s linear infinite; }
.astep .st.ok { background: rgba(140,192,171,.16); color: var(--ok); }
.astep .st.bad { background: rgba(226,120,107,.16); color: var(--danger); font-size: 11px; font-weight: 700; }
.astep .st .ic { width: 11px; height: 11px; }
.astep .tx { flex: 1; min-width: 0; }
.astep .tt { color: var(--text2); }
.astep .dt { color: var(--text3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.astep .rs { color: var(--text3); font-size: 12px; margin-top: 2px; line-height: 1.6; }
.more-steps { font-size: 12px; color: var(--text3); background: none; border: 0; cursor: pointer; padding: 4px 0; }
.task-card .say { padding: 12px 14px; font-size: 14px; line-height: 1.85; color: var(--text); white-space: pre-wrap; word-break: break-word; border-top: 1px solid var(--line); }
.task-card .say.first { border-top: 0; }
.task-card .err { padding: 10px 14px; font-size: 13px; color: var(--danger); background: var(--red-soft); }
.task-card .foot { padding: 8px 14px 10px; font-size: 12px; color: var(--text3); display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.task-card .foot .spinner { width: 12px; height: 12px; border-width: 1.5px; }
.acard { margin: 10px 14px 12px; border-radius: 14px; border: 1px solid var(--gold-line); background: rgba(var(--acc-rgb), .05); padding: 12px 14px; }
.acard .t { font-family: var(--serif); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.acard .x { font-size: 13px; color: var(--text2); line-height: 1.7; }
.acard .fields { margin: 8px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.acard .fields div { font-size: 13px; line-height: 1.7; }
.acard .fields b { color: var(--text3); font-weight: 400; margin-right: 6px; font-size: 12px; }
.acard .acts2 { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.acard .w { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.acard .w:first-of-type { border-top: 0; }
.acard .w .img { width: 72px; aspect-ratio: 16 / 9; border-radius: 8px; background: #1b1b1f center / cover; flex: none; }
.acard .w .n { font-size: 13.5px; font-weight: 500; }
.acard .w .why { font-size: 12px; color: var(--text3); }
.acard.done { border-color: var(--line); background: rgba(255,255,255,.02); }
.agent .foot2 { border-top: 1px solid var(--line); padding: 10px 12px 12px; }
.agent .quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.agent .quick button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--text2); font-size: 12.5px; cursor: pointer; }
.agent .quick button:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.agent form { display: flex; gap: 8px; align-items: flex-end; }
.agent textarea { min-height: 44px; max-height: 140px; height: 44px; resize: none; font-size: 14px; padding: 10px 14px; border-radius: 16px; line-height: 1.6; }
.agent .send { width: 44px; height: 44px; padding: 0; flex: none; }
.agent .stop { height: 44px; flex: none; }

/* —— 旧组件换深色：翻页预览、乐谱核对、登录、设置 —— */
.viewer { position: fixed; inset: 0; z-index: 140; background: rgba(6,6,7,.97); display: flex; flex-direction: column; color: #fff; }
.viewer .vtop { display: flex; align-items: center; gap: 12px; padding: 14px 20px; font-size: 14px; }
.viewer .vtop .t { flex: 1; opacity: .85; font-family: var(--serif); }
.viewer .vbtn { background: rgba(255,255,255,.1); border: 1px solid var(--line2); color: #fff; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.viewer .vstage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 76px; position: relative; }
.viewer .vstage img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.viewer .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255,255,255,.08); color: #fff; font-size: 22px; cursor: pointer; }
.viewer .nav.prev { left: 16px; } .viewer .nav.next { right: 16px; }
.viewer .vstrip { display: flex; gap: 8px; padding: 12px 20px 18px; overflow-x: auto; }
.viewer .vstrip img { height: 60px; border-radius: 5px; opacity: .45; cursor: pointer; border: 2px solid transparent; flex: none; }
.viewer .vstrip img.on { opacity: 1; border-color: var(--gold); }
.lightbox { position: fixed; inset: 0; background: rgba(6,6,7,.92); display: flex; align-items: center; justify-content: center; z-index: 160; cursor: zoom-out; padding: 30px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.score-ed .banner { position: sticky; top: 72px; z-index: 5; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.srow { padding: 12px 14px; margin-bottom: 14px; }
.srow img.orig { width: 100%; display: block; border-radius: 6px; background: #fff; }
.sbars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sbar { border: 1px solid var(--line2); border-radius: 8px; padding: 4px 8px 6px; cursor: pointer; background: rgba(255,255,255,.03); min-width: 64px; transition: border-color .15s, box-shadow .15s; }
.sbar:hover { border-color: rgba(255,255,255,.35); }
.sbar.flag { border-color: var(--danger); background: var(--red-soft); }
.sbar.fixed { border-color: var(--ok); }
.sbar.on { box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .25); border-color: var(--gold); }
.sbar .no { font-size: 11px; color: var(--text3); }
.sbar.flag .no { color: var(--danger); font-weight: 600; }
.sbar.fixed .no { color: var(--ok); font-weight: 600; }
.sbar .notes, .echips { display: flex; align-items: flex-start; gap: 3px; }
.sbar .words { display: flex; gap: 3px; font-size: 12px; min-height: 16px; }
.sbar .words .w { min-width: 15px; text-align: center; }
.sbar .words.v2 { color: var(--text3); }
.jn { display: inline-flex; flex-direction: column; align-items: center; min-width: 15px; font-family: "Times New Roman", serif; position: relative; }
.jn .hi, .jn .lo { font-size: 8px; line-height: 7px; height: 7px; letter-spacing: -1px; }
.jn .dg { font-size: 18px; line-height: 20px; font-weight: 600; }
.jn .dg .dt { font-style: normal; margin-left: 1px; }
.jn .dg .ac { font-style: normal; font-size: .7em; vertical-align: .45em; margin-right: 1px; }
.jn .ul { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.jn .ul b { display: block; height: 1.5px; background: var(--text); width: 100%; }
.jn .dash { position: absolute; left: 100%; top: 7px; font-size: 16px; white-space: pre; }
.jn.slur .dg { color: var(--S); }
.jn.sel { background: rgba(var(--acc-rgb), .2); border-radius: 4px; }
.seditor { border-top: 1px dashed var(--line2); margin-top: 12px; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.ehead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.echips { flex-wrap: wrap; gap: 8px; padding: 8px; background: rgba(255,255,255,.03); border-radius: 10px; }
.ecol { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; border-radius: 8px; cursor: pointer; }
.ecol.on { background: rgba(var(--acc-rgb), .14); }
.ecol .jn .dg { font-size: 24px; line-height: 28px; }
.ecol input.lyr { width: 48px; padding: 3px 4px; text-align: center; font-size: 14px; }
.ecol input.lyr.v2 { color: var(--text3); }
.ecol .lyr-none { font-size: 11px; color: var(--text3); height: 28px; line-height: 28px; }
.ectl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ectl .lbl { font-size: 12px; color: var(--text3); margin: 0 2px 0 8px; }
.ectl .lbl:first-child { margin-left: 0; }
body.logged-out .xnav, body.logged-out .xtop .right { display: none; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 80px 16px; position: relative; z-index: 1; }
.login { width: 420px; max-width: 100%; padding: 36px 34px; display: flex; flex-direction: column; gap: 12px; border-radius: 24px; background: rgba(20,20,23,.8); border: 1px solid var(--line2); box-shadow: var(--shadow); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.login-tabs { display: flex; gap: 4px; background: rgba(255,255,255,.05); padding: 4px; border-radius: 999px; }
.login-tabs button { flex: 1; border: 0; background: none; padding: 8px 0; cursor: pointer; color: var(--text2); border-radius: 999px; font-size: 14px; }
.login-tabs button.on { background: rgba(255,255,255,.12); color: var(--text); }
.login .hidden { display: none; }
.login input { height: 46px; }
.login .btn.big { width: 100%; margin-top: 4px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.settings { max-width: 680px; padding: 26px 28px; }
.settings h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.settings h3 { font-size: 15px; }
.settings-grid .kv { display: grid; grid-template-columns: 70px 1fr; gap: 6px 12px; font-size: 14px; }
.settings-grid .kv .k { color: var(--text3); }
.keyrow { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
table.list.small { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list.small td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
table.list.small td.neg { color: var(--danger); text-align: right; font-weight: 600; }
table.list.small td.pos { color: var(--ok); text-align: right; font-weight: 600; }
.local-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; margin-top: 12px; }
.local-list .item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; }
.local-list .info { flex: 1; min-width: 0; }
.local-list .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps-help { counter-reset: s; display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps-help li { counter-increment: s; display: flex; gap: 16px; align-items: flex-start; }
.steps-help li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold-line); color: var(--gold); font-family: var(--serif); font-size: 14px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.steps-help b { font-family: var(--serif); font-size: 16px; }

/* —— 老电脑模式：关掉模糊和大动画，保证 Win7 / 希沃一体机不卡 —— */
html.lite .glass, html.lite .xtop.solid, html.lite .bottombar, html.lite .modal-back, html.lite .agent, html.lite .login, html.lite .score-ed .banner { backdrop-filter: none; -webkit-backdrop-filter: none; }
html.lite .glass, html.lite .agent { background: rgba(24, 24, 27, .98); }
html.lite .xtop.solid { background: rgba(11, 11, 12, .98); }
html.lite .bottombar { background: rgba(11, 11, 12, .98); }
html.lite .modal-back { background: rgba(5, 5, 6, .85); }
html.lite .hero .pano, html.lite .pano-view { animation: none; }
html.lite .view-in, html.lite .overlay .panel, html.lite .hero .copy .inner, html.lite .agent, html.lite .toast { animation: none; }
html.lite .wcard, html.lite .wcard .img, html.lite .thumb, html.lite .hero .slide { transition: none; }
html.lite .wcard:hover { transform: none; box-shadow: none; }
html.lite .wcard:hover .img { transform: none; }
html.lite body::before { display: none; }
@media (prefers-reduced-motion: reduce) { .hero .pano, .pano-view, .view-in { animation: none; } }

/* —— 窄一点的窗口（老师笔记本常见 1366×768） —— */
@media (max-width: 1360px) {
  :root { --pad: 40px; }
  .grid-present { grid-template-columns: repeat(3, 1fr); }
  .overlay .panel { grid-template-columns: 1fr 1.6fr; }
  .overlay .acts { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
}
@media (max-width: 1180px) {
  .compose { grid-template-columns: 1fr; }
  .compose .left { position: static; display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
  .compose .left .crumb { grid-column: 1 / -1; margin-bottom: 0; }
  .compose .left .director { margin-top: 0; }
  .compose .world-panel .img { aspect-ratio: 16 / 8; }
  .detail { grid-template-columns: 1.2fr 1fr; gap: 22px; }
  .grid-lessons { grid-template-columns: repeat(2, 1fr); }
  .search { width: 220px; }
}
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .compose .left { grid-template-columns: 1fr; }
  .detail, .lower, .notes { grid-template-columns: 1fr; }
  .filters { flex-wrap: wrap; }
  .filters .search { width: 100%; margin-left: 0; order: 3; }
  .grid-enter, .grid-present, .grid-lessons { grid-template-columns: 1fr; }
  .hero .copy { width: auto; right: var(--pad); }
  .hero .shade { background: linear-gradient(90deg, rgba(11,11,12,.9) 0%, rgba(11,11,12,.72) 55%, rgba(11,11,12,.4) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(11,11,12,0) 45%); }
  .overlay .panel { grid-template-columns: 1fr; }
  .xnav, .brand .sub { display: none; }
  .agent { left: 10px; right: 10px; width: auto; }
  .settings-grid { grid-template-columns: 1fr; }
}

.say.md p { margin: 4px 0; } .say.md ul { margin: 4px 0; padding-left: 18px; } .say.md h1, .say.md h2, .say.md h3 { font-size: 14px; margin: 6px 0 2px; font-family: var(--sans); }
.task-card .say.md { white-space: normal; }
.overlay .panel h2 + .tl:empty { display: none; }


/* ———————————————— 精修（2026-10-14 晚）：更顺、更稳、更精致 ———————————————— */
/* 字：标题宋体收紧标点（palt），正文黑体留足行距；数字等宽 */
h1, h2, h3, h4, .serif, .note p, .dline span, .tagline, .tl { font-feature-settings: "palt" 1, "kern" 1; }
.hero h1, .l-head h1, .form-top h1, .page h1 { letter-spacing: .02em; }
.facts, .rlegend, .credits b, .thumb .no, .faint { font-variant-numeric: tabular-nums; }
@keyframes barin { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }

/* 顶上一条细细的进度条：换页、读数据时代替转圈 */
.loadbar { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 300; background: linear-gradient(90deg, rgba(var(--acc-rgb), 0), var(--gold)); box-shadow: 0 0 12px rgba(var(--acc-rgb), .6); opacity: 0; transition: width .5s var(--ease), opacity .3s; pointer-events: none; }
.loadbar.on { opacity: 1; }

/* 图片：读完再淡入，不“啪”地跳出来 */
.bgfade { transition: opacity .6s var(--ease), transform 1.4s var(--ease); opacity: 0; }
.bgfade.ready { opacity: 1; }
.fade-img { opacity: 0; transition: opacity .45s var(--ease); }
.fade-img.ready { opacity: 1; }

/* 换页：新页面轻轻浮上来；旧页面不闪 */
.view-in { animation: rise .5s var(--ease) both; }
.page-out { opacity: .35; transition: opacity .2s; pointer-events: none; }

/* 世界库卡片：同一行一样高、标题一行、底部对齐 */
.grid-present .wcard.present { display: flex; flex-direction: column; }
.wcard.present .body { flex: 1; display: flex; flex-direction: column; }
.wcard.present h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcard.present .row2 { margin-top: auto; }
.wcard.enter h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcard.enter .tl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcard { will-change: transform; }
.wcard:hover { transform: translate3d(0, -3px, 0); }
.wcard:active { transform: translate3d(0, -1px, 0) scale(.995); transition-duration: .15s; }
.hero .lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 34em; }

/* 全景层、侧边栏：离开时也有过渡 */
.overlay.leaving { animation: xjFadeOut .28s ease both; pointer-events: none; }
.overlay.leaving .panel { animation: sinkout .28s ease both; }
@keyframes sinkout { to { opacity: 0; transform: translate3d(0, 14px, 0); } }
.agent { will-change: transform, opacity; }
.agent.leaving { animation: slideout .26s ease both; pointer-events: none; }
@keyframes slideout { to { opacity: 0; transform: translate3d(24px, 0, 0); } }

/* 助手：新的一件事、新的一步淡入；有新内容但你在往上翻时给个“回到最新” */
.task-card.enter { animation: rise .45s var(--ease) both; }
.astep.enter, .todo.enter, .acard.enter, .say.enter { animation: stepin .4s var(--ease) both; }
@keyframes stepin { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }
.agent .foot2 { position: relative; }
.agent .newer { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); margin: 0 auto; width: max-content; z-index: 3; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--gold-line); background: rgba(28, 24, 18, .95); color: var(--gold); font-size: 12px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.35); animation: stepin .3s var(--ease) both; }
.agent .newer:hover { background: rgba(40, 33, 22, .98); }
.agent .typing-dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.agent .typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: dot 1.2s infinite ease-in-out; }
.agent .typing-dots i:nth-child(2) { animation-delay: .15s; } .agent .typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
.agent textarea { transition: height .15s; overflow-y: auto; }
.task-card .ask.pending { opacity: .7; }

/* 剧本：换一幕时细节淡入淡出；节奏线上的小点悬停看缩略图 */
.info { transition: opacity .22s var(--ease), transform .22s var(--ease); }
.info.swap { opacity: 0; transform: translate3d(0, 4px, 0); }
.shot img { transition: opacity .35s var(--ease); }
.tick-pop { position: fixed; z-index: 120; width: 200px; border-radius: 12px; overflow: hidden; background: rgba(20,20,23,.96); border: 1px solid var(--line2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.9); pointer-events: none; animation: stepin .2s var(--ease) both; }
.tick-pop .im { aspect-ratio: 16 / 9; background: #1b1b1f center / cover no-repeat; }
.tick-pop .t { padding: 8px 10px; font-size: 12px; color: var(--text2); line-height: 1.5; }
.tick-pop .t b { color: var(--text); font-weight: 500; display: block; font-size: 12.5px; }
.lbody > * { animation: rise .4s var(--ease) both; }
.ltabs button { transition: color .2s, border-color .25s; }

/* 编排：AI 起草时的骨架，起草好后一段段浮上来 */
.skel-line { display: block; height: 14px; border-radius: 7px; margin: 10px 0; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.reveal { animation: stepin .5s var(--ease) both; }
.gstep { transition: border-color .3s, background .3s, box-shadow .3s; }
.gstep:focus-within { border-color: rgba(255,255,255,.22); box-shadow: 0 20px 60px -40px rgba(0,0,0,.9); }
.director .row .n, .director .row .st { transition: all .3s var(--ease); }

/* 输入框、按钮的细节 */
.btn { transition: background .2s, border-color .2s, transform .18s var(--ease), box-shadow .25s, opacity .2s, color .2s; }
.btn .spinner { width: 14px; height: 14px; border-width: 1.5px; border-top-color: currentColor; }
input, textarea, select { transition: border-color .2s, box-shadow .2s, background .2s; }
textarea.area { overflow: hidden; }

/* 老电脑模式：这些动画也关掉 */
html.lite .task-card.enter, html.lite .astep.enter, html.lite .todo.enter, html.lite .acard.enter, html.lite .say.enter, html.lite .reveal, html.lite .lbody > *, html.lite .info, html.lite .bgfade, html.lite .fade-img { animation: none; transition: none; }
html.lite .bgfade, html.lite .fade-img { opacity: 1; }

/* 助手侧边栏：细节 */
.agent .ctx .k { color: var(--text3); font-size: 11px; letter-spacing: .14em; }
.agent .askel { padding: 14px 4px; }
.agent .askel .skel-line.short { width: 58%; }
.task-card { transition: border-color .3s; }
.task-card.live { border-color: rgba(var(--acc-rgb), .26); }
.task-card .plan .k { display: flex; justify-content: space-between; align-items: baseline; }
.task-card .plan .k .n { letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.more-steps:hover { color: var(--text2); }
.agent .quick { animation: stepin .3s var(--ease) both; }
.agent .body { scroll-behavior: auto; overscroll-behavior: contain; }
html.lite .agent .newer, html.lite .agent .quick { animation: none; }

/* 编排：AI 起草时的占位微光 */
.skel-chip { display: inline-block; height: 36px; border-radius: 999px; margin: 0 8px 8px 0; vertical-align: top; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel-task { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.skel-task > div { flex: 1; }
.skel-task .skel-line { margin: 6px 0 10px; }
.skel-task .skel-line.short, .skel-line.short { width: 56%; }
.skel-seal { flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.05); }
textarea.skel-bg { background-image: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.05), rgba(255,255,255,0)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
html.lite .skel-chip, html.lite textarea.skel-bg, html.lite .skel-line { animation: none; }
.agent .body > * { flex: none; }   /* 一件件事按原高度排，多了就滚动，不被压扁 */
.agent .body { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }

/* 节奏条：放不下英文时只留中文 */
.band .ph.tight .en { display: none; }
.band .ph.tiny .m { visibility: hidden; }
/* 跟着字长高的文本框：不要右下角的拖拽角 */
textarea.area, .compose textarea.idea, .agent textarea { resize: none; }
.compose textarea.idea { min-height: 0; overflow: hidden; }

/* 缩略图分组：组名不撑宽（只有一页时也不留一大块空），放不下就省略，悬停看全 */
.group .gh { display: block; width: 0; min-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group .gh .dot { display: inline-block; vertical-align: 1px; margin-right: 6px; }
.group .gh b { margin-right: 6px; }
.ped textarea, .note textarea { resize: none; overflow: hidden; }

/* 世界库筛选：学科多了横向滑动，不折行；右边淡出提示还有 */
.filters .chips { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.filters .chips::-webkit-scrollbar { display: none; }
.filters .chips.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.filters .search { flex: none; }

/* 打不开的页面：说清楚为什么、能去哪 */
.oops { max-width: 460px; margin: 0 auto; padding: 160px 24px 80px; text-align: center; }
.oops .mark { width: 28px; height: 28px; color: var(--gold); opacity: .8; }
.oops h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 18px 0 10px; letter-spacing: .04em; }
.oops p { color: var(--text3); font-size: 14px; line-height: 1.8; margin: 0 0 26px; }
.oops .acts { display: flex; gap: 10px; justify-content: center; }


/* ═══════════════════════════ 正式版（2026-10-15）：质感、设置、命令面板、登录 ═══════════════════════════ */

/* —— 强调色（设置 → 外观）。阶段色 S/F/P/T 不跟着变 —— */
html[data-accent="jade"] { --acc-rgb: 140, 199, 180; --gold: #8cc7b4; --gold-hi: #a7d9c8; --on-gold: #0a1813; }
html[data-accent="azure"] { --acc-rgb: 143, 176, 224; --gold: #8fb0e0; --gold-hi: #abc5ec; --on-gold: #0a1220; }
html[data-accent="rose"] { --acc-rgb: 227, 163, 184; --gold: #e3a3b8; --gold-hi: #eebccd; --on-gold: #230f18; }
html[data-accent="cinnabar"] { --acc-rgb: 228, 138, 110; --gold: #e48a6e; --gold-hi: #eea48d; --on-gold: #230c06; }
:root { --hair: inset 0 1px 0 rgba(255, 255, 255, .045); --r-sm: 10px; --menu-bg: rgba(24, 24, 28, .92); }

/* —— 星空、动效 —— */
html.no-stars body::before { display: none; }
html.calm *, html.calm *::before, html.calm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
html.calm .hero .pano { animation: none; }
html.calm .spinner, html.calm .astep .st.run { animation-duration: .8s !important; animation-iteration-count: infinite !important; }   /* 转圈还是要转，不然像卡住了 */

/* —— 键帽 —— */
.kbds { display: inline-flex; gap: 3px; align-items: center; }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; font: 500 11px/1 var(--sans); color: var(--text2);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-bottom-width: 2px; letter-spacing: 0; }

/* —— 按钮的细节 —— */
.btn.gold, .btn.primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 24px -14px rgba(var(--acc-rgb), .8); }
.btn.danger { color: var(--danger); border-color: rgba(226, 120, 107, .35); background: transparent; }
.btn.danger:hover { background: rgba(226, 120, 107, .1); border-color: rgba(226, 120, 107, .55); }
.btn.danger.solid { background: #c95d4f; border-color: #c95d4f; color: #fff; }
.btn.danger.solid:hover { background: #d66a5c; }
.btn.icon-only { width: 42px; padding: 0; }
.btn .ic.big, .ic.big { width: 28px; height: 28px; }
.pill.gold { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.pill.gold .ic { width: 12px; height: 12px; }

/* —— 顶栏 —— */
.xtop { gap: 20px; }
.brand { gap: 9px; }
.brand .mark { width: 20px; height: 20px; }
.xnav { position: relative; gap: 0; padding: 3px; border-radius: 999px; }
.xnav a { position: relative; z-index: 1; padding: 7px 16px; font-size: 14px; }
.xnav a.on { background: transparent; }
.xnav-ink { position: absolute; left: 0; top: 3px; bottom: 3px; width: 0; border-radius: 999px; background: rgba(255, 255, 255, .085); box-shadow: var(--hair); transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s; opacity: 0; }
.cmdk { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03);
  color: var(--text3); font-size: 13px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.cmdk:hover { color: var(--text2); border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .06); }
.cmdk .ic { width: 15px; height: 15px; }
.cmdk .lb { margin-right: 18px; }
.agent-toggle { height: 36px; }
.agent-toggle .ic { width: 14px; height: 14px; }
.credits { height: 36px; gap: 7px; padding: 0 13px 0 11px; transition: border-color .2s, background .2s; }
.credits:hover { border-color: var(--gold-line); background: rgba(var(--acc-rgb), .06); }
.credits .ic { width: 16px; height: 16px; color: var(--gold); }
.avatar { position: relative; transition: box-shadow .25s, border-color .25s; font-weight: 600; }
.avatar:hover { border-color: rgba(255, 255, 255, .3); }
.avatar.vip { border-color: var(--gold-line); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .12); }

/* —— 菜单 —— */
.menu { top: 68px; right: 18px; min-width: 248px; padding: 6px; border-radius: 16px; background: var(--menu-bg); border: 1px solid var(--line2);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .85), var(--hair);
  animation: menuin .18s var(--ease) both; transform-origin: top right; }
@keyframes menuin { from { opacity: 0; transform: translate3d(0, -4px, 0) scale(.98); } to { opacity: 1; transform: none; } }
.menu.leaving { animation: menuout .14s ease both; }
@keyframes menuout { to { opacity: 0; transform: translate3d(0, -3px, 0) scale(.985); } }
.menu .who { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; margin: 0 0 4px; }
.menu .who .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; background: linear-gradient(135deg, rgba(var(--acc-rgb), .3), rgba(var(--acc-rgb), .08)); color: var(--gold); border: 1px solid var(--gold-line); flex: none; }
.menu .who b { font-size: 14.5px; }
.menu .who span { display: block; font-size: 12px; margin-top: 1px; }
.menu button { gap: 11px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; }
.menu button .ic { width: 16px; height: 16px; color: var(--text3); }
.menu button:hover .ic { color: var(--text); }
.menu button .ml { flex: 1; }
.menu button .kbds kbd { background: transparent; border-color: rgba(255, 255, 255, .08); color: var(--text3); }
.menu .on-off { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.menu .on-off.on { background: var(--gold-soft); color: var(--gold); }
.menu .sep { margin: 5px 6px; }
.menu button.danger, .menu button.danger .ic { color: var(--danger); }
.menu button.danger:hover { background: rgba(226, 120, 107, .1); }
.menu .ver { padding: 8px 10px 4px; font-size: 11.5px; color: var(--text3); border-top: 1px solid var(--line); margin-top: 5px; }
.menu.small { min-width: 200px; }

/* —— 提示条 —— */
.toast { display: inline-flex; align-items: center; gap: 10px; bottom: 34px; padding: 10px 12px 10px 16px; border-radius: 14px; font-size: 13.5px; background: rgba(30, 30, 35, .96);
  border: 1px solid var(--line2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9), var(--hair); }
.toast:not(.has-act) { padding-right: 16px; }
.toast .tk { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.toast.ok .tk { background: rgba(140, 192, 171, .18); }
.toast.ok .tk::after { content: ""; width: 7px; height: 4px; border: solid var(--ok); border-width: 0 0 1.8px 1.8px; transform: translateY(-1px) rotate(-45deg); }
.toast.err .tk { background: rgba(226, 120, 107, .2); }
.toast.err .tk::after { content: "!"; color: var(--danger); font-size: 12px; font-weight: 700; line-height: 1; }
.toast .ta { height: 28px; padding: 0 12px; border-radius: 8px; border: 0; background: rgba(var(--acc-rgb), .16); color: var(--gold); font-size: 13px; font-weight: 600; cursor: pointer; }
.toast .ta:hover { background: rgba(var(--acc-rgb), .26); }

/* —— 弹窗 —— */
.modal { position: relative; padding: 28px 30px 24px; border-radius: 22px; background: rgba(24, 24, 28, .97); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), var(--hair); }
.modal.wide { width: min(760px, 100%); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--text3); cursor: pointer; display: grid; place-items: center; z-index: 3; transition: background .2s, color .2s; }
.modal-x:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.modal-x svg { width: 18px; height: 18px; }
.modal h2 { padding-right: 30px; }
.modal .row:last-child { margin-top: 22px; gap: 10px; }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.form-stack h2 { margin-bottom: 0; }
.form-stack p { margin: 0 0 4px; }
.form-msg { min-height: 18px; font-size: 13px; color: var(--danger); }
.form-msg:empty { min-height: 0; }
.confirm p { margin: 4px 0 0; line-height: 1.8; }
.modal.has-art { padding: 0; overflow: hidden; }

/* —— 命令面板 —— */
.palette-back { position: fixed; inset: 0; z-index: 260; background: rgba(4, 4, 6, .55); display: flex; justify-content: center; align-items: flex-start; padding: 14vh 16px 16px; animation: xjFade .15s ease both; }
.palette-back.leaving { animation: xjFadeOut .15s ease both; }
.palette { width: min(640px, 100%); max-height: min(560px, 72vh); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: rgba(22, 22, 26, .96);
  border: 1px solid var(--line2); box-shadow: 0 50px 140px -30px rgba(0, 0, 0, .95), var(--hair); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  animation: palin .22s var(--ease) both; }
@keyframes palin { from { opacity: 0; transform: translate3d(0, -8px, 0) scale(.985); } to { opacity: 1; transform: none; } }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 58px; border-bottom: 1px solid var(--line); color: var(--text3); flex: none; }
.pal-in .ic { width: 18px; height: 18px; }
.pal-in input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; box-shadow: none; padding: 0; font-size: 16px; color: var(--text); }
.pal-in input:focus { box-shadow: none; }
.pal-list { flex: 1; overflow-y: auto; padding: 6px 8px 8px; overscroll-behavior: contain; }
.pal-gh { padding: 10px 10px 5px; font-size: 11.5px; color: var(--text3); letter-spacing: .12em; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; min-height: 44px; }
.pal-item.on { background: rgba(255, 255, 255, .075); box-shadow: var(--hair); }
.pal-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--text2); flex: none; }
.pal-ic .ic { width: 16px; height: 16px; }
.pal-item.on .pal-ic { color: var(--gold); background: rgba(var(--acc-rgb), .12); }
.pal-thumb { width: 48px; height: 30px; border-radius: 6px; background: #1b1b1f center / cover no-repeat; flex: none; box-shadow: 0 0 0 1px var(--line); }
.pal-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pal-t b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-t b mark { background: none; color: var(--gold); }
.pal-t span { font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-hint { flex: none; font-size: 12px; color: var(--text3); }
.pal-empty { padding: 34px 12px; text-align: center; color: var(--text3); font-size: 13.5px; }
.pal-foot { display: flex; align-items: center; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text3); flex: none; }
.pal-foot span { display: inline-flex; align-items: center; gap: 6px; }
.pal-foot .spacer { flex: 1; }

/* —— 设置 —— */
.set { display: grid; grid-template-columns: 236px minmax(0, 760px); justify-content: center; gap: 48px; padding: 96px var(--pad) 120px; }
.set-nav { position: sticky; top: 88px; align-self: start; }
.set-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .06em; margin: 0 0 16px 4px; }
.set-title .ic { width: 20px; height: 20px; color: var(--gold); }
.set-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--text3); margin-bottom: 14px; }
.set-search .ic { width: 15px; height: 15px; }
.set-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; padding: 0; font-size: 13.5px; box-shadow: none; }
.set-search input:focus { box-shadow: none; }
.set-search:focus-within { border-color: var(--gold-line); }
.sn-group { margin-bottom: 14px; }
.sn-h { font-size: 11.5px; color: var(--text3); letter-spacing: .14em; padding: 6px 10px; }
.sn { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text2); font-size: 14px; cursor: pointer; transition: background .15s, color .15s; }
.sn .ic { width: 16px; height: 16px; color: var(--text3); transition: color .15s; }
.sn:hover { background: rgba(255, 255, 255, .045); color: var(--text); }
.sn.on { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: var(--hair); }
.sn.on .ic { color: var(--gold); }
.set-main { min-width: 0; }
.set-main.swap { animation: stepin .32s var(--ease) both; }
.set-head { display: flex; align-items: flex-start; gap: 16px; margin: 4px 0 26px; }
.set-head > div { flex: 1; }
.set-head h1 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 0 0 6px; letter-spacing: .05em; }
.set-head p { margin: 0; color: var(--text3); font-size: 14px; line-height: 1.8; }
.saved { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; color: var(--ok); background: rgba(140, 192, 171, .1);
  opacity: 0; transform: translate3d(0, -4px, 0); transition: opacity .25s, transform .25s var(--ease); margin-top: 8px; }
.saved.on { opacity: 1; transform: none; }
.saved .ic { width: 13px; height: 13px; }
.set-group { margin-bottom: 30px; }
.set-group > h3, .gh-row h3 { font-size: 12.5px; font-weight: 500; color: var(--text3); letter-spacing: .12em; margin: 0 0 10px 4px; }
.gh-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gh-row h3 { margin: 0 0 0 4px; flex: 1; }
.set-card { border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015)); box-shadow: var(--hair); overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 18px; padding: 15px 18px; min-height: 64px; border-top: 1px solid var(--line); width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; color: inherit; font: inherit; }
.set-row:first-child { border-top: 0; }
.set-row.flash { animation: rowflash 1.6s ease both; }
@keyframes rowflash { 0%, 40% { background: rgba(var(--acc-rgb), .1); } 100% { background: transparent; } }
.sr-text { flex: 1; min-width: 0; }
.sr-t { font-size: 14.5px; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sr-d { font-size: 12.5px; color: var(--text3); line-height: 1.7; margin-top: 2px; }
.sr-d.inline { margin: 0; }
.sr-tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; color: var(--text3); border: 1px solid var(--line2); letter-spacing: .02em; }
.sr-tag.on { color: var(--ok); border-color: rgba(140, 192, 171, .4); }
.sr-tag.warn { color: var(--danger); border-color: rgba(226, 120, 107, .4); }
.sr-ctl { flex: none; display: flex; align-items: center; gap: 10px; }
.sr-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--text2); flex: none; }
.sr-ic .ic { width: 18px; height: 18px; }
.set-row.plain { min-height: 0; }
.set-row.foot { background: rgba(255, 255, 255, .015); }
.set-row.hit { cursor: pointer; }
.set-row.hit:hover { background: rgba(255, 255, 255, .04); }
.set-row.hit .crumb2 { display: inline-flex; align-items: center; gap: 2px; color: var(--text3); font-size: 12.5px; }
.set-row.hit .crumb2 .ic { width: 12px; height: 12px; }
.set-row.more { justify-content: center; min-height: 46px; color: var(--text2); cursor: pointer; font-size: 13px; }
.set-row.more:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.sval { font-size: 13.5px; color: var(--text2); display: inline-flex; align-items: center; gap: 4px; }
.sval.mono, .mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.snote { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text3); }
.snote .ic { width: 14px; height: 14px; }

/* 开关 */
.switch { position: relative; width: 42px; height: 24px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(255, 255, 255, .14); transition: background .25s; flex: none; }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #f3efe7; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .28s var(--ease); }
.switch.on { background: var(--gold); }
.switch.on i { transform: translateX(18px); background: #fff; }
.switch:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* 分段选择 */
.sseg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); gap: 2px; }
.sseg button { height: 28px; padding: 0 12px; border-radius: 7px; border: 0; background: transparent; color: var(--text2); font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.sseg button:hover { color: var(--text); }
.sseg button.on { background: rgba(255, 255, 255, .12); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .3), var(--hair); }
/* 下拉、输入 */
select.ssel { width: auto; min-width: 150px; height: 36px; padding: 0 34px 0 12px; border-radius: 10px; font-size: 13.5px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: rgba(255, 255, 255, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a49b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; }
select.ssel.small { min-width: 0; height: 34px; font-size: 13px; }
input.stext { width: 200px; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; background: rgba(255, 255, 255, .04); }
input.stext.wide { width: 260px; }
/* 强调色 */
.swatches { display: flex; gap: 6px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 6px 4px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; color: var(--text3); font-size: 11.5px; }
.sw i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 2px var(--bg2); transition: box-shadow .2s, transform .2s var(--ease); }
.sw:hover i { transform: scale(1.06); }
.sw.on { color: var(--text); }
.sw.on i { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 2px var(--bg2), 0 0 0 4px var(--c); }

/* 个人资料 */
.pf-card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--hair);
  background: radial-gradient(600px 160px at 0% 0%, rgba(var(--acc-rgb), .1), transparent 70%), rgba(255, 255, 255, .02); }
.pf-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--gold);
  background: linear-gradient(135deg, rgba(var(--acc-rgb), .28), rgba(var(--acc-rgb), .06)); border: 1px solid var(--gold-line); box-shadow: 0 0 40px -10px rgba(var(--acc-rgb), .5); flex: none; }
.pf-who { flex: 1; min-width: 0; }
.pf-who b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .04em; }
.pf-who span { font-size: 13px; color: var(--text3); }
.pf-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* 积分 */
.bl-hero { position: relative; display: flex; align-items: flex-end; gap: 20px; padding: 26px 26px 24px; border-radius: 20px; overflow: hidden; border: 1px solid var(--gold-line); min-height: 168px; box-shadow: var(--hair); background: #0e0e12; }
.bl-art { position: absolute; inset: 0; background: url('/shared/art/recharge-banner.jpg') left center / cover no-repeat; opacity: .95; transform: scaleX(-1); }
.bl-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(10, 10, 12, .9) 0%, rgba(10, 10, 12, .55) 45%, rgba(10, 10, 12, .05) 100%); }
.bl-main { position: relative; flex: 1; min-width: 0; }
.bl-main .k { font-size: 12.5px; color: var(--text3); letter-spacing: .14em; }
.bl-num { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 10px; }
.bl-num .num { font-family: var(--serif); font-size: 52px; line-height: 1; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .01em; text-shadow: 0 0 40px rgba(var(--acc-rgb), .35); }
.bl-num span { color: var(--text2); font-size: 14px; }
.bl-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text2); }
.bl-acts { position: relative; display: flex; gap: 10px; }
.bl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 6px; }
.bl-stat { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.bl-stat span { font-size: 12px; color: var(--text3); }
.bl-stat b { display: block; font-size: 22px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.bl-stat small { font-size: 12px; color: var(--text3); font-weight: 400; margin-left: 4px; }
.bl-note { font-size: 12.5px; color: var(--text3); line-height: 1.8; margin: 10px 4px 22px; }
.set-row.ledger { min-height: 58px; padding: 11px 18px; }
.lg-kind { flex: none; width: 64px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; }
.lg-kind.in { background: rgba(140, 192, 171, .12); color: var(--ok); }
.lg-kind.out { background: rgba(255, 255, 255, .06); color: var(--text2); }
.lg-amt { flex: none; text-align: right; display: flex; flex-direction: column; gap: 1px; }
.lg-amt b { font-size: 15px; font-variant-numeric: tabular-nums; }
.lg-amt b.pos { color: var(--ok); }
.lg-amt b.neg { color: var(--text); }
.lg-amt span { font-size: 11.5px; color: var(--text3); font-variant-numeric: tabular-nums; }

/* 关于 */
.about-hero { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); min-height: 260px; display: flex; align-items: flex-end; background: #08080a; }
.ah-art { position: absolute; inset: 0; background: url('/shared/art/login-hero.jpg') 30% 40% / cover no-repeat; }
.ah-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 10, .97) 0%, rgba(8, 8, 10, .82) 38%, rgba(8, 8, 10, .2) 75%, rgba(8, 8, 10, .05) 100%); }
.ah-body { position: relative; display: flex; align-items: center; gap: 18px; padding: 24px 26px; }
.ah-icon { width: 72px; height: 72px; border-radius: 18px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.ah-body h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 0 0 4px; letter-spacing: .08em; }
.ah-body p { margin: 0; font-family: var(--serif); color: var(--text2); font-size: 15px; letter-spacing: .04em; }

/* —— 登录 —— */
body.logged-out .xtop { display: none; }
.login-wrap { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(380px, 440px); align-items: center; gap: 40px; padding: 48px clamp(28px, 6vw, 96px); overflow: hidden; }
.login-art { position: fixed; inset: 0; background: #050507 url('/shared/art/login-hero.jpg') 22% 50% / cover no-repeat; animation: artin 2.4s var(--ease) both, kenburns 60s ease-in-out 2.4s infinite alternate; }
@keyframes artin { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1.02); } }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.08) translate3d(-1%, -1%, 0); } }
.login-shade { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 5, 7, .05) 0%, rgba(5, 5, 7, .15) 45%, rgba(5, 5, 7, .75) 70%, rgba(5, 5, 7, .9) 100%), linear-gradient(0deg, rgba(5, 5, 7, .92) 0%, rgba(5, 5, 7, .55) 22%, rgba(5, 5, 7, 0) 46%); }
.login-caption { position: relative; z-index: 2; align-self: end; padding: 0 0 4vh; max-width: 560px; animation: rise 1.2s .3s var(--ease) both; }
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.login-logo img { width: 40px; height: 40px; border-radius: 10px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5)); }
.login-name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .16em; line-height: 1.1; }
.login-name span { font-size: 13px; letter-spacing: .2em; color: var(--text3); margin-left: 10px; font-weight: 400; }
.login-slogan { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 32px); line-height: 1.55; letter-spacing: .08em; margin: 0 0 16px; color: #f6efe2; text-shadow: 0 4px 30px rgba(0, 0, 0, .7); }
.login-points { display: flex; flex-wrap: wrap; gap: 8px; }
.login-points span { font-size: 12.5px; color: var(--text2); padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.login-panel { position: relative; z-index: 2; }
.login { width: 100%; padding: 34px 32px 28px; gap: 14px; border-radius: 26px; background: rgba(16, 16, 20, .72); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9), var(--hair); backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%); animation: rise .9s .15s var(--ease) both; }
.login.shake { animation: shake .42s ease both; }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
.login-head h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 6px; letter-spacing: .06em; }
.login-head p { margin: 0 0 6px; color: var(--text3); font-size: 13.5px; }
.login .fields { display: flex; flex-direction: column; gap: 10px; }
.login .fields .extra { display: flex; flex-direction: column; gap: 10px; }
.login .fields .extra.hidden { display: none; }
.login input { height: 48px; border-radius: 12px; background: rgba(0, 0, 0, .3); font-size: 15px; }
.login .pw { position: relative; }
.login .pw input { padding-right: 46px; }
.login .eye { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; color: var(--text3); cursor: pointer; display: grid; place-items: center; }
.login .eye:hover, .login .eye.on { color: var(--text); background: rgba(255, 255, 255, .06); }
.login .eye svg { width: 18px; height: 18px; }
.login .btn.big { height: 50px; border-radius: 14px; font-size: 15.5px; margin-top: 2px; }
.login .btn .spinner { border-color: rgba(0, 0, 0, .15); border-top-color: currentColor; }
.login-tabs { padding: 4px; border-radius: 12px; }
.login-tabs button { border-radius: 9px; padding: 9px 0; transition: background .2s, color .2s; }
.login-tip { font-size: 12.5px; color: var(--text3); text-align: center; min-height: 18px; }
.login-tip b { color: var(--gold); font-weight: 500; }
.login .agree { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text3); line-height: 1.6; cursor: pointer; }
.login .agree.hidden { display: none; }
.login .agree input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--gold); }
.login .agree a { color: var(--gold); text-decoration: none; }
.login .agree a:hover { text-decoration: underline; }
.modal.legal { max-height: min(80vh, 860px); }
.legal-doc { font-size: 14px; line-height: 1.75; color: var(--text2); }
.legal-doc h1 { font-family: var(--serif); font-size: 22px; margin: 0 0 8px; color: var(--text); }
.legal-doc h2 { font-size: 16px; margin: 20px 0 6px; color: var(--text); }
.legal-doc blockquote { margin: 0 0 12px; padding: 6px 12px; border-left: 2px solid var(--gold); color: var(--text3); }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.legal-doc th, .legal-doc td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.login-foot { position: fixed; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 11.5px; color: rgba(255, 255, 255, .32); letter-spacing: .1em; z-index: 2; pointer-events: none; }
body.entering .login-wrap { animation: xjFadeOut .3s ease both; }

/* —— 充值、确认扣积分 —— */
.recharge .rc-art { position: relative; height: 150px; background: #0b0b10; display: flex; align-items: flex-end; padding: 0 30px 18px; overflow: hidden; }
.recharge .rc-art::before { content: ""; position: absolute; inset: 0; background: url('/shared/art/recharge-banner.jpg') left 40% / cover no-repeat; transform: scaleX(-1); }
.recharge .rc-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(24, 24, 28, 1) 0%, rgba(24, 24, 28, 0) 70%); }
.rc-bal { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 8px; color: var(--text2); font-size: 13px; }
.rc-bal b { font-family: var(--serif); font-size: 34px; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(var(--acc-rgb), .4); }
.recharge .rc-body { padding: 8px 30px 26px; }
.recharge .rc-body p { margin: 4px 0 16px; font-size: 13.5px; line-height: 1.8; }
input.code-in { height: 50px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 18px; letter-spacing: .12em; text-align: center; border-radius: 12px; }
.confirm-cost p { margin: 4px 0 0; line-height: 1.8; }
.cc-sum { margin-top: 16px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.cc-line { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text2); }
.cc-line:first-child { border-top: 0; }
.cc-line b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.cc-line.total { background: rgba(var(--acc-rgb), .06); }
.cc-line.total b { color: var(--gold); }
.cc-line.neg b { color: var(--danger); }

/* —— 我的课 —— */
.page-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.page-head > div { flex: 1; }
.page-head p { color: var(--text3); margin: 0; font-size: 14px; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar .seg { margin: 0; }
.toolbar .seg button { display: inline-flex; align-items: center; gap: 6px; }
.toolbar .seg .n { font-size: 11px; color: var(--text3); font-variant-numeric: tabular-nums; }
.toolbar .seg button.on .n { color: var(--text2); }
.search.small { width: 220px; height: 34px; margin: 0; }
.lesson-card .cover { position: relative; overflow: hidden; }
.lesson-card .cover-ph { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: var(--text3); font-size: 12.5px;
  background: radial-gradient(400px 160px at 50% 120%, rgba(var(--acc-rgb), .12), transparent 70%), #141417; }
.lesson-card .cover-ph .ic { color: rgba(var(--acc-rgb), .7); }
.card-more { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(10, 10, 12, .55); color: var(--text);
  display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 2; }
.card-more .ic { width: 16px; height: 16px; }
.lesson-card:hover .card-more, .lesson-card:focus-within .card-more { opacity: 1; }
.card-more:hover { background: rgba(30, 30, 34, .85); }
.grid-lessons .none { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--text3); }
.empty-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; min-height: calc(100vh - 240px); }
.eh-art { aspect-ratio: 4 / 3; background: url('/shared/art/empty-lessons.jpg') center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%); }
.eh-copy h1 { margin: 14px 0 12px; }
.eh-copy p { color: var(--text2); line-height: 1.9; margin: 0 0 26px; max-width: 30em; }
.eh-copy .acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* —— 使用指南 —— */
.help-page { padding-top: 88px; }
.help-hero { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 26px; min-height: 340px; display: flex; align-items: flex-end; background: #070709; }
.hh-art { position: absolute; inset: 0; background: url('/shared/art/help-storyboard.jpg') center 40% / cover no-repeat; }
.hh-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 7, 9, .96) 0%, rgba(7, 7, 9, .5) 45%, rgba(7, 7, 9, .05) 100%); }
.hh-copy { position: relative; padding: 30px 34px; max-width: 760px; }
.hh-copy h1 { margin: 12px 0 8px; }
.hh-copy p { margin: 0; color: var(--text2); font-size: 15px; line-height: 1.85; }
.hsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.hstep { position: relative; padding: 20px 20px 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); box-shadow: var(--hair); }
.hstep::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; border-radius: 2px; background: var(--c); opacity: .8; }
.hstep .n { font-family: var(--serif); font-size: 13px; color: var(--c); letter-spacing: .1em; }
.hstep h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 6px 0 8px; }
.hstep p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--text2); }
.help-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.help-card { padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); display: flex; flex-direction: column; align-items: flex-start; }
.help-card h3 { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.help-card h3 .ic { width: 17px; height: 17px; color: var(--gold); }
.help-card p { flex: 1; margin: 0 0 14px; font-size: 13px; line-height: 1.85; color: var(--text2); }
.faqs { max-width: 820px; }
.faqs h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 12px; letter-spacing: .05em; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 4px; cursor: pointer; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { margin-left: auto; width: 16px; height: 16px; color: var(--text3); transition: transform .25s var(--ease); }
.faq[open] summary .ic { transform: rotate(90deg); }
.faq p { margin: -4px 4px 16px; color: var(--text2); font-size: 14px; line-height: 1.85; }

/* —— 世界库 —— */
.search kbd.slash { margin-left: auto; }
.search:focus-within kbd.slash { display: none; }
.no-hit { text-align: center; padding: 60px 20px 30px; }
.no-hit h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.no-hit p { color: var(--text3); font-size: 14px; margin: 0 0 18px; }
.no-hit .acts { display: flex; gap: 10px; justify-content: center; }
.worlds-foot { margin: 30px var(--pad) 0; padding: 28px 30px; border-radius: 22px; border: 1px solid var(--line); display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: radial-gradient(700px 200px at 100% 0%, rgba(var(--acc-rgb), .1), transparent 70%), rgba(255, 255, 255, .02); }
.wf-copy { flex: 1; min-width: 260px; }
.wf-copy h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0 0 6px; letter-spacing: .04em; }
.wf-copy p { margin: 0; color: var(--text2); font-size: 14px; line-height: 1.8; }
.wf-note { flex-basis: 100%; margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text3); font-size: 12px; letter-spacing: .06em; text-align: center; }
.view-in > .worlds-foot { margin-bottom: 110px; }

/* —— 一节课 —— */
.lower.one { grid-template-columns: 1fr; }
.ready { border-radius: var(--r-lg); border: 1px solid var(--line); padding: 18px 20px; background: rgba(255, 255, 255, .02); display: flex; flex-direction: column; gap: 8px; }
.ready h4 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 0; }
.ready .sub { font-size: 12.5px; color: var(--text3); margin: 0 0 6px; }
.rfile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); background: rgba(255, 255, 255, .02); transition: border-color .2s, background .2s; }
.rfile:hover { border-color: var(--line2); background: rgba(255, 255, 255, .04); }
.rfile .ext { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #fff; background: #55524c; flex: none; }
.rfile .ext.enbx { background: #2e7d5b; } .rfile .ext.pptx { background: #c4532c; } .rfile .ext.zip { background: #6c5a9c; }
.rfile .grow { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rfile .grow .faint { display: block; font-size: 12px; }
.rfile .ic { width: 16px; height: 16px; color: var(--text3); }
.aigc { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 0; font-size: 12px; color: var(--text3); line-height: 1.7; }
.aigc .ic { width: 14px; height: 14px; margin-top: 3px; flex: none; }
.log-wrap { margin-top: 16px; max-width: 760px; }
.log-wrap summary { cursor: pointer; font-size: 12.5px; color: var(--text3); }
.log-wrap .log { margin-top: 8px; }

/* —— 助手：打招呼 —— */
.agent .hello { padding: 22px 4px 6px; }
.hello-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; color: var(--gold);
  background: radial-gradient(circle at 50% 40%, rgba(var(--acc-rgb), .3), rgba(var(--acc-rgb), .06) 70%); border: 1px solid var(--gold-line); box-shadow: 0 0 40px -8px rgba(var(--acc-rgb), .5); }
.hello-mark .ic { width: 20px; height: 20px; }
.agent .hello .can { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 14px; }
.agent .hello .can button { display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); color: var(--text); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.agent .hello .can button:hover { border-color: var(--gold-line); background: rgba(var(--acc-rgb), .05); transform: translate3d(0, -1px, 0); }
.agent .hello .can .ic { width: 17px; height: 17px; color: var(--gold); margin-top: 2px; flex: none; }
.agent .hello .can b { display: block; font-weight: 500; font-size: 14px; }
.agent .hello .can i { display: block; font-style: normal; font-size: 12.5px; color: var(--text3); margin-top: 2px; line-height: 1.6; }

/* —— 打不开的页面 —— */
.oops-art { width: min(360px, 80vw); aspect-ratio: 4 / 3; margin: 0 auto -10px; background: url('/shared/art/oops.jpg') center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 50%, transparent 100%); }
.oops { padding-top: 110px; }

/* —— 快捷键表 —— */
.shortcuts h4 { font-size: 12.5px; font-weight: 500; color: var(--text3); letter-spacing: .12em; margin: 0 0 8px; }
.sc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 16px; }
.sc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text2); }

/* —— 老电脑模式：新东西也不模糊、不做大动画 —— */
html.lite .menu, html.lite .palette, html.lite .login, html.lite .login-points span, html.lite .card-more { backdrop-filter: none; -webkit-backdrop-filter: none; }
html.lite .menu, html.lite .palette { background: rgba(24, 24, 28, .99); }
html.lite .login { background: rgba(16, 16, 20, .94); }
html.lite .login-art { animation: none; }
html.lite .palette, html.lite .palette-back, html.lite .menu, html.lite .set-main.swap, html.lite .login-caption { animation: none; }
html.lite .xnav-ink, html.lite .switch, html.lite .switch i { transition: none; }

/* —— 窄窗口 —— */
@media (max-width: 1360px) {
  .cmdk .lb { display: none; }
  .cmdk { padding: 0 8px 0 10px; }
}
@media (max-width: 1180px) {
  .set { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  .hsteps { grid-template-columns: repeat(2, 1fr); }
  .login-wrap { grid-template-columns: 1fr minmax(360px, 400px); }
  .login-points { display: none; }
}
@media (max-width: 900px) {
  .set { grid-template-columns: 1fr; padding-top: 84px; }
  .set-nav { position: static; }
  .set-nav-list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .sn-group { display: contents; }
  .sn-h { display: none; }
  .sn { white-space: nowrap; }
  .set-row { flex-wrap: wrap; }
  .sr-ctl { width: 100%; justify-content: flex-end; }
  .bl-hero { flex-direction: column; align-items: flex-start; }
  .bl-stats { grid-template-columns: 1fr 1fr 1fr; }
  .help-cols, .hsteps, .sc-cols { grid-template-columns: 1fr; }
  .empty-hero { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; padding: 28px 18px 60px; }
  .login-caption { padding-bottom: 0; align-self: auto; }
  .login-slogan { font-size: 20px; }
  .cmdk kbd, .cmdk .kbds { display: none; }
  .agent-toggle .lb { display: none; }
  .page-head { flex-wrap: wrap; }
  .search.small { width: 100%; }
}

.lite-desc b { display: block; font-weight: 500; color: var(--text2); margin-top: 2px; }
.l-head .tpl-link { color: var(--text3); cursor: pointer; border-bottom: 1px dashed rgba(255, 255, 255, .18); }
.l-head .tpl-link:hover { color: var(--text); border-bottom-color: rgba(255, 255, 255, .4); }
.notify-desc .link { margin-left: 6px; color: var(--gold); text-decoration-color: rgba(var(--acc-rgb), .4); }
.notify-desc b { display: block; font-weight: 500; color: var(--danger); margin-top: 2px; }

/* —— 世界库：课程导入（竖版电影海报卡片） —— */
.grid-intro { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.wcard.intro { aspect-ratio: 3 / 4; }
.wcard.intro .img { position: absolute; inset: 0; aspect-ratio: auto; background-position: center; }
.wcard.intro .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,8,9,.95) 0%, rgba(8,8,9,.6) 34%, rgba(8,8,9,0) 62%); }
.wcard.intro .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 16px; }
.wcard.intro .body .k { font-size: 11.5px; letter-spacing: .2em; color: var(--gold); margin-bottom: 6px; }
.wcard.intro h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 10px; letter-spacing: .04em; line-height: 1.3; }
.wcard.intro .facts { font-size: 12px; }
.wcard.intro .go .ic { width: 12px; height: 12px; }
@media (max-width: 1360px) { .grid-intro { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .grid-intro { grid-template-columns: repeat(2, 1fr); } }

.overlay .intro-bg { position: absolute; inset: -4%; background: center / cover no-repeat; animation: zoomin 1.4s var(--ease) both, mv-slow 40s ease-in-out 1.4s infinite alternate; }
@keyframes mv-slow { from { transform: scale(1); } to { transform: scale(1.08); } }
.overlay .intro-play { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; border: 0; background: none; color: #fff; cursor: pointer; font-size: 15px; letter-spacing: .12em; }
.overlay .intro-play .ic { width: 84px; height: 84px; padding: 26px 22px 26px 30px; border-radius: 50%; background: rgba(var(--acc-rgb), .92); color: var(--on-gold); box-shadow: 0 0 0 10px rgba(var(--acc-rgb), .18), 0 20px 60px rgba(0,0,0,.5); transition: transform .3s var(--ease), box-shadow .3s; }
.overlay .intro-play:hover .ic { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(var(--acc-rgb), .14), 0 20px 60px rgba(0,0,0,.5); }
.overlay .intro-play span { text-shadow: 0 2px 12px rgba(0,0,0,.7); }
html.lite .overlay .intro-bg { animation: none; }

/* ———————————————— 星界精灵：右下角会呼吸的星、打招呼的气泡、记得的事、上完课的反馈 ———————————————— */
.spirit-orb { position: fixed; right: 26px; bottom: 26px; z-index: 75; width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 45%, rgba(var(--acc-rgb), .22), rgba(14, 14, 18, .92) 68%); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .35), 0 18px 40px -12px rgba(0, 0, 0, .8), 0 0 36px -6px rgba(var(--acc-rgb), .45);
  transition: transform .35s var(--ease), opacity .3s ease, box-shadow .3s ease; }
.spirit-orb:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .6), 0 20px 44px -12px rgba(0, 0, 0, .8), 0 0 48px -4px rgba(var(--acc-rgb), .6); }
.spirit-orb.away { opacity: 0; transform: scale(.6); pointer-events: none; }
.spirit-orb .core { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); }
.spirit-orb .core .ic { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(var(--acc-rgb), .8)); animation: spirit-breathe 3.6s ease-in-out infinite; }
.spirit-orb .halo { position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--acc-rgb), .28), transparent 66%); animation: spirit-halo 3.6s ease-in-out infinite; pointer-events: none; }
.spirit-orb .ring { position: absolute; inset: 5px; border-radius: 50%; border: 1px solid rgba(var(--acc-rgb), .3); border-top-color: rgba(var(--acc-rgb), .9); animation: spin 9s linear infinite; pointer-events: none; }
.spirit-orb .ring.r2 { inset: 11px; border-color: rgba(var(--acc-rgb), .14); border-left-color: rgba(var(--acc-rgb), .7); animation-duration: 6s; animation-direction: reverse; }
.spirit-orb.busy .ring { animation-duration: 1.4s; }
.spirit-orb.busy .ring.r2 { animation-duration: 1s; }
.spirit-orb .dot { position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(14, 14, 18, .9); }
@keyframes spirit-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes spirit-halo { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
.spirit-bubble { position: fixed; right: 26px; bottom: 96px; z-index: 76; width: min(360px, calc(100vw - 40px)); padding: 18px 18px 16px; border-radius: 20px; box-shadow: var(--shadow);
  animation: spirit-pop .45s var(--ease) both; transform-origin: 92% 100%; }
.spirit-bubble.leaving { animation: sinkout .25s ease forwards; }
.spirit-bubble::after { content: ""; position: absolute; right: 22px; bottom: -7px; width: 14px; height: 14px; transform: rotate(45deg); background: inherit; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.spirit-bubble .x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--text3); cursor: pointer; display: grid; place-items: center; }
.spirit-bubble .x:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.spirit-bubble .x .ic { width: 14px; height: 14px; }
.spirit-bubble .hi b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .04em; padding-right: 26px; }
.spirit-bubble .hi p { margin: 6px 0 0; font-size: 13px; line-height: 1.75; color: var(--text2); }
.spirit-bubble .items { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.spirit-bubble .worlds { margin-top: 12px; }
.spirit-bubble .acts { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
@keyframes spirit-pop { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.96); } to { opacity: 1; transform: none; } }
.spirit-bubble .k, .agent .hworlds .k { font-size: 11px; letter-spacing: .18em; color: var(--text3); margin-bottom: 6px; }
.spirit-bubble .w, .agent .hworlds .w { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  color: var(--text); text-align: left; cursor: pointer; margin-top: 6px; font: inherit; transition: border-color .2s, background .2s; }
.spirit-bubble .w:hover, .agent .hworlds .w:hover { border-color: var(--gold-line); background: rgba(var(--acc-rgb), .05); }
.spirit-bubble .w .img, .agent .hworlds .w .img { width: 64px; aspect-ratio: 16 / 9; border-radius: 8px; background: #1b1b1f center / cover; flex: none; }
.spirit-bubble .w .tx, .agent .hworlds .w .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.spirit-bubble .w b, .agent .hworlds .w b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spirit-bubble .w i, .agent .hworlds .w i { font-style: normal; font-size: 12px; color: var(--text3); line-height: 1.5; }
.sitem { padding: 10px 12px; border-radius: 12px; background: rgba(var(--acc-rgb), .05); border: 1px solid rgba(var(--acc-rgb), .18); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sitem p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--text); }
.sitem .subs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--text2); font-size: 12.5px; cursor: pointer; font-family: inherit; }
.chip-btn:hover { border-color: var(--gold-line); color: var(--gold); }
.agent .hello .hitems { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.agent .hello .hworlds { margin: 12px 0 6px; }
.agent .hello .mem-link { margin-left: 6px; }
.fb { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fb .why { display: flex; gap: 8px; width: 100%; }
.fb .why input { height: 34px; font-size: 13px; padding: 0 12px; border-radius: 999px; }
.fb .thanks { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); }
.fb .thanks .ic { width: 14px; height: 14px; }
.fb-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding: 12px 16px; border-radius: 16px; }
.fb-strip > .ic { width: 18px; height: 18px; color: var(--gold); flex: none; }
.fb-strip .t { font-size: 14px; color: var(--text2); flex: 1; min-width: 220px; }
.fb-strip .fb .why { min-width: 340px; }
/* 质检员 */
.qa-strip { margin: 0 0 18px; padding: 12px 16px; border-radius: 16px; }
.qa-strip .qa-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qa-strip .qa-top > .ic { width: 18px; height: 18px; flex: none; color: var(--gold); }
.qa-strip.ok .qa-top > .ic { color: #7fd1a8; }
.qa-strip.bad .qa-top > .ic { color: #ff9b8a; }
.qa-strip .t { font-size: 14px; color: var(--text2); flex: 1; min-width: 220px; }
.qa-strip .btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.qa-list { margin-top: 12px; display: grid; gap: 8px; }
.qa-row { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.qa-row.bad { border-color: rgba(255, 155, 138, .35); }
.qa-row.fixed { opacity: .82; }
.qa-shot { width: 168px; height: 95px; object-fit: cover; border-radius: 8px; flex: none; cursor: zoom-in; background: rgba(0, 0, 0, .3); }
.qa-t { flex: 1; min-width: 0; }
.qa-t p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; }
.qa-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.qa-lv { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 196, 120, .14); color: var(--gold); }
.qa-row.bad .qa-lv { background: rgba(255, 155, 138, .16); color: #ff9b8a; }
.qa-lv.ok { background: rgba(127, 209, 168, .14); color: #7fd1a8; }
.qa-k { color: var(--text3); font-size: 12px; }
.qa-note { margin: 4px 2px 0; font-size: 12px; }
@media (max-width: 720px) { .qa-row { flex-direction: column; } .qa-shot { width: 100%; height: auto; aspect-ratio: 16 / 9; } }
.memory .mem-group { margin-bottom: 14px; }
.memory .mem-group .k { font-size: 12px; letter-spacing: .14em; color: var(--text3); margin: 0 0 6px 2px; }
.memory .mem-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); margin-bottom: 6px; }
.memory .mem-row .t { flex: 1; font-size: 14px; line-height: 1.6; }
.memory .mem-row input { flex: 1; height: 34px; font-size: 14px; }
.memory .mem-row .src { font-size: 11px; color: var(--text3); white-space: nowrap; }
.memory .mem-row .btn { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; }
.memory .mem-row .btn .ic { width: 14px; height: 14px; }
.memory .mem-empty { padding: 14px 4px; line-height: 1.8; }
.memory .mem-add { display: flex; gap: 8px; margin-top: 10px; }
.memory .mem-add select { width: 120px; flex: none; }
.memory .mem-add input { flex: 1; }
.memory .mem-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12.5px; }
.memory .mem-foot .faint { flex: 1; line-height: 1.7; }
.btn.danger { color: var(--danger); }
html.lite .spirit-bubble { backdrop-filter: none; -webkit-backdrop-filter: none; }
html.calm .spirit-orb .core .ic, html.calm .spirit-orb .halo, html.calm .spirit-orb .ring { animation: none !important; }
@media (max-width: 720px) { .spirit-orb { right: 16px; bottom: 16px; width: 52px; height: 52px; } .spirit-bubble { right: 12px; bottom: 80px; } .fb-strip .fb .why { min-width: 0; } }
/* 编排页底部有一条操作栏：星往上让一让，不压住“开始制作” */
body:has(.bottombar) .spirit-orb { bottom: 96px; }
body:has(.bottombar) .spirit-bubble { bottom: 166px; }

/* 备课日历（我的课顶上） */
.plan { margin: 0 0 22px; padding: 14px 18px; border-radius: 18px; }
.plan-head { display: flex; align-items: center; gap: 10px; }
.plan-head > .ic { width: 18px; height: 18px; color: var(--gold); }
.plan-head h3 { margin: 0; font-size: 15px; letter-spacing: .06em; }
.plan-head .faint { font-size: 13px; }
.plan-list { margin-top: 10px; display: grid; gap: 6px; }
.plan-row { display: grid; grid-template-columns: 110px 1fr auto auto 32px; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.plan-row.past { opacity: .62; }
.plan-row .when { font-size: 13px; color: var(--text2); }
.plan-row .t { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.plan-row .t b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-row .t .faint { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-row .st { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--text2); white-space: nowrap; }
.plan-row .st.warn { background: rgba(255, 196, 120, .14); color: var(--gold); }
.plan-row .st.ok { background: rgba(127, 209, 168, .14); color: #7fd1a8; }
.plan-row .st.run { background: rgba(140, 180, 255, .14); color: #9dbcff; }
.plan-row .st.bad { background: rgba(255, 155, 138, .16); color: #ff9b8a; }
.plan-row .icon-btn { width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--text3); cursor: pointer; display: grid; place-items: center; }
.plan-row .icon-btn:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.plan-row .icon-btn .ic { width: 15px; height: 15px; }
.plan-add { display: grid; grid-template-columns: 150px 1fr 1fr auto auto; gap: 8px; align-items: center; }
.plan-add input { height: 36px; }
.plan-empty { margin: 4px 2px; font-size: 13.5px; }
.plan-pick { position: fixed; z-index: 60; width: 320px; padding: 12px; border-radius: 16px; display: grid; gap: 6px; background: rgba(24, 24, 28, .97); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.plan-pick .k { font-size: 12.5px; color: var(--text3); margin: 0 2px 4px; }
.plan-pick .pp-row { text-align: left; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; display: grid; gap: 2px; }
.plan-pick .pp-row:hover { border-color: var(--gold); }
.plan-pick .pp-row span { font-size: 12px; color: var(--text3); }
.plan-pick .pp-more { border: 0; background: transparent; color: var(--text3); font-size: 12.5px; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 4px 0; }
.plan-pick .pp-more .ic { width: 14px; height: 14px; }
@media (max-width: 720px) { .plan-row { grid-template-columns: 1fr auto 32px; } .plan-row .when { grid-column: 1 / -1; } .plan-row .st { display: none; } .plan-add { grid-template-columns: 1fr; } }

/* 放映时的导演台：右下角的小计时器（投影时学生也看得见，做得很小，可以收起） */
.play .desk { position: absolute; right: 16px; bottom: 16px; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: min(420px, calc(100vw - 32px)); font-size: 13px; }
.desk .dk-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(10, 12, 20, .62); color: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); cursor: pointer; font-variant-numeric: tabular-nums; }
.desk .dk-chip .ic { width: 15px; height: 15px; color: var(--gold); }
.desk .dk-chip .dk-ph { color: rgba(255, 255, 255, .7); }
.desk.over .dk-chip .dk-time { color: #ff9b8a; }
.desk .dk-panel { display: none; width: 380px; max-width: 100%; padding: 12px; border-radius: 16px; background: rgba(10, 12, 20, .78); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(14px); }
.desk.open .dk-panel { display: block; }
.desk .dk-bar { display: flex; gap: 4px; }
.desk .dk-seg { position: relative; min-width: 40px; height: 30px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .75); cursor: pointer; overflow: hidden; font-size: 12px; }
.desk .dk-seg i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 196, 120, .28); transition: width 1s linear; }
.desk .dk-seg span { position: relative; }
.desk .dk-seg.on { background: rgba(255, 196, 120, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 196, 120, .55); }
.desk .dk-seg.past i { background: rgba(255, 255, 255, .14); }
.desk .dk-acts { display: flex; gap: 6px; margin-top: 10px; }
.desk .dk-btn { flex: 1; height: 30px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .9); cursor: pointer; font-size: 12.5px; }
.desk .dk-btn:hover { background: rgba(255, 255, 255, .1); }
.desk .dk-btn.end { border-color: rgba(255, 196, 120, .5); color: var(--gold); }
.desk .dk-q { margin-top: 10px; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.desk .dk-q b { display: block; font-size: 11px; letter-spacing: .12em; color: var(--gold); font-weight: 500; }
.desk .dk-dot { display: none; width: 14px; height: 14px; border-radius: 50%; border: 0; background: rgba(255, 196, 120, .55); cursor: pointer; }
.desk.hidden > :not(.dk-dot):not(.dk-tips) { display: none !important; }
.desk.hidden .dk-dot { display: block; }
.desk .dk-tips { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.desk .dk-tip { max-width: 360px; padding: 9px 14px; border-radius: 12px; background: rgba(10, 12, 20, .75); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .92); line-height: 1.55; backdrop-filter: blur(10px); cursor: pointer; animation: xjPop .3s ease both; transition: opacity .6s; }
.desk .dk-tip.strong { border-color: rgba(255, 196, 120, .6); }
.desk .dk-tip.out { opacity: 0; }
.desk.ending { left: 50%; right: auto; bottom: 50%; transform: translate(-50%, 50%); align-items: stretch; }
.desk .dk-end { width: 440px; max-width: calc(100vw - 32px); padding: 20px; border-radius: 18px; background: rgba(20, 22, 30, .96); border: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 12px; }
.desk .dk-end h3 { margin: 0; font-family: var(--serif); font-size: 19px; }
.desk .dk-end .faint { margin: 0; font-size: 12.5px; }
.desk .dk-end .row { display: flex; gap: 8px; align-items: center; }
.desk .dk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.desk .dk-chips .chip-btn.on { border-color: var(--gold); color: var(--gold); }
.desk .dk-note { height: 36px; }
.desk .dk-rate.sel { border-color: var(--gold); color: var(--gold); background: rgba(255, 196, 120, .1); }
/* 导演台 · 学生扫码互动 */
.desk .dk-room { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 8px; }
.desk .dk-btn.wide { width: 100%; flex: none; }
.desk .dk-roomhead { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.desk .dk-roomhead b { color: #fff; font-weight: 600; letter-spacing: .04em; }
.desk .dk-link { margin-left: auto; border: 0; background: transparent; color: var(--gold); cursor: pointer; font-size: 12.5px; padding: 0; justify-self: end; }
.desk .dk-push { display: flex; flex-wrap: wrap; gap: 6px; }
.desk .dk-push .dk-btn { flex: 1 1 auto; }
.desk .dk-form { display: grid; gap: 6px; }
.desk .dk-form input { height: 32px; font-size: 13px; background: rgba(0, 0, 0, .3); }
.desk .dk-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.desk .dk-faint { font-size: 12px; color: rgba(255, 255, 255, .55); margin: 0; }
.desk .dk-res { display: grid; gap: 6px; }
.desk .dk-qt { font-size: 13px; color: #fff; line-height: 1.5; }
.desk .dk-barrow { display: grid; grid-template-columns: 4.5em 1fr 2.2em; align-items: center; gap: 8px; font-size: 12.5px; }
.desk .dk-barrow .o { color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk .dk-barrow .b { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.desk .dk-barrow .b i { display: block; height: 100%; background: var(--gold); border-radius: 5px; transition: width .4s; }
.desk .dk-barrow .n { text-align: right; font-variant-numeric: tabular-nums; }
.desk .dk-texts { display: grid; gap: 4px; max-height: 120px; overflow: auto; }
.desk .dk-text { font-size: 12.5px; padding: 6px 9px; border-radius: 9px; background: rgba(255, 255, 255, .05); line-height: 1.5; }
.play .dk-stage { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(6, 7, 12, .72); backdrop-filter: blur(6px); }
.play .dk-stage[hidden] { display: none; }
.dk-stage .dk-qr { display: grid; justify-items: center; gap: 12px; padding: 28px 34px; border-radius: 24px; background: rgba(20, 22, 30, .95); border: 1px solid rgba(255, 255, 255, .12); }
.dk-stage .dk-qr .k { font-size: 18px; letter-spacing: .06em; color: #fff; }
.dk-stage .dk-qr .code svg { display: block; width: min(300px, 46vh); height: auto; border-radius: 12px; }
.dk-stage .dk-qr .num { font-size: 34px; letter-spacing: .3em; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.dk-stage .dk-qr .url { font-size: 13px; color: rgba(255, 255, 255, .6); }
.dk-stage .dk-qr .cnt { font-size: 14px; color: rgba(255, 255, 255, .85); }
.dk-stage .dk-btn { height: 36px; padding: 0 22px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.dk-stage .dk-wall { width: min(1100px, 92vw); max-height: 86vh; overflow: auto; display: grid; gap: 16px; justify-items: center; padding: 28px; border-radius: 24px; background: rgba(20, 22, 30, .95); border: 1px solid rgba(255, 255, 255, .12); }
.dk-stage .dk-res.big { width: 100%; gap: 12px; }
.dk-stage .dk-res.big .dk-qt { font-size: 26px; font-family: var(--serif); text-align: center; color: #fff; }
.dk-stage .dk-res.big .dk-barrow { grid-template-columns: 8em 1fr 3em; font-size: 20px; color: #fff; }
.dk-stage .dk-res.big .dk-barrow .b { height: 22px; border-radius: 11px; }
.dk-stage .dk-res.big .dk-faint { font-size: 15px; text-align: center; color: rgba(255, 255, 255, .6); }
.dk-stage .dk-res.big .dk-texts { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; max-height: none; }
.dk-stage .dk-res.big .dk-text { font-size: 17px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; }

.desk .dk-roomstart { display: flex; gap: 6px; }
.desk .dk-roomstart .dk-klass { flex: 1; min-width: 0; height: 30px; font-size: 12.5px; padding: 0 10px; border-radius: 9px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.desk .dk-roomstart .dk-btn { flex: none; padding: 0 12px; }

/* ———————— 报告问题、我的反馈（report.js） ———————— */
.modal.report { width: min(600px, 100%); }
.rp-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-kind { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--text2); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.rp-kind:hover { border-color: var(--gold-line); color: var(--text); }
.rp-kind.on { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.report-form textarea { min-height: 120px; }
.rp-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: 14px; color: var(--text2); cursor: pointer; }
.rp-opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--gold); flex: none; }
.rp-opt .grow { flex: 1; min-width: 0; }
.rp-opt small { display: block; color: var(--text3); font-size: 12px; margin-top: 1px; }
.rp-thumb { width: 120px; height: 68px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line2); flex: none; }
.form-stack p.rp-note { margin: 0; font-size: 12px; line-height: 1.6; }
.rp-done { text-align: center; padding-top: 6px; }
.rp-done .rp-ok { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--ok); }
.rp-done .rp-ok svg { width: 26px; height: 26px; }
.myrep { display: flex; flex-direction: column; gap: 10px; }
.myrep-row { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.myrep-row.fresh { border-color: var(--gold-line); background: rgba(var(--acc-rgb), .04); }
.myrep-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.myrep-top b { font-weight: 500; }
.myrep-text { margin: 8px 0 0; color: var(--text2); font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.myrep-reply { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--gold-line); }
.myrep-reply .who { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gold); }
.myrep-reply .who svg { width: 13px; height: 13px; }
.myrep-reply p { margin: 6px 0 0; color: var(--text); font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.modal.myrep-modal .myrep { max-height: 56vh; overflow: auto; padding-right: 4px; }
