/* ============================================================
   AI 面试工具 · 原型共享样式
   视觉语言：学院派门户风（白底大留白 + 深海军蓝 + 克制点缀）
   仅引用 tokens.css 令牌，不写死色值
   ============================================================ */

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
}
img { display: block; max-width: 100%; object-fit: cover; }
a { color: var(--color-link); text-decoration: none; transition: color var(--t-color); }
a:hover { color: var(--color-primary); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--bg-banner-from); }
:focus-visible { outline: 2px solid var(--color-link); outline-offset: 2px; }
[id] { scroll-margin-top: calc(var(--nav-h-compact) + 20px); }

/* 滚动条：与整体视觉同族 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-muted); }
::-webkit-scrollbar-thumb { background: var(--footer-text); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-link); }
html { scrollbar-width: thin; scrollbar-color: var(--footer-text) var(--bg-muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 工具类 ---------- */
.flex { display: flex; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-link { color: var(--color-link); }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--text-success); }
.text-warning { color: var(--text-warning); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.hidden { display: none !important; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 24px; border-radius: var(--radius-ctrl);
  font-size: 15px; font-weight: 500; line-height: 1; border: 1px solid transparent;
  background: none; color: var(--text-primary);
  transition: background var(--t-color), color var(--t-color), border-color var(--t-color);
  white-space: nowrap; user-select: none;
}
.btn svg { flex: none; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--color-link); color: var(--color-link); }
.btn-secondary:hover { background: var(--bg-tag); }
.btn-text { color: var(--color-link); padding: 0 8px; height: 32px; }
.btn-text:hover { color: var(--color-primary); }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover { background: #C50010; color: #fff; }
.btn-sm { height: 32px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 48px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled {
  background: var(--bg-muted); color: var(--text-disabled);
  border-color: transparent; cursor: not-allowed; pointer-events: none;
}
.btn-secondary:disabled { background: #fff; border-color: var(--border-light); }

/* ---------- 表单 ---------- */
.field { margin-bottom: var(--space-md); }
.field-label { display: block; font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 8px; }
.field-label .req { color: var(--color-danger); margin-left: 2px; }
.field-label .opt { color: var(--text-tertiary); font-weight: 400; font-size: 12px; margin-left: 6px; }
.input, .textarea, .select {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-ctrl);
  font-size: 15px; color: var(--text-primary); background: #fff;
  transition: border-color var(--t-color), box-shadow var(--t-color);
}
.textarea { height: auto; min-height: 120px; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--color-link);
  box-shadow: 0 0 0 2px rgba(31, 95, 168, .15);
}
.input::placeholder, .textarea::placeholder { color: var(--text-tertiary); }
.field.error .input, .field.error .textarea, .field.error .select { border-color: var(--color-danger); }
.field-error { display: none; font-size: 12px; color: var(--color-danger); margin-top: 4px; }
.field.error .field-error { display: block; }
.field-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.field-count { float: right; font-size: 12px; color: var(--text-tertiary); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-lg); }
.form-grid .span-2 { grid-column: span 2; }
.checkbox { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-secondary); cursor: pointer; line-height: 1.6; }
.checkbox input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--color-link); flex: none; }

/* 标签选择器（胶囊） */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 16px; border-radius: 999px;
  background: var(--bg-muted); color: var(--text-secondary);
  font-size: 14px; border: 1px solid transparent;
  transition: background var(--t-color), color var(--t-color);
}
.chip:hover { color: var(--color-link); }
.chip.on { background: var(--bg-tag); color: var(--color-link); border-color: rgba(31, 95, 168, .3); font-weight: 500; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }

/* 小标签 */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; line-height: 1.4; padding: 2px 8px;
  border-radius: var(--radius-tag); background: var(--bg-tag); color: var(--color-link);
  white-space: nowrap; font-weight: 400;
}
.tag-success { background: var(--bg-success); color: var(--text-success); }
.tag-danger { background: var(--bg-danger); color: var(--color-danger); }
.tag-warning { background: var(--bg-warning); color: var(--text-warning); }
.tag-gray { background: var(--bg-muted); color: var(--text-secondary); }

/* ---------- 顶部导航（双态 sticky） ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--t-nav);
}
.site-nav.compact { box-shadow: var(--shadow-nav); }
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h); display: flex; align-items: center; gap: var(--space-xl);
  transition: height var(--t-nav);
}
.site-nav.compact .nav-inner { height: var(--nav-h-compact); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  width: 64px; height: 64px; flex: none;
  display: flex; align-items: center; justify-content: center;
  transition: width var(--t-nav), height var(--t-nav);
}
.site-nav.compact .brand-mark { width: 40px; height: 40px; }
.brand-name { line-height: 1.3; transition: opacity var(--t-nav); }
.brand-name .zh { font-size: 19px; font-weight: 600; color: var(--color-primary); display: block; }
.brand-name .en { font-size: 11px; color: var(--text-tertiary); display: block; letter-spacing: .3px; }
.site-nav.compact .brand-name { display: none; }
.nav-links { display: flex; align-items: center; gap: 56px; margin-left: var(--space-lg); flex: 1; }
.nav-item { display: flex; align-items: center; gap: 10px; position: relative; padding: 6px 0; }
.nav-item .nav-ico { color: var(--color-primary); display: flex; transition: color var(--t-color); }
.nav-item .nav-ico svg { width: 30px; height: 30px; transition: width var(--t-nav), height var(--t-nav); }
.site-nav.compact .nav-item .nav-ico svg { width: 22px; height: 22px; }
.nav-item .zh { font-size: 17px; font-weight: 500; color: var(--color-primary); display: block; line-height: 1.3; transition: color var(--t-color), font-size var(--t-nav); }
.nav-item .en { font-size: 12px; color: var(--text-tertiary); display: block; line-height: 1.3; }
.site-nav.compact .nav-item .zh { font-size: 15px; }
.site-nav.compact .nav-item .en { display: none; }
.nav-item:hover .zh, .nav-item:hover .nav-ico { color: var(--color-link); }
.nav-item.current .zh { color: var(--color-link); }
.nav-item.current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--color-link);
}
.site-nav.compact .nav-item.current::after { bottom: -8px; }
.nav-actions { display: flex; align-items: center; gap: var(--space-md); margin-left: auto; flex: none; }
.nav-icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--color-primary); border-radius: var(--radius-ctrl);
  transition: color var(--t-color);
}
.nav-icon-btn:hover { color: var(--color-link); }
.nav-quota { font-size: 12px; color: var(--text-tertiary); white-space: nowrap; }
.nav-quota b { color: var(--color-link); font-weight: 600; }
.nav-user { position: relative; }
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--color-primary); color: #fff; font-size: 15px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.nav-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); width: 180px;
  background: #fff; border-radius: var(--radius-float); box-shadow: var(--shadow-float);
  padding: 8px 0; display: none; z-index: 120;
}
.nav-dropdown.open { display: block; }
.nav-dropdown .dd-head { padding: 8px 16px 12px; border-bottom: 1px solid var(--border-light); margin-bottom: 4px; }
.nav-dropdown .dd-head .name { font-size: 15px; font-weight: 600; color: var(--color-primary); }
.nav-dropdown .dd-head .sub { font-size: 12px; color: var(--text-tertiary); }
.nav-dropdown a, .nav-dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 16px; font-size: 14px; color: var(--text-primary);
  background: none; border: none; text-align: left;
  transition: color var(--t-color), background var(--t-color);
}
.nav-dropdown a:hover, .nav-dropdown button:hover { color: var(--color-link); background: var(--bg-hover); }
.nav-burger { display: none; }
.nav-drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 190; opacity: 0; pointer-events: none; transition: opacity var(--t-nav); }
.nav-drawer-mask.open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 280px; z-index: 200;
  background: #fff; transform: translateX(100%); transition: transform var(--t-nav);
  padding: 20px 0; overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 16px; border-bottom: 1px solid var(--border-light); margin-bottom: 8px; }
.nav-drawer a { display: flex; align-items: center; gap: 12px; padding: 14px 20px; font-size: 16px; color: var(--text-primary); min-height: 44px; }
.nav-drawer a.current { color: var(--color-link); font-weight: 500; }
.nav-drawer a:hover { color: var(--color-link); }

/* ---------- 双语区块标题 + 更多 ---------- */
.sec-head { display: flex; align-items: baseline; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.sec-head .zh { font-size: 22px; font-weight: 600; color: var(--color-primary); line-height: 1.4; }
.sec-head .en { font-size: 16px; font-weight: 400; color: var(--text-tertiary); line-height: 1.4; }
.sec-head .more {
  margin-left: auto; font-size: 18px; color: var(--text-tertiary); line-height: 1;
  padding: 4px 8px; transition: color var(--t-color);
}
.sec-head .more:hover { color: var(--color-link); }

/* ---------- 日期前置记录列表（核心范式） ---------- */
.record-list { list-style: none; margin: 0; padding: 0; }
.record-row { display: flex; align-items: center; gap: 14px; min-height: 36px; }
.record-date { flex: none; width: 50px; font-size: 14px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.record-date.full { width: 90px; }
.record-date .d-short { display: none; }
.record-title {
  flex: 1; min-width: 0; font-size: 15px; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--t-color); cursor: pointer; line-height: 36px;
}
.record-title:hover { color: var(--color-link); }
.record-row.pinned .record-title { color: var(--color-danger); font-weight: 600; }
.record-row.pinned .record-title:hover { color: var(--color-danger); }
.record-row.visited .record-title { color: var(--text-tertiary); }
.record-tags { display: flex; gap: 6px; flex: none; }
.record-actions { display: flex; gap: 4px; flex: none; align-items: center; }
.record-actions .btn-text { height: 28px; font-size: 13px; padding: 0 6px; }
.record-empty { padding: 32px 0; }

/* ---------- Hero 三联图 ---------- */
.hero-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px 20px 0; }
.hero-band img { width: 100%; height: clamp(220px, 24.2vw, 465px); border-radius: var(--radius-img); }

/* ---------- 浅蓝渐变横幅（唯一渐变场景） ---------- */
.gradient-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--bg-banner-from), var(--bg-banner-to));
  min-height: 110px; display: flex; align-items: center; gap: var(--space-lg);
  padding: 20px 32px;
}
.gradient-banner .waves { position: absolute; right: 0; top: 0; height: 100%; width: 55%; pointer-events: none; }
.gradient-banner .banner-badge { flex: none; width: 56px; height: 56px; color: var(--color-primary); display: flex; align-items: center; justify-content: center; }
.gradient-banner .banner-text { position: relative; z-index: 1; }
.gradient-banner .banner-title { font-size: 24px; font-weight: 700; color: var(--color-primary); line-height: 1.3; }
.gradient-banner .banner-sub { font-size: 15px; font-weight: 400; color: var(--text-secondary); margin-top: 4px; }
.gradient-banner .banner-cta { margin-left: auto; position: relative; z-index: 1; flex: none; }

/* ---------- 视频卡片组（中间大两侧小） ---------- */
.video-trio { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 30px; align-items: center; }
.video-card { cursor: pointer; }
.video-cover { position: relative; border-radius: var(--radius-img); overflow: hidden; }
.video-cover img { width: 100%; aspect-ratio: 16 / 9; transition: filter var(--t-color); }
.video-card:hover .video-cover img { filter: brightness(1.06); }
.video-card.side { width: 88%; margin: 0 auto; }
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9); background: rgba(0,0,0,.28);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-color);
}
.video-card.main .play-btn { width: 56px; height: 56px; }
.play-btn::after {
  content: ""; margin-left: 3px;
  border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.05); }
.video-title { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 10px; }
.video-card.main .video-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }

/* ---------- 快捷入口图标行 ---------- */
.quick-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-lg); }
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 12px 0; color: var(--color-primary); cursor: pointer;
  transition: color var(--t-color), transform var(--t-color);
}
.quick-item svg { width: 44px; height: 44px; }
.quick-item .label { font-size: 15px; color: var(--text-primary); transition: color var(--t-color); }
.quick-item:hover { color: var(--color-link); transform: translateY(-2px); }
.quick-item:hover .label { color: var(--color-link); }

/* ---------- 频道横幅 + 侧栏布局 ---------- */
.channel-banner { height: 200px; overflow: hidden; }
.channel-banner img { width: 100%; height: 100%; object-position: center 60%; }
.channel-layout { display: grid; grid-template-columns: var(--side-w) 1fr; gap: 30px; align-items: start; }
.side-menu { background: var(--bg-muted); }
.side-head { background: var(--color-footer); color: #fff; padding: 22px 24px; }
.side-head .zh { font-size: 20px; font-weight: 600; line-height: 1.4; }
.side-head .en { font-size: 12px; color: var(--footer-text); margin-top: 2px; }
.side-items { list-style: none; margin: 0; padding: 8px 0 16px; }
.side-item { position: relative; }
.side-item a, .side-item button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: 44px; padding: 0 20px; font-size: 15px; color: var(--text-primary);
  background: none; border: none; text-align: left;
  transition: color var(--t-color), background var(--t-color);
}
.side-item::after {
  content: ""; position: absolute; left: 17px; right: 17px; bottom: 0;
  height: 1px; background: var(--border-light);
}
.side-item:last-child::after { display: none; }
.side-item a:hover, .side-item button:hover { color: var(--color-link); background: var(--bg-hover); }
.side-item.current a, .side-item.current button { color: var(--color-link); font-weight: 500; }
.side-item.current::before {
  content: ""; position: absolute; left: 17px; right: 17px; bottom: 0;
  height: 2px; background: var(--color-link); z-index: 1;
}
.side-note { padding: 16px 20px; font-size: 12px; color: var(--text-tertiary); line-height: 1.7; }

/* ---------- 页头 / 面包屑 ---------- */
.page-head { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.page-title { font-size: 24px; font-weight: 600; color: var(--color-primary); line-height: 1.4; margin: 0; }
.page-head .head-actions { margin-left: auto; display: flex; gap: var(--space-sm); align-items: center; }
.breadcrumb { font-size: 13px; color: var(--text-tertiary); margin-bottom: var(--space-md); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-tertiary); }
.breadcrumb a:hover { color: var(--color-link); }
.breadcrumb .sep { color: var(--border-strong); }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: var(--space-xl); }
.pagination button, .pagination .page-num {
  min-width: 32px; height: 32px; padding: 0 6px;
  background: none; border: none; font-size: 14px; color: var(--text-tertiary);
  font-variant-numeric: tabular-nums; transition: color var(--t-color);
  display: inline-flex; align-items: center; justify-content: center;
}
.pagination button:hover { color: var(--color-link); }
.pagination .page-num.current { color: var(--color-primary); font-weight: 600; }
.pagination button:disabled { color: var(--text-disabled); cursor: not-allowed; }
.pagination .ellipsis { color: var(--text-tertiary); }

/* ---------- 卡片（工具类推导组件：细边无阴影） ---------- */
.card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-ctrl); padding: var(--space-lg); }
.card + .card { margin-top: var(--space-md); }
.card-title { font-size: 16px; font-weight: 600; color: var(--color-primary); margin: 0 0 var(--space-md); display: flex; align-items: center; gap: 8px; }
.stat-num { font-size: 32px; font-weight: 700; color: var(--color-primary); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-label { font-size: 13px; color: var(--text-tertiary); margin-top: 2px; }

/* ---------- 进度条 / 完整度 ---------- */
.progress { height: 6px; background: var(--bg-muted); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--color-link); border-radius: 3px; transition: width .3s ease; }
.progress-bar.warn { background: var(--color-warning); }
.progress-bar.danger { background: var(--color-danger); }
.progress-bar.success { background: var(--color-success); }
.progress-lg { height: 10px; border-radius: 5px; }

/* ---------- 题目卡片 ---------- */
.q-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-ctrl); padding: var(--space-lg); margin-bottom: var(--space-md); }
.q-head { display: flex; align-items: flex-start; gap: var(--space-sm); }
.q-index { flex: none; width: 30px; font-size: 14px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; padding-top: 3px; }
.q-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; color: var(--text-primary); line-height: 1.6; margin: 0; }
.q-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.q-diff { font-size: 12px; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 5px; }
.q-diff .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.q-basis { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.q-basis svg { flex: none; margin-top: 3px; color: var(--color-link); }
.q-basis .ref { color: var(--color-link); cursor: pointer; }
.q-basis .ref:hover { text-decoration: underline; }
.q-toggle { margin-top: 12px; }
.q-points { margin-top: var(--space-md); border-top: 1px dashed var(--border-light); padding-top: var(--space-md); }
.q-points .block { margin-bottom: var(--space-md); }
.q-points .block-label { font-size: 13px; font-weight: 600; color: var(--color-primary); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.q-core { border-left: 3px solid var(--color-link); background: var(--bg-banner-to); padding: 12px 16px; font-size: 14px; line-height: 1.75; color: var(--text-primary); }
.q-keys { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.9; color: var(--text-primary); }
.q-keys li::marker { color: var(--color-link); }
.q-material { background: var(--bg-tag); border-radius: var(--radius-ctrl); padding: 12px 16px; font-size: 13px; line-height: 1.75; color: var(--text-primary); }
.q-pitfalls { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.9; color: var(--text-secondary); }
.q-pitfalls li::marker { color: var(--color-warning); }
.q-followups { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.9; color: var(--text-secondary); }
.q-reference { border: 1px solid var(--border-light); border-radius: var(--radius-ctrl); }
.q-reference .ref-toggle { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--bg-muted); border: none; font-size: 13px; color: var(--text-secondary); text-align: left; }
.q-reference .ref-body { padding: 12px 16px; font-size: 13px; line-height: 1.85; color: var(--text-secondary); border-top: 1px solid var(--border-light); }
.q-actions { display: flex; align-items: center; gap: 4px; margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1px solid var(--border-light); flex-wrap: wrap; }
.q-actions .btn-text { font-size: 13px; display: inline-flex; align-items: center; gap: 5px; height: 32px; }
.q-actions .btn-text.on { color: var(--color-primary); font-weight: 600; }
.q-actions .spacer { flex: 1; }
.q-edited { font-size: 12px; color: var(--text-warning); }
.q-card.enter { animation: qEnter .25s ease both; }
.q-card.target { border-color: var(--color-link); box-shadow: 0 0 0 2px rgba(31, 95, 168, .15); }
@keyframes qEnter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- 练习模式 ---------- */
.practice-wrap { max-width: 860px; margin: 0 auto; }
.practice-top { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.practice-progress { flex: 1; min-width: 160px; }
.practice-q { font-size: 20px; font-weight: 600; color: var(--text-primary); line-height: 1.7; margin: var(--space-md) 0; }
.self-eval { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.self-eval .btn { flex: 1; min-width: 120px; }
.eval-master { border-color: var(--color-success); color: var(--text-success); }
.eval-master:hover { background: var(--bg-success); }
.eval-fair { border-color: var(--color-warning); color: var(--text-warning); }
.eval-fair:hover { background: var(--bg-warning); }
.eval-weak { border-color: var(--color-danger); color: var(--color-danger); }
.eval-weak:hover { background: var(--bg-danger); }
.reveal-anim { animation: qEnter .25s ease both; }

/* ---------- 空态 / 骨架屏 ---------- */
.empty-state { text-align: center; padding: 64px 24px; color: var(--text-secondary); }
.empty-state svg { width: 44px; height: 44px; color: var(--footer-text); margin: 0 auto 12px; }
.empty-state p { margin: 0 0 var(--space-md); font-size: 15px; }
.skeleton { background: var(--bg-muted); border-radius: var(--radius-ctrl); animation: skPulse 1.2s ease-in-out infinite; }
@keyframes skPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- 声明 / 提示条 ---------- */
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--radius-ctrl); font-size: 13px; line-height: 1.7; }
.notice svg { flex: none; margin-top: 2px; }
.notice-info { background: var(--bg-tag); color: var(--color-link); }
.notice-warning { background: var(--bg-warning); color: var(--text-warning); }
.notice-danger { background: var(--bg-danger); color: var(--color-danger); }
.notice-success { background: var(--bg-success); color: var(--text-success); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--color-footer); margin-top: var(--space-3xl); }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 48px 24px 32px; }
.footer-top { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: var(--space-xl); padding-bottom: 32px; }
.footer-col .col-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a, .footer-col button {
  display: block; font-size: 13px; color: var(--footer-text); line-height: 28px;
  background: none; border: none; padding: 0; text-align: left;
  transition: color var(--t-color);
}
.footer-col a:hover, .footer-col button:hover { color: #fff; }
.footer-brand { border-left: 1px solid rgba(255,255,255,.18); padding-left: var(--space-xl); min-width: 220px; }
.footer-brand .fb-name { color: #fff; font-size: 17px; font-weight: 600; line-height: 1.4; }
.footer-brand .fb-en { color: var(--footer-text-muted); font-size: 11px; margin-top: 2px; }
.footer-brand .fb-slogan { color: var(--footer-text); font-size: 12px; margin-top: 12px; line-height: 1.8; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; align-items: center; }
.footer-social .fs-label { font-size: 13px; color: var(--footer-text); }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: transform var(--t-color), opacity var(--t-color);
}
.social-btn:hover { transform: scale(1.05); opacity: .9; }
.social-wechat { background: var(--color-success); }
.social-weibo { background: var(--color-danger); }
.social-mail { background: var(--color-link); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px;
  display: flex; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap;
  font-size: 12px; color: var(--footer-text-muted); line-height: 1.8;
}
.footer-bottom a { color: var(--footer-text-muted); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 浮动 AI 助手 ---------- */
.ai-float {
  position: fixed; right: 24px; bottom: 24px; width: 160px; z-index: 90;
  background: #fff; border-radius: var(--radius-float); box-shadow: var(--shadow-float);
  overflow: hidden; transition: opacity var(--t-color), transform var(--t-color);
}
.ai-float.closing { opacity: 0; transform: translateY(6px); }
.ai-float .af-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px; }
.ai-float .af-title { font-size: 18px; font-weight: 600; color: var(--color-primary); }
.ai-float .af-close { background: none; border: none; color: var(--text-tertiary); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.ai-float .af-close:hover { color: var(--color-link); }
.ai-float .af-body { cursor: pointer; }
.ai-float .af-illus { background: linear-gradient(135deg, var(--bg-banner-from), var(--bg-banner-to)); display: flex; align-items: center; justify-content: center; padding: 10px 0; }
.ai-float .af-slogan { font-size: 11px; color: var(--color-link); text-align: center; padding: 8px 4px 10px; letter-spacing: 1px; }
.ai-fab {
  position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-float); border: none; z-index: 90;
  display: none; align-items: center; justify-content: center; color: var(--color-primary);
}

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px;
  background: var(--color-primary); color: #fff; font-size: 14px;
  padding: 10px 20px; border-radius: var(--radius-ctrl); box-shadow: var(--shadow-float);
  animation: toastIn .2s ease both; max-width: 80vw;
}
.toast.success { background: var(--text-success); }
.toast.error { background: var(--color-danger); }
.toast.leaving { animation: toastOut .2s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); } }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 250;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .2s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: var(--radius-float); box-shadow: var(--shadow-float);
  width: 100%; max-width: 520px; max-height: 86vh; display: flex; flex-direction: column;
  animation: qEnter .2s ease both;
}
.modal.lg { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 14px; border-bottom: 1px solid var(--border-light); }
.modal-title { font-size: 18px; font-weight: 600; color: var(--color-primary); }
.modal-close { background: none; border: none; color: var(--text-tertiary); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { color: var(--color-link); }
.modal-body { padding: 20px 24px; overflow-y: auto; font-size: 14px; line-height: 1.8; color: var(--text-primary); }
.modal-foot { display: flex; justify-content: flex-end; gap: var(--space-sm); padding: 14px 24px 18px; border-top: 1px solid var(--border-light); }
.modal-body h4 { color: var(--color-primary); margin: 16px 0 6px; font-size: 15px; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { margin: 6px 0; color: var(--text-secondary); }
.modal-body ul { margin: 6px 0; padding-left: 20px; color: var(--text-secondary); }

/* ---------- 搜索浮层 ---------- */
.search-mask { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 240; animation: fadeIn .2s ease both; }
.search-panel {
  max-width: 640px; margin: 90px auto 0; background: #fff; border-radius: var(--radius-float);
  box-shadow: var(--shadow-float); overflow: hidden;
}
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.search-input-row input { flex: 1; border: none; outline: none; font-size: 16px; height: 32px; }
.search-results { max-height: 52vh; overflow-y: auto; padding: 8px 0; }
.search-group { padding: 8px 20px 4px; font-size: 12px; color: var(--text-tertiary); }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px 20px; cursor: pointer; font-size: 14px; color: var(--text-primary); min-height: 44px; }
.search-item:hover { background: var(--bg-hover); color: var(--color-link); }
.search-item .sub { margin-left: auto; font-size: 12px; color: var(--text-tertiary); flex: none; }
.search-empty { padding: 32px; text-align: center; color: var(--text-tertiary); font-size: 14px; }

/* ---------- 选项卡 / 手风琴 ---------- */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border-light); }
.tab { padding: 12px 0 14px; font-size: 15px; color: var(--text-secondary); background: none; border: none; position: relative; transition: color var(--t-color); }
.tab:hover { color: var(--color-link); }
.tab.on { color: var(--color-primary); font-weight: 600; }
.tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--color-link); }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 10px; padding: 16px 0; background: none; border: none; font-size: 15px; font-weight: 500; color: var(--text-primary); text-align: left; }
.faq-q svg { margin-left: auto; transition: transform var(--t-color); color: var(--text-tertiary); flex: none; }
.faq-item.open .faq-q { color: var(--color-link); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 16px; font-size: 14px; color: var(--text-secondary); line-height: 1.85; }
.faq-item.open .faq-a { display: block; }

/* ---------- 登录页 ---------- */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side {
  background: linear-gradient(135deg, var(--bg-banner-from), var(--bg-banner-to));
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 64px;
}
.auth-side .waves { position: absolute; right: 0; bottom: 0; width: 100%; opacity: .7; }
.auth-side .as-brand { display: flex; align-items: center; gap: 14px; position: relative; }
.auth-side h1 { font-size: 34px; font-weight: 700; color: var(--color-primary); line-height: 1.4; margin: 28px 0 12px; position: relative; }
.auth-side .as-sub { font-size: 16px; color: var(--text-secondary); line-height: 1.8; position: relative; max-width: 420px; }
.auth-side .as-points { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.auth-side .as-point { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--color-primary); }
.auth-side .as-point svg { color: var(--color-link); flex: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box .auth-title { font-size: 24px; font-weight: 600; color: var(--color-primary); margin: 0 0 4px; }
.auth-box .auth-sub { font-size: 13px; color: var(--text-tertiary); margin-bottom: 24px; }
.auth-demo { background: var(--bg-tag); border-radius: var(--radius-ctrl); padding: 10px 14px; font-size: 12px; color: var(--color-link); line-height: 1.8; margin-bottom: 20px; }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; }
.code-btn { flex: none; width: 128px; height: 40px; font-size: 13px; padding: 0 8px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; }
.auth-links a, .auth-links button { color: var(--color-link); background: none; border: none; font-size: 13px; padding: 0; }
.auth-agree { margin: 16px 0; }
.auth-alt { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-light); text-align: center; font-size: 13px; color: var(--text-tertiary); }

/* ---------- 工作台 ---------- */
.dash-head { display: flex; align-items: flex-end; gap: var(--space-lg); flex-wrap: wrap; }
.dash-hello { font-size: 24px; font-weight: 600; color: var(--color-primary); line-height: 1.4; }
.dash-date { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }
.quota-card { margin-left: auto; min-width: 260px; }
.tri-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.split-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.todo-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; font-size: 14px; line-height: 1.7; }
.todo-row svg { flex: none; margin-top: 3px; }

/* ---------- 简历编辑 ---------- */
.edit-toolbar {
  position: sticky; top: var(--nav-h-compact); z-index: 80; background: #fff;
  border-bottom: 1px solid var(--border-light); padding: 12px 0; margin-bottom: var(--space-lg);
}
.edit-toolbar .container { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.completeness { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.completeness .progress { width: 120px; }
.completeness .pct { font-size: 14px; font-weight: 600; color: var(--color-link); font-variant-numeric: tabular-nums; }
.autosave { font-size: 12px; color: var(--text-tertiary); display: flex; align-items: center; gap: 6px; }
.autosave .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); display: inline-block; }
.autosave.saving .dot { background: var(--color-warning); }
.form-section { border: 1px solid var(--border-light); border-radius: var(--radius-ctrl); margin-bottom: var(--space-md); background: #fff; }
.form-section .fs-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; cursor: pointer; user-select: none; }
.form-section .fs-head .fs-title { font-size: 16px; font-weight: 600; color: var(--color-primary); }
.form-section .fs-head .fs-sub { font-size: 12px; color: var(--text-tertiary); }
.form-section .fs-head svg { margin-left: auto; color: var(--text-tertiary); transition: transform var(--t-color); }
.form-section.collapsed .fs-head svg { transform: rotate(-90deg); }
.form-section .fs-body { padding: 4px 20px 20px; }
.form-section.collapsed .fs-body { display: none; }
.entry-block { border: 1px dashed var(--border-strong); border-radius: var(--radius-ctrl); padding: 16px; margin-bottom: var(--space-md); position: relative; }
.entry-block .entry-remove { position: absolute; top: 10px; right: 10px; }
.entry-index { font-size: 13px; font-weight: 600; color: var(--color-link); margin-bottom: 12px; }
.add-entry { width: 100%; border: 1px dashed var(--border-strong); background: none; border-radius: var(--radius-ctrl); height: 44px; color: var(--color-link); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background var(--t-color), border-color var(--t-color); }
.add-entry:hover { background: var(--bg-tag); border-color: var(--color-link); }
.skill-row { display: grid; grid-template-columns: 1fr 160px 40px; gap: 10px; margin-bottom: 10px; align-items: center; }
.preview-pane { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-ctrl); padding: 40px; }
.preview-pane h2 { color: var(--color-primary); font-size: 22px; margin: 0 0 4px; }
.preview-pane .pv-section { margin-top: 24px; }
.preview-pane .pv-section h3 { font-size: 15px; color: var(--color-primary); border-bottom: 1px solid var(--border-light); padding-bottom: 6px; margin: 0 0 10px; }
.preview-pane .pv-item { margin-bottom: 12px; font-size: 13px; line-height: 1.8; }
.preview-pane .pv-item .pv-head { display: flex; justify-content: space-between; font-weight: 600; color: var(--text-primary); }
.preview-pane .pv-item .pv-head .time { color: var(--text-tertiary); font-weight: 400; font-variant-numeric: tabular-nums; }

/* ---------- 生成配置 ---------- */
.gen-steps { display: flex; gap: 0; margin-bottom: var(--space-xl); }
.gen-step { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--text-tertiary); font-size: 14px; }
.gen-step .step-no { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-muted); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: none; }
.gen-step.on { color: var(--color-primary); font-weight: 500; }
.gen-step.on .step-no { background: var(--color-link); color: #fff; }
.gen-step::after { content: ""; flex: 1; height: 1px; background: var(--border-light); margin: 0 16px; }
.gen-step:last-child::after { display: none; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-md); }
.pick-card { border: 1px solid var(--border-light); border-radius: var(--radius-ctrl); padding: 16px 18px; cursor: pointer; position: relative; transition: border-color var(--t-color), background var(--t-color); background: #fff; }
.pick-card:hover { border-color: var(--color-link); }
.pick-card.on { border-color: var(--color-link); background: var(--bg-banner-to); }
.pick-card.on::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--color-link);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat, linear-gradient(#fff,#fff);
  -webkit-mask-composite: destination-out; mask-composite: exclude;
}
.pick-card .pc-title { font-size: 15px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.pick-card .pc-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 6px; line-height: 1.8; }
.pick-card .pc-warn { font-size: 12px; color: var(--text-warning); margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-ctrl); overflow: hidden; }
.seg button { min-width: 64px; height: 38px; padding: 0 18px; background: #fff; border: none; font-size: 14px; color: var(--text-secondary); border-right: 1px solid var(--border-strong); transition: background var(--t-color), color var(--t-color); }
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--bg-tag); color: var(--color-link); font-weight: 600; }
.gen-panel { max-width: 720px; margin: 0 auto; }
.gen-log { background: var(--bg-muted); border-radius: var(--radius-ctrl); padding: 16px 20px; font-size: 13px; line-height: 2.1; color: var(--text-secondary); min-height: 180px; }
.gen-log .log-line { display: flex; gap: 10px; align-items: center; }
.gen-log .log-line.done { color: var(--text-success); }
.gen-log .log-line.active { color: var(--color-link); font-weight: 500; }
.gen-log .log-line .spin { width: 14px; height: 14px; border: 2px solid var(--bg-tag); border-top-color: var(--color-link); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.gen-stream { margin-top: var(--space-md); }
.gen-stream .stream-item { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--text-primary); animation: qEnter .25s ease both; }
.gen-stream .stream-item .no { color: var(--text-tertiary); font-variant-numeric: tabular-nums; flex: none; }

/* ---------- 标签输入 ---------- */
.tag-input { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-ctrl); padding: 8px 12px; min-height: 48px; cursor: text; transition: border-color var(--t-color), box-shadow var(--t-color); }
.tag-input:focus-within { border-color: var(--color-link); box-shadow: 0 0 0 2px rgba(31, 95, 168, .15); }
.tag-input .tag { font-size: 13px; padding: 4px 10px; }
.tag-input .tag button { background: none; border: none; color: var(--color-link); padding: 0; display: flex; margin-left: 2px; }
.tag-input input { border: none; outline: none; flex: 1; min-width: 140px; font-size: 14px; height: 28px; }

/* ---------- 导出 / 打印 ---------- */
@media print {
  .site-nav, .site-footer, .ai-float, .ai-fab, .toast-wrap, .modal-mask,
  .no-print, .edit-toolbar, .nav-drawer, .nav-drawer-mask { display: none !important; }
  body { background: #fff; }
  .q-card { border: none; border-bottom: 1px solid var(--border-light); border-radius: 0; page-break-inside: avoid; }
  .q-points { display: block !important; }
  .q-toggle, .q-actions { display: none !important; }
  .container { max-width: 100%; padding: 0; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1439px) {
  .container, .nav-inner, .footer-inner { padding-left: 32px; padding-right: 32px; }
  .channel-layout { grid-template-columns: 280px 1fr; }
  .nav-links { gap: 36px; }
}
@media (max-width: 1023px) {
  .tri-cols { grid-template-columns: 1fr 1fr; }
  .tri-cols > .tri-col:last-child { grid-column: span 2; }
  .split-layout { grid-template-columns: 1fr; }
  .quick-row { grid-template-columns: repeat(3, 1fr); }
  .video-trio { grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { border-left: none; padding-left: 0; grid-column: span 2; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .nav-links { gap: 24px; }
  .nav-item .en { display: none; }
  .nav-quota { display: none; }
}
@media (max-width: 767px) {
  .container, .nav-inner, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .nav-inner { height: 64px; gap: 12px; }
  .site-nav.compact .nav-inner { height: 56px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name .zh { font-size: 16px; }
  .brand-name .en { display: none; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-actions { gap: 4px; }
  .hero-band { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 16px 0; gap: 10px; }
  .hero-band img { flex: 0 0 88%; height: 220px; scroll-snap-align: center; }
  .tri-cols { grid-template-columns: 1fr; }
  .tri-cols > .tri-col:last-child { grid-column: span 1; }
  .quick-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .quick-item svg { width: 36px; height: 36px; }
  .quick-item .label { font-size: 13px; }
  .video-trio { grid-template-columns: 1fr; }
  .video-card.side { width: 100%; }
  .channel-banner { height: 140px; }
  .channel-layout { grid-template-columns: 1fr; gap: 16px; }
  .side-menu { background: var(--bg-muted); }
  .side-head { padding: 14px 16px; }
  .side-head .zh { font-size: 16px; }
  .side-head .en { display: none; }
  .side-items { display: flex; overflow-x: auto; padding: 0 8px; }
  .side-item { flex: none; }
  .side-item a, .side-item button { height: 44px; padding: 0 16px; white-space: nowrap; }
  .side-item::after { display: none; }
  .side-item.current::before { left: 8px; right: 8px; }
  .side-note { display: none; }
  .record-row { min-height: 44px; gap: 10px; }
  .record-title { line-height: 44px; }
  .record-date.full { display: none; }
  .record-date .d-short { display: inline; }
  .record-date { width: 44px; }
  .record-tags .tag:nth-child(n+3) { display: none; }
  .record-actions .btn-text { padding: 0 4px; font-size: 12px; }
  .sec-head .zh { font-size: 19px; }
  .sec-head .en { font-size: 13px; }
  .page-title { font-size: 20px; }
  .gradient-banner { padding: 16px 20px; min-height: 96px; gap: 12px; }
  .gradient-banner .banner-badge { width: 40px; height: 40px; }
  .gradient-banner .banner-title { font-size: 18px; }
  .gradient-banner .banner-sub { font-size: 12px; }
  .gradient-banner .banner-cta .btn { height: 36px; padding: 0 16px; font-size: 13px; }
  .footer-top { grid-template-columns: 1fr; gap: 0; }
  .footer-col { border-bottom: 1px solid rgba(255,255,255,.12); }
  .footer-col .col-title { padding: 14px 0; margin: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .footer-col .col-title::after { content: "+"; color: var(--footer-text); font-weight: 400; }
  .footer-col.open .col-title::after { content: "−"; }
  .footer-col ul { display: none; padding-bottom: 12px; }
  .footer-col.open ul { display: block; }
  .footer-brand { grid-column: span 1; padding-top: 20px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .ai-float { display: none; }
  .ai-fab { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-num { font-size: 24px; }
  .dash-head { align-items: flex-start; flex-direction: column; }
  .quota-card { margin-left: 0; width: 100%; }
  .q-card { padding: 16px; }
  .q-title { font-size: 15px; }
  .q-actions .btn-text { min-height: 44px; }
  .edit-toolbar { top: 56px; }
  .edit-toolbar .container { gap: 10px; }
  .completeness .progress { width: 80px; }
  .preview-pane { padding: 20px; }
  .auth-main { padding: 32px 20px; }
  .practice-q { font-size: 17px; }
  .self-eval .btn { min-width: 90px; }
  .modal { max-height: 92vh; }
  .search-panel { margin: 70px 12px 0; }
  .gen-step .step-text { display: none; }
  .gen-step.on .step-text { display: inline; }
}