/* 东方智慧主题 · 核心（基础/浅色主题/响应式/内容生态主体）—— P1-7 拆分，与 theme-ext.css 配对加载 */
/* ============ 尊享体面主题：暗金 × 酒红 × 深色底 ============ */
:root {
  /* color-scheme 告诉浏览器当前页面的主题取向：
     1) 让浏览器自动调整滚动条/表单控件颜色
     2) 关键：禁止安卓 Chrome "Darken web contents" 强制反色
     3) 避免 prefers-color-scheme 媒体查询的副作用 */
  color-scheme: dark;
  --ink: #1C1A17;        --ink-2: #2B2219;
  --gold: #9A7B4F;       --gold-deep: #7A5C33;   --gold-light: #D9B98A;
  --wine: #7B2D3B;       --wine-deep: #5E1F2B;
  --cream: #FDF8EC;      --beige: #E8DCCB;       --muted: #A89C8A;
  --line: #3A342B;       --surface: #24201A;     --surface-2: #2E281F;
  --ok: #7FB069;         --danger: #C25E4C;
  /* 兼容别名：部分组件（标签选择等）历史上引用了这两个变量 */
  --bg2: var(--surface-2);  --rule: var(--line);
  /* v1.26.4 首页分区面板：每个板块独立成区（面板底 + 白卡浮起），制造层次 */
  --sec-bg: rgba(255, 255, 255, 0.045);
  --sec-line: rgba(255, 255, 255, 0.085);
  /* 结构色：页面底纹 / 顶栏 / 玻璃面板，浅色主题需整体反转 */
  --page-glow: #33271a;
  --bar-bg: rgba(28, 26, 23, 0.92);
  --bar-bg-2: rgba(28, 26, 23, 0.96);
  --side-bg: rgba(20, 18, 15, 0.85);
  --glass-bg: rgba(28, 26, 23, 0.96);
  --modal-mask: rgba(0, 0, 0, 0.6);
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  /* 固定深色组件（横幅/个人头部/收益卡/创作者页头/音频台）上的文字：
     这些组件底色恒为深色，文字不能跟着主题反转，否则浅色主题会变成「深底深字」 */
  --on-dark: #FDF8EC;
  --on-dark-2: #E8DCCB;
  --on-dark-3: #D9B98A;
  /* 品牌墨绿：仅用于「恒深底」组件（首页会员条），文字统一用 --on-dark* */
  --koi-green: #2E4A3B;
  --koi-green-deep: #22362B;
  /* 结构色：浅色主题必须单独覆盖，否则页面下半段会渐变到深色 */
  --shell-end: #201B15;
  --hero-start: #2A1F14;
  --star-track: #928878;
  --accent-ink: #D9B98A;
  /* 「金色文字压在浅底上」专用：浅色主题需加深到 ≥4.5:1，深色主题沿用浅金 */
  --gold-ink: #D9B98A;
  /* 「加载中/空状态」提示文字：--muted 偏灰在深底看不清（用户反馈），提亮到米白 */
  --empty-ink: #E8DCCB;
  /* 「危险色当文字用」专用：深色主题下 --danger 作文字只有 3.9:1，需提亮 */
  --danger-ink: #DB7660;
  /* 课程专区徽标文字色（免费/青铜/白银/黄金），浅色主题需加深以满足对比度 */
  --zone-free: #7FB069;
  --zone-bronze: #C79A5B;
  --zone-silver: #B9C2CC;
  --zone-gold: #D9B98A;
}

/* ================= 浅色「常规」主题：data-theme="light" ================= */
:root[data-theme="light"] {
  /* v1.26 关键：`only light`（而非 `light`）才是安卓 Chrome「强制暗化 Darken web contents」
     的硬豁免——手动选亮色后必须真实渲染亮色，不受系统深色模式影响（用户硬要求） */
  color-scheme: only light;
  /* 前台改版（2026-10）：主流中性色打底——暖纸白底 + 墨黑正文；品牌金仅作强调色（按钮/徽章/当前态），
     不再大面积铺开。纸感来自极轻的暖底（不发黄），正文压到近墨色保证 ≥4.5:1 */
  --ink: #FAFAF8;        --ink-2: #FFFFFF;
  /* 亮色主题金阶整体加深：#9A7B4F 在白底仅 3.81:1（低于 AA 4.5），用户反馈「金色字看不清」；
     #806030=5.54:1、#74572E=6.40:1，仍保持品牌古铜金不偏色 */
  --gold: #806030;       --gold-deep: #7A5C33;   --gold-light: #74572E;
  --wine: #8E3A48;       --wine-deep: #6E2634;
  --cream: #211D17;      --beige: #4A423A;       --muted: #5E5546;
  --line: #E5E3DC;       --surface: #FFFFFF;     --surface-2: #F7F7F4;
  /* 首页分区面板（亮色）：中性浅灰面板底，比页面底深半档、比白卡浅一档，形成三层 */
  --sec-bg: #F6F6F3;
  --sec-line: #E5E3DC;
  --ok: #3F7230;         --danger: #B4432F;
  --bg2: var(--surface-2);  --rule: var(--line);
  --page-glow: #F7F7F4;
  --bar-bg: rgba(255, 255, 253, 0.92);
  --bar-bg-2: rgba(255, 255, 253, 0.96);
  --side-bg: rgba(255, 255, 253, 0.9);
  --glass-bg: rgba(255, 255, 253, 0.96);
  --modal-mask: rgba(30, 28, 24, 0.42);
  --shadow: 0 10px 30px rgba(60, 55, 45, 0.12);
  /* 结构色反转：外框收尾 / 英雄区起点必须改成浅色，
     否则 linear-gradient(180deg, --ink, #201B15) 会让整页下半段渐变为深色，深字压深底 */
  --shell-end: #F8F8F5;
  --hero-start: #F6F6F3;
  --star-track: #7E7462;
  --accent-ink: #6B4E29;
  /* 浅色主题下金色文字要压到 4.5:1 以上：#7A5A30 在米色卡底只有 4.3~4.5，改用更深的 #6B4E29 */
  --gold-ink: #6B4E29;
  /* 浅色主题的加载/空状态提示文字：比 --muted 加深两档，米底上 ≥4.5:1 */
  --empty-ink: #4A4033;
  --danger-ink: #B4432F;
  /* 浅色主题下四档专区文字色加深，保证米色/白底上 ≥4.5:1 */
  --zone-free: #356B28;
  --zone-bronze: #8A6224;
  --zone-silver: #566170;
  --zone-gold: #6B4E29;
}
/* 浅色主题下，深色文字压在金色徽标上需保持深色，避免「金底浅字」失去对比 */
:root[data-theme="light"] .badge-wine { background: rgba(142, 58, 72, 0.14); color: var(--wine-deep); }
:root[data-theme="light"] .badge-gold { background: rgba(154, 123, 79, 0.16); color: var(--gold-deep); }
/* 徽标若压在恒为深色的封面（.v-cover）上，浅色主题也要保持「深金底 + 浅字」，否则深字压深底看不清 */
:root[data-theme="light"] .v-cover .badge-gold { background: var(--gold-deep); color: var(--on-dark); }
/* 浅底绿字需压深，原 --ok #3F7230 在浅绿底上只有 4.4:1 */
:root[data-theme="light"] .badge-ok { color: #3C6C2D; }
:root[data-theme="light"] .nav a:hover,
:root[data-theme="light"] .nav a.active { background: rgba(154, 123, 79, 0.14); color: var(--gold-deep); }
:root[data-theme="light"] .btn-ghost { color: var(--beige); }
:root[data-theme="light"] .btn-ghost:hover { color: var(--gold-deep); }
:root[data-theme="light"] .tb-btn:hover { background: rgba(154, 123, 79, 0.12); color: var(--gold-deep); }
:root[data-theme="light"] .cert,
:root[data-theme="light"] .gift-card,
:root[data-theme="light"] .certificate-card { background: linear-gradient(150deg, #FFFDF7 0%, #F3EBDA 100%); }
:root[data-theme="light"] .certificate-card { box-shadow: 0 10px 34px rgba(120, 95, 55, 0.16); }

/* 品牌标：浅色主题改浅金底 + 深字（原来 #fff 压在深金上只有 4.4:1）
   v1.19：:not(.has-logo) —— 上传的透明 LOGO 不再被此高特异性规则套上浅金底框 */
:root[data-theme="light"] .side-logo:not(.has-logo),
:root[data-theme="light"] .tb-logo:not(.has-logo) { background: linear-gradient(135deg, #E8CFA6, #C9A86E); color: #2A1F14; }
/* 侧边导航：浅底上把强调色压深，并降低激活态底纹浓度，保证图标/文字对比度 */
:root[data-theme="light"] .side-nav a:hover,
:root[data-theme="light"] .side-ext a:hover { background: rgba(154, 123, 79, 0.10); color: var(--gold-deep); }
:root[data-theme="light"] .side-nav a.active {
  background: rgba(154, 123, 79, 0.12);
  border-color: rgba(154, 123, 79, 0.28);
  color: var(--gold-deep);
}
:root[data-theme="light"] .q-item:active { background: rgba(154, 123, 79, 0.10); }
/* v1.19 快捷宫格调盘 · 亮色主题：浅色釉面 + 同色柔描边/投影，深色高光改白色薄雾 */
:root[data-theme="light"] .q-ic::after { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 55%); }
:root[data-theme="light"] .q-ic.t-gold   { background: linear-gradient(150deg, #FCF4E3, #F3E2BE); border-color: rgba(154,123,79,.38);  box-shadow: 0 5px 14px rgba(150,115,60,.14), inset 0 1px 0 rgba(255,255,255,.6); }
:root[data-theme="light"] .q-ic.t-wine   { background: linear-gradient(150deg, #FCEDEF, #F4D4DB); border-color: rgba(142,58,72,.30);   box-shadow: 0 5px 14px rgba(150,60,80,.12), inset 0 1px 0 rgba(255,255,255,.6); }
:root[data-theme="light"] .q-ic.t-jade   { background: linear-gradient(150deg, #EAF5F1, #CDE7DE); border-color: rgba(46,118,102,.30);  box-shadow: 0 5px 14px rgba(50,120,105,.12), inset 0 1px 0 rgba(255,255,255,.6); }
:root[data-theme="light"] .q-ic.t-indigo { background: linear-gradient(150deg, #ECF1FA, #D3E1F4); border-color: rgba(52,88,146,.30);  box-shadow: 0 5px 14px rgba(60,95,150,.12), inset 0 1px 0 rgba(255,255,255,.6); }
:root[data-theme="light"] .q-ic.t-clay   { background: linear-gradient(150deg, #FCF0E6, #F5D9C3); border-color: rgba(176,106,59,.32);  box-shadow: 0 5px 14px rgba(165,100,55,.12), inset 0 1px 0 rgba(255,255,255,.6); }
:root[data-theme="light"] .q-ic.t-ebony  { background: linear-gradient(150deg, #F3EEE7, #E1D5C5); border-color: rgba(92,74,58,.30);   box-shadow: 0 5px 14px rgba(110,90,65,.12), inset 0 1px 0 rgba(255,255,255,.6); }
/* 浅底上偏亮的强调色需加深，保证可读性 */
:root[data-theme="light"] .notice.error { color: var(--danger); }
:root[data-theme="light"] .msg-item .msg-ic.marketing,
:root[data-theme="light"] .empty-state .es-icon.marketing { color: var(--wine-deep); }
:root[data-theme="light"] .app-shell { box-shadow: 0 0 60px rgba(120, 95, 55, 0.12); }
/* 主题切换按钮：深色显示「太阳」（切到浅色），浅色显示「月亮」（切到深色） */
.theme-ic-moon { display: none; }
:root[data-theme="light"] .theme-ic-sun { display: none; }
:root[data-theme="light"] .theme-ic-moon { display: block; }

/* ================= v1.18 亮色为默认：原恒深色组件转亮（会员卡/封面/播放器/海报除外） ================= */
/* 「我的」资料头：白→浅香槟渐变 + 墨褐文字 + 暖阴影（会员卡 .vip-card 仍保留深色身份卡） */
:root[data-theme="light"] .profile-head {
  background: linear-gradient(140deg, #FFFFFF 0%, #F4ECDD 100%);
  border-color: rgba(154, 123, 79, .35);
  box-shadow: 0 8px 24px rgba(120, 95, 55, .10);
}
:root[data-theme="light"] .profile-head .accent { background: radial-gradient(240px 120px at 85% 0%, rgba(154, 123, 79, .14), transparent 70%); }
:root[data-theme="light"] .p-info b { color: var(--cream); }
:root[data-theme="light"] .p-info small { color: var(--beige); opacity: 1; }
:root[data-theme="light"] .m-stat { background: rgba(255, 255, 255, .72); border-color: rgba(154, 123, 79, .25); }
:root[data-theme="light"] .m-stat b { color: var(--gold-ink); }
:root[data-theme="light"] .m-stat span { color: var(--beige); opacity: 1; }
/* 收益总览卡：亮色下白→浅香槟，金额用深金→酒红渐变文字（浅金在白底对比度不足） */
:root[data-theme="light"] .earnings-summary-card {
  background: linear-gradient(140deg, #FFFFFF 0%, #F6EEE0 100%);
  border-color: rgba(154, 123, 79, .35);
}
:root[data-theme="light"] .earnings-summary-card::before { background: radial-gradient(300px 120px at 90% 0%, rgba(154, 123, 79, .14), transparent 60%); }
:root[data-theme="light"] .earnings-summary-card .esc-title,
:root[data-theme="light"] .earnings-summary-card .esc-sub { color: var(--beige); opacity: 1; }
:root[data-theme="light"] .earnings-summary-card .esc-amount {
  background: linear-gradient(90deg, var(--gold-deep), var(--wine-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* 加到主屏提示小图标：浅金底 + 深金字 */
:root[data-theme="light"] .a2hs-ic {
  background: linear-gradient(135deg, #F0E6D2, #E2D2B2);
  color: var(--gold-deep); border-color: rgba(154, 123, 79, .5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(1200px 600px at 85% -10%, var(--page-glow) 0%, var(--ink) 55%);
  color: var(--cream);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
  min-height: var(--app-vh);
  line-height: 1.6;
}
h1, h2, h3, .serif { font-family: "SimSun", "Songti SC", "Noto Serif SC", serif; letter-spacing: 0.02em; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bar-bg); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { font-family: "SimSun", serif; font-size: 20px; font-weight: 700; letter-spacing: 0.1em; }
.brand em { color: var(--gold-light); font-style: normal; }
.brand small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 0.3em; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav a {
  padding: 8px 14px; border-radius: 8px; color: var(--beige); font-size: 14px; white-space: nowrap;
}
.nav a:hover, .nav a.active { background: rgba(154, 123, 79, 0.16); color: var(--gold-light); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.lang { background: var(--surface); border: 1px solid var(--line); color: var(--beige); border-radius: 8px; padding: 6px 10px; font-size: 13px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.18s; white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, #8E7048, var(--gold-deep)); color: #fff; }
.btn-gold:hover { filter: brightness(1.08); }
.btn-wine { background: linear-gradient(135deg, var(--wine), var(--wine-deep)); color: #fff; }
.btn-wine:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--beige); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  padding: 70px 0 54px; text-align: center;
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(123, 45, 59, 0.25), transparent 60%),
    radial-gradient(700px 320px at 80% 10%, rgba(154, 123, 79, 0.2), transparent 60%);
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.25; }
.hero h1 .hl { background: linear-gradient(90deg, var(--gold-light), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--beige); max-width: 640px; margin: 16px auto 26px; font-size: 16px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 区块 ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { font-size: 24px; border-left: 4px solid var(--gold); padding-left: 12px; }
.section-head a { font-size: 13px; color: var(--muted); }

/* ---------- 卡片 ---------- */
.card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: transform 0.2s, border-color 0.2s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold); }
.card .accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--wine)); }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* ---------- 课程卡片 ---------- */
.course-card h3 { font-size: 17px; margin: 10px 0 6px; }
.course-card .meta { color: var(--muted); font-size: 12px; }
.course-card .price { color: var(--gold-light); font-weight: 700; font-size: 18px; margin-top: 10px; }
.course-card .price small { color: var(--muted); font-weight: 400; font-size: 12px; }
.cover {
  height: 120px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: "SimSun", serif; font-size: 22px; letter-spacing: 0.2em; color: #fff;
}

/* ---------- 会员阶梯 ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tier-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--surface); position: relative; }
.tier-card.current { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.tier-card h3 { font-size: 18px; }
.tier-card .t-price { font-size: 26px; color: var(--gold-light); font-weight: 700; margin: 8px 0; }
.tier-card ul { list-style: none; font-size: 13px; color: var(--beige); }
.tier-card ul li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.tier-card .t-rate { position: absolute; top: 14px; right: 14px; font-size: 11px; color: var(--gold); background: rgba(154,123,79,.15); padding: 4px 8px; border-radius: 20px; }

/* ---------- 进度条 ---------- */
.bar { height: 8px; background: var(--ink-2); border-radius: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--wine)); border-radius: 10px; transition: width .4s; }

/* ---------- 学习页 ---------- */
.lesson-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lesson-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.lesson-list li:hover { border-color: var(--gold); }
.lesson-list li.locked { opacity: 0.55; cursor: not-allowed; }
.lesson-list .idx { width: 30px; height: 30px; border-radius: 50%; background: var(--ink-2); color: var(--gold-light); display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.lesson-list .lock { margin-left: auto; color: var(--gold-light); font-size: 12px; }
/* .player 样式统一定义在「C8 课时播放器」区块（见文件后段）。
   此处曾有一条 aspect-ratio:16/9 + display:grid 的旧占位样式，会与新播放器规则叠加：
   卡片被强制成 16:9（手机 347px 宽 → 仅 195px 高），配合 overflow:hidden 把音频控件、
   字幕、底部按钮整块裁掉，表现为「音频按钮看不见，像被窗口盖住」。已移除。 */

/* ---------- 分享墙 ---------- */
.wall {
  background: linear-gradient(140deg, rgba(123,45,59,.25), rgba(154,123,79,.15));
  border: 1px dashed var(--gold); border-radius: 12px; padding: 20px; text-align: center;
}
.wall h3 { color: var(--gold-light); margin-bottom: 6px; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; white-space: nowrap; }

/* ---------- 提示 / 徽标 ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; }
.badge-gold { background: rgba(154,123,79,.2); color: var(--gold-light); }
.badge-wine { background: rgba(123,45,59,.25); color: #E5A0A8; }
.badge-ok { background: rgba(127,176,105,.18); color: var(--ok); }
.badge-danger { background: rgba(194,94,76,.2); color: var(--danger); }
.badge-muted { background: var(--ink-2); color: var(--muted); }

.notice {
  padding: 12px 16px; border-radius: 10px; font-size: 13px; margin: 10px 0;
  border: 1px solid var(--line); background: var(--surface);
}
.notice.error { border-color: var(--danger); color: #E5A0A8; }
.notice.ok { border-color: var(--ok); color: var(--ok); }

/* ---------- 模态 ---------- */
.modal-bg { position: fixed; inset: 0; background: var(--modal-mask); display: grid; place-items: center; z-index: var(--z-modal); }
.modal { width: min(640px, 92vw); background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.modal h2 { margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; background: var(--ink); border: 1px solid var(--line); color: var(--cream);
  border-radius: 9px; padding: 11px 12px; font-size: 14px; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--gold); }
/* 复选框不受通用输入框样式影响（后台「受邀制」开关） */
.field input[type="checkbox"] {
  width: auto; padding: 0; border: none; background: none;
  accent-color: var(--gold); height: 16px; flex-shrink: 0;
}
/* 复选框行（如商品「单品包邮」开关）：标签与勾选框同行对齐 */
.field label.chk-line {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 0; padding: 11px 12px; font-size: 13px; color: var(--cream);
  border: 1px solid var(--line); border-radius: 9px; background: var(--ink); cursor: pointer;
}
/* 键盘焦点可见性（无障碍） */
.btn:focus-visible, .nav a:focus-visible, a:focus-visible,
.lesson-list li:focus-visible, .field input:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--gold-light); outline-offset: 2px;
}

/* ---------- 后台 ---------- */
.admin-layout { display: flex; min-height: var(--app-vh); }
.admin-side {
  width: 210px; background: var(--ink-2); border-right: 1px solid var(--line);
  padding: 18px 12px; position: sticky; top: 0; height: var(--app-vh); overflow-y: auto;
}
.admin-side .brand { font-size: 16px; margin-bottom: 18px; display: block; }
.admin-side a {
  display: block; padding: 10px 12px; border-radius: 9px; color: var(--beige); font-size: 14px; margin-bottom: 4px;
}
.admin-side a:hover, .admin-side a.active { background: rgba(154,123,79,.16); color: var(--gold-light); }
/* 后台菜单待办角标（新询盘 / 待处理订单），运营不进页面也能看到待办 */
.admin-side a .nav-badge {
  float: right; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--wine); color: #fff; font-size: 11px; line-height: 18px;
  text-align: center; font-weight: 600; font-style: normal;
}
.admin-main { flex: 1; padding: 26px; min-width: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-size: 22px; color: var(--gold-light); }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------- 响应式（手机版优先） ---------- */
@media (max-width: 720px) {
  .topbar .container { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .nav { order: 3; width: 100%; }
  .hero { padding: 44px 0 30px; }
  .section-head h2 { font-size: 20px; }
  .admin-layout { flex-direction: column; }
  .admin-side { width: 100%; height: auto; position: static; display: flex; gap: 4px; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .admin-side .brand { margin: 0 8px 0 0; white-space: nowrap; }
  .admin-side a { white-space: nowrap; margin-bottom: 0; }
  .admin-main { padding: 16px; }
  table { font-size: 12px; }
  th, td { padding: 8px; }
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ---------- 页面入场动画（尊享感 · 尊重系统减弱动画偏好） ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
#view > * { animation: riseIn 0.45s ease both; }
#view > *:nth-child(2) { animation-delay: 0.06s; }
#view > *:nth-child(3) { animation-delay: 0.12s; }
#view > *:nth-child(4) { animation-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ================================================================
   APP 版式（移动端优先 · 尊享暗金 × 酒红）
   底部 5 Tab + 卡片信息流 + 沉浸播放器，桌面端居中 APP 框
   ================================================================ */
.app-shell {
  max-width: 640px; margin: 0 auto; min-height: var(--app-vh);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--ink) 0%, var(--shell-end) 100%);
}
@media (min-width: 672px) {
  .app-shell {
    border-left: 1px solid var(--line); border-right: 1px solid var(--line);
    box-shadow: 0 0 70px rgba(0,0,0,.55);
  }
  body { background: radial-gradient(900px 500px at 12% -8%, var(--page-glow) 0%, var(--ink) 60%); }
}

/* ---------- 顶部栏 ---------- */
/* 品牌块在顶栏隐藏：移动端与居中标题重叠，桌面端已有左侧竖导航品牌，品牌展示由首页/底部导航承担 */
.tb-brand { display: none; }
.app-topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 4px;
  /* iOS PWA(standalone + black-translucent) 状态栏悬浮在页面上：
   * 顶栏自身垫高安全区，内容不再被刘海/状态栏遮挡；浏览器内该值恒为 0 不受影响 */
  height: calc(52px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 10px 0;
  box-sizing: border-box;
  background: var(--bar-bg); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

/* 微信内置浏览器自带标题栏（品牌名+域名），隐藏页面顶栏的品牌/标题/返回按钮避免双导航栏重复；
   但保留右侧 .tb-actions（语言切换 + 主题切换 + 通知），这是全局功能入口，不能因微信环境丢失 */
html.in-wechat .app-topbar .tb-brand,
html.in-wechat .app-topbar .tb-title,
html.in-wechat .app-topbar #backBtn { display: none !important; }
/* 微信下顶栏压缩为单行操作栏 */
html.in-wechat .app-topbar {
  height: 48px !important;
  padding: 0 8px !important;
  display: flex;
  justify-content: flex-end;
}
html.in-wechat .app-topbar .tb-actions { margin-left: 0; }
/* 微信下语言下拉菜单位置修正（顶栏高度从 52px 变为 48px） */
html.in-wechat .lang-menu { top: 48px; right: 8px; }
html.in-wechat .lang-hint { top: 42px; }

.tb-btn {
  width: 40px; height: 40px; border: none; background: transparent; color: var(--beige);
  font-size: 24px; line-height: 1; border-radius: 10px; cursor: pointer; position: relative;
  display: grid; place-items: center;
}
/* 关键修复：安卓部分 WebView 中 SVGElement.prototype 没有 closest() 方法，
   点击事件委托 e.target.closest('#themeBtn') 会静默失败。
   给按钮内 SVG 加 pointer-events:none，让 e.target 始终是 button 本身，
   避免依赖 SVG 元素的 closest()。同时也防止 SVG 子元素的 hover/focus 干扰按钮状态。 */
.tb-btn svg { pointer-events: none; }
.tb-btn:hover { background: rgba(154,123,79,.14); color: var(--gold-light); }
.tb-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  max-width: min(60%, 340px);
  text-align: center; font-size: 17px; font-family: "SimSun", serif;
  letter-spacing: .12em; color: var(--cream); overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis;
}
.tb-actions { display: flex; gap: 2px; margin-left: auto; }
/* 语言切换下拉（挂在 .tb-actions 内，绝对定位到按钮下方） */
.lang-menu {
  position: fixed; top: 52px; right: 8px; z-index: 200;
  min-width: 148px; padding: 6px;
  background: var(--glass-bg); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.38);
  backdrop-filter: blur(14px);
}
.lang-menu[hidden] { display: none; }
.lang-item {
  display: block; width: 100%; padding: 9px 12px; border: none; border-radius: 8px;
  background: transparent; color: var(--beige); font-size: 14px; text-align: left;
  font-family: inherit; cursor: pointer;
}
.lang-item:hover { background: rgba(154,123,79,.16); color: var(--gold-ink); }
.lang-item.active { color: var(--gold-ink, var(--gold-deep)); font-weight: 600; }
.lang-item.active::after { content: "✓"; float: right; }
/* 跟隨系統选项：用分隔线 + 略大字号让它成为推荐入口 */
.lang-item.lang-auto {
  font-size: 13px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  color: var(--gold-light, var(--gold));
  font-weight: 500;
}
.lang-item.lang-auto:hover { color: var(--gold-ink, var(--gold-deep)); }
.lang-item.lang-auto.active { color: var(--gold-ink, var(--gold-deep)); font-weight: 700; }
/* 语言切换按钮：直接显示当前语言短标签（中/繁/EN/ES），避免用户看不懂地球图标 */
#langBtn {
  width: auto; min-width: 40px; padding: 0 8px; display: inline-flex;
  align-items: center; justify-content: center; gap: 4px;
}
#langBtn .lang-cur { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--gold-ink); }
/* 首次访问的显性提示气泡：金底浅字（#FDF8EC 压 #7A5C33 ≈ 7:1） */
.lang-hint {
  position: absolute; top: 46px; right: 0; white-space: nowrap; z-index: 210;
  padding: 6px 10px; border-radius: 9px; font-size: 12px; font-weight: 600;
  background: var(--gold-deep); color: #FDF8EC;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  animation: langHintPulse 1.6s ease-in-out infinite;
}
.lang-hint::before {
  content: ""; position: absolute; top: -5px; right: 14px; width: 10px; height: 10px;
  background: var(--gold-deep); transform: rotate(45deg);
}
@keyframes langHintPulse { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .lang-hint { animation: none; } }
.notif-dot {
  position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 0 2px var(--ink);
}

/* ---------- 主区 ---------- */
.app-main { flex: 1; padding: 0 14px 110px; min-height: calc(var(--app-vh) - 52px); }
.loading { padding: 64px 0; text-align: center; color: var(--empty-ink); font-size: 15px; }
.empty { padding: 64px 0 44px; text-align: center; color: var(--empty-ink); font-size: 15px; }
.empty .e-ic { font-size: 40px; opacity: .6; display: block; margin-bottom: 10px; }
.empty .btn { margin-top: 18px; }

/* ---------- 底部 5 Tab ---------- */
.app-tabs {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, 640px); z-index: 70;
  display: flex; background: var(--bar-bg-2); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 8px; color: var(--muted); font-size: 11px; text-decoration: none;
  transition: .18s; -webkit-tap-highlight-color: transparent;
}
.tab-item .tab-ic { width: 24px; height: 24px; }
/* v1.86 Tab 文字单行保护：任何语言下标签超宽时省略号截断，绝不换行挤压布局 */
.tab-item span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-item { position: relative; }
.tab-item .tab-ic, .tab-item span { position: relative; z-index: 1; }
.tab-item.active { color: var(--gold-light); font-weight: 700; }
.tab-item.active .tab-ic { transform: translateY(-2px) scale(1.12); filter: drop-shadow(0 2px 8px rgba(217,185,138,.6)); }
/* 当前页高亮：顶部金色指示条 + 图标背后柔光圆底，强化辨识 */
.tab-item.active::before {
  content: ""; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(217,185,138,.22), rgba(217,185,138,0) 70%);
}
.tab-item.active::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 2px; background: var(--gold-light);
}

/* ---------- 横幅轮播 ---------- */
.banner-box { position: relative; margin: 14px 0 4px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.banner-track { display: flex; transition: transform .5s ease; }
.banner-slide {
  min-width: 100%; padding: 26px 22px 32px; aspect-ratio: 16/7;
  background: linear-gradient(135deg, var(--wine-deep), #3A2A18 70%);
  display: flex; flex-direction: column; justify-content: flex-end; position: relative;
}
.banner-slide h2 { font-size: 20px; color: var(--on-dark); text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.banner-slide p { font-size: 12px; color: var(--on-dark-3); margin-top: 4px; }
.banner-slide .b-go {
  position: absolute; right: 18px; bottom: 30px; font-size: 12px; padding: 7px 14px;
  background: rgba(217,185,138,.16); border: 1px solid rgba(217,185,138,.55); border-radius: 20px; color: var(--on-dark-3);
}
.banner-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.banner-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(253,248,236,.3); cursor: pointer; transition: .25s; }
.banner-dots .dot.on { background: var(--gold-light); width: 18px; border-radius: 4px; }
/* v1.27.4 图片轮播：后台传图的横幅渲染为纯图片（不叠标题文字），可选「图上文字」居中一行 */
.banner-slide.has-img { padding: 0; }
.banner-slide.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-slide .b-cap {
  position: absolute; left: 20px; right: 20px; bottom: 26px; z-index: 1; text-align: center;
  font-size: 15px; font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.65);
}
@media (min-width: 861px) { .banner-slide .b-cap { font-size: 20px; bottom: 34px; } }

/* ---------- 快捷入口（v1.19 重设计：品牌色调盘 · 大图标 · 支持后台上传自定义图标） ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; margin: 16px 0 6px; }
.q-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 2px 8px; text-decoration: none; border-radius: 16px;
  transition: transform .12s ease, background .12s ease;
}
.q-item:active { transform: scale(.94); background: rgba(154,123,79,.10); }
/* v1.26.4：用户反馈图标仍偏小，托 56→58、字 32→38 让 emoji 更满格 */
.q-ic {
  /* v1.27 基线再放大 58/38 → 64/42（后台「图标大小」可按区块在 40–88px 覆盖，见 60-pageblocks.js） */
  width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center;
  font-size: 42px; line-height: 1; position: relative; overflow: hidden;
  border: 1px solid transparent;
}
/* 图标底托顶部柔高光，增加瓷性质感（暗色版） */
.q-ic::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 48%);
}
/* 六合色调盘 · 暗色主题：深釉底 + 同色微光描边/投影 */
.q-ic.t-gold   { background: linear-gradient(150deg, #43331B, #2A2010); border-color: rgba(201,168,106,.42); box-shadow: 0 5px 14px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.07); }
.q-ic.t-wine   { background: linear-gradient(150deg, #3A1B22, #261116); border-color: rgba(190,92,110,.42); box-shadow: 0 5px 14px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.07); }
.q-ic.t-jade   { background: linear-gradient(150deg, #15302A, #0E201C); border-color: rgba(88,172,154,.40);  box-shadow: 0 5px 14px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.07); }
.q-ic.t-indigo { background: linear-gradient(150deg, #1B2740, #111A2B); border-color: rgba(106,146,202,.42); box-shadow: 0 5px 14px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.07); }
.q-ic.t-clay   { background: linear-gradient(150deg, #3A241A, #271710); border-color: rgba(216,142,88,.42);  box-shadow: 0 5px 14px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.07); }
.q-ic.t-ebony  { background: linear-gradient(150deg, #2B241D, #1C1612); border-color: rgba(172,144,112,.40); box-shadow: 0 5px 14px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.07); }
/* 后台上传自定义图标时：底托完全消失，图片等比铺满（透明 PNG 直接呈现） */
.q-ic.has-img { background: none; border-color: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.q-ic.has-img::after { display: none; }
.q-ic.has-img img { width: 100%; height: 100%; object-fit: contain; }
.q-item span { font-size: 12px; color: var(--beige); }

/* ---------- 区块标题 ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 12px; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.sec-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(var(--gold-light), var(--gold)); }
.sec-more { font-size: 12px; color: var(--muted); }

/* v1.26.4 首页分区面板：板块各自包进独立圆角容器（面板底 + 内部白卡浮起），
   解决「不同区域全连在一起没有层次」——页面底 < 分区面板 < 卡片，三层递进 */
.home-sec {
  background: var(--sec-bg);
  border: 1px solid var(--sec-line);
  border-radius: 20px;
  padding: 12px 12px 6px;
  margin: 14px 0 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.home-sec .sec-head { margin: 2px 0 10px; }
.home-sec .h-scroll, .home-sec .campaign-scroll { padding: 2px 2px 8px; }
.home-sec .chips { padding: 2px 2px 6px; }
/* v1.27.1 九宫格包进分区面板：收敛原生外边距，面板内贴合适配 */
.home-sec-quick { margin-top: 16px; }
.home-sec-quick .quick-grid { margin: 2px 0 4px; }
:root[data-theme="dark"] .home-sec { box-shadow: none; }

/* ---------- 横向滚动卡片 ---------- */
.h-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; }
.h-scroll::-webkit-scrollbar { display: none; }
.v-card {
  width: 158px; flex-shrink: 0; scroll-snap-align: start; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.v-card:active { transform: scale(.98); }
.v-cover { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 15px; letter-spacing: .14em; color: #fff; font-family: "SimSun", serif; }
.v-info { padding: 10px 12px 12px; }
.v-title { font-size: 14.5px; line-height: 1.45; height: 42px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.v-meta { font-size: 12.5px; color: var(--muted); margin: 5px 0 7px; display: flex; align-items: center; gap: 6px; }
.v-price { font-size: 16px; font-weight: 700; color: var(--gold-light); }
.v-price small { color: var(--muted); font-weight: 400; font-size: 12px; }

/* ---------- 列表卡片行 ---------- */
.flex-col { display: flex; flex-direction: column; }
.l-card {
  display: flex; gap: 12px; padding: 12px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none;
}
.l-card:active { transform: scale(.985); }
.l-cover { width: 68px; height: 68px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-size: 12px; letter-spacing: .1em; font-family: "SimSun", serif; }
.l-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.l-info h3 { font-size: 15.5px; line-height: 1.42; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.l-meta { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 5px; }
.l-end { align-self: center; text-align: right; flex-shrink: 0; font-size: 15px; }

/* ---------- 筛选 chips / 分段 ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 7px 15px; border-radius: 20px; font-size: 13px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--beige); text-decoration: none;
}
.chip.on { background: linear-gradient(135deg, #8E7048, var(--gold-deep)); border-color: transparent; color: #fff; }
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.seg a { flex: 1; text-align: center; padding: 8px 0; font-size: 13px; color: var(--beige); border-radius: 9px; text-decoration: none; }
.seg a.on { background: linear-gradient(135deg, #8E7048, var(--gold-deep)); color: #fff; }

/* ---------- 搜索框 ---------- */
.searchbar { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; margin: 12px 0 4px; }
.searchbar input { flex: 1; background: none; border: none; outline: none; color: var(--cream); font-size: 14px; }
.searchbar .s-ic { color: var(--muted); }

/* ---------- 星级 ---------- */
.stars { position: relative; display: inline-block; color: var(--star-track); font-size: 12px; letter-spacing: 1px; line-height: 1; }
.stars i { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; font-style: normal; color: var(--gold-light); }

/* ---------- 我的：菜单单元 ---------- */
.cell-group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 18px; overflow: hidden; }
.group-title { padding: 14px 14px 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.cell { display: flex; align-items: center; gap: 12px; padding: 13px 14px; text-decoration: none; border-top: 1px solid var(--line); color: var(--cream); }
.cell:first-child { border-top: none; }
.group-title + .cell { border-top: none; }
.cell:hover, .me-g:hover { color: var(--cream); }
.cell:hover { background: rgba(154,123,79,.06); }
.cell:active { background: rgba(154,123,79,.12); }
.cell-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(154,123,79,.14); color: var(--accent-ink); flex-shrink: 0; }
.cell-main { flex: 1; min-width: 0; }
.cell-main b { display: block; font-size: 16px; font-weight: 600; }
.cell-main small { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 2px; }
.cell-arrow { color: var(--muted); font-size: 18px; }
.cell .c-badge { background: var(--wine); color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 10px; }

/* ---------- 我的：头部 ---------- */
.profile-head {
  margin: 18px 0 0; padding: 20px 18px; border-radius: 18px; position: relative; overflow: hidden;
  background: linear-gradient(140deg, #1F241E 0%, #332A15 70%);
  border: 1px solid rgba(154,123,79,.4);
  box-shadow: inset 0 0 0 1px rgba(217,185,138,.12);
}
.profile-head .accent { position: absolute; inset: 0; background: radial-gradient(240px 120px at 85% 0%, rgba(217,185,138,.18), transparent 70%); }
.p-row { display: flex; align-items: center; gap: 14px; position: relative; }
.p-avatar {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  /* 头像始终压在深色头图/浅色卡片上，底色固定为浅金，不随主题反转，
     否则浅色主题下 --gold-light 变深金，深色首字对比度掉到 3.8:1 */
  background: linear-gradient(135deg, #E8CFA6, #C9A86E);
  color: #241B10; font-size: 24px; font-family: "SimSun", serif; display: grid; place-items: center;
  box-shadow: 0 0 0 2px rgba(217,185,138,.35);
}
/* 资料头右上角设置齿轮：入口收敛（点头像同样进入设置页） */
.p-gear {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--on-dark-2); background: rgba(255,255,255,.09);
  border: 1px solid rgba(217,185,138,.3); text-decoration: none;
  transition: background-color .18s, color .18s;
}
.p-gear:hover { color: var(--on-dark); background: rgba(255,255,255,.18); }
.p-avatar { text-decoration: none; }
.p-avatar:hover { color: #241B10; }
.profile-head .p-info { padding-right: 32px; }
.p-info { flex: 1; min-width: 0; }
/* 个人头部底色恒为深色酒红渐变，文字固定用深底专用色 */
.p-info b { display: block; font-size: 18px; font-family: "SimSun", serif; color: var(--on-dark); }
.p-info small { color: var(--on-dark-2); opacity: .92; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; margin-top: 3px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; position: relative; }
/* m-stat 只出现在 .profile-head（恒为深色头图）内，故底色与文字都固定为深色组件配色 */
.m-stat { text-align: center; background: rgba(28,26,23,.5); border: 1px solid rgba(154,123,79,.25); border-radius: 12px; padding: 9px 4px; text-decoration: none; }
.m-stat b { display: block; font-size: 16px; color: var(--on-dark-3); }
.m-stat span { font-size: 13px; color: var(--on-dark-2); opacity: .92; }

/* ---------- 直播 ---------- */
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; font-size: 11px; }
.live-badge .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #E34D4D; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.room { display: flex; flex-direction: column; height: calc(100dvh - 52px - env(safe-area-inset-top, 0px) - 64px - env(safe-area-inset-bottom, 0px)); margin: 0 -14px; }
.room-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chats { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { max-width: 78%; align-self: flex-start; }
.chat-bubble .c-name { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.chat-bubble .c-body {
  display: inline-block; padding: 9px 13px; border-radius: 14px 14px 14px 4px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; word-break: break-word;
}
.chat-bubble.me { align-self: flex-end; }
.chat-bubble.me .c-name { text-align: right; }
.chat-bubble.me .c-body { border-radius: 14px 14px 4px 14px; background: linear-gradient(135deg, rgba(154,123,79,.3), rgba(123,45,59,.3)); border-color: var(--gold); }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--ink); }
.chat-input input { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px 14px; color: var(--cream); font-size: 14px; outline: none; }
.chat-input input:focus { border-color: var(--gold); }

/* C5 直播互动：点赞 / 问答 / 投票 */
.room-tabs { display: flex; border-top: 1px solid var(--line); background: var(--ink-2); }
.room-tabs .tab {
  flex: 1; background: none; border: none; color: var(--muted);
  padding: 10px 0; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent;
}
.room-tabs .tab.on { color: var(--gold-light); border-bottom-color: var(--gold); font-weight: 600; }
.like-btn {
  display: flex; align-items: center; gap: 4px; background: var(--ink-2);
  border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px;
  color: var(--muted); font-size: 13px; cursor: pointer; flex: 0 0 auto;
}
.like-btn.on { border-color: var(--gold); color: var(--gold-light); background: rgba(154,123,79,.15); }
.like-btn .like-ic { font-size: 15px; }
#interactPanel { max-height: 30vh; overflow-y: auto; background: var(--surface); border-top: 1px solid var(--line); }
.qa-form { display: flex; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.qa-form input { flex: 1; background: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 9px 13px; color: var(--cream); font-size: 13.5px; outline: none; }
.qa-form input:focus { border-color: var(--gold); }
.key-q-card { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.qa-answer { margin-top: 7px; padding: 8px 11px; background: var(--ink); border-left: 3px solid var(--gold); border-radius: 8px; font-size: 13px; color: var(--beige); }
.qa-ans-form { display: flex; gap: 6px; }
.qa-ans-form input { flex: 1; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 7px 11px; color: var(--cream); font-size: 13px; outline: none; }
.poll-opt {
  position: relative; margin-top: 8px; padding: 9px 12px; border-radius: 9px;
  background: var(--ink); border: 1px solid var(--line); overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer;
}
.poll-opt .poll-bar { position: absolute; inset: 0 auto 0 0; background: rgba(154,123,79,.18); transition: width .3s; }
.poll-opt[data-voted="true"] { border-color: var(--gold); }
.poll-opt .poll-text { position: relative; z-index: 1; font-size: 13px; color: var(--cream); }
.poll-opt .poll-pct { position: relative; z-index: 1; font-size: 12px; color: var(--gold-light); flex: 0 0 auto; }

/* ---------- 训练营 ---------- */
.dots { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 8px; }
.day {
  height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 12px;
  background: var(--ink-2); border: 1px solid var(--line); color: var(--muted);
}
.day.done { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; border-color: transparent; }
.day.cur { border-color: var(--gold-light); color: var(--gold-light); box-shadow: 0 0 0 1px var(--gold-light); animation: pulse 1.4s infinite; }

/* ---------- 优惠券 ---------- */
.ticket {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 14px 16px; margin-bottom: 12px; border-radius: 14px;
  background: var(--surface); border: 1px dashed rgba(154,123,79,.55); position: relative;
}
.ticket .t-val { font-size: 20px; font-weight: 800; color: var(--gold-light); flex-shrink: 0; }
.ticket .t-main { flex: 1; min-width: 0; }
.ticket .t-main b { font-size: 14px; display: block; }
.ticket .t-main small { color: var(--muted); font-size: 11px; }
.ticket .used { opacity: .5; }

/* ---------- 通知 ---------- */
.notif { display: flex; gap: 12px; padding: 14px 12px; border-bottom: 1px solid var(--line); text-decoration: none; }
.notif:active { background: rgba(154,123,79,.06); }
.notif-ic { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: rgba(154,123,79,.14); color: var(--gold-light); }
.notif-main { flex: 1; min-width: 0; }
.notif-main b { font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.notif-main .u-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); flex-shrink: 0; }
.notif-main p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.notif-main small { font-size: 10.5px; color: var(--muted); opacity: .8; }

/* ---------- 社区 ---------- */
.feed { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.feed-head { display: flex; align-items: center; gap: 10px; }
.f-a { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--wine), var(--gold-deep)); color: #fff; font-size: 13px; font-family: "SimSun", serif; display: grid; place-items: center; flex-shrink: 0; }
.feed-head b { font-size: 13px; display: block; }
.feed-head small { font-size: 10.5px; color: var(--muted); }
.feed-body { margin-top: 8px; }
.feed-body h3 { font-size: 15px; margin-bottom: 4px; }
.feed-body p { font-size: 13px; color: var(--beige); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.feed-actions { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.feed-actions button { background: none; border: none; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 4px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.feed-actions button:hover { color: var(--gold-light); }
.feed-actions button.liked { color: var(--wine-light, #E5A0A8); }

/* ---------- 悬浮按钮 ---------- */
.fab {
  position: fixed; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 65;
  right: 16px; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #241B10;
  font-size: 26px; border: none; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.45);
  display: grid; place-items: center;
}
@media (min-width: 672px) { .fab { right: calc(50% - 320px + 16px); } }

/* ---------- 底部弹层 ---------- */
.sheet {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, 640px); max-height: 88vh; overflow-y: auto; z-index: 110;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px 20px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  animation: sheetUp .3s ease both;
}
@keyframes sheetUp { from { transform: translate(-50%, 40%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* 弹层关闭按钮（登录/注册等） */
.sheet-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(154, 123, 79, 0.15); border: none;
  color: var(--accent-ink); font-size: 17px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: .2s; z-index: 1;
}
.sheet-close:hover { background: rgba(154, 123, 79, 0.3); }

/* ---------- PWA 安装引导条（安卓安装 / iOS 分享图示，pwa.js 注入） ---------- */
.a2hs-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(78px + env(safe-area-inset-bottom, 0px)); /* 悬在底部 Tab 上方 */
  width: min(92%, 420px); z-index: 90; /* 低于弹层(100+)，弹层打开时被遮罩盖住不冲突 */
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--gold); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  animation: riseIn .3s ease both;
}
.a2hs-ic {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
  background: linear-gradient(135deg, #2E4B3F, #16251E);
  color: var(--gold-light); border: 1px solid var(--gold);
}
.a2hs-txt { flex: 1; min-width: 0; line-height: 1.35; }
.a2hs-txt b { display: block; font-size: 14.5px; color: var(--cream); }
.a2hs-txt small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.a2hs-go {
  flex: none; border: none; cursor: pointer; padding: 8px 16px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #b98a3e); color: #1C1A17;
  font-weight: 700; font-size: 13.5px;
}
.a2hs-no {
  flex: none; width: 28px; height: 28px; border: none; background: transparent;
  color: var(--muted); font-size: 16px; cursor: pointer; border-radius: 50%;
}
.a2hs-no:hover { background: rgba(154, 123, 79, .18); color: var(--cream); }
.a2hs-steps { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.a2hs-step { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.a2hs-step svg { flex: none; color: var(--gold-light); }
.a2hs-sep { font-size: 12px; color: var(--gold-light); }

/* ---------- 头像裁剪（用户端「编辑资料」） ---------- */
/* 头像一律按正方形裁切后再落库，任何展示位都 cover 填充，杜绝非等比拉伸变形 */
.p-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.crop-overlay { position: fixed; inset: 0; z-index: 130; background: rgba(10, 8, 6, .74); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px; }
.crop-panel { width: min(360px, 94vw); max-height: 92vh; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); animation: riseIn .28s ease both; }
.crop-panel h3 { text-align: center; margin-bottom: 14px; }
.crop-stage { position: relative; width: 260px; height: 260px; margin: 0 auto; overflow: hidden; border-radius: 14px; background: #000; touch-action: none; cursor: grab; }
.crop-stage.dragging { cursor: grabbing; }
.crop-stage img { position: absolute; left: 50%; top: 50%; will-change: transform; user-select: none; -webkit-user-drag: none; }
.crop-ring { position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: 50%; box-shadow: 0 0 0 260px rgba(0, 0, 0, .5); border: 2px solid rgba(217, 185, 138, .9); }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 14px auto 0; max-width: 260px; }
.crop-zoom input[type="range"] { flex: 1; accent-color: var(--gold); }
.crop-zoom .cz-ic { color: var(--muted); font-size: 14px; line-height: 1; }
.crop-preview { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.crop-preview .cp-box { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 2px rgba(217, 185, 138, .35); flex-shrink: 0; }
.crop-preview canvas { width: 100%; height: 100%; display: block; }
.crop-preview .cp-tip { font-size: 12px; color: var(--muted); }
.crop-actions { display: flex; gap: 10px; margin-top: 16px; }
.crop-actions .btn { flex: 1; }
@media (max-width: 380px) {
  .crop-stage { width: 220px; height: 220px; }
  .crop-ring { box-shadow: 0 0 0 220px rgba(0, 0, 0, .5); }
}

/* ---------- 支付渠道 ---------- */
.pay-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; background: var(--surface); }
.pay-opt.on { border-color: var(--gold); background: rgba(154,123,79,.12); }
.pay-opt .p-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: grid; place-items: center; }
.pay-opt.on .p-radio { border-color: var(--gold); }
.pay-opt.on .p-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); }
.pay-opt b { font-size: 14px; display: block; }
.pay-opt small { font-size: 11px; color: var(--muted); }

/* ---------- 证书 ---------- */
.cert {
  margin: 16px 0; padding: 26px 20px; text-align: center; border-radius: 18px; position: relative;
  background: linear-gradient(140deg, #2E281F, #1F1B14);
  border: 1px solid var(--gold);
}
.cert::before { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(154,123,79,.5); border-radius: 12px; pointer-events: none; }
.cert .c-t { font-size: 26px; color: var(--gold-light); font-family: "SimSun", serif; position: relative; }
.cert p { font-size: 12px; color: var(--muted); position: relative; margin-top: 6px; }

/* ---------- 课程封面渐变 ---------- */
.cover-g { background: linear-gradient(135deg, var(--wine), #3A2A18 75%); }
.cover-g.gold { background: linear-gradient(135deg, var(--gold-deep), var(--wine-deep)); }
.cover-g.bronze { background: linear-gradient(135deg, #6B4A2B, #3A2A18); }
.cover-g.silver { background: linear-gradient(135deg, #5A5E66, #2B2F36); }
.cover-g.goldt { background: linear-gradient(135deg, #8A6A35, #6B4A2B); }

/* ---------- 详情页 Hero ---------- */
.detail-hero { margin: 0 -14px; padding: 30px 18px 22px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
/* 课程详情头：底色恒为 cover-g 深色渐变，文字固定用深底专用色 */
.detail-hero h1 { font-size: 22px; line-height: 1.4; color: var(--on-dark); }
.detail-hero .dh-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--on-dark-2); opacity: .9; }
.detail-hero a { color: var(--on-dark-3); }
/* v1.31 课程详情 hero 操作区：2 列网格——主按钮通栏，次级按钮两两排布，窄屏不裁切 */
.dh-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.dh-actions .btn-gold { grid-column: 1 / -1; }
/* 课程详情头图恒为深色渐变：内部一切文字必须用深底专用色。
   加 :root[data-theme] 前缀提升优先级，压过 :root[data-theme="light"] 的全局规则 */
:root[data-theme] .detail-hero .btn-ghost { color: var(--on-dark); border-color: rgba(253,248,236,.38); }
:root[data-theme] .detail-hero .btn-ghost:hover { color: #fff; border-color: var(--gold-light); background: rgba(253,248,236,.1); }
:root[data-theme] .detail-hero .zone-badge { background: rgba(253,248,236,.14); border-color: rgba(253,248,236,.42); color: #F2E6CE; }
:root[data-theme] .detail-hero a { color: var(--on-dark-2); }
:root[data-theme] .detail-hero .dh-meta { color: var(--on-dark-2); }
:root[data-theme] .detail-hero .stars { color: rgba(253,248,236,.72); }
:root[data-theme] .detail-hero .stars i { color: var(--on-dark); }

/* ---------- 通用小工具 ---------- */
.txt-gold { color: var(--gold-light); }
.txt-danger { color: var(--danger-ink); }
.w100 { width: 100%; }
.nowrap { white-space: nowrap; }
.clamp2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb12 { margin-bottom: 12px; }

/* ---------- 后台：分组导航（可折叠手风琴） ---------- */
.admin-nav-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.admin-nav-tools .ant-label { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.admin-nav-tools .ant-toggle { background: none; border: none; color: var(--gold); font-size: 11.5px; cursor: pointer; padding: 3px 6px; border-radius: 6px; }
.admin-nav-tools .ant-toggle:hover { background: rgba(154,123,79,.14); }
.admin-nav-g { padding: 2px 0; }
.admin-nav-g .g-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 10.5px; color: var(--muted); letter-spacing: .16em;
  padding: 8px 12px 5px; cursor: pointer; user-select: none; border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.admin-nav-g .g-label:hover { color: var(--gold-light); background: rgba(154,123,79,.08); }
.admin-nav-g .g-label::after { content: '▾'; font-size: 10px; line-height: 1; opacity: .75; transition: transform .22s ease; }
.admin-nav-g.collapsed .g-label::after { transform: rotate(-90deg); }
.admin-nav-g.collapsed > a { display: none; }
/* 导航未读角标（通知中心等）：红点计数，读完后隐藏 */
#adminNav a .nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; margin-left: 6px; padding: 0 5px;
  border-radius: 9px; background: var(--wine); color: #fff;
  font-size: 10.5px; line-height: 1; font-weight: 600; vertical-align: middle;
}
#adminNav a .nav-badge.hidden { display: none; }
.admin-main .page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-main .page-head h2 { font-size: 20px; border-left: 4px solid var(--gold); padding-left: 12px; }

/* ---------- 列表底座（一期 R1）：搜索工具条 + 分页器 ---------- */
.list-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.list-search {
  background: var(--ink); border: 1px solid var(--line); color: var(--cream);
  border-radius: 8px; padding: 8px 12px; width: 260px; max-width: 100%;
}
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted);
}
.pager-info b { color: var(--cream); }
.pager-ctl { display: flex; align-items: center; gap: 6px; }
.pager-btn {
  min-width: 30px; height: 30px; padding: 0 8px; cursor: pointer;
  background: var(--ink); border: 1px solid var(--line); color: var(--cream);
  border-radius: 7px; font-size: 13px; line-height: 1;
}
.pager-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-light); }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-cur { min-width: 26px; text-align: center; color: var(--gold-light); font-weight: 600; }
.pager-size {
  height: 30px; background: var(--ink); border: 1px solid var(--line);
  color: var(--cream); border-radius: 7px; padding: 0 6px; font-size: 12.5px;
}
.th-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.th-sort:hover { color: var(--gold-light); }

/* ---------- 表格自动增强（v1.28）：长表内部滚动容器 + sticky 表头 + 本地分页条 ----------
   08-router.js enhanceTables() 自动把 ≥12 行的表包进 .tbl-wrap（区域内滚动，页面不再无限拉长），
   ≥20 行且同卡内无分页器的表自动挂 .local-pager（display 切换式，不重建 DOM 不破坏事件绑定） */
.tbl-wrap {
  max-height: min(60vh, 620px); overflow: auto;
  border: 1px solid var(--line); border-radius: 10px; margin-top: 10px;
}
.tbl-wrap table { margin: 0; }
.tbl-wrap th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface-2); box-shadow: 0 1px 0 var(--line);
}
.local-pager { margin-top: 10px; }

/* ---------- 后台移动端适配 ---------- */
@media (max-width: 860px) {
  .admin-layout { flex-direction: column; }
  .admin-side { width: 100%; height: auto; position: sticky; top: 0; z-index: 50; display: flex; flex-direction: column; border-right: none; border-bottom: 1px solid var(--line); padding: 8px; }
  .admin-side .brand { margin: 0 8px 4px 0; white-space: nowrap; font-size: 14px; }
  /* 窄屏下分组标签隐藏、链接横向平铺，折叠态一律失效，避免菜单被收起后无法触达 */
  .admin-side .admin-nav-tools { display: none; }
  .admin-side .admin-nav-g { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; }
  .admin-side .admin-nav-g .g-label { display: none; }
  .admin-side .admin-nav-g.collapsed > a { display: block; }
  .admin-side nav a { margin: 0; white-space: nowrap; padding: 7px 11px; font-size: 12.5px; }
  .admin-main { padding: 14px; }
}
@media (max-width: 640px) {
  .admin-main table { display: block; overflow-x: auto; white-space: nowrap; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   多端自适应（三档断点）
   手机 <768px：底部 5 Tab APP 式（保持现状）
   平板 768–1199px：顶部横排导航 + 全宽多列
   桌面 ≥1200px：左侧竖导航 + 内容区
   ================================================================ */

/* ---------- 顶栏品牌（LOGO + 站点名，桌面/平板显示） ---------- */
/* 顶栏品牌区：手机端也显示 LOGO（桌面 ≥1200 由后置规则改回隐藏，品牌在侧栏展示） */
.tb-brand { display: flex; align-items: center; gap: 8px; }
.tb-logo, .side-logo {
  width: 26px; height: 26px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #241B10;
  font-family: "SimSun", serif;
}
.tb-logo img, .side-logo img { width: 100%; height: 100%; object-fit: contain; }
/* v1.19 上传 LOGO 后：容器彻底去框（无底色 / 无圆角裁切 / 放开尺寸），
   透明底横版、竖版 LOGO 完整展示；v1.24 UI 复核整体缩小一档（40→30 / 38→28 / 42→32），
   v1.26.2 用户反馈仍偏大再缩一档（30→24 / 28→21 / 32→26），
   v1.26.4 真机复验仍偏大再缩一档（24→20 / 21→18 / 26→22），顶栏更轻盈 */
.tb-logo.has-logo, .side-logo.has-logo {
  background: none; border: none; border-radius: 0; overflow: visible;
  width: auto; height: auto; min-width: 0; padding: 0;
}
.tb-logo.has-logo img, .side-logo.has-logo img {
  width: auto; height: 20px; max-width: var(--logo-max-w, 100px); object-fit: contain; display: block;
  /* v1.37-m2 后台滑杆四参数（38-site-config.js 写入 CSS 变量）：缩放/平移用 transform 不挤占布局，
     scale>1 溢出容器（overflow:visible）也不破坏顶栏；未配置时变量缺省=现状零感知 */
  transform: translate(var(--logo-offset-x, 0px), var(--logo-offset-y, 0px)) scale(var(--logo-scale, 1));
  transform-origin: left center;
}
/* v1.20 双主题 LOGO：默认（亮色）显深字标、隐金字标；暗色反之，切换零闪烁（两图均已预载） */
.tb-logo.has-logo img.logo-dark, .side-logo.has-logo img.logo-dark { display: none; }
:root[data-theme="dark"] .tb-logo.has-logo img.logo-dark,
:root[data-theme="dark"] .side-logo.has-logo img.logo-dark { display: block; }
:root[data-theme="dark"] .tb-logo.has-logo img.logo-light,
:root[data-theme="dark"] .side-logo.has-logo img.logo-light { display: none; }
/* 只配了一张（深字）LOGO 时：暗色下叠极淡暖光晕保证笔画可辨，不加底板；配齐双图后此兜底不生效 */
:root[data-theme="dark"] .tb-logo.has-logo.logo-single img,
:root[data-theme="dark"] .side-logo.has-logo.logo-single img {
  filter: drop-shadow(0 0 1px rgba(247,243,234,.30)) drop-shadow(0 1px 4px rgba(247,243,234,.16));
}
@media (min-width: 768px) and (max-width: 1199px) {
  .tb-logo.has-logo img { height: 18px; }
}
@media (min-width: 1200px) {
  .side-logo.has-logo img { height: 22px; max-width: var(--logo-max-w, 110px); }
}
/* v1.17 顶栏减负：站名文字不再上顶栏（与页面标题重复导致字多冲突），品牌由「锦」字标/侧栏承载 */
.tb-site { display: none; font-size: 15px; font-weight: 700; font-family: "SimSun", serif; letter-spacing: .08em; }

/* ---------- 桌面侧边导航（默认隐藏，≥1200px 显示） ---------- */
.app-side { display: none; }

/* 手机端（<768px）：保持 APP 式——隐藏 Hero 大标语，快捷入口仅 4 个 */
.home-hero { display: none; }
.quick-grid { grid-template-columns: repeat(4, 1fr); }
.q-pc { display: none; }
.pc-br { display: none; }

/* ================= 平板（768–1199px）：顶部导航 + 全宽多列 ================= */
@media (min-width: 768px) and (max-width: 1199px) {
  .app-shell { max-width: none; }
  .app-shell > .app-side { display: none; }
  .tb-brand { display: flex; }

  /* 底部 5 Tab 上移为顶部横排导航 */
  .app-tabs {
    position: sticky; top: 52px; bottom: auto; z-index: 59;
    width: 100%; transform: none; left: 0;
    border-top: none; border-bottom: 1px solid var(--line);
    padding-bottom: 0; justify-content: center; gap: 4px;
    background: var(--bar-bg-2);
  }
  .tab-item { flex: 0 0 auto; flex-direction: row; gap: 6px; padding: 10px 18px; font-size: 13px; border-radius: 20px; }
  .tab-item .tab-ic { width: 18px; height: 18px; }

  .app-main { padding: 0 22px 40px; }

  /* 首页：显示 Hero 标语 + 6 宫格快捷入口 */
  .home-hero { display: block; text-align: center; padding: 30px 0 6px; }
  .home-hero h1 { font-size: clamp(26px, 4vw, 38px); font-family: "SimSun", serif; line-height: 1.3; }
  .home-hero h1 .hl { background: linear-gradient(90deg, var(--gold-light), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .home-hero p { color: var(--beige); max-width: 640px; margin: 10px auto 0; font-size: 14.5px; }
  .q-pc { display: flex; }

  /* 首页：快捷入口 6 宫格、横滑卡片加宽 */
  .quick-grid { grid-template-columns: repeat(6, 1fr); }
  .h-scroll .v-card { width: 200px; }
  .banner-slide { aspect-ratio: 21/6; }

  /* 课程/内容多列网格 */
  .grid-4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

  /* 会员 4 级：横向排布 */
  .tiers { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

  /* 沉浸式直播/播放器高度 */
  .room { height: calc(100dvh - 52px - 56px); margin: 0 -22px; }

  /* 底部弹层放宽 */
  .sheet { width: min(680px, 100%); left: 50%; }
  .fab { right: 22px; bottom: 24px; }
}

/* ================= 桌面（≥1200px）：左侧竖导航 + 内容区 ================= */
@media (min-width: 1200px) {
  body { background:
    radial-gradient(1200px 600px at 90% -10%, var(--page-glow) 0%, var(--ink) 55%),
    radial-gradient(900px 500px at 0% 110%, rgba(123,45,59,.18), transparent 60%); }

  .app-shell {
    max-width: 1440px; min-height: var(--app-vh);
    margin: 0 auto; flex-direction: row;
    border-left: 1px solid var(--line); border-right: 1px solid var(--line);
    box-shadow: 0 0 90px rgba(0,0,0,.5);
  }

  /* 侧边导航 */
  .app-side {
    display: flex; flex-direction: column; flex-shrink: 0;
    width: 230px; background: var(--side-bg);
    border-right: 1px solid var(--line); min-height: var(--app-vh);
    padding: 22px 14px 20px; position: sticky; top: 0; height: var(--app-vh); overflow-y: auto;
  }
  .side-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; text-decoration: none; }
  .side-logo { width: 38px; height: 38px; border-radius: 10px; font-size: 19px; }
  .side-name { font-size: 19px; font-weight: 700; font-family: "SimSun", serif; color: var(--cream); letter-spacing: .1em; }
  .side-nav a, .side-ext a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; margin-bottom: 3px; border-radius: 10px;
    color: var(--beige); font-size: 14.5px; text-decoration: none; transition: .18s;
  }
  .side-nav a:hover, .side-ext a:hover { background: rgba(154,123,79,.12); color: var(--gold-light); }
  .side-nav a.active { background: linear-gradient(135deg, rgba(154,123,79,.22), rgba(123,45,59,.16)); color: var(--gold-light); border: 1px solid rgba(154,123,79,.35); }
  .sn-ic { width: 22px; text-align: center; font-size: 16px; color: var(--accent-ink); }
  .side-nav { flex: 1; }
  .side-ext { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
  .side-ext a { font-size: 13.5px; }
  .side-user { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
  .side-user-muted { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
  .side-u-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; margin-bottom: 10px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
  .side-u-card:hover { border-color: var(--gold); }
  .side-u-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-size: 15px;
    background: linear-gradient(135deg, #E8CFA6, #C9A86E); color: #241B10;
  }
  .side-u-meta { flex: 1; min-width: 0; }
  .side-u-meta b { display: block; font-size: 13.5px; color: var(--cream); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .side-u-meta small { font-size: 11px; color: var(--muted); }

  /* 顶部栏：并入内容区右侧；品牌已在左侧竖导航里，顶栏只留页面标题（恢复常规流，左对齐） */
  .app-shell > .app-topbar { display: flex; }
  .tb-brand { display: none; }
  .tb-logo { width: 30px; height: 30px; border-radius: 9px; font-size: 17px; }
  .app-shell > .app-topbar .tb-title { position: static; transform: none; flex: 1; max-width: none; text-align: left; }

  /* 内容列 */
  .app-shell > .app-main {
    flex: 1; min-width: 0; padding: 26px 34px 60px; min-height: var(--app-vh);
  }

  /* 底部 Tab 隐藏，悬浮按钮常规位置 */
  .app-shell > .app-tabs { display: none; }
  .fab { right: 34px; bottom: 34px; }

  /* 首页：桌面布局（Hero 标语 + 大横幅 + 多列网格） */
  .home-hero { display: block; text-align: center; padding: 34px 0 10px; }
  .home-hero h1 { font-size: clamp(30px, 3.4vw, 46px); font-family: "SimSun", serif; line-height: 1.3; }
  .home-hero h1 .hl { background: linear-gradient(90deg, var(--gold-light), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .home-hero p { color: var(--beige); max-width: 720px; margin: 12px auto 0; font-size: 15px; }
  .q-pc { display: flex; }
  .pc-br { display: block; }
  .banner-slide { aspect-ratio: 24/6; padding: 40px 36px 42px; }
  .banner-slide h2 { font-size: 26px; }
  .banner-slide p { font-size: 14px; }
  .quick-grid { grid-template-columns: repeat(6, 1fr); margin: 18px 0 6px; }

  .grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
  .grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
  .grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
  .tiers { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
  .h-scroll .v-card { width: 220px; }
  .h-scroll { padding-bottom: 20px; }

  /* 详情页：主内容 + 右侧信息卡（桌面详情布局） */
  .detail-hero { margin: 0; border-radius: 16px; padding: 34px 28px 26px; }
  .detail-hero h1 { font-size: 26px; }
  .dh-actions { margin-top: 20px; }
  .lesson-list li { padding: 15px 18px; }
  .room { height: calc(var(--app-vh) - 90px); margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
  .sheet { width: min(680px, 100%); left: 50%; }
  .cert { max-width: 560px; margin-left: auto; margin-right: auto; }
  .sec-head { margin-top: 28px; }

  /* 桌面端：活动卡片 3 列网格 */
  .campaign-grid { grid-template-columns: repeat(3, 1fr); }
  .campaign-grid .campaign-card { width: auto; }
}

/* ================================================================
   C1 阶段扩展样式：营销引擎前台 + 支付页重构 + 消息中心改版
   ================================================================ */

/* ---------- 新人礼包弹窗 ---------- */
.gift-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.gift-card {
  width: min(420px, 90vw);
  background: linear-gradient(160deg, #2E2418 0%, #1C1A17 100%);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 32px 28px 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(154, 123, 79, 0.15);
  animation: giftPop .45s cubic-bezier(.34,1.56,.64,1);
}
@keyframes giftPop {
  from { opacity: 0; transform: scale(.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.gift-card::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px dashed rgba(154, 123, 79, 0.4);
  border-radius: 14px; pointer-events: none;
}
.gift-card .gift-close {
  position: absolute; top: 12px; right: 14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(154, 123, 79, 0.15); border: none;
  color: var(--gold-ink); font-size: 16px; cursor: pointer;
  display: grid; place-items: center; transition: .2s;
}
.gift-card .gift-close:hover { background: rgba(154, 123, 79, 0.3); }
.gift-card .gift-icon {
  width: 72px; height: 72px; margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  display: grid; place-items: center; font-size: 36px;
  /* 图标是 emoji（自带颜色），这里显式给深色兜底，避免继承卡片文字色后对比不足 */
  color: #241B10;
  box-shadow: 0 6px 24px rgba(154, 123, 79, 0.4);
}
.gift-card h2 {
  text-align: center; font-size: 22px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px;
}
.gift-card .gift-sub {
  text-align: center; font-size: 12.5px; color: var(--muted); margin-bottom: 20px;
}
.gift-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.gift-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(154, 123, 79, 0.08);
  border: 1px solid rgba(154, 123, 79, 0.25);
  border-radius: 12px;
}
.gift-item .gi-ic {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, rgba(154, 123, 79, 0.3), rgba(123, 45, 59, 0.25));
}
.gift-item .gi-main { flex: 1; min-width: 0; }
.gift-item .gi-main b { font-size: 14px; display: block; }
.gift-item .gi-main small { font-size: 11.5px; color: var(--muted); }
.gift-item .gi-val { font-size: 16px; font-weight: 700; color: var(--gold-ink); flex-shrink: 0; }
.gift-claim-btn {
  width: 100%; padding: 14px; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  /* 与 .btn-gold 同一渐变：原 --gold-light 起步的渐变太浅，白字只有 3.2:1 */
  background: linear-gradient(135deg, #8E7048, var(--gold-deep));
  color: #fff; transition: .2s;
  box-shadow: 0 6px 20px rgba(154, 123, 79, 0.35);
}
.gift-claim-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.gift-claim-btn:active { transform: translateY(0); }
.gift-claim-btn[disabled] { opacity: .6; cursor: not-allowed; }
.gift-success {
  text-align: center; padding: 20px 0;
}
.gift-success .gs-icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ok), #5a8a48);
  display: grid; place-items: center; font-size: 32px; color: #fff;
  animation: successPop .5s ease;
}
@keyframes successPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.gift-success h3 { font-size: 18px; margin-bottom: 6px; }
.gift-success p { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }

/* ---------- 营销活动卡片 ---------- */
.campaign-section { margin-top: 8px; }
.campaign-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 4px 2px 14px; scroll-snap-type: x mandatory;
}
.campaign-scroll::-webkit-scrollbar { display: none; }
.campaign-card {
  width: 220px; flex-shrink: 0; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; text-decoration: none;
  transition: transform .25s, border-color .25s; position: relative;
}
.campaign-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.campaign-cover {
  aspect-ratio: 16/9; display: grid; place-items: center;
  font-family: "SimSun", serif; font-size: 16px; letter-spacing: .14em;
  color: #fff; position: relative;
}
.campaign-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5));
}
.campaign-info { padding: 12px 14px 14px; }
.campaign-info h3 {
  font-size: 14px; line-height: 1.4; height: 38px;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  margin-bottom: 8px;
}
.campaign-countdown {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--muted); margin-bottom: 10px;
}
.campaign-countdown .cd-digits {
  display: flex; gap: 3px;
}
.campaign-countdown .cd-num {
  background: var(--wine-deep); color: var(--gold-light);
  padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;
  min-width: 22px; text-align: center;
}
.campaign-join-btn {
  display: block; width: 100%; padding: 7px 0;
  text-align: center; font-size: 12.5px; font-weight: 600;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff; border-radius: 8px; border: none; cursor: pointer;
  transition: .2s;
}
.campaign-join-btn:hover { filter: brightness(1.08); }
.campaign-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 3px 10px; border-radius: 20px; font-size: 10.5px;
  background: rgba(123, 45, 59, 0.9); color: #fff;
  backdrop-filter: blur(4px);
}

/* 桌面端 3 列网格布局 */
.campaign-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.campaign-grid .campaign-card { width: auto; }

/* ---------- 智能推荐模块 ---------- */
.recommend-section { margin-top: 8px; }
.recommend-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.rec-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; text-decoration: none;
  transition: transform .2s, border-color .2s;
}
.rec-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.rec-cover {
  aspect-ratio: 4/3; display: grid; place-items: center;
  font-family: "SimSun", serif; font-size: 18px;
  letter-spacing: .14em; color: #fff;
}
.rec-info { padding: 10px 12px 12px; }
.rec-title {
  font-size: 13.5px; line-height: 1.4; height: 38px;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.rec-meta {
  font-size: 11px; color: var(--muted);
  margin: 5px 0 7px; display: flex; align-items: center; gap: 6px;
}
.rec-meta .instructor { color: var(--beige); }
.rec-price { font-size: 15px; font-weight: 700; color: var(--gold-light); }
.rec-price small { color: var(--muted); font-weight: 400; font-size: 11px; }

/* ---------- 支付渠道卡片 ---------- */
.payment-provider-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; cursor: pointer; transition: all .25s ease;
  position: relative;
}
.payment-provider-card:hover { border-color: rgba(154, 123, 79, 0.5); }
.payment-provider-card.active {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(154, 123, 79, 0.12), rgba(123, 45, 59, 0.08));
  box-shadow: 0 0 0 1px var(--gold), 0 4px 16px rgba(154, 123, 79, 0.15);
}
.payment-provider-card .pp-logo {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, rgba(154, 123, 79, 0.2), rgba(123, 45, 59, 0.15));
  border: 1px solid var(--line);
}
.payment-provider-card.active .pp-logo {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(154, 123, 79, 0.3), rgba(123, 45, 59, 0.2));
}
.payment-provider-card .pp-info { flex: 1; min-width: 0; }
.payment-provider-card .pp-info b { font-size: 14.5px; display: block; }
.payment-provider-card .pp-info small { font-size: 11.5px; color: var(--muted); }
.payment-provider-card .pp-recommend {
  padding: 3px 8px; border-radius: 20px; font-size: 10.5px;
  background: linear-gradient(135deg, var(--wine), var(--wine-deep));
  color: var(--gold-light); flex-shrink: 0;
}
.payment-provider-card .pp-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); flex-shrink: 0;
  display: grid; place-items: center; transition: .2s;
}
.payment-provider-card.active .pp-check {
  border-color: var(--gold); background: var(--gold);
}
.payment-provider-card.active .pp-check::after {
  content: ""; width: 6px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ---------- 数字证书卡片（支付成功） ---------- */
.certificate-card {
  margin: 20px 0; padding: 32px 24px;
  text-align: center; position: relative;
  background: linear-gradient(145deg, #2E2418 0%, #1C1A17 100%);
  border: 2px solid var(--gold);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 60px rgba(154, 123, 79, 0.05);
}
.certificate-card::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px dashed rgba(154, 123, 79, 0.45);
  border-radius: 12px; pointer-events: none;
}
.certificate-card .cc-seal {
  position: absolute; bottom: 20px; right: 24px;
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--wine);
  display: grid; place-items: center;
  font-family: "SimSun", serif; font-size: 11px;
  color: var(--wine); background: rgba(123, 45, 59, 0.08);
  transform: rotate(-12deg); opacity: 0.85;
  line-height: 1.3; text-align: center;
}
.certificate-card .cc-title {
  font-size: 24px; font-family: "SimSun", serif;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px; position: relative;
}
.certificate-card .cc-subtitle {
  font-size: 12px; color: var(--muted);
  letter-spacing: .2em; margin-bottom: 20px; position: relative;
}
.certificate-card .cc-order {
  font-size: 13px; color: var(--beige);
  margin-bottom: 8px; position: relative;
}
.certificate-card .cc-order b { color: var(--gold-light); }
.certificate-card .cc-verify {
  font-size: 11px; color: var(--muted);
  padding-top: 14px; margin-top: 14px;
  border-top: 1px dashed rgba(154, 123, 79, 0.3);
  position: relative;
}
.certificate-card .cc-verify b { color: var(--gold-light); font-family: monospace; }

/* ---------- 消息 Tab 栏 ---------- */
.msg-tab-bar {
  display: flex; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 3px; margin-bottom: 14px; margin-top: 12px;
  position: sticky; top: 52px; z-index: 40;
  backdrop-filter: blur(10px);
}
.msg-tab-bar .msg-tab {
  flex: 1; text-align: center; padding: 9px 4px;
  font-size: 12.5px; color: var(--beige);
  border-radius: 9px; cursor: pointer;
  transition: .2s; position: relative; white-space: nowrap;
}
.msg-tab-bar .msg-tab.on {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff; font-weight: 600;
}
.msg-tab-bar .msg-tab .tab-badge {
  position: absolute; top: 4px; right: 6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 10px; font-size: 10px;
  background: var(--danger); color: #fff;
  display: grid; place-items: center; line-height: 1;
}

/* ---------- 消息项（升级版） ---------- */
.msg-item {
  display: flex; gap: 12px; padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: background .2s;
}
.msg-item:active { background: rgba(154, 123, 79, 0.06); }
.msg-item::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 0 2px 2px 0;
  background: transparent; transition: background .2s;
}
.msg-item.unread::before { background: var(--gold-light); }
.msg-item .msg-ic {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 20px;
}
.msg-item .msg-ic.learning { background: rgba(127, 176, 105, 0.15); color: var(--ok); }
.msg-item .msg-ic.commission { background: rgba(154, 123, 79, 0.18); color: var(--gold-light); }
.msg-item .msg-ic.system { background: rgba(90, 94, 102, 0.2); color: #9AA0AA; }
.msg-item .msg-ic.marketing { background: rgba(123, 45, 59, 0.2); color: #E5A0A8; }
.msg-item .msg-ic.default { background: rgba(154, 123, 79, 0.14); color: var(--gold-light); }
.msg-item .msg-main { flex: 1; min-width: 0; }
.msg-item .msg-main .msg-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 3px;
}
.msg-item .msg-main .msg-head b { font-size: 14px; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.msg-item .msg-main .msg-head .msg-time { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.msg-item .msg-main .msg-head .unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); flex-shrink: 0;
}
.msg-item .msg-main p {
  font-size: 12.5px; color: var(--muted);
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-height: 1.5;
}
.msg-item .msg-delete {
  position: absolute; right: -60px; top: 0; bottom: 0;
  width: 60px; display: grid; place-items: center;
  background: var(--danger); color: #fff;
  font-size: 12px; cursor: pointer; transition: right .25s ease;
}
.msg-item:hover .msg-delete { right: 0; }

/* ---------- 横向优惠券卡片 ---------- */
.coupon-card-horizontal {
  display: flex; margin-bottom: 12px;
  background: var(--surface); border-radius: 14px;
  overflow: hidden; border: 1px solid var(--line);
  position: relative;
}
.coupon-card-horizontal .cch-left {
  width: 110px; flex-shrink: 0; padding: 18px 12px;
  background: linear-gradient(135deg, rgba(154, 123, 79, 0.25), rgba(123, 45, 59, 0.2));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.coupon-card-horizontal .cch-left::after {
  content: ""; position: absolute; right: -6px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink);
}
.coupon-card-horizontal .cch-amount {
  font-size: 26px; font-weight: 800; color: var(--gold-light);
  line-height: 1;
}
.coupon-card-horizontal .cch-amount small { font-size: 13px; font-weight: 500; }
.coupon-card-horizontal .cch-type {
  font-size: 11px; color: var(--beige); margin-top: 4px; opacity: .8;
}
.coupon-card-horizontal .cch-right {
  flex: 1; padding: 14px 16px; display: flex;
  flex-direction: column; justify-content: center; gap: 4px;
}
.coupon-card-horizontal .cch-right h4 { font-size: 14.5px; }
.coupon-card-horizontal .cch-condition { font-size: 11.5px; color: var(--muted); }
.coupon-card-horizontal .cch-expire { font-size: 11px; color: var(--muted); opacity: .8; }
.coupon-card-horizontal .cch-action {
  display: flex; align-items: center; padding-right: 14px;
}
.coupon-card-horizontal .cch-use-btn {
  padding: 7px 14px; border-radius: 20px; border: none;
  font-size: 12px; font-weight: 600; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff; transition: .2s; white-space: nowrap;
}
.coupon-card-horizontal .cch-use-btn:hover { filter: brightness(1.08); }
.coupon-card-horizontal.used .cch-left,
.coupon-card-horizontal.expired .cch-left { opacity: .5; }
.coupon-card-horizontal.used .cch-right,
.coupon-card-horizontal.expired .cch-right { opacity: .6; }

/* ---------- 骨架屏加载动画 ---------- */
.skeleton-loader {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; margin-bottom: 12px;
}
.skeleton-card .sk-line {
  height: 14px; border-radius: 6px; margin-bottom: 10px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--ink-2) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}
.skeleton-card .sk-line.short { width: 60%; }
.skeleton-card .sk-line.medium { width: 80%; }

/* ---------- 暗金渐变大按钮 ---------- */
.btn-primary-gradient {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: #fff; transition: all .25s ease;
  box-shadow: 0 6px 20px rgba(154, 123, 79, 0.35);
  position: relative; overflow: hidden;
}
.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(154, 123, 79, 0.45);
  filter: brightness(1.06);
}
.btn-primary-gradient:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(154, 123, 79, 0.3);
}
.btn-primary-gradient::before {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left .5s;
}
.btn-primary-gradient:hover::before { left: 100%; }
.btn-primary-gradient[disabled] {
  opacity: .6; cursor: not-allowed;
  transform: none; box-shadow: none;
}
.btn-primary-gradient.loading { pointer-events: none; }
.btn-primary-gradient .btn-spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 空状态（升级版） ---------- */
.empty-state {
  padding: 60px 20px 50px; text-align: center;
}
.empty-state .es-icon {
  width: 80px; height: 80px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 36px;
}
.empty-state .es-icon.learning { color: var(--ok); }
.empty-state .es-icon.commission { color: var(--gold-light); }
.empty-state .es-icon.system { color: #9AA0AA; }
.empty-state .es-icon.marketing { color: #E5A0A8; }
.empty-state h3 {
  font-size: 16px; margin-bottom: 6px; color: var(--beige);
}
.empty-state p {
  font-size: 12.5px; color: var(--muted);
  max-width: 240px; margin: 0 auto 18px;
}
.empty-state .es-action {
  display: inline-block; padding: 8px 20px;
  border-radius: 20px; font-size: 13px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff; text-decoration: none;
}

/* ---------- 支付页：订单信息区 ---------- */
.checkout-order-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px; margin-bottom: 16px;
}
.checkout-order-card .coc-product {
  display: flex; gap: 14px; align-items: center;
  padding-bottom: 14px; border-bottom: 1px dashed var(--line);
}
.checkout-order-card .coc-cover {
  width: 72px; height: 72px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-family: "SimSun", serif;
  font-size: 20px; color: #fff; letter-spacing: .1em;
}
.checkout-order-card .coc-info { flex: 1; min-width: 0; }
.checkout-order-card .coc-info h3 {
  font-size: 15px; line-height: 1.4;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.checkout-order-card .coc-info .coc-original {
  font-size: 12px; color: var(--muted); text-decoration: line-through;
  margin-top: 4px;
}
.checkout-order-card .coc-price {
  font-size: 20px; font-weight: 700; color: var(--gold-light);
  flex-shrink: 0; text-align: right;
}
.coupon-selector {
  margin-top: 14px;
}
.coupon-selector .cs-label {
  font-size: 13px; color: var(--muted); margin-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.coupon-selector .cs-label b { color: var(--beige); font-weight: 500; }
.coupon-dropdown {
  position: relative;
}
.coupon-dropdown .cd-trigger {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; transition: .2s;
}
.coupon-dropdown .cd-trigger:hover { border-color: var(--gold); }
.coupon-dropdown .cd-trigger .cd-icon { font-size: 18px; }
.coupon-dropdown .cd-trigger .cd-text { flex: 1; font-size: 13.5px; }
.coupon-dropdown .cd-trigger .cd-discount {
  color: var(--gold-light); font-weight: 600; font-size: 13px;
}
.coupon-dropdown .cd-trigger .cd-arrow {
  color: var(--muted); font-size: 12px; transition: transform .2s;
}
.coupon-dropdown.open .cd-trigger .cd-arrow { transform: rotate(180deg); }
.coupon-dropdown .cd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; z-index: 30;
  box-shadow: var(--shadow); max-height: 240px; overflow-y: auto;
  display: none;
}
.coupon-dropdown.open .cd-menu { display: block; animation: dropDown .2s ease; }
@keyframes dropDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.coupon-dropdown .cd-item {
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: background .15s;
}
.coupon-dropdown .cd-item:hover { background: rgba(154, 123, 79, 0.1); }
.coupon-dropdown .cd-item.selected { background: rgba(154, 123, 79, 0.15); }
.coupon-dropdown .cd-item .cdi-info { flex: 1; min-width: 0; }
.coupon-dropdown .cd-item .cdi-info b { font-size: 13px; display: block; }
.coupon-dropdown .cd-item .cdi-info small { font-size: 11px; color: var(--muted); }
.coupon-dropdown .cd-item .cdi-val {
  font-size: 14px; font-weight: 700; color: var(--gold-light);
  flex-shrink: 0;
}
.price-breakdown {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.price-breakdown .pb-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.price-breakdown .pb-row .pb-label { color: var(--muted); }
.price-breakdown .pb-row .pb-label .pb-hint { display: block; margin-top: 2px; font-size: 11px; color: var(--gold-light); opacity: .85; }
.price-breakdown .pb-row .pb-val { color: var(--beige); }
.price-breakdown .pb-row.discount .pb-val { color: var(--ok); }
.price-breakdown .pb-row.total {
  padding-top: 10px; margin-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 700;
}
.price-breakdown .pb-row.total .pb-val {
  font-size: 22px; color: var(--gold-light);
}

/* ---------- 支付安全提示 ---------- */
.pay-security {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  padding: 12px 0 4px; font-size: 11.5px; color: var(--muted);
}
.pay-security .ps-item {
  display: flex; align-items: center; gap: 5px;
}
.pay-security .ps-item .ps-ic { font-size: 14px; }

/* ---------- 支付成功页 ---------- */
.pay-success-view {
  padding: 30px 20px; text-align: center;
}
.pay-success-view .psv-icon {
  width: 80px; height: 80px; margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ok), #5a8a48);
  display: grid; place-items: center; font-size: 40px; color: #fff;
  box-shadow: 0 8px 30px rgba(127, 176, 105, 0.35);
  animation: successPop .6s ease;
}
.pay-success-view h2 {
  font-size: 22px; margin-bottom: 6px;
}
.pay-success-view .psv-sub {
  font-size: 13px; color: var(--muted); margin-bottom: 24px;
}
.psv-actions {
  display: flex; gap: 10px; margin-top: 20px;
  flex-direction: column;
}
.psv-actions .btn { flex: 1; padding: 14px; font-size: 14px; }

/* ---------- 礼包入口 / 我的礼包 ---------- */
.gift-entry {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(123, 45, 59, 0.2), rgba(154, 123, 79, 0.15));
  border: 1px solid rgba(154, 123, 79, 0.35);
  border-radius: 14px; text-decoration: none;
  position: relative; overflow: hidden;
}
.gift-entry::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(217, 185, 138, 0.15), transparent 70%);
}
.gift-entry .ge-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: #241B10;
}
.gift-entry .ge-main { flex: 1; min-width: 0; position: relative; }
.gift-entry .ge-main b { font-size: 15px; display: block; color: var(--gold-ink); }
.gift-entry .ge-main small { font-size: 11.5px; color: var(--muted); }
.gift-entry .ge-badge {
  background: var(--wine); color: #fff;
  padding: 2px 8px; border-radius: 10px; font-size: 11px;
  flex-shrink: 0; position: relative;
}
.gift-entry .ge-arrow { color: var(--gold-ink); font-size: 18px; position: relative; }

/* 我的礼包列表 */
.my-gift-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; margin-bottom: 12px;
  position: relative; overflow: hidden;
}
.my-gift-card.claimable { border-color: var(--gold); }
.my-gift-card .mgc-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.my-gift-card .mgc-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, rgba(154, 123, 79, 0.25), rgba(123, 45, 59, 0.2));
}
.my-gift-card .mgc-info { flex: 1; min-width: 0; }
.my-gift-card .mgc-info h4 { font-size: 14.5px; }
.my-gift-card .mgc-info small { font-size: 11.5px; color: var(--muted); }
.my-gift-card .mgc-status {
  padding: 3px 10px; border-radius: 20px; font-size: 11px;
  flex-shrink: 0;
}
.my-gift-card .mgc-status.claimable {
  background: rgba(154, 123, 79, 0.18); color: var(--gold-ink);
}
.my-gift-card .mgc-status.claimed {
  background: rgba(127, 176, 105, 0.15); color: var(--ok);
}
.my-gift-card .mgc-status.expired {
  background: var(--ink-2); color: var(--muted);
}
.my-gift-card .mgc-items {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.my-gift-card .mgc-items .mgc-tag {
  padding: 4px 10px; border-radius: 20px; font-size: 11px;
  background: rgba(154, 123, 79, 0.1); color: var(--beige);
  border: 1px solid rgba(154, 123, 79, 0.25);
}
.my-gift-card .mgc-progress {
  height: 6px; background: var(--ink-2); border-radius: 3px;
  overflow: hidden; margin-bottom: 10px;
}
.my-gift-card .mgc-progress i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--wine));
  border-radius: 3px; transition: width .4s;
}
.my-gift-card .mgc-action { display: flex; gap: 8px; }
.my-gift-card .mgc-action button {
  flex: 1; padding: 9px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--beige); transition: .2s;
}
.my-gift-card .mgc-action button.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-color: transparent; color: #fff;
}
.my-gift-card .mgc-action button:hover { filter: brightness(1.08); }
.my-gift-card .mgc-action button[disabled] { opacity: .5; cursor: not-allowed; }

/* ================================================================
   C2 阶段扩展样式：创作者入驻平台 UI
   ================================================================ */

/* ---------- 创作者入驻 Banner ---------- */
.instructor-banner {
  margin: 0 -14px;
  padding: 50px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(500px 200px at 30% 0%, rgba(154, 123, 79, 0.3), transparent 60%),
    radial-gradient(500px 240px at 70% 100%, rgba(123, 45, 59, 0.25), transparent 60%),
    linear-gradient(180deg, var(--hero-start) 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--line);
}
.instructor-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--wine));
}
.instructor-banner h1 {
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.3;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.instructor-banner p {
  color: var(--beige);
  font-size: 14px;
  opacity: 0.9;
}
.instructor-banner .banner-cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.instructor-banner .banner-cta .btn {
  padding: 13px 32px;
  font-size: 15px;
}

/* ---------- 优势卡片 ---------- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.advantage-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.advantage-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.advantage-card .adv-icon {
  font-size: 36px;
  margin-bottom: 10px;
}
.advantage-card h3 {
  font-size: 16px;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.advantage-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- 申请步骤指示器 ---------- */
.apply-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 24px;
  position: relative;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 100px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  background: var(--ink-2);
  color: var(--muted);
  border: 2px solid var(--line);
  transition: all .3s;
}
.step-item.active .step-num {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #241B10;
  border-color: var(--gold-light);
  box-shadow: 0 0 16px rgba(217, 185, 138, 0.4);
}
.step-item.done .step-num {
  background: rgba(127, 176, 105, 0.2);
  color: var(--ok);
  border-color: var(--ok);
}
.step-label {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}
.step-item.active .step-label {
  color: var(--gold-light);
  font-weight: 600;
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 -10px;
  margin-bottom: 26px;
  max-width: 60px;
}
.step-line.done {
  background: var(--ok);
}

/* ---------- 申请表单 ---------- */
.apply-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}
.apply-form-card h3 {
  font-size: 17px;
  margin-bottom: 16px;
  color: var(--gold-light);
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.form-actions .btn {
  flex: 1;
}
.field-error {
  color: var(--danger);
  font-size: 11.5px;
  margin-top: 4px;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
}
.field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}
.field textarea:focus {
  border-color: var(--gold);
}

/* ---------- 多选项 ---------- */
.multi-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.multi-select .chip {
  cursor: pointer;
  user-select: none;
}
.multi-select .chip.selected {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-color: transparent;
  color: #fff;
}

/* ---------- 上传区域 ---------- */
.upload-zone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--ink);
}
.upload-zone:hover {
  border-color: var(--gold);
  background: rgba(154, 123, 79, 0.06);
}
.upload-zone .up-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.upload-zone p {
  font-size: 13px;
  color: var(--beige);
}
.upload-zone small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

/* ---------- 申请状态卡片 ---------- */
.status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.status-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--wine));
}
.status-card .sc-icon {
  font-size: 40px;
  text-align: center;
  margin-bottom: 10px;
}
.status-card h3 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 4px;
}
.status-card .sc-status {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.status-card .sc-status .badge {
  margin-left: 6px;
}
.status-progress {
  margin: 14px 0;
}
.status-progress .bar {
  margin-bottom: 8px;
}
.status-stages {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--muted);
}
.status-stages .stage-done {
  color: var(--ok);
}
.status-stages .stage-current {
  color: var(--gold-light);
  font-weight: 600;
}
.sc-eta {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ---------- 审核状态标签 ---------- */
.review-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.review-status-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.review-status-tag.pending {
  background: rgba(154, 123, 79, 0.15);
  color: var(--gold-light);
}
.review-status-tag.pending::before {
  background: var(--gold-light);
}
.review-status-tag.reviewing {
  background: rgba(93, 138, 196, 0.15);
  color: #7DA8D4;
}
.review-status-tag.reviewing::before {
  background: #7DA8D4;
  animation: pulse 1.4s infinite;
}
.review-status-tag.approved {
  background: rgba(127, 176, 105, 0.15);
  color: var(--ok);
}
.review-status-tag.approved::before {
  background: var(--ok);
}
.review-status-tag.rejected {
  background: rgba(194, 94, 76, 0.15);
  color: var(--danger);
}
.review-status-tag.rejected::before {
  background: var(--danger);
}
.review-status-tag.draft {
  background: var(--ink-2);
  color: var(--muted);
}
.review-status-tag.draft::before {
  background: var(--muted);
}

/* ---------- 创作者卡片（列表网格） ---------- */
.instructor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  transition: transform .2s, border-color .2s;
  position: relative;
}
.instructor-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.instructor-card .ic-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #241B10;
  font-size: 28px;
  font-family: "SimSun", serif;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px rgba(217, 185, 138, 0.25);
}
.instructor-card .ic-name {
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}
.instructor-card .ic-bio {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.instructor-card .ic-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.instructor-card .ic-stat {
  text-align: center;
}
.instructor-card .ic-stat b {
  display: block;
  font-size: 15px;
  color: var(--gold-light);
}
.instructor-card .ic-stat span {
  font-size: 10.5px;
  color: var(--muted);
}
.instructor-card .ic-action {
  width: 100%;
}
.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--gold-light);
  background: rgba(154, 123, 79, 0.15);
  padding: 2px 7px;
  border-radius: 10px;
}

/* ---------- 创作者详情页头部 ---------- */
.instructor-header {
  margin: 0 -14px;
  padding: 30px 20px 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(400px 180px at 80% 0%, rgba(154, 123, 79, 0.25), transparent 60%),
    linear-gradient(180deg, var(--hero-start) 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--line);
}
.instructor-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--wine));
}
.instructor-header .ih-row {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.instructor-header .ih-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #241B10;
  font-size: 30px;
  font-family: "SimSun", serif;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px rgba(217, 185, 138, 0.3);
}
.instructor-header .ih-info {
  flex: 1;
  min-width: 0;
}
.instructor-header .ih-name {
  font-size: 22px;
  font-family: "SimSun", serif;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.instructor-header .ih-tagline {
  font-size: 13px;
  color: var(--beige);
  opacity: 0.9;
  margin-bottom: 10px;
}
.instructor-header .ih-stats {
  display: flex;
  gap: 18px;
}
.instructor-header .ih-stat b {
  display: block;
  font-size: 17px;
  color: var(--gold-light);
}
.instructor-header .ih-stat span {
  font-size: 11px;
  color: var(--muted);
}
.instructor-header .ih-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.instructor-header .ih-actions .btn {
  flex: 1;
}

/* ---------- Tab 切换（创作者详情） ---------- */
.instructor-tabs {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px;
  margin: 16px 0;
}
.instructor-tabs a {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  font-size: 13px;
  color: var(--beige);
  border-radius: 9px;
  text-decoration: none;
  transition: all .2s;
}
.instructor-tabs a.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
}

/* ---------- 创作者详情介绍区 ---------- */
.instructor-about {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}
.instructor-about h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--gold-light);
}
.instructor-about p {
  font-size: 13.5px;
  color: var(--beige);
  line-height: 1.7;
}
.instructor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.instructor-tags .tag {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  background: rgba(154, 123, 79, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(154, 123, 79, 0.3);
}
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--beige);
  font-size: 16px;
  text-decoration: none;
  transition: all .2s;
}
.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ---------- 评价列表 ---------- */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.review-item .ri-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.review-item .ri-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine), var(--gold-deep));
  color: #fff;
  font-size: 14px;
  font-family: "SimSun", serif;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.review-item .ri-info {
  flex: 1;
  min-width: 0;
}
.review-item .ri-name {
  font-size: 13.5px;
  font-weight: 600;
}
.review-item .ri-meta {
  font-size: 11px;
  color: var(--muted);
}
.review-item .ri-content {
  font-size: 13px;
  color: var(--beige);
  line-height: 1.6;
}

/* ================================================================
   创作者后台布局
   ================================================================ */

.instructor-layout {
  display: flex;
  min-height: var(--app-vh);
}

/* ---------- 创作者后台侧边栏（PC端） ---------- */
.instructor-sidebar {
  width: 220px;
  background: var(--ink-2);
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: var(--app-vh);
  overflow-y: auto;
  flex-shrink: 0;
}
.instructor-sidebar .brand {
  font-size: 16px;
  margin-bottom: 8px;
  display: block;
  color: var(--cream);
}
.instructor-sidebar .sidebar-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  padding-left: 2px;
}
.instructor-sidebar .side-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 16px;
}
.instructor-sidebar .sp-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #241B10;
  font-size: 16px;
  font-family: "SimSun", serif;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.instructor-sidebar .sp-info {
  flex: 1;
  min-width: 0;
}
.instructor-sidebar .sp-info b {
  display: block;
  font-size: 13.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.instructor-sidebar .sp-info small {
  font-size: 11px;
  color: var(--muted);
}
.instructor-sidebar .nav-group-label {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.18em;
  padding: 12px 12px 6px;
}
.instructor-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--beige);
  font-size: 14px;
  margin-bottom: 3px;
  text-decoration: none;
  transition: all .18s;
}
.instructor-sidebar a:hover {
  background: rgba(154, 123, 79, 0.12);
  color: var(--gold-light);
}
.instructor-sidebar a.active {
  background: linear-gradient(135deg, rgba(154, 123, 79, 0.22), rgba(123, 45, 59, 0.16));
  color: var(--gold-light);
  border: 1px solid rgba(154, 123, 79, 0.35);
}
.instructor-sidebar a .nav-ic {
  width: 20px;
  text-align: center;
  font-size: 16px;
}
.instructor-sidebar .side-bottom {
  position: absolute;
  bottom: 18px;
  left: 12px;
  right: 12px;
}

/* ---------- 创作者后台主区 ---------- */
.instructor-main {
  flex: 1;
  padding: 24px;
  min-width: 0;
}
.instructor-main .page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.instructor-main .page-head h2 {
  font-size: 22px;
  font-family: "SimSun", serif;
  border-left: 4px solid var(--gold);
  padding-left: 12px;
}

/* ---------- 创作者数据卡片 ---------- */
.instructor-stat-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.instructor-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.instructor-stat-card.highlight {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(154, 123, 79, 0.15);
}
.instructor-stat-card.highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
}
.instructor-stat-card .sc-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.instructor-stat-card .sc-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}
.instructor-stat-card.highlight .sc-value {
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.instructor-stat-card .sc-change {
  font-size: 11.5px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.instructor-stat-card .sc-change.up {
  color: var(--ok);
}
.instructor-stat-card .sc-change.down {
  color: var(--danger);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

/* ---------- 收益汇总卡片 ---------- */
.earnings-summary-card {
  background: linear-gradient(140deg, #2A1F14 0%, var(--wine-deep) 100%);
  border: 1px solid rgba(154, 123, 79, 0.4);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.earnings-summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 120px at 90% 0%, rgba(217, 185, 138, 0.15), transparent 60%);
  pointer-events: none;
}
.earnings-summary-card .esc-title {
  font-size: 13px;
  color: var(--on-dark-2);
  opacity: 0.85;
  margin-bottom: 6px;
  position: relative;
}
.earnings-summary-card .esc-amount {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
  position: relative;
}
.earnings-summary-card .esc-sub {
  font-size: 12px;
  color: var(--on-dark-2);
  opacity: 0.8;
  margin-top: 6px;
  position: relative;
}
.earnings-summary-card .esc-action {
  margin-top: 16px;
  position: relative;
}

/* ---------- 提现按钮 ---------- */
.payout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #241B10;
  border: none;
  box-shadow: 0 4px 16px rgba(217, 185, 138, 0.3);
}
.payout-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 185, 138, 0.4);
}
.payout-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- 简易柱状图 ---------- */
.mini-chart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
}
.mini-chart h4 {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--gold-light);
}
.chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 180px;
  padding: 0 10px;
  gap: 8px;
}
.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar {
  width: 100%;
  max-width: 36px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  border-radius: 6px 6px 0 0;
  transition: height .6s ease;
  position: relative;
  min-height: 4px;
}
.chart-bar:hover {
  filter: brightness(1.15);
}
.chart-bar .bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px;
  color: var(--gold-light);
  font-weight: 600;
  white-space: nowrap;
}
.chart-label {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 课程网格（创作者后台） ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.course-grid-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.course-grid-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.course-grid-card .cgc-cover {
  height: 130px;
  display: grid;
  place-items: center;
  font-family: "SimSun", serif;
  font-size: 20px;
  letter-spacing: 0.15em;
  color: #fff;
  position: relative;
}
.course-grid-card .cgc-status {
  position: absolute;
  top: 10px;
  right: 10px;
}
.course-grid-card .cgc-body {
  padding: 14px;
}
.course-grid-card .cgc-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.course-grid-card .cgc-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.course-grid-card .cgc-meta b {
  color: var(--gold-light);
  font-weight: 600;
}
.course-grid-card .cgc-actions {
  display: flex;
  gap: 6px;
}
.course-grid-card .cgc-actions .btn {
  flex: 1;
  padding: 7px 8px;
  font-size: 12px;
}

/* ---------- 订单/收益明细列表 ---------- */
.order-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.order-list-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.order-list-header h4 {
  font-size: 15px;
  color: var(--gold-light);
}
.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.order-item:last-child {
  border-bottom: none;
}
.order-item:hover {
  background: rgba(154, 123, 79, 0.05);
}
.order-item .oi-course {
  flex: 1;
  min-width: 0;
}
.order-item .oi-course b {
  display: block;
  font-size: 13.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.order-item .oi-course small {
  font-size: 11.5px;
  color: var(--muted);
}
.order-item .oi-amount {
  text-align: right;
  flex-shrink: 0;
}
.order-item .oi-amount b {
  display: block;
  font-size: 15px;
  color: var(--gold-light);
}
.order-item .oi-amount small {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 学员列表 ---------- */
.student-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.student-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
}
.student-item:last-child {
  border-bottom: none;
}
.student-item:hover {
  background: rgba(154, 123, 79, 0.05);
}
.student-item .si-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine), var(--gold-deep));
  color: #fff;
  font-size: 16px;
  font-family: "SimSun", serif;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.student-item .si-info {
  flex: 1;
  min-width: 0;
}
.student-item .si-name {
  font-size: 14px;
  font-weight: 600;
}
.student-item .si-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.student-item .si-progress {
  flex-shrink: 0;
  text-align: right;
  width: 90px;
}
.student-item .si-progress .bar {
  margin-top: 4px;
  height: 5px;
}

/* ---------- 设置表单组 ---------- */
.settings-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.settings-section h3 {
  font-size: 16px;
  color: var(--gold-light);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.settings-avatar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.settings-avatar .sa-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #241B10;
  font-size: 26px;
  font-family: "SimSun", serif;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.settings-avatar .sa-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.settings-avatar .sa-actions small {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 标签输入 ---------- */
.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 44px;
}
.tag-input-wrap .tag-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: rgba(154, 123, 79, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(154, 123, 79, 0.3);
}
.tag-input-wrap .tag-item .tag-remove {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
}
.tag-input-wrap .tag-item .tag-remove:hover {
  color: var(--danger);
}
.tag-input-wrap input {
  flex: 1;
  min-width: 80px;
  background: none;
  border: none;
  outline: none;
  color: var(--cream);
  font-size: 13px;
  padding: 2px 4px;
}

/* ---------- 创作者后台移动端底部 Tab ---------- */
.instructor-tab-bar {
  display: none;
}

/* ---------- 热销课程列表 ---------- */
.top-courses {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.top-courses h4 {
  font-size: 15px;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.top-course-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.top-course-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.top-course-item:first-child {
  padding-top: 0;
}
.top-course-item .tc-rank {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--ink-2);
  color: var(--muted);
  flex-shrink: 0;
}
.top-course-item:nth-child(1) .tc-rank {
  background: linear-gradient(135deg, #FFD700, #DAA520);
  color: #241B10;
}
.top-course-item:nth-child(2) .tc-rank {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
  color: #241B10;
}
.top-course-item:nth-child(3) .tc-rank {
  background: linear-gradient(135deg, #CD7F32, #8B4513);
  color: #fff;
}
.top-course-item .tc-info {
  flex: 1;
  min-width: 0;
}
.top-course-item .tc-info b {
  display: block;
  font-size: 13.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.top-course-item .tc-info small {
  font-size: 11px;
  color: var(--muted);
}
.top-course-item .tc-revenue {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
  flex-shrink: 0;
}

/* ---------- 提现方式选择 ---------- */
.payout-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}
.payout-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
}
.payout-method:hover {
  border-color: var(--gold);
}
.payout-method.selected {
  border-color: var(--gold);
  background: rgba(154, 123, 79, 0.08);
}
.payout-method .pm-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--ink-2);
  flex-shrink: 0;
}
.payout-method .pm-info {
  flex: 1;
}
.payout-method .pm-info b {
  display: block;
  font-size: 14px;
}
.payout-method .pm-info small {
  font-size: 11.5px;
  color: var(--muted);
}
.payout-method .pm-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.payout-method.selected .pm-radio {
  border-color: var(--gold);
}
.payout-method.selected .pm-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-light);
}

/* ---------- 提现记录 ---------- */
.payout-record {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.payout-record:last-child {
  border-bottom: none;
}
.payout-record .pr-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-light);
  min-width: 90px;
}
.payout-record .pr-info {
  flex: 1;
  min-width: 0;
}
.payout-record .pr-info b {
  display: block;
  font-size: 13px;
}
.payout-record .pr-info small {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 搜索栏（后台） ---------- */
.admin-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-toolbar .search-input {
  flex: 1;
  min-width: 200px;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}
.admin-toolbar .search-input:focus {
  border-color: var(--gold);
}
.admin-toolbar select {
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}
.admin-toolbar select:focus {
  border-color: var(--gold);
}

/* ================= 安卓浏览器 backdrop-filter 覆盖 =================
   安卓 Chrome/WebView 的 backdrop-filter: blur() 有已知渲染 bug：
   当 CSS 变量变化（主题切换 data-theme）时，带 blur 的层不会重新绘制，
   会残留一层"模糊罩"覆盖在内容上，导致切换后看起来像被模糊罩住。
   解决方案：安卓上移除 backdrop-filter，背景用 CSS 变量（本身就是
   纯色半透明 rgba），视觉上差异极小但彻底避免渲染 bug。
   JS 端 theme-boot.js 检测安卓 UA 后给 <html> 加 no-backdrop-blur class。 */
html.no-backdrop-blur .app-topbar,
html.no-backdrop-blur .app-tabs,
html.no-backdrop-blur .topbar,
html.no-backdrop-blur .lang-menu,
html.no-backdrop-blur .gift-modal,
html.no-backdrop-blur .crop-overlay,
html.no-backdrop-blur .msg-tab-bar,
html.no-backdrop-blur .instructor-tab-bar,
html.no-backdrop-blur .campaign-badge,
html.no-backdrop-blur .sc-wish {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ---------- 审核操作区 ---------- */
.review-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.review-actions .btn {
  flex: 1;
}
.review-comment {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
  margin-top: 10px;
}
.review-comment:focus {
  border-color: var(--gold);
}

/* ---------- 空状态增强 ---------- */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
}
.empty-state .es-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.empty-state h4 {
  font-size: 16px;
  color: var(--beige);
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 13px;
  margin-bottom: 16px;
}

/* ---------- 创作者后台响应式 ---------- */
@media (max-width: 860px) {
  .instructor-layout {
    flex-direction: column;
  }
  .instructor-sidebar {
    display: none;
  }
  .instructor-main {
    padding: 16px;
    padding-bottom: 80px;
  }
  .instructor-main .page-head h2 {
    font-size: 18px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .instructor-stat-card .sc-value {
    font-size: 22px;
  }

  /* 创作者后台移动端底部 Tab */
  .instructor-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .instructor-tab-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 0 8px;
    color: var(--muted);
    font-size: 11px;
    text-decoration: none;
    transition: color .18s;
  }
  .instructor-tab-bar a .tab-ic {
    font-size: 20px;
  }
  .instructor-tab-bar a.active {
    color: var(--gold-light);
  }
  .instructor-tab-bar a.active .tab-ic {
    filter: drop-shadow(0 0 6px rgba(217, 185, 138, 0.45));
  }

  .course-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }
  .chart-container {
    height: 140px;
  }
  .earnings-summary-card .esc-amount {
    font-size: 28px;
  }
}

@media (min-width: 861px) and (max-width: 1199px) {
  .instructor-sidebar {
    width: 190px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .course-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (min-width: 1200px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ——「我的」页改版：会员卡 / 宫格 / 折叠组 —— */
.vip-card { display:flex; align-items:center; gap:12px; background:linear-gradient(150deg,#2E281F,#1C1A17 70%); border:1px solid rgba(217,185,138,.4); border-radius:14px; padding:14px 16px; margin-top:16px; color:#f5e6c8; }
.vip-card .v-ic { font-size:26px; display:inline-flex; align-items:center; }
.invite-banner .ib-ic { display:inline-flex; align-items:center; }
/* 「更多服务」列表图标：统一为单色线条 SVG（与宫格同风格），继承 --accent-ink 不跳色 */
.cell .cell-ic svg { display:block; }
.vip-card .v-main { flex:1; min-width:0; }
.vip-card .v-main b { display:block; font-size:16px; line-height:1.45; }
.vip-card .v-main small { display:block; margin-top:3px; font-size:13px; line-height:1.6; color:rgba(245,230,200,.8); }
.vip-card .btn { flex-shrink:0; }

/* v1.29 推广横幅卡：会员卡下方强视觉入口（暗金酒红渐变，比会员卡更亮眼） */
.invite-banner { display:flex; align-items:center; gap:12px; background:linear-gradient(150deg,#2E281F,#1C1A17 70%); border:1px solid rgba(217,185,138,.42); border-radius:14px; padding:14px 16px; margin-top:16px; color:#FDF8EC; box-shadow:0 6px 18px rgba(28,26,23,.18); }
.invite-banner .ib-ic { font-size:26px; color:#D9B98A; }
.invite-banner .ib-main { flex:1; min-width:0; }
.invite-banner .ib-main b { display:block; font-size:16px; line-height:1.45; }
.invite-banner .ib-main small { display:block; margin-top:3px; font-size:13px; line-height:1.6; color:rgba(253,248,236,.8); }
.invite-banner .btn { flex-shrink:0; }
/* 亮色主题：会员卡 / 邀请卡 / 推广收益卡改为米白卡片——深近黑块压在暖纸白页面上过重，
   且内文取色（含 a 元素继承色）在亮色下会变成深墨字压深底，出现「文字看不见」 */
:root[data-theme="light"] .vip-card,
:root[data-theme="light"] .invite-banner {
  background:linear-gradient(150deg,#FFFDF8,#F6F1E6 70%);
  border-color:rgba(154,123,79,.34);
  color:#211D17;
  box-shadow:0 4px 14px rgba(74,58,38,.07);
}
:root[data-theme="light"] .vip-card .v-main small,
:root[data-theme="light"] .invite-banner .ib-main small { color:#5A5346; }
:root[data-theme="light"] .vip-card .v-ic,
:root[data-theme="light"] .invite-banner .ib-ic { color:#8C6E43; }
:root[data-theme="light"] .vip-card .txt-gold { color:var(--gold-ink); }
.me-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:0; }
.me-g { position:relative; display:flex; flex-direction:column; align-items:center; gap:7px; padding:15px 2px 13px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--cream); }
.me-g .g-ic { font-size: 27px; line-height: 1; color: var(--accent-ink); }
.me-g .g-t { font-size:13.5px; font-weight:500; letter-spacing:.02em; color:var(--cream); }
.me-g .g-badge { position:absolute; top:6px; right:10px; min-width:16px; height:16px; line-height:16px; padding:0 4px; border-radius:8px; background:#c0392b; color:#fff; font-size:10px; text-align:center; }
details.more-group { margin-top:12px; border:1px solid var(--line); border-radius:12px; background:rgba(127,127,127,.06); overflow:hidden; }
details.more-group > summary { display:flex; align-items:center; gap:8px; padding:13px 14px; cursor:pointer; list-style:none; font-size:14px; }
details.more-group > summary::-webkit-details-marker { display:none; }
details.more-group > summary small { color:var(--muted, #9a8f7f); font-weight:400; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
details.more-group > summary .chev { margin-left:auto; transition:transform .2s; color:var(--muted, #9a8f7f); }
details.more-group[open] > summary .chev { transform:rotate(90deg); }
details.more-group .cell { border-top:1px solid var(--line); }

/* LOGO 显示时隐藏重复站名（LOGO 图自带品牌字样），避免顶栏/侧栏文字与图拥挤 */
body.logo-on .tb-title, body.logo-on .side-name { display: none; }

/* ============================================================
   v1.26 质感升级 · 阶段1（2026-10 跨部门推演决议）：
   「暖金玻璃」伪玻璃语言 —— 分层光影（顶部高光+底部内影+微渐变）模拟玻璃质感
   · 禁止 backdrop-filter（安卓硬约束），用半透明光影层替代真实模糊
   · 动效克制：150-250ms 过渡，只动 transform/opacity/box-shadow（GPU 合成）
   · 全部走令牌 var(--xxx) 双主题适配；亮色固定深色资产白名单不受影响
   · 范围：全局令牌 + 按钮 / 卡片 / 顶栏三大容器（纹理与逐页模块在阶段2/3）
   ============================================================ */
:root {
  /* 质感令牌（暗色语义，浅色主题在下方覆盖） */
  --btn-hl: rgba(255, 236, 200, 0.20);     /* 按钮顶部高光：模拟玻璃反光 */
  --btn-ll: rgba(0, 0, 0, 0.26);           /* 按钮底部内影：模拟厚度 */
  --btn-drop: rgba(0, 0, 0, 0.20);         /* 按钮外投影 */
  --card-hl: rgba(255, 236, 200, 0.055);   /* 卡片顶部高光带 */
  --card-edge: rgba(217, 185, 138, 0.09);  /* 金调玻璃 1px 内描边 */
  --card-shadow: 0 5px 16px rgba(0, 0, 0, 0.26), 0 1px 3px rgba(0, 0, 0, 0.28);
  --card-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.34), 0 2px 6px rgba(0, 0, 0, 0.26);
  --bar-shadow: 0 4px 16px rgba(0, 0, 0, 0.30);
  --tx-dur: 0.2s;                          /* 统一克制过渡时长 */
  --tx-ease: cubic-bezier(0.33, 1, 0.68, 1);
}
:root[data-theme="light"] {
  --btn-hl: rgba(255, 255, 255, 0.55);
  --btn-ll: rgba(122, 92, 51, 0.20);
  --btn-drop: rgba(122, 92, 51, 0.16);
  --card-hl: rgba(255, 255, 255, 0.60);
  --card-edge: rgba(154, 123, 79, 0.13);
  --card-shadow: 0 4px 14px rgba(122, 92, 51, 0.10), 0 1px 3px rgba(122, 92, 51, 0.07);
  --card-shadow-hover: 0 10px 24px rgba(122, 92, 51, 0.16), 0 2px 6px rgba(122, 92, 51, 0.09);
  --bar-shadow: 0 4px 16px rgba(122, 92, 51, 0.10);
}

/* ---------- 按钮：三层光影（高光+内影+外投影），像实体按键一样能按 ---------- */
.btn {
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 var(--btn-hl),
    inset 0 -1px 0 var(--btn-ll),
    0 2px 6px var(--btn-drop);
  transition:
    transform var(--tx-dur) var(--tx-ease),
    box-shadow var(--tx-dur) var(--tx-ease),
    filter var(--tx-dur) var(--tx-ease),
    border-color var(--tx-dur), color var(--tx-dur);
}
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 var(--btn-hl), inset 0 -1px 0 var(--btn-ll); }
.btn-gold { background: linear-gradient(160deg, #85683D 0%, #7A5C33 45%, var(--gold-deep) 100%); }
.btn-gold:hover { filter: brightness(1.08) saturate(1.05); transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--btn-hl), inset 0 -1px 0 var(--btn-ll), 0 6px 14px rgba(122, 92, 51, 0.35); }
.btn-wine:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--btn-hl), inset 0 -1px 0 var(--btn-ll), 0 6px 14px rgba(94, 31, 43, 0.40); }
.btn-ghost { background: linear-gradient(180deg, var(--card-hl), transparent); }
.btn-ghost:hover { transform: translateY(-1px); }

/* ---------- 卡片：圆角柔化 + 双层阴影 + 顶部高光带（底色呼应不"飘"） ---------- */
.card {
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 42%;
  background: linear-gradient(180deg, var(--card-hl), transparent);
  pointer-events: none;
}
.card:hover { box-shadow: var(--card-shadow-hover); }
/* 金环会员档位卡 hover 保持金环不丢 */
.tier-card.current:hover { box-shadow: 0 0 0 1px var(--gold), var(--card-shadow-hover); }

/* ---------- 顶栏：底部投影与页面内容分层，强化纵深感 ---------- */
.app-topbar { box-shadow: var(--bar-shadow); }

/* ---------- 无障碍：尊重系统「减弱动效」设置 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============================================================
   v1.26 质感升级 · 阶段2（三大高频页模块）+ 阶段3（纹理/动效打磨）
   · 范围：筛选 chips / 分段器 / 列表卡 / 我的页宫格 / 首页快捷宫格
   · 纹理：卡片高光带叠加极细 45° 反光纹（repeating-gradient，透明度 ≤0.03）
   · 动效：主题切换颜色平滑过渡 + 键盘焦点金环（可达性）
   · 依旧零 backdrop-filter、零常驻动画、全令牌双主题
   ============================================================ */

/* ---------- 筛选 chips / 分段器：胶囊轻质感 ---------- */
.chip {
  box-shadow: inset 0 1px 0 var(--card-hl), 0 1px 3px var(--btn-drop);
  transition: background-color var(--tx-dur) var(--tx-ease), border-color var(--tx-dur), color var(--tx-dur), box-shadow var(--tx-dur) var(--tx-ease), transform var(--tx-dur) var(--tx-ease);
}
.chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.chip:active { transform: translateY(0) scale(.97); }
.chip.on { box-shadow: inset 0 1px 0 var(--btn-hl), inset 0 -1px 0 var(--btn-ll), 0 2px 6px var(--btn-drop); }
.seg { box-shadow: inset 0 2px 5px var(--btn-ll); }
.seg a { transition: background-color var(--tx-dur) var(--tx-ease), color var(--tx-dur); }
.seg a.on { box-shadow: inset 0 1px 0 var(--btn-hl), 0 1px 4px var(--btn-drop); }

/* ---------- 列表卡 .l-card：阴影分层 + 悬浮反馈 ---------- */
.l-card {
  box-shadow: var(--card-shadow);
  transition: transform var(--tx-dur) var(--tx-ease), box-shadow var(--tx-dur) var(--tx-ease), border-color var(--tx-dur), background-color var(--tx-dur);
}
.l-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); border-color: var(--card-edge); }

/* ---------- 我的页宫格 .me-g / 首页快捷宫格 .q-item ---------- */
.me-g {
  box-shadow: inset 0 1px 0 var(--card-hl), 0 1px 3px var(--btn-drop);
  transition: transform var(--tx-dur) var(--tx-ease), box-shadow var(--tx-dur) var(--tx-ease), border-color var(--tx-dur), background-color var(--tx-dur);
}
.me-g:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); border-color: var(--card-edge); }
.me-g:active { transform: translateY(0) scale(.96); }
.q-item { transition: transform var(--tx-dur) var(--tx-ease), background-color var(--tx-dur); }
.q-item:hover { transform: translateY(-2px); }

/* ---------- 阶段3 · 纹理：卡片高光带叠极细 45° 反光纹（玻璃磨砂暗示） ---------- */
.card::before {
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--card-hl), transparent);
}

/* ---------- 阶段3 · 动效：主题切换颜色平滑过渡（0.25s，只过渡可插值属性） ---------- */
body { transition: color 0.25s ease; }
.card, .chip, .l-card, .seg, .modal, .btn { transition-property: transform, box-shadow, filter, border-color, color, background-color; }

/* ---------- 阶段3 · 可达性：键盘焦点金环 ---------- */
.btn:focus-visible, .chip:focus-visible, .l-card:focus-visible, .q-item:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
