/* 深色为默认，浅色由 html[data-theme="light"] 切换 */
:root {
  --bg: #0b0b0d; --bg2: #151518; --bg3: #1d1d21; --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14);
  --fg: #f5f5f7; --fg2: rgba(235, 235, 245, .66); --fg3: rgba(235, 235, 245, .5);
  --accent: #ffb340; --accent-text: #ffb340; --accent-soft: rgba(255, 179, 64, .14); --accent-soft2: rgba(255, 179, 64, .24); --on-accent: #1a1205;
  --fill: rgba(255, 255, 255, .07); --fill-hover: rgba(255, 255, 255, .12); --fill-strong: rgba(255, 255, 255, .14); --ind-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  --nav-bg: rgba(11, 11, 13, .72); --nav-edge: rgba(11, 11, 13, .5); --solid: #18181b;
  --hero-shadow: 0 30px 80px rgba(0, 0, 0, .5); --lift-shadow: 0 14px 30px rgba(0, 0, 0, .5); --pv-ring: rgba(255, 255, 255, .08);
  --scrim: rgba(0, 0, 0, .45); --drawer-bg: rgba(24, 24, 28, .82); --drawer-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 80px rgba(0, 0, 0, .5);
  --ring-bg: rgba(255, 255, 255, .16); --done-bg: rgba(255, 255, 255, .22); --done-fg: #fff; --track: rgba(255, 255, 255, .14);
  --cta-bg: #f5f5f7; --cta-fg: #000; --cta-hover: #fff;
  --amb-opacity: .3; --amb-blend: normal;
  --menu-bg: rgba(36, 36, 40, .9);
  --w: 1080px;
  --pal-bg: rgba(28, 28, 32, .9); --pal-fg: var(--fg); --pal-dim: var(--fg3); --pal-sel: rgba(255, 255, 255, .1); --pal-line: var(--line); --pal-accent: var(--accent-text);
  --sheet-bg: #1c1c1f; --sheet-fg: var(--fg); --sheet-line: var(--line); --sheet-btn: rgba(255, 255, 255, .1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f5f7; --bg2: #ffffff; --bg3: #e8e8ed; --line: rgba(0, 0, 0, .08); --line2: rgba(0, 0, 0, .12);
  --fg: #1d1d1f; --fg2: #48484d; --fg3: #636366;
  --accent: #ff9f0a; --accent-text: #9c4f08; --accent-soft: rgba(255, 159, 10, .13); --accent-soft2: rgba(255, 159, 10, .22); --on-accent: #1a1205;
  --fill: rgba(0, 0, 0, .05); --fill-hover: rgba(0, 0, 0, .08); --fill-strong: #fff; --ind-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .06);
  --nav-bg: rgba(245, 245, 247, .76); --nav-edge: rgba(0, 0, 0, .05); --solid: #f5f5f7;
  --hero-shadow: 0 12px 32px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .06); --lift-shadow: 0 14px 30px rgba(0, 0, 0, .14); --pv-ring: rgba(0, 0, 0, .1);
  --scrim: rgba(0, 0, 0, .22); --drawer-bg: rgba(250, 250, 252, .86); --drawer-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 30px 80px rgba(0, 0, 0, .18), 0 0 0 .5px rgba(0, 0, 0, .08);
  --ring-bg: rgba(0, 0, 0, .14); --done-bg: rgba(0, 0, 0, .1); --done-fg: #1d1d1f; --track: rgba(0, 0, 0, .1);
  --cta-bg: #1d1d1f; --cta-fg: #fff; --cta-hover: #000;
  --amb-opacity: .55; --amb-blend: color;
  --menu-bg: rgba(255, 255, 255, .96);
  --pal-bg: rgba(255, 255, 255, .96); --pal-sel: rgba(0, 0, 0, .085);
  --sheet-bg: #fff; --sheet-btn: rgba(0, 0, 0, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
html:not(.kbd) :focus-visible { outline: none; }  /* 鼠标点过的元素按键后 Chrome 也会算 focus-visible，只有用 Tab 时才画焦点框 */
.pl :focus-visible { outline-color: var(--pl-accent); }
.pl-scrub:focus-visible { outline: none; }
.tn { font-variant-numeric: tabular-nums; }
svg { display: block; }
[hidden] { display: none !important; }
img.gone { visibility: hidden; }

/* 顶栏：半透明材质，内容从下面滚过 */
.nav {
  position: sticky; top: 0; z-index: 20; height: 56px; padding: 0 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--nav-bg); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; background: linear-gradient(var(--nav-edge), transparent); pointer-events: none; opacity: var(--edge, 0); transition: opacity .2s; }
.nav-l { display: flex; align-items: center; gap: 6px; }
.nav-r { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.icon-btn { height: 34px; padding: 0 12px 0 10px; border-radius: 10px; display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 550; color: var(--fg2); transition: background .12s, color .12s, transform .1s; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--fill-hover); color: var(--fg); }
.icon-btn:active { transform: scale(.96); }
.icon-btn svg { width: 18px; height: 18px; }
.brand { font-size: 17px; font-weight: 700; letter-spacing: .02em; padding: 0 8px; border-radius: 8px; }
.tabs { position: relative; display: flex; padding: 3px; border-radius: 12px; background: var(--fill); }
.tabs a { position: relative; z-index: 1; padding: 5px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--fg2); white-space: nowrap; transition: color .15s; }
.tabs a[aria-current] { color: var(--fg); }
.tabs .ind { position: absolute; left: 0; top: 3px; bottom: 3px; border-radius: 9px; background: var(--fill-strong); box-shadow: var(--ind-shadow); }
.search { height: 34px; width: 248px; padding: 0 8px 0 12px; border-radius: 10px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--fg3); background: var(--fill); transition: background .12s; }
.search:hover { background: var(--fill-hover); }
.search svg { width: 16px; height: 16px; }
.search kbd { margin-left: auto; font: 600 11.5px/1 -apple-system, sans-serif; padding: 4px 6px; border-radius: 6px; background: var(--fill); color: var(--fg2); }

/* 顶栏菜单：外观、账户 */
.menu-wrap { position: relative; }
.icon-btn.only { width: 34px; padding: 0; justify-content: center; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 168px; padding: 5px; border-radius: 14px;
  background: var(--menu-bg); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  box-shadow: var(--drawer-shadow); transform-origin: calc(100% - 17px) 0; scale: .94; opacity: 0; pointer-events: none; visibility: hidden;
  transition: scale .22s cubic-bezier(.2, .9, .3, 1.15), opacity .14s ease, visibility 0s linear .14s;
}
.menu.open { scale: 1; opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 550; color: var(--fg); text-align: left; }
.menu button:hover { background: var(--fill-hover); }
.menu button:focus-visible { background: var(--fill-hover); outline: none; box-shadow: inset 0 0 0 1.5px var(--accent-text); }
.menu button svg { width: 16px; height: 16px; color: var(--fg2); }
.menu button .ck { margin-left: auto; width: 14px; height: 14px; color: var(--accent-text); opacity: 0; }
.menu button[aria-checked="true"] .ck { opacity: 1; }

main { padding: 20px 32px 96px; }
.hero { position: relative; width: min(var(--w), 100%); margin: 0 auto; }
.amb { position: absolute; left: -10%; top: -12%; width: 120%; height: 124%; filter: blur(80px) saturate(1.4); opacity: var(--amb-opacity); mix-blend-mode: var(--amb-blend); z-index: 0; pointer-events: none; transition: opacity .6s; }
.hero .pl { z-index: 1; box-shadow: var(--hero-shadow); border-radius: 14px; }
.noplay { aspect-ratio: 16 / 9; border-radius: 14px; background: var(--bg2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: var(--fg2); }
.noplay b { color: var(--fg); font-size: 17px; }

.meta { width: min(var(--w), 100%); margin: 26px auto 0; display: flex; gap: 32px; align-items: flex-end; }
.meta-main { flex: 1; min-width: 0; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--fg3); display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow b { color: var(--accent-text); font-weight: 650; }
.eyebrow i { font-style: normal; opacity: .5; }
h1 { margin: 6px 0 0; font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.sub { margin: 8px 0 0; font-size: 15px; color: var(--fg2); }
.step { display: flex; gap: 8px; flex: none; }
.step a { height: 38px; padding: 0 14px; border-radius: 12px; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; background: var(--fill); color: var(--fg2); transition: background .12s, color .12s, transform .1s; }
.step a:hover { background: var(--fill-hover); color: var(--fg); }
.step a:active { transform: scale(.96); }
.step a[aria-disabled] { opacity: .35; pointer-events: none; }
.step svg { width: 16px; height: 16px; }

.sec-h { width: min(var(--w), 100%); margin: 52px auto 16px; display: flex; align-items: baseline; gap: 12px; }
.sec-h h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.sec-h .cnt { font-size: 13.5px; color: var(--fg3); }
.sec-h .end { margin-left: auto; display: flex; gap: 6px; }
.round { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--fg2); transition: background .12s, transform .1s; }
.round:hover { background: var(--fill-hover); color: var(--fg); }
.round:active { transform: scale(.92); }
.round svg { width: 16px; height: 16px; }
.strip-wrap { position: relative; width: min(var(--w), 100%); margin: 0 auto; }
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 4px; padding: 6px 4px 8px; margin: -6px -4px 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip-wrap::before, .strip-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 2; pointer-events: none; transition: opacity .2s; }
.strip-wrap::before { left: -4px; background: linear-gradient(90deg, var(--bg), transparent); opacity: var(--fl, 0); }
.strip-wrap::after { right: -4px; background: linear-gradient(-90deg, var(--bg), transparent); opacity: var(--fr, 1); }
.strip-wrap:not(:has(.strip))::before, .strip-wrap:not(:has(.strip))::after { content: none; }
.chap { flex: none; width: 212px; scroll-snap-align: start; text-align: left; border-radius: 12px; }
.chap .th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 11px; overflow: hidden; background: var(--bg3); transition: transform .2s cubic-bezier(.2, .9, .25, 1), box-shadow .2s; }
.chap .th::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--pv-ring); pointer-events: none; }
.chap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chap:hover .th { transform: translateY(-2px); box-shadow: var(--lift-shadow); }
.chap:active .th { transform: scale(.98); }
.chap .tc { position: absolute; left: 8px; bottom: 9px; padding: 2px 7px; border-radius: 7px; font-size: 12px; font-weight: 650; color: #fff; background: rgba(0, 0, 0, .58); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chap .pg { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .18); }
.chap .pg i { position: absolute; inset: 0; background: rgba(255, 255, 255, .9); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.chap .nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 9px; font-size: 13.5px; line-height: 1.45; font-weight: 550; color: var(--fg2); }
.chap.done .nm { color: var(--fg3); }
.chap.cur .th { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.chap.cur .pg i { background: var(--accent); }
.chap.cur .nm { color: var(--fg); }
.chap.cur .tc { background: var(--accent); color: var(--on-accent); }
.now { display: none; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 650; color: var(--accent-text); }
.chap.cur .now { display: flex; }
.chap.cur .nm { margin-top: 4px; }
.eq { display: flex; gap: 2px; align-items: flex-end; height: 10px; }
.eq i { width: 2.5px; background: currentColor; border-radius: 1px; height: 40%; }
[data-playing] .eq i { animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; height: 90%; }
.eq i:nth-child(3) { animation-delay: -.6s; height: 60%; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.loop-tag { display: none; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--accent-soft); }
.chap.looping .loop-tag { display: inline; }

.cols { width: min(var(--w), 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
.cols .sec-h { width: auto; margin-top: 56px; }
.note { padding: 22px 0; border-top: 1px solid var(--line); }
.note:first-of-type { border-top: 0; padding-top: 4px; }
.note h3 { margin: 0; font-size: 17px; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.ts { height: 24px; padding: 0 8px; border-radius: 7px; font-size: 12.5px; font-weight: 650; color: var(--accent-text); background: var(--accent-soft); transition: background .12s, transform .1s; flex: none; }
.ts:hover { background: var(--accent-soft2); }
.ts:active { transform: scale(.94); }
.note p { margin: 8px 0 0; color: var(--fg2); line-height: 1.8; max-width: 40em; }
.note figure { margin: 16px 0 0; }
.note figure img { width: 100%; display: block; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--pv-ring); }
.note figcaption { margin-top: 8px; font-size: 12.5px; color: var(--fg3); display: flex; gap: 8px; align-items: center; }
.empty { padding: 28px 0; color: var(--fg3); font-size: 14px; }

.files { display: flex; flex-direction: column; gap: 10px; }
.file { width: 100%; display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: var(--bg2); text-align: left; transition: background .12s, transform .12s; }
.file .fx { display: flex; flex-direction: column; min-width: 0; }
.file:hover { background: var(--bg3); }
.file:active { transform: scale(.985); }
.file .pv { flex: none; width: 56px; height: 74px; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--pv-ring); }
.file .pv img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.file .pv.ico { display: grid; place-items: center; background: var(--fill); box-shadow: none; color: var(--fg3); width: 44px; height: 44px; border-radius: 10px; }
.file .pv.ico svg { width: 20px; height: 20px; }
.file .k { font-size: 12px; font-weight: 600; color: var(--accent-text); }
.file .n { font-size: 14.5px; font-weight: 600; margin-top: 1px; word-break: break-all; }
.file .m { font-size: 12.5px; color: var(--fg3); margin-top: 2px; }
.file .go { margin-left: auto; color: var(--fg3); flex: none; }
.file .go svg { width: 16px; height: 16px; }
.files-more { margin-top: 6px; font-size: 13px; color: var(--fg3); }
.file.sm { padding: 8px 10px; }
.file.sm .pv { width: 40px; height: 52px; }

.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer {
  position: fixed; left: 10px; top: 10px; bottom: 10px; z-index: 41; width: 360px; border-radius: 20px; display: flex; flex-direction: column;
  background: var(--drawer-bg); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  box-shadow: var(--drawer-shadow);
  transform: translateX(calc(-100% - 20px)); visibility: hidden; transition: transform .38s cubic-bezier(.2, .95, .25, 1), visibility 0s linear .38s;
}
.drawer-open .scrim { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 20px; }
.drawer-h b { font-size: 17px; }
.drawer-body { flex: 1; overflow: auto; padding: 4px 10px 20px; overscroll-behavior: contain; }
.course { border-radius: 12px; }
.course > button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 12px; text-align: left; transition: background .12s; }
.course > button:hover { background: var(--fill); }
.course .cn { font-size: 15px; font-weight: 650; flex: 1; }
.course .cc { font-size: 12.5px; color: var(--fg3); }
.course .chev { width: 14px; height: 14px; color: var(--fg3); transition: rotate .25s; }
.course.open .chev { rotate: 90deg; }
.course .ls { display: none; padding: 2px 0 8px; }
.course.open .ls { display: block; }
.grp { padding: 10px 12px 4px; font-size: 12px; font-weight: 650; color: var(--fg3); }
.lrow { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 12px; border-radius: 10px; font-size: 14px; color: var(--fg2); transition: background .12s; }
.lrow:hover { background: var(--fill); color: var(--fg); }
.lrow[aria-current] { background: var(--accent-soft); color: var(--fg); }
.lrow .d { margin-left: auto; font-size: 12.5px; color: var(--fg3); flex: none; }
.lrow.off { opacity: .55; }
.lrow .lt { min-width: 0; display: flex; flex-direction: column; }
.lrow .lt small { font-size: 12.5px; color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow[aria-current] .lt small { color: var(--fg2); }
.ring { width: 16px; height: 16px; flex: none; }
.ring circle { fill: none; stroke-width: 2.4; }
.ring .bg { stroke: var(--ring-bg); }
.ring .db { fill: var(--done-bg); }
.ring .dc { fill: none; stroke: var(--done-fg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ring .fg { stroke: var(--accent-text); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
.ring.full .fg { stroke: var(--fg3); }
.drawer-foot { padding: 12px 20px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg3); }
.drawer-foot a { color: var(--accent-text); font-weight: 600; }

.xgm main { padding-top: 24px; }
.feature { width: min(1240px, 100%); margin: 0 auto; position: relative; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); border-radius: 22px; overflow: hidden; background: var(--bg2); min-height: 400px; }
.feature .art { position: relative; overflow: hidden; }
.feature .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--bg2)); }
.feature .info { padding: 40px 40px 36px 12px; display: flex; flex-direction: column; justify-content: center; }
:root[data-theme="light"] .feature .art::after { display: none; }
:root[data-theme="light"] .feature .info { padding-left: 36px; }
.feature .kick { font-size: 13px; font-weight: 650; color: var(--accent-text); }
.feature h2 { margin: 8px 0 0; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.feature .ser { margin-top: 6px; color: var(--fg2); }
.feature .bar { margin: 24px 0 8px; height: 4px; border-radius: 4px; background: var(--track); overflow: hidden; }
.feature .bar i { display: block; height: 100%; background: var(--accent); width: calc(var(--p) * 100%); border-radius: 4px; }
.feature .left { font-size: 13px; color: var(--fg3); }
.cta { margin-top: 26px; align-self: flex-start; height: 44px; padding: 0 22px 0 18px; border-radius: 22px; background: var(--cta-bg); color: var(--cta-fg); font-weight: 650; display: flex; align-items: center; gap: 8px; transition: transform .12s, background .12s; }
.cta:hover { background: var(--cta-hover); }
.cta:active { transform: scale(.96); }
.cta svg { width: 18px; height: 18px; }
.stats { width: min(1240px, 100%); margin: 20px auto 0; display: flex; gap: 28px; font-size: 13.5px; color: var(--fg3); }
.stats b { color: var(--fg); font-size: 15px; margin-right: 4px; }
.shelf { width: min(1240px, 100%); margin: 0 auto; }
.shelf .sec-h { width: auto; margin-top: 44px; }
.row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 16px; }
.card { display: block; border-radius: 14px; }
.card .cv { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--bg3); transition: transform .22s cubic-bezier(.2, .9, .25, 1), box-shadow .22s; }
.card .cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card:hover .cv { transform: translateY(-3px); box-shadow: var(--lift-shadow); }
.card:active .cv { transform: scale(.98); }
.card .pg { position: absolute; left: 10px; right: 10px; bottom: 9px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.card .pg i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--accent); }
.card .done-tag { position: absolute; right: 8px; top: 8px; padding: 2px 8px; border-radius: 7px; font-size: 12px; font-weight: 650; color: #fff; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.card .t { margin-top: 10px; font-size: 15px; font-weight: 650; }
.card .s { margin-top: 2px; font-size: 13px; color: var(--fg3); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
@media (prefers-reduced-transparency: reduce) { .nav::before, .drawer, .menu { background: var(--solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 900px) {
  main { padding: 12px 16px 64px; }
  .nav { grid-template-columns: auto 1fr auto; padding: 0 10px; }
  .search { width: 34px; padding: 0; justify-content: center; } .search span, .search kbd { display: none; }
  .meta { flex-direction: column; align-items: stretch; gap: 16px; } h1 { font-size: 26px; }
  .cols { grid-template-columns: 1fr; gap: 0; }
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: 1fr; } .feature .art { aspect-ratio: 16 / 9; } .feature .art::after { background: linear-gradient(transparent 60%, var(--bg2)); } .feature .info { padding: 8px 20px 24px; }
  :root[data-theme="light"] .feature .info { padding: 20px 20px 24px; }
}

.hw { margin-bottom: 14px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); }
.hw-h { font-size: 13px; font-weight: 650; color: var(--accent-text); margin-bottom: 6px; }
.hw-i { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.hw-i + .hw-i { border-top: 1px solid var(--line); }
.hw-i p { margin: 1px 0 0; font-size: 14px; line-height: 1.65; color: var(--fg); }
.hw .ts { background: var(--bg2); }

.more { margin-top: 16px; }
.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 4px; font-size: 14px; font-weight: 600; color: var(--fg2); border-radius: 10px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .2s; }
.more[open] summary::after { rotate: 225deg; translate: 0 2px; }
.more summary:hover { color: var(--fg); }
.more summary .cnt { font-size: 13px; color: var(--fg3); font-weight: 500; }
.more .files { margin-top: 4px; }
.empty.big { padding: 18vh 20px; text-align: center; font-size: 16px; line-height: 2.4; }

/* 按钮、表单 */
.btn { height: 40px; padding: 0 18px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 650; font-size: 14.5px; background: var(--cta-bg); color: var(--cta-fg); transition: background .12s, transform .1s, opacity .12s; }
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.ghost { background: var(--fill); color: var(--fg); }
.btn.ghost:hover { background: var(--fill-hover); }
.btn.small { height: 30px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg2); }
.field input, .field select { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); color: var(--fg); font: 500 15px/1 inherit; font-family: inherit; outline: none; transition: border-color .12s, box-shadow .12s; }
.field input:focus, .field select:focus { border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft); }
.field small { font-weight: 500; color: var(--fg3); }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--fg2); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }
.dlg-err { min-height: 20px; margin: 0; font-size: 13.5px; color: #e5484d; }
:root[data-theme="light"] .dlg-err { color: #c7333a; }

/* 登录 */
.login-page { min-height: 100vh; min-height: 100dvh; display: grid; }
.login { display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(360px, 100%); display: flex; flex-direction: column; gap: 16px; }
.login-mark { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 25px; font-weight: 700; background: var(--accent); color: var(--on-accent); margin-bottom: 4px; }
.login h1 { font-size: 30px; margin: 0; }
.login-sub { margin: -10px 0 6px; color: var(--fg3); font-size: 15px; }
.pw { position: relative; display: flex; }
.pw input { flex: 1; padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--fg3); }
.pw-eye:hover { color: var(--fg); background: var(--fill); }
.pw-eye[aria-pressed="true"] { color: var(--accent-text); }
.pw-eye svg { width: 19px; height: 19px; }
.login-go { height: 46px; border-radius: 13px; font-weight: 650; font-size: 15.5px; background: var(--cta-bg); color: var(--cta-fg); transition: background .12s, transform .1s, opacity .12s; }
.login-go:hover { background: var(--cta-hover); }
.login-go:active { transform: scale(.98); }
.login-go:disabled { opacity: .6; }
.login-err { margin: -6px 0 0; font-size: 13.5px; color: #e5484d; }
:root[data-theme="light"] .login-err { color: #c7333a; }
.login-err:empty { display: none; }

/* 对话框 */
.dlg { padding: 0; border: 0; border-radius: 20px; background: var(--menu-bg); color: var(--fg); box-shadow: var(--drawer-shadow); width: min(400px, calc(100% - 32px)); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%); }
.dlg::backdrop { background: var(--scrim); }
.dlg-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.dlg h2 { margin: 0; font-size: 19px; }
.dlg-sub { margin: -6px 0 2px; font-size: 13.5px; color: var(--fg3); }
.dlg-act { display: flex; justify-content: flex-end; gap: 8px; }

.up { width: min(820px, 100%); margin: 0 auto; }
.up-h .back { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--fg3); margin-left: -4px; }
.up-h .back:hover { color: var(--fg); }
.up-h .back svg { width: 16px; height: 16px; }
.up-h h1 { margin-top: 10px; }
.up-form { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.drop { min-height: 168px; border-radius: 18px; border: 1.5px dashed var(--line2); background: var(--bg2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 24px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent-text); background: var(--accent-soft); }
.drop-i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--fg2); margin-bottom: 4px; }
.drop-i svg { width: 22px; height: 22px; }
.drop-t { font-weight: 650; font-size: 15.5px; word-break: break-all; }
.drop-m { font-size: 13px; color: var(--fg3); }
.up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.up-grid .wide { grid-column: 1 / -1; }
.up-act { display: flex; gap: 8px; }
.up-bar { height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; }
.up-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .3s; }
.up-note { font-size: 13.5px; color: var(--fg2); min-height: 20px; margin-top: -8px; }
.jobs .sec-h { width: auto; margin-top: 44px; }
.job-list { display: flex; flex-direction: column; gap: 8px; }
.job { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg2); }
.job-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.job-t b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-t span { font-size: 12.5px; color: var(--fg3); }
.job-t .job-e { color: #e5484d; }
.job-s { display: flex; align-items: center; gap: 10px; flex: none; }
.pill { font-size: 12.5px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--fill); color: var(--fg2); }
.job.ready .pill { background: var(--accent-soft); color: var(--accent-text); }
.job.failed .pill { color: #e5484d; }

.wg-sheet-img { display: grid; place-items: center; overflow: auto; background: var(--sheet-bg); }
.wg-sheet-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wg-sheet-audio { display: grid; place-items: center; background: var(--sheet-bg); }
.wg-sheet-audio audio { width: min(520px, 90%); }

@media (max-width: 900px) {
  .nav-r { gap: 2px; }
  .jobs .sec-h { margin-top: 32px; }
}
@media (max-width: 600px) {
  .nav { padding: 0 8px; }
  #openCourses { width: 34px; padding: 0; justify-content: center; }
  #openCourses span { display: none; }
  .brand { padding: 0 4px; font-size: 16px; }
  .tabs a { padding: 5px 11px; font-size: 13px; }
  .step a { flex: 1; justify-content: center; }
  .feature h2 { font-size: 24px; }
  .stats { flex-wrap: wrap; gap: 8px 20px; }
}
@media (max-width: 420px) {
  .brand { display: none; }
}
@media (max-width: 900px) {
  .up-grid { grid-template-columns: 1fr; }
  .job { flex-wrap: wrap; }
}
