/* pc.css — AI我学 · 桌面学习机（PC 专属布局，与移动端 app.css 完全分离） */
:root {
  /* 主题令牌：night（默认）/ day 在 [data-theme="day"] 中覆盖 */
  --bg: #0d1017; --bg-side: #141824; --bg-raise: #191e2c; --bg-hover: #202638;
  --line: #262d40; --line-soft: rgba(255,255,255,.06);
  --ink: #eef1f8; --ink-2: #c0c7d8; --muted: #7a8299;
  --brand: #7c6cf0; --brand-2: #6D28D9; --on-brand: #b7adff;
  --red: #F87171; --yellow: #FBBF24; --green: #34D399;
  --radius: 14px;
  /* 以下为换肤新增：弹窗/遮罩/阴影/图片占位，原先硬编码在规则里 */
  --mask: rgba(4,5,14,.68);
  --card-solid: #14162b; --code-bg: #0f1020;
  /* learn.html（PC 播放器页）用 var(--card) 给返回按钮/皮肤弹层做底，
     但该令牌原先只定义在 app.css（移动端），PC 侧缺失 → 背景透明。
     此处补齐，取值与 --card-solid 一致。 */
  --card: #14162b;
  --shadow-1: 0 24px 60px rgba(0,0,0,.5);
  --shadow-2: 0 14px 30px rgba(0,0,0,.35);
  --img-ph: #fff;            /* 课程封面图未加载时的占位底色 */
  --hover-tint: #1e2140;     /* 关闭按钮等的小悬停底 */
  --ring: rgba(0,0,0,.25); --rail-on: #fff;
  --field: #0f1020;          /* 输入框/下拉/代码块底色 */
  --field-ph: #6f7290;       /* 占位符与空状态文字 */
  --sub-ink: #a0a3b8;        /* 卡片内的次要说明文字 */
  --on-panel: #fff;          /* 面板上按钮的白字（两套主题都用白，压渐变底） */
}

/* ---------- 白天主题 ---------- */
[data-theme="day"] {
  --bg: #f4f5f9; --bg-side: #ffffff; --bg-raise: #ffffff; --bg-hover: #eef0f6;
  --line: #e2e5ee; --line-soft: rgba(15,23,42,.06);
  --ink: #141824; --ink-2: #3d4459; --muted: #666d80;
  --brand: #5b4ae0; --brand-2: #6D28D9; --on-brand: #4c3fc4;
  --red: #dc2626; --yellow: #b45309; --green: #059669;
  --mask: rgba(24,28,45,.42);
  --card-solid: #ffffff; --code-bg: #f2f3f8;
  --card: #ffffff;           /* 与 --card-solid 同步，供 learn.html 使用 */
  --shadow-1: 0 24px 60px rgba(24,28,45,.16);
  --shadow-2: 0 14px 30px rgba(24,28,45,.13);
  --img-ph: #e9ebf2;
  --hover-tint: #eef0f6;
  --ring: rgba(15,23,42,.12); --rail-on: #3b2f9e;
  --field: #ffffff;          /* 白底下输入框要用纯白 + 灰边才看得见边界 */
  --field-ph: #9aa0b4;       /* 占位符要比夜晚再深一点 */
  --sub-ink: #5b6274;        /* 关键修复：夜晚的 #a0a3b8 在白底上太浅 */
  --on-panel: #fff;
}
/* 白天下：所有表单控件强制浅色 + 深色边框（含浏览器默认 select 箭头） */
[data-theme="day"] input, [data-theme="day"] textarea, [data-theme="day"] select {
  background: var(--field); color: var(--ink); border-color: var(--line);
  color-scheme: light; -webkit-text-fill-color: var(--ink);
}
[data-theme="day"] input::placeholder, [data-theme="day"] textarea::placeholder { color: var(--field-ph); -webkit-text-fill-color: var(--field-ph); }
[data-theme="day"] select option { background: #fff; color: #141824; }
[data-theme="day"] .range::-webkit-slider-thumb { background: var(--brand); }
/* 白天下：正文栏选中态与滚动条 */
[data-theme="day"] ::selection { background: rgba(91,74,224,.2); }
[data-theme="day"] ::-webkit-scrollbar { width: 10px; height: 10px; }
[data-theme="day"] ::-webkit-scrollbar-thumb { background: #cfd4e2; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
[data-theme="day"] ::-webkit-scrollbar-thumb:hover { background: #b6bccf; background-clip: content-box; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: "PingFang SC","Microsoft YaHei",system-ui,sans-serif; background: var(--bg); color: var(--ink);
  -webkit-tap-highlight-color: transparent; overflow: hidden; }
a { color: inherit; text-decoration: none; }
/* ⚠ 表单控件必须显式 `color: inherit`：
   浏览器 UA 样式表里 `<button>` 是 `color: buttontext`，这是一个**指定值**，
   会压过 body 的继承色 → 夜间主题下按钮文字/图标变成**纯黑压深底**（对比度约 1.06，看不见）。
   图标按钮靠 emoji 显色的（🎨🌙⚙️）不受影响，所以这个坑只在
   **纯字形按钮**上暴露（⛶ 全屏、退出）—— 排查时极易漏。
   app.css（移动端）本来就是 `color: inherit`，这里补齐与它一致。 */
button, input, select, textarea { font-family: inherit; color: inherit; }
.hidden { display: none !important; }

/* ===== 骨架：左导航 + 右主区 ===== */
#pc-root { display: flex; }
#pc-rail { flex: none; width: 248px; height: 100vh; background: var(--bg-side); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: stretch; padding: 16px 8px 12px; gap: 6px; overflow-y: auto; scrollbar-width: none; }
#pc-rail::-webkit-scrollbar { width: 0; }
/* 品牌区：IP logo + 「短标签 + 灰色辅助说明」（与站内 UI 文案规范一致）。
   原来只有一个 34px 居中的图片，190px 宽的侧栏里大片留白，显得空。
   副标语取自站内既有口径（title「AI我学 · 智能学习机」），不新造说法。 */
.rail-brand { margin: 0 0 16px; display: flex; align-items: center; gap: 10px;
  padding: 5px 8px; border-radius: 12px; transition: background .15s; }
.rail-brand:hover { background: var(--bg-hover); }
.rail-brand-tx { min-width: 0; display: flex; flex-direction: column; }
.rail-brand-tx b { font-size: 16.5px; font-weight: 800; color: var(--ink);
  letter-spacing: .4px; line-height: 1.2; }
.rail-brand-tx i { font-style: normal; font-size: 11.5px; color: var(--muted);
  margin-top: 3px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 品牌 IP 形象（读书机器人）：图片自带圆角与渐变底，这里只负责尺寸、投影与悬浮手感 */
.ms-logo-mark { display: inline-flex; flex: none; transition: transform .34s cubic-bezier(.22,.9,.34,1); }
.ms-logo-mark img { display: block; width: 38px; height: 38px; object-fit: contain;
  -webkit-user-drag: none; user-select: none; filter: drop-shadow(0 6px 14px rgba(108,92,231,.42)); }
.rail-brand:hover .ms-logo-mark { transform: translateY(-2px) rotate(-3deg); }
/* 窄屏（190px 档）收一点间距，保证副标语不被挤断 */
@media (max-width: 1500px) {
  .rail-brand { gap: 8px; padding: 5px 4px; }
}
.rail-nav { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 0 4px; }
.rail-item { display: flex; flex-direction: row; align-items: center; gap: 9px; padding: 11px 10px;
  border-radius: 12px; color: var(--muted); cursor: pointer; transition: .15s; font-weight: 600; }
.rail-item:hover { color: var(--ink-2); background: var(--bg-hover); }
.rail-item.active { color: var(--rail-on); background: linear-gradient(135deg, rgba(124,108,240,.32), rgba(37,99,235,.2));
  box-shadow: inset 0 0 0 1px rgba(124,108,240,.45); }
.rail-item .ri { font-size: 22px; line-height: 1; flex: none; }
.rail-item small { font-size: 15.5px; }
.rail-badge { margin-left: auto; flex: none; background: linear-gradient(120deg,#ff9f43,#ff6b6b);
  color: #fff; font-size: 11px; font-weight: 800; font-style: normal;
  padding: 1.5px 8px; border-radius: 20px; letter-spacing: .3px; }
.rail-item[data-ext="1"] .ri { opacity: .92; }
.rail-sep { margin: 10px 6px 6px; font-size: 16px; font-weight: 800; letter-spacing: 1px; color: var(--muted); }
.rail-tools { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; overflow-y: auto; }
.rail-tool { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 10px;
  color: var(--ink-2); cursor: pointer; transition: .15s; min-width: 0; }
.rail-tool:hover { background: var(--bg-hover); color: var(--ink); }
.rail-tool .rt-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 15px; }
.rail-tool small { font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-foot { margin-top: auto; display: flex; justify-content: center; }
.avatar { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg,#4338CA,#2563EB); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }

#pc-body { flex: 1; min-width: 0; height: 100vh; display: flex; flex-direction: column; }
#pc-top { flex: none; height: 60px; display: flex; align-items: center; gap: 18px; padding: 0 20px;
  background: var(--bg-side); border-bottom: 1px solid var(--line); }
.pt-left { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.pt-greet { font-size: 18px; font-weight: 800; white-space: nowrap; }
.pt-date { font-size: 15px; color: var(--muted); white-space: nowrap; }
.pt-search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.pt-search:focus-within { border-color: var(--brand); }
.ps-ic { font-size: 16px; opacity: .7; }
.pt-search input { flex: 1; background: none; border: none; outline: none; color: var(--ink); font-size: 15px; }
.pt-search input::placeholder { color: var(--muted); }
.pt-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pt-quickbar{display:flex;align-items:center;gap:6px;margin-right:14px;flex-wrap:nowrap}
.pt-qbtn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:9px;
  border:1px solid var(--line,rgba(255,255,255,.09));background:transparent;color:inherit;
  font-size:12.5px;cursor:pointer;white-space:nowrap;font-family:inherit;transition:border-color .15s,background .15s}
.pt-qbtn:hover{border-color:var(--brand,#6c5ce7);background:rgba(108,92,231,.12)}
.pt-qbtn .qi{font-size:14px;line-height:1;display:block}
.pt-qbtn .qt{line-height:1}
.pt-qbtn .dot{position:absolute;margin-left:2px}
.pt-qbtn{position:relative}
.pt-qbtn.has-dot::after{content:"";position:absolute;top:6px;right:6px;width:6px;height:6px;border-radius:50%;
  background:#ff6b6b;box-shadow:0 0 0 2px var(--ring)}
@media(max-width:1180px){.pt-qbtn .qt{display:none}.pt-qbtn{padding:0 9px}}
.pt-ico { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  cursor: pointer; font-size: 15px; transition: .15s; }
.pt-ico:hover { border-color: var(--brand); }
.pt-login { border: none; cursor: pointer; background: linear-gradient(120deg,#4338CA,#6D28D9); color: #fff;
  font-weight: 700; font-size: 16px; padding: 9px 16px; border-radius: 10px; }
#pc-main { flex: 1; overflow-y: auto; padding: 16px 20px 28px; }
.view { animation: rise .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== 通用面板 ===== */
.panel { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; }
.panel-t { font-size: 16px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.panel-sub { margin-left: auto; font-size: 16px; font-weight: 500; color: var(--muted); }
.empty { color: var(--muted); font-size: 16px; line-height: 1.7; }
.empty a, .link { color: var(--on-brand); cursor: pointer; }

/* ===== 首页仪表盘：12 栅格密集布局 ===== */
.dash { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.d-hero { grid-column: span 8; }
.d-hero .pz-hero { height: 100%; }
.d-task { grid-column: span 4; }
.d-subj { grid-column: span 12; }
.d-cont { grid-column: span 8; }
.d-stat { grid-column: span 4; }

/* —— C 位：AI 精准学横幅（紧凑，含三步与图谱状态） —— */
.pz-hero { display: flex; align-items: center; gap: 16px; border-radius: var(--radius); padding: 16px 20px;
  background: linear-gradient(115deg, #4338CA, #6D28D9 58%, #2563EB); cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 0 12px 30px rgba(79,70,229,.28); }
.pz-hero::after { content: ""; position: absolute; right: -50px; top: -70px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 60%); }
.pz-hero-main { flex: 1; min-width: 0; position: relative; z-index: 1; }
.pz-hero-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 800; letter-spacing: 1px;
  color: #EDE9FE; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24);
  padding: 3px 10px; border-radius: 999px; }
.pz-hero-t { font-size: 21px; font-weight: 800; color: #fff; margin-top: 7px; }
.pz-hero-steps { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 15px; color: rgba(255,255,255,.85); }
.pz-hero-steps i { font-style: normal; background: rgba(255,255,255,.13); border-radius: 999px; padding: 2px 10px; }
.pz-hero-steps em { font-style: normal; opacity: .6; }
/* —— hero 中部：迷你知识图谱点阵（填实空白区） —— */
.pz-hero-map { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.pz-map-dots { display: flex; flex-wrap: wrap; gap: 7px; max-width: 460px; }
.pz-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 16px; font-weight: 800; cursor: default; transition: transform .15s ease; }
.pz-dot:hover { transform: scale(1.25); }
.pz-dot.r { background: #F87171; box-shadow: 0 0 8px rgba(248,113,113,.6); }
.pz-dot.y { background: #FBBF24; box-shadow: 0 0 8px rgba(251,191,36,.5); }
.pz-dot.g { background: #34D399; }
.pz-dot.n { background: rgba(255,255,255,.14); color: rgba(255,255,255,.75); border: 1px dashed rgba(255,255,255,.35); }
.pz-map-cap { font-size: 15px; color: rgba(255,255,255,.75); }
.pz-map-cap b { color: #fff; }
.pz-hero-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; position: relative; z-index: 1; }
.pz-hero-state { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 800; color: #fff;
  background: rgba(255,255,255,.14); border-radius: 10px; padding: 7px 12px; }
.pz-hero-state .dot { margin-left: 5px; }
.pz-hero-state .dot:first-child { margin-left: 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot.r { background: var(--red); } .dot.y { background: var(--yellow); } .dot.g { background: var(--green); }
.pz-hero-btn { border: none; cursor: pointer; background: #fff; color: #4338CA; font-weight: 800;
  font-size: 15px; padding: 9px 18px; border-radius: 10px; }
.pz-hero-btn:hover { transform: translateY(-1px); }

/* —— 今日任务 —— */
.task-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; cursor: pointer; }
.task-row:hover { background: var(--bg-hover); }
.task-row + .task-row { border-top: 1px solid var(--line-soft); }
.tk-ic { flex: none; font-size: 18px; width: 26px; text-align: center; }
.tk-body { flex: 1; min-width: 0; }
.tk-t { display: block; font-size: 16px; font-weight: 700; }
.tk-d { display: block; font-size: 15px; color: var(--muted); margin-top: 1px; }
.tk-go { flex: none; color: var(--muted); font-size: 16px; }
.task-row.ok .tk-t { color: var(--ink-2); }

/* —— 学科门户（卡片 5 列；未上线 = 占位锁卡） —— */
.sj-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.sj-card { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-side);
  padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: .18s; }
.sj-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.sjc-ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.3)); position: relative; overflow: hidden; }
.sjc-ic::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% -20%, rgba(255,255,255,.34), transparent 55%); }
.sjc-name { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.sjc-desc { font-size: 15px; color: var(--muted); line-height: 1.5; }
.tag-soon, .tag-on { font-style: normal; font-size: 15px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.tag-soon { color: var(--muted); background: var(--bg); border: 1px solid var(--line); }
.tag-on { color: #6EE7B7; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); }
.sj-card.locked { opacity: .62; }
.sj-card.locked::after { content: "🔒 占位 · 敬请期待"; position: absolute; right: 10px; top: 10px;
  font-size: 15.5px; color: var(--muted); background: var(--bg); border: 1px dashed var(--line);
  border-radius: 999px; padding: 2px 9px; }
.sj-card.locked .sjc-desc { color: var(--muted); }
.sj-group-t { font-size: 15px; font-weight: 800; letter-spacing: 1px; color: var(--muted); margin: 4px 0 9px; }
.sj-group-t + .sj-group-t, .sj-grid + .sj-group-t { margin-top: 14px; }

/* —— 学段矩阵（讯飞式功能一览：行=科目，列=幼儿/小学/初中/高中/素养/通用） —— */
.mx-table { display: flex; flex-direction: column; gap: 7px; }
.mxr { display: grid; grid-template-columns: 132px repeat(8, minmax(0,1fr)); gap: 7px; align-items: stretch; }
.mx-h { display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: var(--muted);
  background: none; border: none; padding: 2px 0; cursor: default; }
.mx-hrow .mx-sub { cursor: default; background: none; border: none; padding-left: 2px; font-size: 15px; font-weight: 800; color: var(--muted); }
.mx-sub { display: flex; align-items: center; gap: 9px; background: var(--bg-side); border: 1px solid var(--line);
  border-radius: 11px; padding: 7px 11px; cursor: pointer; transition: .15s; min-height: 48px; }
.mx-sub:hover { border-color: var(--brand); }
.mx-sub b { font-size: 15.5px; font-weight: 800; }
.mx-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-style: normal; position: relative; overflow: hidden; }
.mx-ic::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% -20%, rgba(255,255,255,.34), transparent 55%); }
.mx-c { display: flex; align-items: center; justify-content: center; min-height: 48px; font-size: 15.5px; font-weight: 700;
  border-radius: 11px; border: 1px solid var(--line); background: var(--bg-side); color: var(--muted); cursor: pointer; transition: .15s; }
.mx-c.ready { color: #6EE7B7; background: rgba(52,211,153,.10); border-color: rgba(52,211,153,.32); }
.mx-c.lock { border-style: dashed; }
.mx-c:not(.mx-h):hover { border-color: var(--brand); color: var(--ink); transform: translateY(-1px); }
.mx-c.sel, .mx-sub.sel { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand);
  background: rgba(124,108,240,.16); color: var(--ink); }
.mx-sub.sel b { color: var(--ink); }

/* —— 继续学习（横滑） —— */
.cont-row { display: grid; grid-auto-flow: column; grid-auto-columns: 158px; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.cont-row::-webkit-scrollbar { height: 6px; }
.cont-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* —— 课程封面卡 —— */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }

/* ===== 课程广场：教辅式分类 chips + 竖版教辅封面网格 ===== */
.chipbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip-lb { font-size: 15px; color: var(--muted); margin-right: 2px; }
.chip { padding: 4px 11px; border-radius: 999px; font-size: 16px; color: var(--muted); cursor: pointer;
  background: transparent; border: 1px solid transparent; transition: .15s; user-select: none; }
.chip:hover { color: var(--ink-2); }
.chip.on { background: linear-gradient(120deg,#4338CA,#6D28D9); border-color: transparent; color: #fff; font-weight: 700; }
/* 内容区产品网格：固定一行 8 个，封面随列宽自然变小 */
.vgrid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 14px; }
.grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 14px; }
@media (max-width: 1400px) {
  .vgrid, .grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
}

/* 封面卡收藏角标 */
.vcover { position: relative; }
.vc-fav { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1;
  background: rgba(8,10,16,.45); color: rgba(255,255,255,.65); cursor: pointer; transition: .15s; z-index: 2; }
.vc-fav:hover { color: #FFD54A; }
.vc-fav.on { color: #FFD54A; background: rgba(8,10,16,.6); }

/* 学习计划 · 本周打卡 */
.wk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 10px; }
.wk-cell { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px;
  border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.wk-cell .wk-d { font-size: 13.5px; color: var(--muted); }
.wk-cell .wk-min { font-size: 13px; color: var(--muted); }
.wk-cell.ok { border-color: rgba(80,200,120,.55); background: rgba(80,200,120,.12); }
.wk-cell.ok .wk-min { color: #4ade80; font-weight: 700; }
.wk-cell.today { box-shadow: inset 0 0 0 1.5px rgba(124,108,240,.6); }
.wk-cell.off { opacity: .45; }
.vcover { display: block; border-radius: 14px; overflow: hidden; background: var(--bg-side);
  border: 1px solid var(--line); transition: .18s; }
.vcover:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow-2); }
.vc-img { width: 100%; aspect-ratio: 3 / 4; background-size: cover; background-position: center;
  background-color: var(--img-ph); }
.vc-info { padding: 9px 11px 11px; }
/* 课程名最多 2 行：原来只给 1 行 + nowrap，长名字会被截成「剑桥版join in四…」很难认。
   min-height 固定 2 行 → 长短名字的卡片高度仍然一致（不会参差不齐）。 */
.vc-t { font-size: 15.5px; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.7em; }
.vc-m { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.vc-sub { font-size: 15px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-stat { flex: none; margin-left: 8px; font-size: 16px; color: var(--on-brand); }
.vc-bar { height: 4px; border-radius: 2px; background: var(--bg-hover); margin-top: 7px; overflow: hidden; }
.vc-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg,#4338CA,#2563EB); }
.cover { background: var(--bg-side); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; transition: .18s; }
.cover:hover { transform: translateY(-3px); border-color: var(--brand); }
.cv-img, .cv-book { height: 112px; background-size: cover; background-position: center; position: relative;
  display: flex; align-items: center; justify-content: center; }
.cv-emoji { font-size: 44px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.cv-seal { position: absolute; right: 8px; bottom: 8px; font-size: 15px; font-weight: 700; color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 1px 8px; }
.cv-title { font-size: 15px; font-weight: 700; padding: 10px 12px 2px; }
.cv-meta { display: flex; justify-content: space-between; gap: 6px; padding: 4px 12px 11px; font-size: 16px; color: var(--muted); }
.cv-stat { color: var(--on-brand); font-weight: 600; }

/* —— 学情仪表（右栏卡） —— */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.stat { background: var(--bg-side); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; text-align: center; }
.stat b { display: block; font-size: 18px; font-weight: 800; color: var(--on-brand); line-height: 1.2; }
.stat b .stat-sub { font-style: normal; font-size: 16px; color: var(--muted); font-weight: 600; }
.stat span { display: block; font-size: 15.5px; color: var(--muted); margin-top: 2px; }
.hm-grid { display: grid; grid-template-rows: repeat(7, 9px); grid-auto-flow: column; grid-auto-columns: 9px; gap: 3px; }
.hm-c { width: 9px; height: 9px; border-radius: 2.5px; background: var(--bg); border: 1px solid var(--line-soft); }
.hm-c.lv1 { background: rgba(124,108,240,.28); border-color: transparent; }
.hm-c.lv2 { background: rgba(124,108,240,.55); border-color: transparent; }
.hm-c.lv3 { background: #8b7cf5; border-color: transparent; }
.hm-legend { display: flex; align-items: center; gap: 4px; font-size: 15.5px; color: var(--muted); margin-top: 9px; }
.rail-line { font-size: 15px; color: var(--ink-2); margin-top: 10px; }
.rail-line b { color: var(--on-brand); }
.rail-more { display: block; margin-top: 9px; font-size: 15.5px; font-weight: 600; color: var(--brand); cursor: pointer; }
.rail-more:hover { text-decoration: underline; }
.rail-empty { font-size: 15.5px; color: var(--muted); line-height: 1.6; margin: 0 0 2px; }
.pz-legend { display: flex; gap: 12px; flex-wrap: wrap; }
.pz-lg { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; color: var(--ink-2); }
.pz-lg b { color: var(--ink); font-size: 15.5px; }

/* ===== 学情页 ===== */
.pg-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.pg-head h2 { font-size: 21px; font-weight: 800; }
.pg-head p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.pg-head p b { color: var(--on-brand); }
.pg-stats { margin-left: auto; display: flex; gap: 9px; }
.pg-group { margin-top: 12px; }
.pg-gt { font-size: 16px; font-weight: 800; color: var(--ink-2); margin-bottom: 7px; }
.pg-row { display: flex; align-items: center; gap: 12px; background: var(--bg-side); border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 13px; margin-bottom: 8px; transition: .15s; }
.pg-row:hover { border-color: var(--brand); }
.pg-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 21px; }
.pg-main { flex: 1; min-width: 0; }
.pg-t { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.pg-bar { height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.pg-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg,#7c6cf0,#2563EB); }
.pg-meta { flex: none; text-align: right; max-width: 44%; }
.pg-line1 { display: block; font-size: 15px; color: var(--ink-2); }
.pg-line1 .pg-pct { color: var(--on-brand); font-size: 15.5px; font-weight: 800; }
.pg-line2 { display: block; font-size: 15.5px; color: var(--muted); margin-top: 3px; }
.pg-go { flex: none; color: var(--muted); font-size: 21px; }
.pc-heat { overflow-x: auto; padding-bottom: 4px; }

/* ===== 占位页（错题本 / 我的 等） ===== */
.soon-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.soon-page .sp-ic { font-size: 52px; }
.soon-page h2 { font-size: 21px; font-weight: 800; }
.soon-page p { font-size: 16px; color: var(--muted); }

/* ===== 精准学页容器（precision.js 输出） ===== */
#view-pz .pz-wrap, #view-pz > * { animation: rise .3s ease both; }

/* 滚动条 */
#pc-main::-webkit-scrollbar { width: 8px; }
#pc-main::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* 窄窗口兜底（仍属 PC 范畴） */
@media (max-width: 1100px) {
  .d-hero, .d-task, .d-cont, .d-stat { grid-column: span 12; }
  .sj-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .mxr { grid-template-columns: 96px repeat(8, minmax(0,1fr)); gap: 5px; }
  .mx-c { font-size: 16px; min-height: 40px; }
  .mx-sub { padding: 5px 8px; min-height: 40px; }
  .mx-sub b { font-size: 15.5px; }
}

/* ===== 字号定版 v4（层级：菜单最大 > 标题 > 正文，整体协调） ===== */
body { font-size: 16px; }

/* 左栏：宽度刚好放下5字菜单（收紧内外边距），菜单字号仍全站最大 */
#pc-rail { width: 190px; padding-left: 6px; padding-right: 6px; }
.rail-nav { padding: 0; }
.rail-item small { font-size: 21px; white-space: nowrap; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rail-item { padding: 13px 10px; gap: 10px; }
.rail-item .ri { font-size: 24px; flex: none; }
.rail-divider { height: 0; border-top: 1px dashed var(--line); margin: 8px 10px; }

/* 顶栏 */
.avatar { width: 40px; height: 40px; font-size: 16px; }
.pt-greet { font-size: 20px; }
.pt-date { font-size: 14px; }
.pt-search input { font-size: 15px; }
.pt-login { font-size: 15px; padding: 9px 18px; }

/* 面板与区块标题（次于菜单） */
.panel-t { font-size: 18px; }
.panel-sub { font-size: 14.5px; }
.empty { font-size: 15px; }
.pz-hero-badge { font-size: 14px; }
.pz-hero-t { font-size: 20px; }
.pz-hero-steps { font-size: 14px; }
.pz-map-cap { font-size: 14px; }
.pz-hero-state { font-size: 14px; }
.pz-hero-btn { font-size: 15.5px; }
.tk-t { font-size: 16px; }
.tk-d { font-size: 14px; }
.sjc-name { font-size: 16.5px; }
.sjc-desc { font-size: 14px; }
.tag-soon, .tag-on { font-size: 13px; padding: 2px 9px; }
.sj-group-t { font-size: 14.5px; }
.mx-h, .mx-hrow .mx-sub { font-size: 14.5px; }
.mx-sub b { font-size: 16px; }
.mx-c { font-size: 14.5px; }
.chip-lb { font-size: 14.5px; }
.chip { font-size: 14.5px; padding: 4px 11px; }
.vc-t { font-size: 16.5px; }
.vc-sub { font-size: 13.5px; }
.vc-stat { font-size: 13.5px; }
.vc-info { padding: 10px 12px 12px; }
.cv-title { font-size: 16.5px; }
.cv-meta { font-size: 13.5px; }
.cv-seal { font-size: 13.5px; }
.stat b { font-size: 20px; }
.stat span { font-size: 13.5px; }
.hm-legend { font-size: 13.5px; }
.rail-line { font-size: 14px; }
.rail-more { font-size: 14.5px; }
.rail-empty { font-size: 14px; }
.pz-lg { font-size: 13.5px; }
.pz-lg b { font-size: 15px; }
.pg-head h2 { font-size: 22px; }
.pg-head p { font-size: 14.5px; }
.pg-gt { font-size: 16.5px; }
.pg-t { font-size: 16.5px; }
.pg-line1 { font-size: 14.5px; }
.pg-line2 { font-size: 13.5px; }
.soon-page h2 { font-size: 20px; }
.soon-page p { font-size: 15px; }
.soon-page .sp-ic { font-size: 56px; }

/* 个人中心「我的工具」快捷入口 */
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.tool-cell { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 8px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; transition: .15s; }
.tool-cell:hover { color: #fff; border-color: rgba(124,108,240,.5); background: var(--bg-hover); }
.tool-cell span { font-size: 15px; }
.tc-ic { font-size: 23px; line-height: 1; }

/* ===== 全局设置面板 ===== */
#set-mask .set-card{ width:440px; max-width:92vw; max-height:88vh; overflow:auto; background:var(--bg-raise); border:1px solid var(--line); border-radius:18px; padding:22px 22px 20px; box-shadow:var(--shadow-1) }
.set-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px }
.set-head h3{ font-size:19px; font-weight:800; margin:0 }
.set-x{ background:none; border:none; color:var(--muted); font-size:18px; cursor:pointer }
.set-sec{ margin-bottom:16px; padding-bottom:14px; border-bottom:1px solid var(--line) }
.set-t{ font-size:16px; font-weight:700; margin-bottom:10px; display:flex; align-items:center; gap:8px }
.set-hint{ font-size:13.5px; color:var(--muted); font-weight:400 }
.voice-list{ display:grid; grid-template-columns:1fr 1fr; gap:10px }
.voice-card{ display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:12px; background:var(--bg); border:1px solid var(--line); cursor:pointer; transition:.15s; position:relative }
.voice-card.on{ border-color:var(--brand); background:rgba(124,108,240,.12); box-shadow:0 0 0 1px var(--brand) }
.vc-ava{ font-size:24px; flex:none }
.vc-info2{ flex:1; min-width:0 }
.vc-name{ font-size:15px; font-weight:700 }
.vc-ms{ font-size:12.5px; color:var(--muted) }
.vc-try{ flex:none; font-size:13px; padding:5px 10px; border-radius:8px; border:1px solid var(--line); background:var(--bg-side); color:var(--ink-2); cursor:pointer }
.voice-card.on .vc-try{ background:var(--brand); color:#fff; border-color:transparent }
.set-row{ display:flex; align-items:center; gap:12px }
.set-val{ font-size:15px; font-weight:700; color:var(--on-brand); min-width:42px }
#set-speed{ flex:1; accent-color:var(--brand) }
.switch{ position:relative; display:inline-block; width:44px; height:24px; flex:none }
.switch input{ display:none }
.slider{ position:absolute; inset:0; background:var(--line); border-radius:99px; transition:.2s; cursor:pointer }
.slider::before{ content:""; position:absolute; width:18px; height:18px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s }
.switch input:checked + .slider{ background:var(--brand) }
.switch input:checked + .slider::before{ transform:translateX(20px) }
.set-clear{ font-size:14.5px; padding:7px 14px; border-radius:9px; border:1px solid var(--line); background:var(--bg); color:var(--bad); cursor:pointer }
.set-done{ width:100%; margin-top:4px; border:none; cursor:pointer; background:linear-gradient(120deg,#4338CA,#6D28D9); color:#fff; font-weight:800; font-size:16px; padding:12px; border-radius:12px }
.eye-care{ filter:sepia(.28) saturate(.9) brightness(1.02); }

/* ---------- 顶栏弹窗（快捷入口用） ---------- */
.tb-mask{position:fixed;inset:0;background:var(--mask);backdrop-filter:blur(3px);
  display:flex;align-items:center;justify-content:center;z-index:9000;padding:20px}
.tb-modal{position:relative;width:100%;max-width:440px;max-height:86vh;overflow:auto;
  background:var(--card-solid);border:1px solid var(--line);border-radius:16px;padding:22px 22px 20px;
  box-shadow:var(--shadow-1);color:var(--ink)}
.tb-modal h3{margin:0 0 14px;font-size:16px;font-weight:800}
.tb-x{position:absolute;top:12px;right:14px;width:26px;height:26px;border:0;border-radius:8px;
  background:transparent;color:var(--muted);font-size:20px;line-height:1;cursor:pointer}
.tb-x:hover{background:var(--hover-tint);color:var(--ink)}
.tb-bd{font-size:13.5px;line-height:1.8}
.tb-bd code{background:var(--field);border:1px solid var(--line);border-radius:5px;padding:1px 6px;font-size:12.5px;color:#ffd166}
.tb-bd input,.tb-bd select,.tb-bd textarea{width:100%;box-sizing:border-box}
@media(max-width:1180px){.pt-quickbar{gap:4px;margin-right:8px}}

/* ---------- 换肤：白天 / 夜晚 ---------- */
#pt-theme .ti-ico { display: inline-block; transition: transform .28s cubic-bezier(.34,1.4,.64,1), opacity .2s; }
#pt-theme:active .ti-ico { transform: rotate(-35deg) scale(.86); }
[data-theme="day"] #pt-theme { background: #fff; border-color: #f0d98a; }
[data-theme="day"] #pt-theme .ti-ico { transform: rotate(140deg); }

/* 换肤弹层（三选：跟随系统 / 白天 / 夜晚） */
.th-modal{position:relative;width:100%;max-width:340px;background:var(--card-solid);
  border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow-1);color:var(--ink)}
.th-list{ display:flex; flex-direction:column; gap:9px; margin-top:12px }
.th-opt{ display:flex; align-items:center; gap:12px; padding:12px 14px; border:1.5px solid var(--line);
  border-radius:12px; cursor:pointer; transition:.15s; background:var(--bg-raise) }
.th-opt:hover{ border-color:var(--brand); background:var(--bg-hover) }
.th-opt.on{ border-color:var(--brand); background:var(--bg-hover);
  box-shadow: inset 0 0 0 1px var(--brand) }
.th-sw{ width:38px; height:24px; border-radius:8px; flex:none; position:relative;
  border:1px solid var(--line); overflow:hidden }
.th-sw i{ position:absolute; inset:0; display:block }
.th-sw.n i{ background:linear-gradient(135deg,#0d1017 50%,#191e2c 50%) }
.th-sw.d i{ background:linear-gradient(135deg,#c9dcf7 50%,#eaf0fa 50%) }
.th-sw.a{ background:linear-gradient(135deg,#0d1017 0 50%,#c9dcf7 50%) }
.th-tx{ flex:1; min-width:0 }
.th-tx b{ display:block; font-size:15px; font-weight:700 }
.th-tx span{ display:block; font-size:12.5px; color:var(--muted); margin-top:2px }
.th-ck{ flex:none; font-size:16px; color:var(--brand); opacity:0 }
.th-opt.on .th-ck{ opacity:1 }

/* ---------- 表单控件统一（跟随主题） ---------- */
input, textarea, select { background: var(--field); color: var(--ink); border: 1px solid var(--line); }
input::placeholder, textarea::placeholder { color: var(--field-ph); }
textarea { font-family: inherit; }
/* ============================================================================
 * 顶部搜索：下拉建议 + 结果页高亮
 * ==========================================================================*/
.pt-search { position: relative; }

/* 下拉建议层 */
.sg-drop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 400;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.28); overflow: hidden; display: none; }
[data-theme="day"] .sg-drop { box-shadow: var(--shadow-1); }
.sg-drop.on { display: block; }
.sg-list { max-height: 340px; overflow-y: auto; }
.sg-item { display: flex; align-items: center; gap: 11px; padding: 10px 13px; cursor: pointer; transition: .12s; }
.sg-item:hover, .sg-item.cur { background: var(--bg-hover); }
.sg-item.cur { box-shadow: inset 2px 0 0 var(--brand); }
.sg-cover { width: 34px; height: 46px; flex: none; border-radius: 7px; background: var(--img-ph) center/cover;
  border: 1px solid var(--line); }
.sg-txt { flex: 1; min-width: 0; }
.sg-txt b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-txt i { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-go { flex: none; font-size: 12.5px; color: var(--brand); opacity: 0; transition: .12s; }
.sg-item:hover .sg-go, .sg-item.cur .sg-go { opacity: 1; }
.sg-empty { padding: 22px 16px; text-align: center; font-size: 13.5px; color: var(--muted); line-height: 2; }
.sg-foot { border-top: 1px solid var(--line); }
.sg-foot button { display: block; width: 100%; border: 0; cursor: pointer; padding: 11px;
  background: transparent; color: var(--brand); font-size: 13.5px; font-weight: 700; }
.sg-foot button:hover { background: var(--bg-hover); }

/* 关键词高亮 */
mark.hl { background: rgba(251,191,36,.34); color: inherit; border-radius: 3px; padding: 0 2px; font-weight: 800; }
[data-theme="day"] mark.hl { background: rgba(251,191,36,.55); }

/* 结果页 */
.sg-q { color: var(--brand); }
.sg-n { color: var(--brand); font-size: 1.1em; }
.sg-clear { border: 1px solid var(--line); background: var(--bg-raise); color: var(--muted);
  cursor: pointer; font-size: 13px; padding: 7px 12px; border-radius: 9px; align-self: center; }
.sg-clear:hover { border-color: var(--brand); color: var(--brand); }
.sg-tips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 4px; }
.sg-tip { border: 1px solid var(--line); background: var(--bg-raise); color: var(--ink-2);
  cursor: pointer; font-size: 13.5px; padding: 7px 14px; border-radius: 999px; transition: .14s; }
.sg-tip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.lnk2 { color: var(--brand); cursor: pointer; text-decoration: underline; }
.lnk2:hover { opacity: .8; }

/* 让搜索框在有下拉时更醒目 */
.pt-search:has(.sg-drop.on) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,108,240,.16); }
/* ============================================================
   推广分销中心（两级佣金）
   ============================================================ */
.promo-btn { border: none; cursor: pointer; background: linear-gradient(120deg, #4338CA, #6D28D9);
  color: #fff; font-weight: 800; font-size: 15px; padding: 11px 20px; border-radius: 10px; transition: .15s; }
.promo-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.promo-hero h3 { font-size: 19px; font-weight: 800; margin: 4px 0 10px; }
.promo-desc { color: var(--ink-2); font-size: 15px; line-height: 1.85; }
.promo-desc b { color: var(--on-brand); }
.promo-tip { color: var(--muted); font-size: 13.5px; margin-top: 10px; line-height: 1.7; }
.promo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 4px 0 14px; }
.promo-stats > div { background: var(--bg-side); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: center; }
.promo-stats b { display: block; font-size: 21px; font-weight: 800; color: var(--on-brand); }
.promo-stats span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.promo-apply, .promo-link { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.promo-apply input, .promo-link input { flex: 1; min-width: 200px; background: var(--field); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; color: var(--ink); font-size: 15px; outline: none; }
.promo-apply input:focus, .promo-link input:focus { border-color: var(--brand); }
.promo-card .promo-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.promo-card-head b { font-size: 17px; }
.promo-card-head span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.promo-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; letter-spacing: .06em;
  color: var(--yellow); background: var(--code-bg); border: 1px dashed var(--line); padding: 6px 14px; border-radius: 9px; }
.promo-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.promo-actions button { border: 1px solid var(--line); background: var(--bg-raise); color: var(--ink);
  cursor: pointer; font-size: 14.5px; font-weight: 700; padding: 10px 18px; border-radius: 10px; transition: .15s; }
.promo-actions button:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.promo-actions button.promo-btn { border: none; color: #fff;
  background: linear-gradient(120deg, #4338CA, #6D28D9); }
.promo-actions button.promo-btn:hover { color: #fff; filter: brightness(1.08); }
.promo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; flex-wrap: wrap; }
.promo-row:last-child { border-bottom: none; }
.promo-row b { font-weight: 700; }
.promo-row span { color: var(--muted); font-size: 13.5px; }
.promo-ok { color: var(--green); font-style: normal; font-weight: 700; }
.promo-no { color: var(--red); font-style: normal; font-weight: 700; }

/* ============================================================
   推广奖励 / 合伙人 / 推广团长
   ============================================================ */
.rw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.rw-card { position: relative; }
.rw-tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px; }
.rw-big { font-size: 40px; font-weight: 800; line-height: 1.05; color: var(--on-brand); }
.rw-sub { font-size: 13.5px; color: var(--muted); margin: 6px 0 16px; }
.rw-btn { width: 100%; }
.rw-btn[disabled] { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.rw-list { list-style: none; margin: 18px 0 0; padding: 0; }
.rw-list li { position: relative; padding: 9px 0 9px 24px; font-size: 14.5px; font-weight: 600;
  border-top: 1px solid var(--line-soft); }
.rw-list li::before { content: '✓'; position: absolute; left: 0; top: 9px; color: var(--green); font-weight: 800; }
.rw-list li em { display: block; font-style: normal; font-weight: 400; font-size: 13px;
  color: var(--muted); margin-top: 3px; line-height: 1.65; }
.rw-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.7; }
.rw-note b { color: var(--on-brand); }
.rw-chip { position: absolute; top: 15px; right: 17px; font-size: 12px; font-weight: 700;
  color: var(--on-brand); background: var(--code-bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; font-variant-numeric: tabular-nums; }
.rw-link { display: flex; gap: 8px; margin-top: 10px; }
.rw-link input { flex: 1; min-width: 0; background: var(--field); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; color: var(--ink); font-size: 13.5px; outline: none; }

/* 资格引导卡 */
.promo-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 16px 0 12px; }
.promo-way { display: block; cursor: pointer; background: var(--bg-side); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; transition: .15s; }
.promo-way:hover { border-color: var(--brand); transform: translateY(-2px); }
.promo-way .pw-ic { font-size: 24px; display: block; margin-bottom: 8px; }
.promo-way b { display: block; font-size: 15.5px; font-weight: 800; margin-bottom: 5px; }
.promo-way span:last-child { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 合伙人 / 团长 权益 */
.rw-role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 16px; }
.rw-role-card { position: relative; padding-top: 46px; }
.rw-role-no { position: absolute; top: 12px; right: 18px; font-size: 30px; font-weight: 800;
  color: var(--line); line-height: 1; }
.rw-role-card b { display: block; font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.rw-role-card p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.role-state.ok-state { border-color: var(--green); }
.role-state b { font-size: 17px; }
.rw-label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.role-apply input, .role-apply textarea { width: 100%; background: var(--field); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; color: var(--ink); font-size: 14.5px; outline: none;
  font-family: inherit; resize: vertical; }
.role-apply input:focus, .role-apply textarea:focus { border-color: var(--brand); }

/* ============================================================
   开通学习卡（框架内）
   ============================================================ */
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }
.card-plan { position: relative; display: flex; flex-direction: column; transition: .18s; }
.card-plan:hover { border-color: var(--brand); transform: translateY(-2px); }
.cp-badge { position: absolute; top: -1px; right: 14px; background: linear-gradient(120deg, #ff9f43, #ff6b6b);
  color: #fff; font-size: 11.5px; font-weight: 800; padding: 4px 12px; border-radius: 0 0 9px 9px; }
.card-plan.has-badge { padding-top: 26px; }
.cp-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 12px; }
.cp-ic { font-size: 26px; line-height: 1; flex: none; }
.cp-head b { display: block; font-size: 16.5px; font-weight: 800; }
.cp-head span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.cp-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cp-price em { font-style: normal; font-size: 30px; font-weight: 800; color: var(--on-brand); line-height: 1; }
.cp-price s { font-size: 14px; color: var(--muted); }
.cp-perm { font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 9px; }
.cp-list { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
.cp-list li { position: relative; padding: 7px 0 7px 22px; font-size: 14px; color: var(--ink-2);
  border-top: 1px solid var(--line-soft); }
.cp-list li::before { content: '✓'; position: absolute; left: 0; top: 7px; color: var(--green); font-weight: 800; }
.cp-buy { width: 100%; }
.cp-buy[disabled] { opacity: .6; cursor: not-allowed; }

.wg-err { font-size: 13px; color: var(--red); background: rgba(248,113,113,.10);
  border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; padding: 7px 11px;
  margin-bottom: 10px; line-height: 1.6; }

/* ============================================================
   佣金中心：链接卡 / 数据行 / 海报 / 明细 tab
   ============================================================ */
.promo-locked { text-align: center; padding: 34px 20px; }
.promo-lock-ic { font-size: 46px; line-height: 1; margin-bottom: 14px; }
.promo-locked h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.promo-locked .promo-desc { max-width: 620px; margin: 0 auto; }
.promo-locked .promo-stats { margin-top: 18px; }

.promo-linkcard { display: flex; align-items: stretch; gap: 20px; padding: 22px 24px; }
.plc-main { flex: 1; min-width: 0; }
.plc-title { display: block; font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.plc-sub { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.plc-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plc-row input { flex: 1; min-width: 220px; background: var(--field); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; color: var(--ink); font-size: 13.5px; outline: none; }
.plc-icbtn { flex: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-side); color: var(--brand); font-size: 17px; cursor: pointer; }
.plc-icbtn:hover { border-color: var(--brand); }
.plc-copy { flex: none; }
.plc-tabs { display: flex; gap: 10px; margin-top: 16px; }
.plc-tab { border: 1px solid var(--line); background: var(--bg-side); color: var(--ink-2);
  cursor: pointer; font-size: 13.5px; font-weight: 700; padding: 8px 16px; border-radius: 9px; transition: .15s; }
.plc-tab:hover { border-color: var(--brand); color: var(--brand); }
.plc-tab.on { background: linear-gradient(120deg, #4338CA, #6D28D9); border-color: transparent; color: #fff; }
.plc-art { flex: none; width: 200px; border-radius: 14px; padding: 16px 18px;
  background: linear-gradient(135deg, #4338CA, #6D28D9 55%, #2563EB);
  display: flex; flex-direction: column; justify-content: space-between; text-align: center; }
.plc-role { font-size: 14px; font-weight: 800; color: #fff; opacity: .95; }
.plc-badge { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; font-weight: 800;
  letter-spacing: .06em; color: #fff; background: rgba(255,255,255,.18); border-radius: 9px; padding: 8px 10px; }
@media (max-width: 1100px) { .plc-art { display: none; } }

.promo-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 12px; margin-top: 16px; }
.psr { background: var(--bg-raise); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.psr-ic { font-size: 20px; line-height: 1; }
.psr b { font-size: 22px; font-weight: 800; color: var(--on-brand); line-height: 1.15; }
.psr-t { font-size: 12.5px; color: var(--muted); }
.psr-cta { background: linear-gradient(135deg, rgba(67,56,202,.14), rgba(109,40,217,.10));
  border-color: var(--brand); }
.psr-amt { font-size: 24px !important; }
.psr-btn { margin-top: 6px; padding: 8px 18px; font-size: 14px; width: 100%; }

.poster-wrap { display: flex; justify-content: center; padding: 6px 0 4px; }
.poster-cv { width: 100%; max-width: 340px; height: auto; border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0,0,0,.28); }
.poster-ops { display: flex; gap: 10px; align-items: center; justify-content: center;
  flex-wrap: wrap; margin-top: 14px; }
.poster-ops button { border: 1px solid var(--line); background: var(--bg-side); color: var(--ink);
  cursor: pointer; font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: 10px; transition: .15s; }
.poster-ops button:hover { border-color: var(--brand); color: var(--brand); }
.poster-ops button.promo-btn { border: none; color: #fff;
  background: linear-gradient(120deg, #4338CA, #6D28D9); }
.poster-ops button.promo-btn:hover { color: #fff; filter: brightness(1.08); }
.poster-tip { font-size: 12.5px; color: var(--muted); }

.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 4px; }
.qr-box { background: #fff; padding: 14px; border-radius: 14px; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.qr-box img, .qr-box canvas { display: block; }
.qr-code { font-size: 15px; color: var(--ink-2); }
.qr-code b { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--on-brand); font-size: 17px; }

.promo-mtabs { display: flex; gap: 8px; margin: 20px 0 12px; flex-wrap: wrap; }
.pmt { border: none; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 15px; font-weight: 700; padding: 9px 16px; border-radius: 10px; transition: .15s; }
.pmt:hover { color: var(--ink); background: var(--bg-hover, var(--bg-side)); }
.pmt.on { color: var(--on-brand); background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--line); }

/* ============================================================
   通用确认对话框（未登录点首页的「提示」）
   ============================================================ */
.cf-mask { position: fixed; inset: 0; z-index: 300; background: var(--mask);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.cf-box { position: relative; width: 92vw; max-width: 430px; background: var(--card-solid);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-1); padding: 20px 22px 18px; }
.cf-x { position: absolute; top: 12px; right: 14px; width: 26px; height: 26px; border: none;
  background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; border-radius: 7px; }
.cf-x:hover { background: var(--hover-tint); color: var(--ink); }
.cf-head { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.cf-ic { font-size: 18px; line-height: 1; }
.cf-body { padding: 16px 2px 18px; font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.cf-foot { display: flex; justify-content: flex-end; gap: 10px; }
.cf-btn { border: none; cursor: pointer; font-size: 14.5px; font-weight: 700;
  padding: 9px 22px; border-radius: 9px; background: linear-gradient(120deg, #4338CA, #6D28D9); color: #fff; }
.cf-btn:hover { filter: brightness(1.08); }
.cf-btn.ghost { background: var(--bg-side); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.cf-btn.ghost:hover { border-color: var(--brand); color: var(--brand); filter: none; }

/* ============================================================
   首页「我的状态」卡（会员情况 + 身份）
   ============================================================ */
.d-status { margin-bottom: 16px; }
.ds-skeleton { color: var(--muted); font-size: 14px; padding: 12px 2px; }
.ds-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.ds-ava { flex: none; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 19px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #4338CA, #6D28D9); }
.ds-me { min-width: 168px; }
.ds-me b { display: block; font-size: 17px; font-weight: 800; }
.ds-uid { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.ds-cell { display: flex; flex-direction: column; gap: 3px; padding-left: 18px;
  border-left: 1px solid var(--line); min-width: 150px; }
.ds-t { font-size: 12.5px; color: var(--muted); }
.ds-mem { font-size: 16px; font-weight: 800; }
.ds-mem.on { color: var(--green); }
.ds-mem.off { color: var(--muted); }
.ds-role-tag { font-size: 16px; font-weight: 800; color: var(--on-brand); }
.ds-role-none { font-size: 16px; font-weight: 800; color: var(--ink-2); }
.ds-sub { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ds-ops { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.ds-btn { border: none; cursor: pointer; font-size: 14px; font-weight: 700; padding: 9px 18px;
  border-radius: 9px; background: linear-gradient(120deg, #4338CA, #6D28D9); color: #fff; transition: .15s; }
.ds-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ds-btn.ghost { background: var(--bg-side); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.ds-btn.ghost:hover { border-color: var(--brand); color: var(--brand); filter: none; }
@media (max-width: 1200px) { .ds-cell { padding-left: 0; border-left: none; } }

/* ============================================================
   首页数据看板
   ============================================================ */
.hm-head { align-items: flex-end; }
.hm-tabs { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.hm-tab { border: none; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 14.5px; font-weight: 700; padding: 7px 14px; border-radius: 9px; transition: .15s; }
.hm-tab:hover { color: var(--ink); background: var(--bg-side); }
.hm-tab.on { color: #fff; background: linear-gradient(120deg, #4338CA, #6D28D9); }

.hm-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .hm-wrap { grid-template-columns: 1fr; } }
.hm-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hm-side { display: flex; flex-direction: column; gap: 16px; }
.hm-panel { margin: 0; }

.hm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .hm-two { grid-template-columns: 1fr; } }
.hm-num { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-side); border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; }
.hm-num-l { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hm-num-t { font-size: 13.5px; color: var(--muted); width: 100%; }
.hm-num-l b { font-size: 32px; font-weight: 800; color: var(--on-brand); line-height: 1; }
.hm-unit { font-size: 13px; color: var(--muted); }
.hm-ico { flex: none; width: 46px; height: 46px; border-radius: 13px; display: flex;
  align-items: center; justify-content: center; font-size: 22px; }
.ico-s { background: linear-gradient(135deg, rgba(67,56,202,.18), rgba(109,40,217,.12)); }
.ico-w { background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(124,108,240,.12)); }

.hm-triple { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 700px) { .hm-triple { grid-template-columns: 1fr; } }
.hm-trip { background: var(--bg-side); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.hm-trip-t { font-size: 13px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 8px; }
.hm-trip-r { display: flex; gap: 18px; }
.hm-trip-r span { display: flex; flex-direction: column; gap: 2px; }
.hm-trip-r b { font-size: 18px; font-weight: 800; color: var(--ink); }
.hm-trip-r em { font-style: normal; font-size: 12px; color: var(--muted); }

.hm-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hm-k { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.hm-v { font-size: 22px; font-weight: 800; color: var(--ink); }
.hm-v em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 600; }
.hm-more { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--on-brand); cursor: pointer; }

/* 月历 */
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-head i { font-style: normal; font-size: 12px; color: var(--muted); text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-c { aspect-ratio: 1 / 1; border-radius: 9px; background: var(--bg-side); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; }
.cal-c b { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cal-c.void { background: transparent; border-color: transparent; }
.cal-c.lv1 { background: rgba(67,56,202,.16); border-color: transparent; }
.cal-c.lv1 b { color: var(--ink); }
.cal-c.lv2 { background: rgba(67,56,202,.34); border-color: transparent; }
.cal-c.lv2 b { color: var(--ink); }
.cal-c.lv3 { background: linear-gradient(135deg, #4338CA, #6D28D9); border-color: transparent; }
.cal-c.lv3 b { color: #fff; font-weight: 800; }
.cal-c.today { box-shadow: 0 0 0 2px var(--brand); }

/* 日期卡 */
.hm-date { background: linear-gradient(150deg, #4338CA, #6D28D9 55%, #2563EB); border-radius: 16px;
  padding: 20px 20px 18px; color: #fff; }
.hm-date-top { display: flex; align-items: center; gap: 12px; }
.hm-date-d { font-size: 52px; font-weight: 800; line-height: 1; }
.hm-date-r b { display: block; font-size: 16px; font-weight: 800; }
.hm-date-r span { font-size: 13px; opacity: .85; }
.hm-date-art { font-size: 46px; text-align: center; margin: 14px 0 10px; }
.hm-date-stats { display: flex; justify-content: center; gap: 22px; font-size: 13px; opacity: .92; margin-bottom: 14px; }
.hm-date-stats b { font-weight: 800; }
.hm-checkin { width: 100%; border: none; cursor: pointer; border-radius: 11px; padding: 12px;
  font-size: 14.5px; font-weight: 800; background: rgba(255,255,255,.94); color: #4338CA; transition: .15s; }
.hm-checkin:hover { background: #fff; }
.hm-checkin.done { background: rgba(255,255,255,.2); color: #fff; }
.hm-date-foot { text-align: center; font-size: 12.5px; opacity: .86; margin-top: 12px; }
.hm-date-foot b { font-weight: 800; }

/* 平台情况 */
.hm-plat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-plat { background: var(--bg-side); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 10px; text-align: center; }
.hm-plat b { display: block; font-size: 19px; font-weight: 800; color: var(--on-brand); }
.hm-plat span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* 荣耀榜 */
.hm-rank-list { display: flex; flex-direction: column; }
.hm-rank-empty { font-size: 13.5px; color: var(--muted); padding: 14px 0; text-align: center; line-height: 1.7; }
.hm-rank-row { display: flex; align-items: center; gap: 9px; padding: 9px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.hm-rank-row:last-child { border-bottom: none; }
.hm-rank-row.me { background: rgba(67,56,202,.08); border-radius: 9px; padding-left: 6px; padding-right: 6px; }
.hm-rank-no { flex: none; width: 24px; text-align: center; font-weight: 800; color: var(--muted); font-size: 13px; }
.hm-rank-no.r1, .hm-rank-no.r2, .hm-rank-no.r3 { font-size: 17px; }
.hm-rank-ava { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #4338CA, #6D28D9); }
.hm-rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-rtag { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--on-brand);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; margin-left: 6px; }
.hm-rank-dur { flex: none; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ============================================================
   沉浸式招商页（我学领航员 / 合伙人）
   ============================================================ */
.rv-top { position: relative; border-radius: 16px; padding: 22px 24px 18px;
  background: linear-gradient(120deg, #4338CA, #6D28D9 60%, #2563EB); color: #fff;
  box-shadow: 0 14px 34px rgba(67,56,202,.28); overflow: hidden; }
.rv-flame { display: inline-block; font-size: 12.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.22); margin-bottom: 12px; }
.rv-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rv-price em { font-style: normal; font-size: 44px; font-weight: 800; line-height: 1; }
.rv-price s { font-size: 18px; opacity: .72; }
.rv-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.rv-tags span { font-size: 12.5px; padding: 4px 11px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }

.rv-hero { margin-top: 16px; background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 16px; padding: 30px 26px 24px; text-align: center; }
.rv-hero-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800;
  color: var(--ink-2); margin-bottom: 14px; }
.rv-logo { width: 22px; height: 22px; border-radius: 6px; display: block; flex: none; }
/* 由 🎓 emoji 换成平台 IP 形象：尺寸改为显式像素，font-size 不再起作用 */
.rv-hero-t { font-size: 27px; font-weight: 800; letter-spacing: .01em; margin: 0 0 14px; }
.rv-hero-lead { font-size: 15px; color: var(--ink-2); line-height: 1.9; max-width: 720px; margin: 0 auto; }
.rv-hero-strip { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 14px; }

.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.rv-card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: 15px;
  padding: 20px 18px; transition: .18s; }
.rv-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.rv-card-ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(67,56,202,.16), rgba(109,40,217,.10)); }
.rv-card-t { display: block; font-size: 16.5px; font-weight: 800; margin-bottom: 10px; }
.rv-card-l { list-style: none; margin: 0; padding: 0; }
.rv-card-l li { position: relative; padding: 6px 0 6px 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.rv-card-l li::before { content: "\00b7"; position: absolute; left: 4px; top: 5px; font-weight: 800; color: var(--brand); }

.rv-earn { margin-top: 16px; background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 15px; padding: 20px 22px; }
.rv-earn-t { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.rv-earn-t span { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.rv-earn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rv-earn-grid > div { background: var(--bg-side); border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; }
.rv-earn-grid em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--ink); }
.rv-earn-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.7; }

.rv-state { margin-top: 16px; }
.rv-cardbox { background: var(--bg-raise); border: 1px solid var(--line); border-radius: 15px; padding: 24px 24px 22px; }
.rv-cardbox.ok { border-color: var(--green); }
.rv-center { text-align: center; }
.rv-cb-t { display: block; font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.rv-cb-d { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 0 0 6px; }
.rv-cta { margin-top: 16px; border: none; cursor: pointer; border-radius: 11px; padding: 13px 32px;
  font-size: 16px; font-weight: 800; background: linear-gradient(120deg, #4338CA, #6D28D9); color: #fff;
  transition: .15s; }
.rv-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.rv-cta[disabled] { opacity: .6; cursor: not-allowed; }
.rv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.rv-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; }
.rv-form label i { font-style: normal; color: var(--red); }
.rv-form .rv-full { grid-column: 1 / -1; }
.rv-form input, .rv-form textarea { background: var(--field); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; color: var(--ink); font-size: 14.5px; outline: none;
  font-family: inherit; font-weight: 400; resize: vertical; }
.rv-form input:focus, .rv-form textarea:focus { border-color: var(--brand); }
@media (max-width: 700px) { .rv-form { grid-template-columns: 1fr; } }

/* 底部固定支付栏 */
.rv-bar { position: sticky; bottom: 0; z-index: 20; margin-top: 18px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--card-solid); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 18px; box-shadow: var(--shadow-2); }
.rv-bar-pay { font-size: 14px; font-weight: 800; flex: none; }
.rv-bar-msg { flex: 1; min-width: 180px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.rv-bar-btn { flex: none; border: none; cursor: pointer; border-radius: 10px; padding: 12px 30px;
  font-size: 15.5px; font-weight: 800; background: linear-gradient(120deg, #4338CA, #6D28D9); color: #fff; }
.rv-bar-btn:hover:not([disabled]) { filter: brightness(1.08); }
.rv-bar-btn[disabled] { background: var(--bg-side); color: var(--muted); border: 1px solid var(--line); cursor: not-allowed; }

/* ============================================================
   侧栏底部：账号入口（替代原废弃的「学」字）
   ============================================================ */
.rail-foot { flex-direction: column; gap: 7px; padding-bottom: 4px; }
.rm-ava { width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #4338CA, #6D28D9); color: #fff;
  font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  transition: .15s; box-shadow: var(--shadow-1); }
.rm-ava:hover { transform: translateY(-2px); filter: brightness(1.08); }
.rm-tip { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* ============================================================
   我的学习：tab 栏与各面板
   ============================================================ */
.st-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
  background: var(--bg-side); border: 1px solid var(--line); border-radius: 13px; padding: 6px; }
.st-tab { display: flex; align-items: center; gap: 6px; border: none; background: transparent;
  color: var(--muted); cursor: pointer; font-size: 14.5px; font-weight: 700;
  padding: 9px 15px; border-radius: 9px; transition: .15s; }
.st-tab i { font-style: normal; font-size: 15px; }
.st-tab:hover { color: var(--ink); background: var(--bg-hover); }
.st-tab.on { color: #fff; background: linear-gradient(120deg, #4338CA, #6D28D9); }

.st-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1000px) { .st-two { grid-template-columns: 1fr; } }
.st-two .panel { margin: 0; }

.st-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.st-mini > div { background: var(--bg-side); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 8px; text-align: center; }
.st-mini b { display: block; font-size: 19px; font-weight: 800; color: var(--on-brand); }
.st-mini span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
@media (max-width: 700px) { .st-mini { grid-template-columns: repeat(2, 1fr); } }

.st-ops { display: flex; gap: 10px; flex-wrap: wrap; }
.st-btn { border: 1px solid var(--brand); background: linear-gradient(120deg, #4338CA, #6D28D9);
  color: #fff; cursor: pointer; font-size: 14px; font-weight: 700; padding: 10px 18px;
  border-radius: 10px; transition: .15s; text-decoration: none; display: inline-block; }
.st-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.st-btn.ghost { background: var(--bg-side); border-color: var(--line); color: var(--ink-2); font-weight: 600; }
.st-btn.ghost:hover { border-color: var(--brand); color: var(--brand); filter: none; }

/* 学习建议 */
.ad-list { display: flex; flex-direction: column; }
.ad-row { display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-top: 1px solid var(--line-soft); }
.ad-row:first-child { border-top: none; }
.ad-ic { flex: none; font-size: 20px; width: 34px; text-align: center; }
.ad-main { flex: 1; min-width: 0; }
.ad-main b { display: block; font-size: 14.5px; font-weight: 700; }
.ad-main span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.65; }

/* 我的下载 */
.dl-list { display: flex; flex-direction: column; }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.dl-row:first-child { border-top: none; }
.dl-ic { flex: none; font-size: 20px; width: 34px; text-align: center; }
.dl-main { flex: 1; min-width: 0; }
.dl-main b { display: block; font-size: 14.5px; font-weight: 700; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.dl-main span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* 错题本 */
.wg-list { display: flex; flex-direction: column; gap: 14px; }
.wg-row { border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; background: var(--bg-side); }
.wg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.wg-tag { font-size: 12px; font-weight: 700; color: var(--on-brand); background: var(--code-bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }
.wg-meta { font-size: 12px; color: var(--muted); }
.wg-q { font-size: 15px; font-weight: 700; line-height: 1.7; margin-bottom: 10px; }
.wg-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.wg-opt { font-size: 13.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 9px;
  padding: 6px 12px; background: var(--bg-raise); }
.wg-opt.ok { border-color: var(--green); color: var(--green); font-weight: 700; }
.wg-opt.no { border-color: var(--red); color: var(--red); text-decoration: line-through; }
.wg-opt.pick { cursor: pointer; transition: .15s; }
.wg-opt.pick:hover { border-color: var(--brand); color: var(--brand); }
.wg-ops { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.wg-redo { margin-top: 10px; }

/* 推广中心：双 tab */
.pmtabs2 { display: flex; gap: 8px; margin-bottom: 16px; background: var(--bg-side);
  border: 1px solid var(--line); border-radius: 13px; padding: 6px; }
.pmt2 { border: none; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 15px; font-weight: 700; padding: 10px 20px; border-radius: 9px; transition: .15s; }
.pmt2:hover { color: var(--ink); background: var(--bg-hover); }
.pmt2.on { color: #fff; background: linear-gradient(120deg, #4338CA, #6D28D9); }

/* 精准学三色统计（「我的学情」复用） */
.pz-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pz-sum { text-align: center; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 8px; background: var(--bg-side); }
.pz-sum b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.pz-sum span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pz-sum.green b { color: var(--green); }
.pz-sum.yellow b { color: var(--yellow); }
.pz-sum.red b { color: var(--red); }

/* ============================================================
   首页广播通知条（后台「消息广播」配置，多条轮播）
   ============================================================ */
.nt-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 11px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg-side);
  border-left: 3px solid var(--brand); }
.nt-bar.lv-hot { border-left-color: #ff6b6b; background: linear-gradient(90deg, rgba(255,107,107,.13), transparent 62%); }
.nt-bar.lv-ok { border-left-color: var(--green); background: linear-gradient(90deg, rgba(52,211,153,.13), transparent 62%); }
.nt-bar.lv-warn { border-left-color: #ffa94d; background: linear-gradient(90deg, rgba(255,169,77,.15), transparent 62%); }
.nt-ic { font-size: 17px; flex: none; }
.nt-body { flex: 1; min-width: 0; overflow: hidden; }
.nt-tx { display: inline-block; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  transition: opacity .26s ease, transform .26s ease; }
.nt-tx.fade { opacity: 0; transform: translateY(-7px); }
.nt-go { flex: none; border: none; background: transparent; color: var(--brand); cursor: pointer;
  font-size: 13.5px; font-weight: 700; padding: 4px 6px; }
.nt-go:hover { text-decoration: underline; }
.nt-dots { flex: none; display: flex; gap: 4px; align-items: center; }
.nt-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); display: block;
  transition: .2s; }
.nt-dots i.on { background: var(--brand); width: 13px; border-radius: 3px; }
.nt-x { flex: none; border: none; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 13px; padding: 2px 5px; border-radius: 6px; }
.nt-x:hover { background: var(--hover-tint); color: var(--ink); }

/* ============================================================
   个人资料弹窗（详细版 + 头像上传）
   ============================================================ */
.pf-mask { position: fixed; inset: 0; z-index: 300; background: var(--mask); display: flex;
  align-items: center; justify-content: center; backdrop-filter: blur(3px); padding: 24px; }
.pf-box { position: relative; width: 92vw; max-width: 570px; max-height: 88vh; overflow-y: auto;
  background: var(--card-solid); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 26px 22px; box-shadow: var(--shadow-1); }
.pf-x { position: absolute; top: 12px; right: 14px; width: 28px; height: 28px; border: none;
  background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; border-radius: 8px; }
.pf-x:hover { background: var(--hover-tint); color: var(--ink); }
.pf-title { font-size: 19px; font-weight: 800; margin: 0 0 4px; }
.pf-sub { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.pf-ava-row { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.pf-ava { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex: none;
  background: linear-gradient(135deg, #4338CA, #6D28D9); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 30px; font-weight: 800; }
.pf-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-ava-op { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.pf-tip { font-size: 12px; color: var(--muted); margin: 0; }
.pf-sec { font-size: 13.5px; font-weight: 800; color: var(--ink-2); margin: 18px 0 10px;
  padding-bottom: 7px; border-bottom: 1px solid var(--line-soft); }
.pf-sec i { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 8px; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-fld { display: flex; flex-direction: column; gap: 6px; }
.pf-fld > span { font-size: 13px; font-weight: 700; color: var(--muted); display: flex;
  justify-content: space-between; gap: 8px; }
.pf-fld > span i { font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.pf-fld > span i:only-child { color: var(--red); }
.pf-fld input, .pf-fld select, .pf-ta { width: 100%; box-sizing: border-box; background: var(--field);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; color: var(--ink);
  font-size: 14.5px; outline: none; font-family: inherit; }
.pf-fld input:focus, .pf-fld select:focus, .pf-ta:focus { border-color: var(--brand); }
.pf-ta { resize: vertical; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chips button { border: 1px solid var(--line); background: var(--bg-side); color: var(--ink-2);
  cursor: pointer; font-size: 13.5px; font-weight: 600; padding: 8px 15px; border-radius: 999px; transition: .15s; }
.pf-chips button:hover { border-color: var(--brand); color: var(--brand); }
.pf-chips button.on { background: linear-gradient(120deg, #4338CA, #6D28D9); border-color: transparent; color: #fff; }
.pf-err { font-size: 13px; color: var(--red); margin: 12px 0 0; }
.pf-save { width: 100%; margin-top: 16px; border: none; cursor: pointer; border-radius: 11px; padding: 13px;
  font-size: 15.5px; font-weight: 800; background: linear-gradient(120deg, #4338CA, #6D28D9); color: #fff; }
.pf-save:hover { filter: brightness(1.08); }
.pf-save[disabled] { opacity: .6; cursor: not-allowed; }

/* ============================================================
   个人中心（详细资料）
   ============================================================ */
.me-card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px; max-width: 660px; }
.me-top { display: flex; align-items: center; gap: 18px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line); }
.me-ava { width: 72px; height: 72px; border-radius: 50%; flex: none; object-fit: cover; display: block; }
.me-ava-t { background: linear-gradient(135deg, #4338CA, #6D28D9); color: #fff; font-size: 28px;
  font-weight: 800; display: flex; align-items: center; justify-content: center; }
.me-id { min-width: 0; }
.me-id b { display: block; font-size: 20px; font-weight: 800; margin-bottom: 5px; }
.me-uid { display: block; font-size: 13px; color: var(--muted); }
.me-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.me-tag { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-2);
  background: var(--bg-side); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.me-tag.hot { color: var(--on-brand); }
.me-tag.ok { color: var(--green); }
.me-rows { padding: 6px 0 2px; }
.me-row { display: flex; align-items: flex-start; gap: 14px; padding: 11px 0;
  border-bottom: 1px solid var(--line-soft); }
.me-row:last-child { border-bottom: none; }
.me-k { flex: none; width: 108px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.me-k i { display: block; font-style: normal; font-size: 11.5px; font-weight: 400; margin-top: 2px; }
.me-v { flex: 1; min-width: 0; font-size: 14.5px; color: var(--ink); word-break: break-word; }
.me-na { color: var(--muted); }
.me-ops { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.me-promo { flex: none; }

/* 头像图片填充（侧栏底部 / 首页状态卡） */
.rm-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ds-ava { overflow: hidden; }
