/* ═════════════════════════════════════════════════════
   智动教练 MotionAgent — 产品演示（现代简约商务主题）
   设计原则：中性底色 · 低饱和点缀 · 克制圆角 · 纸面阴影 · 精致留白
   ═════════════════════════════════════════════════════ */

:root {
  /* 中性底色：冷灰白铺底，白卡浮于其上形成层次 */
  --bg: #F6F8FA;
  --bg-2: #EEF1F4;
  --card: #FFFFFF;
  --card-2: #F8FAFB;
  --line: #E4E9EF;
  --line-2: #EDF1F5;
  /* 墨色文字三级层级 */
  --txt: #1B2534;
  --txt-2: #525E6E;
  --txt-3: #8B96A6;
  /* 品牌主色：低饱和青玉（沉稳不刺眼） */
  --mint: #0D9488;
  --mint-2: #14A89A;
  --mint-bg: #E9F6F4;
  /* 辅助语义色：统一降饱和加深，仅作功能点缀 */
  --blue: #3D7BC0;
  --blue-bg: #EDF3FA;
  --orange: #DE6A1B;
  --orange-bg: #FBF0E5;
  --purple: #6F5BBE;
  --purple-bg: #F1EEF9;
  --coral: #E26B52;
  --coral-bg: #FAEEE9;
  --red: #D04F40;
  --red-bg: #F9ECEA;
  --gold: #C9860A;
  --gold-bg: #FAF3E1;
  /* 渐变收敛为同色系深浅过渡，去除高饱和撞色 */
  --grad-main: linear-gradient(135deg, #0FA491, #0B7F74);
  --grad-hero: linear-gradient(135deg, #F2F8F6, #F3F6F9);
  /* 圆角体系：统一收敛，告别过度圆润 */
  --radius: 14px;
  /* 纸面阴影：中性、轻量、有层次，无彩色发光 */
  --shadow: 0 1px 2px rgba(27, 37, 52, .04), 0 3px 10px rgba(27, 37, 52, .04);
  --shadow-lg: 0 12px 32px rgba(27, 37, 52, .10), 0 3px 8px rgba(27, 37, 52, .05);
  --font: 'Segoe UI', -apple-system, 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* App 壳布局：页面本身不滚动，顶栏与底部导航永远固定，仅主内容区内部滚动 */
html, body { height: 100%; overflow: hidden; }
#app { height: 100%; }
.app-root { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.app-shell { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body {
  font-family: var(--font); background: var(--bg); color: var(--txt);
  min-height: 100vh; font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D3DBE3; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #B7C3CF; }
::-webkit-scrollbar-track { background: transparent; }
button { font-family: var(--font); }

/* ═══════════ 顶栏（App 壳固定项，不随内容滚动） ═══════════ */
.topbar {
  position: static; flex: 0 0 auto; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  height: 62px; padding: 0 32px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 11px; user-select: none; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-main); display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(13, 148, 136, .22);
}
.logo-icon svg { width: 24px; height: 24px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.12; }
.logo-cn { font-size: 17px; font-weight: 800; color: var(--txt); letter-spacing: .5px; }
.logo-en { font-size: 10px; color: var(--txt-3); letter-spacing: 2.6px; text-transform: uppercase; font-weight: 600; }

.nav { display: flex; gap: 6px; margin-left: 10px; }
.nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 6px; border-radius: 10px;
  color: var(--txt-2); font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: transform .22s cubic-bezier(.34, 1.4, .64, 1), background-color .2s ease,
              color .2s ease, border-color .2s ease, box-shadow .22s ease;
  border: 1px solid transparent; user-select: none; position: relative;
}
/* 彩色图标底块：默认即带专属色 tint，与界面语义色系一致 */
.nav-ico {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0;
  color: var(--hue, var(--mint));
  background: var(--hue-bg, var(--mint-bg));
  transition: transform .25s cubic-bezier(.34, 1.4, .64, 1),
              background-color .2s ease, color .2s ease, box-shadow .22s ease;
}
.nav-link:hover { color: var(--txt); transform: translateY(-1px); }
.nav-link:hover .nav-ico { transform: scale(1.1) rotate(-3deg); }
.nav-link:active { transform: translateY(0); }
.nav-link:active .nav-ico { transform: scale(.97); }
/* 当前页：白色卡片化 + 文字专属色 + 图标实色点亮（白图标） */
.nav-link.active {
  color: var(--hue, var(--mint)); background: var(--card);
  border-color: var(--line-2);
  box-shadow: 0 1px 3px rgba(27, 37, 52, .06), 0 2px 8px rgba(27, 37, 52, .04);
}
.nav-link.active .nav-ico {
  background: var(--hue, var(--mint)); color: #fff;
  box-shadow: 0 2px 6px rgba(27, 37, 52, .16);
}
.nav-link.active:hover { transform: none; background: var(--card); }
/* 当前页指示条：专属色渐变，切换时弹性展开 */
.nav-link::after {
  content: ''; position: absolute; bottom: -1px; left: 50%;
  width: 22px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--hue, var(--mint)), transparent);
  transform: translateX(-50%) scaleX(0);
  transition: transform .3s cubic-bezier(.34, 1.4, .64, 1);
}
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

/* ═══════════ 移动端底部导航 ═══════════ */
.tabbar { display: none; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.trial-timer {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--txt-2); font-weight: 600;
  padding: 7px 15px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: all .2s;
}
.trial-timer:hover { border-color: rgba(13, 148, 136, .35); background: var(--mint-bg); }
/* VIP 状态：会员状态在体验计时器位置切换（低饱和商务金） */
.trial-timer.vip {
  background: linear-gradient(135deg, #C9962E, #A97718); border: none; color: #fff;
  box-shadow: 0 3px 10px rgba(169, 119, 24, .25);
}
.trial-timer.vip b { color: #fff; }
.trial-timer.vip:hover { filter: brightness(1.05); transform: translateY(-1px); }
.trial-timer b { color: var(--mint); font-variant-numeric: tabular-nums; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint-2); animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,148,136,.4); }
  50% { box-shadow: 0 0 0 6px rgba(13,148,136,0); }
}
.lang-toggle {
  padding: 7px 13px; border-radius: 999px; font-size: 11.5px; cursor: pointer; font-weight: 600;
  background: var(--card-2); color: var(--txt-2); border: 1px solid var(--line);
  transition: all .2s;
}
.lang-toggle:hover {
  color: var(--mint); border-color: rgba(13, 148, 136, .35); background: var(--mint-bg);
  transform: translateY(-1px); box-shadow: 0 3px 8px rgba(27, 37, 52, .08);
}
.lang-toggle:active { transform: translateY(0); box-shadow: none; }
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #6F5BBE, #3D7BC0);
  display: grid; place-items: center; font-weight: 700; font-size: 14.5px; color: #fff;
  cursor: pointer; box-shadow: 0 2px 8px rgba(27, 37, 52, .18);
  transition: transform .2s;
}
.user-avatar:hover { transform: scale(1.05); }
.user-avatar.open {
  box-shadow: 0 0 0 3px rgba(111, 91, 190, .2), 0 2px 8px rgba(27, 37, 52, .18);
}

/* ═══════════ 布局 ═══════════ */
.main-wrap {
  max-width: 1280px; margin: 0 auto; width: 100%;
  padding: 32px 36px 64px;
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
}
.page { display: none; }
.page.active { display: block; animation: pageIn .45s cubic-bezier(.3, .72, .24, 1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(18px) scale(.992); }
  to { opacity: 1; transform: none; }
}
/* 登录后主应用整体入场（与页面切换同曲线，丝滑衔接） */
.app-shell { animation: pageIn .5s cubic-bezier(.3, .72, .24, 1) both; }

/* ═══════════ 顶栏用户菜单 ═══════════ */
.user-zone { position: relative; }
.um-mask { position: fixed; inset: 0; z-index: 90; }
.user-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 95;
  width: 228px; background: var(--card); border-radius: 14px;
  border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(27, 37, 52, .14), 0 4px 10px rgba(27, 37, 52, .05);
  padding: 8px; transform-origin: top right;
  animation: menuIn .24s cubic-bezier(.3, .9, .35, 1.15) both;
}
@keyframes menuIn {
  from { opacity: 0; transform: scale(.92) translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.um-head {
  display: flex; gap: 11px; align-items: center;
  padding: 10px 10px 13px; border-bottom: 1px solid var(--line-2); margin-bottom: 9px;
}
.um-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--grad-main);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.um-head b { font-size: 14px; display: block; }
.um-head small { font-size: 11px; color: var(--txt-3); }
/* 双按钮并排：个人中心（主）· 退出登录（次） */
.um-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 3px 3px; }
.um-act {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px 10px; border-radius: 12px; border: none; cursor: pointer;
  font-family: var(--font); font-size: 12px; font-weight: 700;
  transition: all .2s; line-height: 1;
}
.um-act span { font-size: 12px; }
.um-act.primary {
  background: var(--mint-bg); color: var(--mint);
  border: 1px solid rgba(13, 148, 136, .25);
}
.um-act.primary:hover {
  background: #DCEFEA; border-color: rgba(13, 148, 136, .4);
  transform: translateY(-1px); box-shadow: 0 4px 10px rgba(27, 37, 52, .08);
}
.um-act.exit {
  background: var(--card-2); color: var(--txt-3);
  border: 1px solid var(--line-2);
}
.um-act.exit:hover {
  background: var(--red-bg); color: var(--red); border-color: rgba(208, 79, 64, .3);
  transform: translateY(-1px); box-shadow: 0 4px 10px rgba(27, 37, 52, .08);
}

/* ═══════════ 登录页 ═══════════ */
.login-page {
  flex: 1 1 auto; min-height: 0; display: grid; place-items: center;
  background: var(--bg); position: relative; overflow-y: auto; padding: 40px 20px;
}
.login-blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .42;
  animation: blobFloat 9s ease-in-out infinite alternate; pointer-events: none;
}
.login-blob.b1 { width: 430px; height: 430px; background: #DFF0EC; top: -130px; left: -110px; }
.login-blob.b2 { width: 390px; height: 390px; background: #E3ECF4; bottom: -110px; right: -90px; animation-delay: -4.5s; }
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(42px, 32px) scale(1.12); }
}
.login-card {
  position: relative; z-index: 2; width: min(420px, 94vw);
  background: var(--card); border-radius: 20px; padding: 42px 40px 34px;
  box-shadow: 0 20px 50px rgba(27, 37, 52, .10), 0 2px 8px rgba(27, 37, 52, .04);
  border: 1px solid var(--line-2);
  animation: cardIn .55s cubic-bezier(.3, .72, .24, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.login-brand { text-align: center; margin-bottom: 28px; }
.login-logo {
  width: 68px; height: 68px; border-radius: 18px; margin: 0 auto 16px;
  background: var(--grad-main); display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(13, 148, 136, .24);
  animation: logoBreath 3.2s ease-in-out infinite;
}
@keyframes logoBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.login-name { font-size: 24px; font-weight: 800; color: var(--txt); letter-spacing: 1px; }
.login-en { font-size: 11px; color: var(--txt-3); letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-top: 3px; }
.login-slogan { margin-top: 10px; color: var(--txt-2); font-size: 13px; font-weight: 600; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-field label { font-size: 12px; color: var(--txt-3); font-weight: 700; margin-bottom: 7px; display: block; }
.login-field input {
  width: 100%; padding: 12px 15px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card-2); outline: none; font-size: 14px; font-family: var(--font);
  color: var(--txt); transition: all .2s; box-sizing: border-box;
}
.login-field input:focus {
  border-color: var(--mint); background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, .12);
}
.login-btn { width: 100%; padding: 13px; font-size: 14.5px; border-radius: 10px; margin-top: 6px; }
/* 密码框右侧眼睛图标（显示/隐藏密码） */
.login-field .pwd-wrap { position: relative; }
.login-field .pwd-wrap input { padding-right: 40px; }
.pwd-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  cursor: pointer; color: var(--txt-3); display: flex; align-items: center;
  transition: color .2s; user-select: none;
}
.pwd-eye:hover { color: var(--mint); }
.login-btn.loading { opacity: .75; pointer-events: none; }
.login-or {
  display: flex; align-items: center; gap: 12px;
  color: var(--txt-3); font-size: 12px; margin: 18px 0 14px; font-weight: 600;
}
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.login-guest { width: 100%; padding: 12px; }
.login-feats { display: flex; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.login-feats span {
  font-size: 10.5px; color: var(--txt-3); background: var(--card-2);
  border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 999px; font-weight: 600;
}
.login-tip { text-align: center; margin-top: 16px; font-size: 11.5px; color: var(--txt-3); }

/* ═══════════ 通用组件 ═══════════ */
.btn {
  padding: 10px 22px; border-radius: 10px; border: none; cursor: pointer;
  font-size: 13.5px; font-weight: 600;
  transition: all .2s ease; letter-spacing: .2px;
}
.btn.primary {
  background: var(--grad-main); color: #fff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, .20);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(13, 148, 136, .26); }
.btn.mint { background: var(--mint); color: #fff; }
.btn.mint:hover { background: #0B7F74; transform: translateY(-1px); }
.btn.ghost {
  background: var(--card); color: var(--txt-2); border: 1px solid var(--line);
}
.btn.ghost:hover { color: var(--mint); border-color: rgba(13, 148, 136, .4); background: var(--mint-bg); }
.btn.big { padding: 13px 30px; font-size: 14.5px; border-radius: 11px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

.chip {
  padding: 7px 16px; border-radius: 999px; font-size: 12.5px; cursor: pointer; font-weight: 600;
  background: var(--card); color: var(--txt-2);
  border: 1px solid var(--line); transition: all .2s;
}
.chip:hover {
  color: var(--txt); border-color: #C9D4DF; transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(27, 37, 52, .06);
}
.chip:active { transform: translateY(0); box-shadow: none; }
.chip.active {
  background: var(--mint-bg); color: var(--mint);
  border-color: rgba(13, 148, 136, .35);
}

.rcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.rcard h3 {
  font-size: 15.5px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.rcard .sub { font-size: 12.5px; color: var(--txt-3); font-weight: 500; }

.c-mint { color: var(--mint); } .c-orange { color: var(--orange); }
.c-red { color: var(--red); } .c-blue { color: var(--blue); } .c-purple { color: var(--purple); }
.grad-text {
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ═══════════ 动作广场 ═══════════ */
.hero {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 44px 48px; margin-bottom: 26px;
  background: var(--grad-hero);
  border: 1px solid var(--line); border-radius: 18px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -60px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,.08), transparent 65%);
}
.hero-text h1 { font-size: 29px; font-weight: 800; line-height: 1.35; margin-bottom: 12px; letter-spacing: .3px; }
.hero-text p { color: var(--txt-2); font-size: 14.5px; font-weight: 500; }
.hero-badges { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.hbadge {
  font-size: 12px; font-weight: 600; color: var(--mint);
  background: rgba(255,255,255,.8); padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(13, 148, 136, .22);
}
/* 移动端窄屏（≤640px）：四个能力徽章改为两列网格，确保每行至少两个并排展示，
   文字居中、允许换行不溢出（须置于 .hero-badges 基础规则之后，同特异性按源码顺序生效） */
@media (max-width: 640px) {
  .hero-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hbadge { text-align: center; padding: 6px 8px; line-height: 1.3; }
}
.hero-search {
  display: flex; align-items: center; gap: 10px; flex: 0 0 300px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 17px; transition: all .25s;
  box-shadow: var(--shadow); position: relative; z-index: 1;
}
.hero-search:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(13,148,136,.12); }
.hero-search input {
  background: none; border: none; outline: none; color: var(--txt);
  font-family: var(--font); font-size: 14px; width: 100%; font-weight: 500;
}

.filter-bar {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding: 15px 26px; margin-bottom: 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filter-group { display: flex; align-items: center; gap: 12px; }
.filter-group > label { font-size: 12.5px; color: var(--txt-3); font-weight: 700; white-space: nowrap; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* 紧凑下拉选择器（训练页切换标准视频 / 统计页添加动作目标共用）：
   自绘箭头替代原生外观，与卡片输入控件风格统一，大幅节省纵向空间 */
.mini-select {
  padding: 9px 32px 9px 13px; border-radius: 9px;
  border: 1px solid var(--line); outline: none; font-family: var(--font);
  font-size: 12.5px; color: var(--txt); font-weight: 600;
  background-color: var(--card-2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%2393A1B0' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
  appearance: none; -webkit-appearance: none;
  cursor: pointer; transition: all .2s;
}
.mini-select:hover { border-color: rgba(13, 148, 136, .4); }
.mini-select:focus { border-color: var(--mint); background-color: #fff; box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }

.grid-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: nowrap; }
.grid-head h2 { font-size: 20px; font-weight: 750; flex-shrink: 0; }
.grid-head .sub { font-size: 13px; color: var(--txt-3); }

/* 板块顶部类型 Tab（全部 / 图片 / 视频 · 子界面切换）：分段控件风格，靠右对齐，与标题固定同行 */
.type-tabs {
  display: inline-flex; align-items: center;
  margin-left: auto; padding: 3px; gap: 2px;
  background: var(--bg-2); border-radius: 10px;
  flex-shrink: 0;
}
.ttab {
  border: none; background: transparent; padding: 5px 14px;
  border-radius: 8px; font-size: 12.5px; font-weight: 600;
  color: var(--txt-3); cursor: pointer; white-space: nowrap;
  transition: all .2s;
}
.ttab:hover { color: var(--txt-2); }
.ttab.active {
  background: var(--card); color: var(--mint);
  box-shadow: 0 1px 3px rgba(27, 37, 52, .08);
}

/* 类型 Tab / 筛选组合无内容时的空状态占位 */
.type-empty {
  grid-column: 1 / -1;
  display: grid; place-items: center; gap: 7px;
  padding: 52px 20px; text-align: center;
  background: var(--card); border: 1.5px dashed var(--line);
  border-radius: var(--radius);
}
.type-empty .te-ico { font-size: 34px; filter: grayscale(.15); }
.type-empty b { font-size: 14px; color: var(--txt-2); }
.type-empty small { font-size: 12px; color: var(--txt-3); }

/* 窄屏下标题与 Tab 压缩但仍在同一行，不折行 */
@media (max-width: 480px) {
  .grid-head { gap: 10px; }
  .grid-head h2 { font-size: 18px; }
  .type-tabs { padding: 2.5px; border-radius: 11px; }
  .ttab { padding: 5px 11px; font-size: 12px; }
}

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 22px; }
.vcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: all .25s ease;
}
.vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(13, 148, 136, .3); }
.v-thumb {
  height: 150px; position: relative; display: grid; place-items: center;
}
.v-emoji { font-size: 58px; filter: drop-shadow(0 6px 12px rgba(27, 37, 52, .16)); transition: transform .3s; }
.vcard:hover .v-emoji { transform: scale(1.14) rotate(-4deg); }
.v-dur {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(27, 37, 52, .62); padding: 3px 10px; border-radius: 6px;
  font-size: 11px; color: #fff; font-weight: 600; backdrop-filter: blur(4px);
}
.v-lock {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,.92); color: var(--purple);
  border: 1px solid rgba(111, 91, 190, .3);
  padding: 4px 11px; border-radius: 8px; font-size: 11px; font-weight: 600; backdrop-filter: blur(4px);
}
.v-official {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.92); color: var(--mint);
  border: 1px solid rgba(13, 148, 136, .3);
  padding: 4px 11px; border-radius: 8px; font-size: 11px; font-weight: 600; backdrop-filter: blur(4px);
}
.v-body { padding: 16px 18px 18px; }
.v-title { font-size: 14.5px; font-weight: 700; margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.v-tags { display: flex; gap: 7px; margin-bottom: 13px; flex-wrap: wrap; }
.vtag-sm {
  font-size: 11px; padding: 3px 10px; border-radius: 7px; font-weight: 600;
  background: var(--bg-2); color: var(--txt-2); border: 1px solid var(--line);
}
.v-teacher { display: flex; align-items: center; gap: 9px; padding-top: 13px; border-top: 1px solid var(--line-2); }
.v-face {
  width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff; cursor: pointer; flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
}
.v-face:hover { transform: scale(1.12); box-shadow: 0 0 0 4px rgba(13, 148, 136, .18); }
.v-face.official {
  background: var(--grad-main); position: relative;
}
/* 官方头像：人物剪影 Logo（替代文字，与顶栏/登录页 Logo 同源） */
.v-face.official::after {
  content: '';
  position: absolute; inset: 0;
  background: center / 62% 62% no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M14.4 1.3L12.9 1.2L11.4 1.5L10.6 2.1L10.3 2.7L10.1 3.6L10.1 5.5L10.4 6.6L9.7 8.5L9.2 11.3L8.8 16.3L8.8 21.7L8.0 22.3L8.0 22.8L9.1 22.6L9.7 22.2L10.3 16.9L11.4 13.4L12.4 16.6L13.1 22.1L13.3 22.3L14.0 22.6L14.9 22.6L14.7 22.1L14.0 21.6L13.9 16.4L13.3 11.5L15.8 10.1L16.1 9.6L16.2 9.2L14.7 6.9L13.3 5.8L13.5 5.5L14.2 5.3L14.8 4.6L15.0 4.8L15.5 4.6L15.0 3.6L14.5 3.3L13.6 3.3L13.2 3.6L12.9 4.3L12.9 4.8L12.5 5.3L11.2 4.4L11.3 2.9L11.6 2.5L13.3 1.8L14.8 1.9L14.7 1.5Z M13.8 8.1L14.1 8.4L14.6 9.0L15.0 9.3L15.0 9.4L14.6 9.8L13.6 10.5L13.5 10.4L13.6 9.7L13.7 8.2Z' fill='%23fff' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.v-tname { font-size: 13px; color: var(--txt-2); cursor: pointer; font-weight: 600; }
.v-tname:hover { color: var(--mint); }
.v-tname .vf { color: var(--blue); font-size: 11px; margin-left: 3px; }
.v-stats { margin-left: auto; display: flex; gap: 12px; font-size: 12px; color: var(--txt-3); font-weight: 600; }
.v-stats span { display: flex; align-items: center; gap: 3px; }
.v-actions { display: flex; gap: 10px; margin-top: 14px; }
.v-dl {
  flex: 1; padding: 9px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--txt-2); font-size: 13px; cursor: pointer;
  transition: all .2s; font-weight: 600;
}
.v-dl:hover { border-color: rgba(13, 148, 136, .4); color: var(--mint); background: var(--mint-bg); }
.v-dl.done { background: var(--mint-bg); border-color: rgba(13, 148, 136, .35); color: var(--mint); cursor: default; }
.v-like {
  padding: 9px 15px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--txt-2); font-size: 13px; cursor: pointer;
  transition: all .2s; font-weight: 600;
}
.v-like:hover { color: var(--coral); border-color: rgba(226, 107, 82, .4); background: var(--coral-bg); }
.v-like.liked { color: var(--coral); background: var(--coral-bg); border-color: rgba(226, 107, 82, .4); }
.dl-progress {
  flex: 1; height: 36px; border-radius: 9px; background: var(--bg-2);
  border: 1px solid rgba(13, 148, 136, .3); overflow: hidden; position: relative;
}
.dl-progress .fill {
  height: 100%; background: var(--grad-main); width: 0%;
  transition: width .18s linear;
}
.dl-progress .txt {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12px; color: var(--txt); font-weight: 700;
}

/* 卡片紧凑操作行：头像 · 点赞 · 评价 · 下载 一行 */
.v-tname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-ops { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; }
.v-op {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card-2);
  color: var(--txt-2); font-size: 11.5px; font-weight: 600;
  cursor: pointer; line-height: 1.3; white-space: nowrap;
  font-variant-numeric: tabular-nums; letter-spacing: .2px;
  transition: transform .22s cubic-bezier(.34, 1.4, .64, 1), box-shadow .22s ease,
              color .18s ease, border-color .18s ease, background-color .18s ease;
}
.v-op .oi { font-size: 12px; line-height: 1; transition: transform .22s cubic-bezier(.34, 1.4, .64, 1); }
.v-op:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(27, 37, 52, .08); }
.v-op:hover .oi { transform: scale(1.1); }
.v-op:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(27, 37, 52, .05); }
.v-op:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
/* 图标语义色：默认即有活力，hover 整体亮色 */
.v-op.like .oi { color: var(--coral); }
.v-op.chat .oi { color: var(--blue); }
.v-op.dl .oi { color: var(--mint); }
.v-op.like:hover { color: var(--coral); border-color: rgba(226, 107, 82, .4); background: var(--coral-bg); }
.v-op.chat:hover { color: var(--blue); border-color: rgba(61, 123, 192, .4); background: var(--blue-bg); }
.v-op.dl:hover { color: var(--mint); border-color: rgba(13, 148, 136, .4); background: var(--mint-bg); }
/* 已点赞：珊瑚确认态 */
.v-op.liked {
  color: var(--coral); background: var(--coral-bg); border-color: rgba(226, 107, 82, .4);
}
/* 已下载：青玉确认态 */
.v-op.dl.done {
  color: var(--mint); background: var(--mint-bg); border-color: rgba(13, 148, 136, .35);
  cursor: default; transform: none; box-shadow: none;
}
.v-op.dl.done .oi { color: var(--mint); }
/* 下载中：进度渐变填充 */
.v-op.ing {
  color: var(--txt); border-color: rgba(13, 148, 136, .4); cursor: default;
  min-width: 48px; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, rgba(13, 148, 136, .75) var(--pct, 0%), var(--card-2) var(--pct, 0%));
  transform: none; box-shadow: none;
}
/* 邀请码锁定：紫色 */
.v-op.lockop { color: var(--purple); }
.v-op.lockop .oi { color: var(--purple); }
.v-op.lockop:hover { color: var(--purple); border-color: rgba(111, 91, 190, .4); background: var(--purple-bg); }
.v-review {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255, 255, 255, .93); color: var(--gold);
  border: 1px solid rgba(201, 134, 10, .35);
  padding: 4px 11px; border-radius: 8px; font-size: 11px; font-weight: 700;
  backdrop-filter: blur(4px);
}
.v-review.v-reject {
  color: #DE4B4B; border-color: rgba(222, 75, 75, .35);
}

/* 移动端视频卡片：动作广场 / 导师专属统一双列并列展示，卡片内容紧凑化
   （须置于全部 .v-* 基础规则之后，同特异性按源码顺序生效） */
@media (max-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .v-thumb { height: 104px; }
  .v-emoji { font-size: 36px; }
  .v-dur { right: 8px; bottom: 8px; padding: 2px 7px; font-size: 10px; border-radius: 6px; }
  .v-lock, .v-official, .v-review { top: 8px; padding: 3px 8px; font-size: 10px; }
  .v-lock { right: 8px; }
  .v-official { left: 8px; }
  .v-body { padding: 11px 12px 13px; }
  .v-title {
    font-size: 13px; margin-bottom: 7px; gap: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .v-tags { gap: 5px; margin-bottom: 10px; }
  .vtag-sm { font-size: 10px; padding: 2px 7px; }
  /* 头像 + 名字一行，操作按钮组换行后靠右排布（小红书式） */
  .v-teacher { flex-wrap: wrap; padding-top: 10px; gap: 8px; }
  .v-face { width: 26px; height: 26px; font-size: 11px; }
  .v-tname { font-size: 12px; }
  .v-ops { gap: 4px; flex-wrap: wrap; }
  .v-op { padding: 4px 7px; font-size: 10.5px; gap: 3px; }
  .v-op .oi { font-size: 10.5px; }
  .type-empty { padding: 30px 14px; }
}

.up-btn { margin-left: auto; padding: 9px 18px !important; font-size: 13px !important; }

/* 上传弹窗 */
.doc-drop {
  display: flex; align-items: center; gap: 11px;
  border: 1.5px dashed var(--line); border-radius: 10px; padding: 13px 16px;
  cursor: pointer; transition: all .2s; background: var(--card-2);
}
.doc-drop:hover { border-color: rgba(13, 148, 136, .45); background: var(--mint-bg); }
.doc-drop.has { border-style: solid; border-color: rgba(13, 148, 136, .35); background: var(--mint-bg); }
.dd-ico { font-size: 21px; line-height: 1; flex-shrink: 0; }
.doc-drop b { font-size: 13px; color: var(--txt); font-weight: 700; min-width: 0; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-drop small { color: var(--txt-3); font-size: 11px; font-weight: 600; flex-shrink: 0; }
.dd-del {
  width: 24px; height: 24px; border-radius: 50%; border: none; cursor: pointer; flex-shrink: 0;
  background: var(--line); color: var(--txt-2); font-size: 11px; font-weight: 700;
  display: grid; place-items: center; transition: all .2s; font-family: var(--font);
}
.dd-del:hover { background: var(--red); color: #fff; transform: scale(1.08); }
.up-drop {
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 28px 20px; text-align: center;
  cursor: pointer; transition: all .25s; background: var(--card-2); margin-bottom: 14px;
}
.up-drop:hover { border-color: rgba(13, 148, 136, .45); background: var(--mint-bg); }
.up-drop-ico { font-size: 34px; margin-bottom: 8px; }
.up-drop b { display: block; font-size: 14px; margin-bottom: 6px; word-break: break-all; }
.up-drop small { color: var(--txt-3); font-size: 11.5px; line-height: 1.65; display: block; }
.up-demo {
  background: none; border: none; color: var(--blue); font-size: 12.5px; font-weight: 700;
  cursor: pointer; font-family: var(--font); padding: 4px 8px;
}
.up-demo:hover { text-decoration: underline; }
.up-form { display: flex; flex-direction: column; gap: 15px; margin-bottom: 18px; }
.up-row > label { font-size: 12.5px; color: var(--txt-3); font-weight: 700; display: block; margin-bottom: 8px; }
.up-row input[type="text"] {
  width: 100%; padding: 11px 15px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card-2); outline: none; font-family: var(--font); font-size: 13.5px;
  color: var(--txt); transition: all .2s;
}
.up-row input[type="text"]:focus { border-color: var(--mint); background: #fff; box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }
.vis-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vis-opt {
  border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; cursor: pointer;
  background: var(--card-2); transition: all .2s;
}
.vis-opt.active { border-color: rgba(13, 148, 136, .45); background: var(--mint-bg); }
.vis-opt.local { grid-column: 1 / -1; }
.vis-opt.local.active { border-color: rgba(61, 123, 192, .45); background: var(--blue-bg); }

.vis-opt b { font-size: 13.5px; display: block; margin-bottom: 4px; }
.vis-opt small { font-size: 11.5px; color: var(--txt-3); line-height: 1.55; display: block; }
.up-done { text-align: center; padding: 16px 0 4px; }
.up-done-ico { font-size: 42px; margin-bottom: 10px; }
.up-done b { display: block; font-size: 15px; margin-bottom: 7px; }
.up-done small { color: var(--txt-3); font-size: 12.5px; line-height: 1.7; display: block; margin-bottom: 16px; }

@media (max-width: 720px) {
  .vis-row { grid-template-columns: 1fr; }
  .sc-score-row { gap: 16px; }
  .sc-score-ring { width: 116px; height: 116px; }
  .sc-ring-num b { font-size: 34px; }
  .sc-beat { font-size: 14px; }
}

/* ═══════════ 模态框 ═══════════ */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(27, 37, 52, .42); backdrop-filter: blur(5px);
  display: grid; place-items: center; padding: 28px;
  animation: fadeIn .22s ease; overflow-y: auto;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--card); border: 1px solid var(--line);
  /* 56 = 遮罩层左右 padding 28×2：扣除后窄屏不再横向溢出 */
  border-radius: 18px; width: min(880px, calc(100vw - 56px)); max-height: 92vh; margin: auto;
  overflow-y: auto; box-shadow: 0 24px 60px rgba(27, 37, 52, .22), 0 4px 12px rgba(27, 37, 52, .06);
  animation: popIn .32s cubic-bezier(.2, .9, .3, 1.15);
}
@keyframes popIn { from { opacity: 0; transform: scale(.93) translateY(24px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: sticky; top: 14px; margin-left: calc(100% - 54px); z-index: 5;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--txt-2); font-size: 16px; cursor: pointer;
  display: grid; place-items: center; transition: all .2s; font-weight: 600; float: right;
  box-shadow: var(--shadow);
}
.modal-close:hover { color: var(--red); border-color: rgba(208, 79, 64, .4); background: var(--red-bg); }
.modal-inner { padding: 28px 34px 34px; clear: both; }

/* 视频详情 */
.detail-head { display: flex; gap: 26px; margin-bottom: 6px; }
.detail-thumb {
  width: 310px; height: 180px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; position: relative;
}
.detail-thumb .v-emoji { font-size: 64px; }
.detail-info h2 { font-size: 22px; margin: 8px 0 10px; font-weight: 750; }
.detail-points {
  background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: 11px; padding: 14px 18px; margin: 15px 0;
  font-size: 13.5px; color: var(--txt-2); line-height: 1.85;
}
.detail-points b { color: var(--txt); }
.detail-meta-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--txt-3); margin-top: 8px; font-weight: 600; }

/* 排行榜 */
.rank-tabs { display: flex; gap: 8px; margin: 24px 0 16px; }
.rank-me {
  display: flex; align-items: center; gap: 15px;
  background: var(--mint-bg); border: 1px solid rgba(13, 148, 136, .28);
  border-radius: 12px; padding: 13px 19px; margin-bottom: 15px;
}
.rank-me .r-pos {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-main); color: #fff; font-weight: 800; font-size: 16px;
}
.rank-me .r-info { flex: 1; }
.rank-me .r-info b { font-size: 14.5px; }
.rank-me .r-info small { display: block; color: var(--txt-2); font-size: 12px; margin-top: 2px; }
.rank-me .r-score { font-size: 24px; font-weight: 800; color: var(--mint); }
.rank-list { display: flex; flex-direction: column; gap: 4px; }
.rank-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; border-radius: 10px; transition: background .2s;
}
.rank-row:hover { background: var(--card-2); }
.r-pos { width: 36px; text-align: center; font-weight: 800; color: var(--txt-3); font-size: 14px; }
.r-pos.top1 { color: var(--gold); } .r-pos.top2 { color: #7C8B9C; } .r-pos.top3 { color: var(--coral); }
.r-face {
  width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.r-info { flex: 1; font-size: 14px; font-weight: 600; }
.r-info small { color: var(--txt-3); font-size: 11px; display: block; margin-top: 1px; font-weight: 500; }
.r-score { font-weight: 800; font-size: 16.5px; font-variant-numeric: tabular-nums; }
.r-lv { font-size: 11px; padding: 3px 10px; border-radius: 7px; margin-left: 9px; font-weight: 600; }
.lv-a { background: var(--mint-bg); color: var(--mint); }
.lv-b { background: var(--blue-bg); color: var(--blue); }
.lv-c { background: var(--orange-bg); color: var(--orange); }
.lv-d { background: var(--bg-2); color: var(--txt-3); }

/* 得分分布 */
.dist-chart { display: flex; align-items: flex-end; gap: 13px; height: 160px; padding: 10px 6px 0; }
.dist-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dist-bar {
  width: 100%; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #A9C8E4, #D2E2F0);
  animation: growUp .8s cubic-bezier(.2,.8,.3,1); position: relative;
}
.dist-col.mine .dist-bar {
  background: linear-gradient(180deg, #14A89A, #8CCFC5);
  box-shadow: 0 4px 14px rgba(13, 148, 136, .22);
}
.dist-col.mine .dist-bar::after {
  content: '你在这里'; position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; color: var(--mint); white-space: nowrap; font-weight: 700;
}
.dist-num { font-size: 12.5px; color: var(--txt-2); font-weight: 700; }
.dist-range { font-size: 11px; color: var(--txt-3); font-weight: 600; }
@keyframes growUp { from { height: 0 !important; } }

/* 评价 · 抖音/微信式评论区 */
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-item {
  background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 16px 18px;
}
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.review-score {
  font-size: 11px; padding: 3px 11px; border-radius: 7px; font-weight: 700;
  background: var(--mint-bg); color: var(--mint); border: 1px solid rgba(13,148,136,.2);
}
.review-txt { font-size: 13.5px; color: var(--txt-2); line-height: 1.75; }
.review-act { margin-top: 2px; }
.reply-btn {
  border: none; background: transparent; cursor: pointer; padding: 2px 0 0;
  color: var(--blue); font-size: 12px; font-weight: 700;
}
.reply-btn:hover { text-decoration: underline; }
.author-badge {
  display: inline-block; font-size: 10px; font-weight: 700; line-height: 1;
  color: #fff; background: var(--blue); border-radius: 5px;
  padding: 2.5px 6px; margin-left: 7px; vertical-align: 1.5px;
}
.review-sub {
  margin-top: 11px; padding: 11px 14px; border-radius: 9px;
  background: var(--bg-2); display: flex; flex-direction: column; gap: 10px;
}
.sub-row { display: flex; gap: 9px; }
.sub-face {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff;
}
.sub-txt { font-size: 12.5px; color: var(--txt-2); line-height: 1.65; }
.sub-txt b { color: var(--txt); font-size: 12px; margin-right: 5px; font-weight: 700; }
.sub-txt small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--txt-3); }
.reply-input-row { display: flex; gap: 9px; margin-top: 11px; }
.reply-input-row input {
  flex: 1; border: 1px solid var(--line); border-radius: 9px;
  background: var(--card); outline: none; padding: 9px 14px;
  font-size: 13px; font-family: var(--font); color: var(--txt); transition: all .2s;
}
.reply-input-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 123, 192, .10); }
.reply-input-row .btn, .review-input-bar .btn { padding: 8px 18px; font-size: 13px; border-radius: 9px; }
.review-input-bar { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
.review-input-bar input {
  flex: 1; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); outline: none; padding: 11px 16px;
  font-size: 13.5px; font-family: var(--font); color: var(--txt); transition: all .2s;
}
.review-input-bar input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(13, 148, 136, .10); }
.review-input-bar .btn { white-space: nowrap; }
.review-lock {
  flex: 1; font-size: 12.5px; color: var(--txt-3); font-weight: 600;
  background: var(--card-2); border: 1px dashed var(--line);
  border-radius: 10px; padding: 11px 15px;
}
.review-lock b { color: var(--orange); }
.review-empty {
  text-align: center; font-size: 13px; color: var(--txt-3);
  padding: 26px 0 6px; background: var(--card-2); border-radius: 12px;
  border: 1px dashed var(--line-2);
}
/* 抖音式纯评论弹窗：窄弹窗 + 列表滚动 + 底部固定输入条 */
.cp-wrap { display: flex; flex-direction: column; min-height: 0; }
.cp-head { flex-shrink: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cp-head h3 { font-size: 16px; font-weight: 800; margin: 0; }
.comment-modal {
  width: min(520px, 94vw); max-height: 84vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.comment-modal .modal-inner {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  padding: 20px 24px 22px;
}
.comment-modal .cp-list {
  flex: 1 1 auto; overflow-y: auto; min-height: 170px;
  padding-right: 5px; margin: -2px 0 0;
}
.comment-modal .review-input-bar { flex-shrink: 0; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line-2); }

/* 老师名片 */
.coach-card-top { display: flex; gap: 22px; align-items: center; }
.coach-avatar {
  width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center;
  font-size: 32px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.coach-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.coach-name-row h3 { font-size: 20px; margin: 0; font-weight: 750; }
.coach-verify {
  font-size: 11px; color: var(--blue); background: var(--blue-bg);
  padding: 3px 11px; border-radius: 7px; border: 1px solid rgba(61, 123, 192, .25); font-weight: 600;
}
.coach-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.coach-intro { font-size: 13.5px; color: var(--txt-2); line-height: 1.85; margin-top: 6px; }
.coach-contact-row { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.contact-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 17px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: var(--card-2); border: 1px solid var(--line); cursor: pointer;
  color: var(--txt-2); transition: all .2s;
}
.contact-chip:hover { color: var(--mint); border-color: rgba(13, 148, 136, .4); background: var(--mint-bg); }
.coach-flow-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 24px 0; }
.flow-item { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 16px 10px; text-align: center; }
.flow-item b { display: block; font-size: 18px; font-weight: 800; }
.flow-item label { font-size: 11px; color: var(--txt-3); display: block; margin-top: 4px; font-weight: 600; }

/* ═══════════ 跟练训练 ═══════════ */
/* 实时指标叠加层：计时+匹配度合并为一个小板块，悬浮主画面右上角 */
.live-overlay {
  position: absolute; top: 14px; right: 14px; z-index: 7;
  display: flex; flex-direction: column; align-items: stretch;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border: 1px solid rgba(27, 37, 52, .07); border-radius: 11px;
  box-shadow: 0 6px 18px rgba(27, 37, 52, .10);
  overflow: hidden;
  pointer-events: none;
}
/* 板块上行：闹钟 + 计时（主指标） */
.ov-timer {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px 6px;
  color: var(--txt-3); font-size: 12px; font-weight: 700;
}
.ov-timer b { font-size: 18px; font-variant-numeric: tabular-nums; font-weight: 800; color: var(--txt); }
.ov-timer svg { color: var(--mint); flex-shrink: 0; }
/* 板块下行：匹配度（次指标），与上行同底色仅细分隔线区分 */
.ov-match {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 5px 12px;
  border-top: 1px solid rgba(27, 37, 52, .06);
  color: var(--txt-3); font-size: 11px; font-weight: 700;
}
.ov-match b { font-size: 13.5px; font-variant-numeric: tabular-nums; font-weight: 800; }
.ov-match .c-mint { color: var(--mint); }
/* 完成次数：右下角大号数字，无文字标签 */
.ov-reps {
  position: absolute; right: 16px; bottom: 10px; z-index: 7;
  font-size: 44px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--txt); text-shadow: 0 2px 10px rgba(255, 255, 255, .9), 0 0 2px rgba(255, 255, 255, .8);
  pointer-events: none;
}
.ov-reps small {
  font-size: 16px; font-weight: 800; color: var(--txt-3);
  margin-left: 3px; text-shadow: 0 1px 6px rgba(255, 255, 255, .9);
}
/* REC 录制标记：主画面左下角（避开左上子画面与右上指标） */
.dual-view > .rec-flag {
  position: absolute; left: 12px; bottom: 10px; z-index: 7;
  display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800;
  color: var(--red); padding: 5px 11px; border-radius: 9px;
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(208, 79, 64, .3);
}
.rec-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  animation: pulse-red 1.1s infinite;
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(208,79,64,.45); }
  50% { box-shadow: 0 0 0 6px rgba(208,79,64,0); }
}

/* —— 主/子画面（画中画）：主画面撑满可用空间，子画面悬浮左上角 —— */
.dual-view { position: relative; display: flex; align-items: stretch; }
/* 准备期倒计时覆盖层（首尾双段保护 · 开头 5 秒演练不计分） */
.dual-view > .prep-overlay {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(20, 30, 50, .28); border-radius: var(--radius); pointer-events: none;
}
.prep-num {
  font-size: 96px; font-weight: 800; color: #fff; line-height: 1;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}
.prep-txt {
  margin-top: 12px; font-size: 14px; font-weight: 600; color: #fff;
  background: rgba(0, 0, 0, .35); padding: 7px 16px; border-radius: 999px;
}
.view-box {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.view-label { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; gap: 8px; }
.vtag { font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 8px; }
.vtag.std { background: var(--mint-bg); color: var(--mint); }
.vtag.cam { background: var(--coral-bg); color: var(--coral); }
.vsub { font-size: 11px; color: var(--txt-3); font-weight: 600; text-align: right; }
.view-box canvas { width: 100%; display: block; background: #F7FAFD; }
/* 主画面：占满 dual-view 全宽全高；角标叠加在画面上方不占布局空间 */
.view-main { flex: 1 1 auto; min-width: 0; min-height: 0; }
.view-main .view-label {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  padding: 12px 16px 28px;
  background: linear-gradient(rgba(247, 250, 253, .92), rgba(247, 250, 253, 0));
  pointer-events: none;
}
.view-main canvas { height: 100%; min-height: 240px; }
/* 子画面（画中画）：悬浮主画面左上角，点击即与主画面互换 */
.view-pip {
  position: absolute; top: 12px; left: 12px; z-index: 5;
  width: 27%; max-width: 250px; min-width: 118px;
  border-radius: 11px; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .8);
  box-shadow: 0 8px 24px rgba(27, 37, 52, .20);
  transition: transform .18s ease, box-shadow .18s ease;
}
.view-pip:hover { transform: scale(1.03); box-shadow: 0 10px 28px rgba(27, 37, 52, .26); }
.view-pip .view-label {
  padding: 5px 8px; justify-content: flex-start;
  background: linear-gradient(rgba(15, 23, 42, .35), transparent);
}
.view-pip .vtag { font-size: 10px; padding: 2px 8px; border-radius: 7px; color: #fff; }
.view-pip .vtag.std { background: rgba(13, 148, 136, .85); }
.view-pip .vtag.cam { background: rgba(208, 79, 64, .85); }
.view-pip .vsub { display: none; }
.view-pip canvas { aspect-ratio: 1 / 1; height: auto; }
/* 子画面右上角 ⇄ 互换钮 */
.pip-swap {
  position: absolute; top: 6px; right: 6px; z-index: 6;
  width: 27px; height: 27px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
  color: var(--txt-2); cursor: pointer;
  transition: all .15s;
}
.pip-swap:hover {
  background: var(--mint-bg); color: var(--mint);
  border-color: rgba(13, 148, 136, .4);
}
/* 沉浸模式：子画面略收，主画面优先 */
.train-immersive .view-pip { width: 24%; }

/* 控制条两行制：上行=视频来源+工具，下行=等宽主操作（跟练/AI 分析），整齐不乱 */
.train-controls {
  display: flex; flex-direction: column; gap: 9px;
  margin-top: 12px; padding: 10px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tc-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tc-setup { justify-content: space-between; flex-wrap: wrap; }
/* 主操作行：两钮严格等宽、居中、限宽防大屏拉伸变形 */
.tc-actions { justify-content: center; gap: 10px; }
.tc-actions .btn { flex: 1 1 0; min-width: 0; max-width: 300px; }
/* 训练页常驻一屏布局（依赖 :has()，不支持时优雅退回滚动布局）：
   主内容区停止滚动，跟练页（主画面 + 控制条）撑满可视高度，主画面最大化 */
.main-wrap:has(> .train-root) {
  display: flex; flex-direction: column;
  padding: 10px 14px 12px; overflow: hidden;
}
.train-root { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.train-root .dual-view { flex: 1 1 auto; min-height: 0; }
.train-root .train-controls { flex: 0 0 auto; }
/* 切换标准视频：下拉框与本地视频按钮任何屏宽均同一行，空间不足时下拉自动收缩 */
.action-switch { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-width: 0; }
/* 下拉框紧凑起步宽度（180px），空间不足时优先收缩（选中项文字裁切，展开列表仍完整） */
.action-select { flex: 1 1 auto; width: 180px; min-width: 0; }
/* 加载本地视频独立按钮：不收缩保完整，超长文件名省略号截断防溢出 */
.local-btn {
  flex-shrink: 0; max-width: 62%;
  padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card-2); color: var(--txt-2);
  font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .2s; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.local-btn:hover { border-color: rgba(13, 148, 136, .4); color: var(--txt); }
.local-btn.active {
  background: var(--purple-bg); color: var(--purple);
  border-color: rgba(111, 91, 190, .4);
}
/* 移动端（≤640px）：按钮收窄内边距，下拉自动收缩占剩余宽度 */
@media (max-width: 640px) {
  .local-btn { padding: 10px 12px; font-size: 12.5px; }
}
.control-btns { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
/* 控制条图标按钮（镜像/音效/录制）：纯图标紧凑化，状态色区分，完整含义见 title 提示 */
.control-btns .icon-btn {
  width: 42px; height: 42px; padding: 0; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
}
.control-btns .icon-btn.on {
  color: var(--mint); border-color: rgba(13, 148, 136, .4); background: var(--mint-bg);
}
.control-btns .icon-btn.rec.on {
  color: #fff; background: var(--red); border-color: var(--red);
  box-shadow: 0 3px 10px rgba(208, 79, 64, .28);
}
/* 沉浸模式：图标钮与其他钮等宽分摊，保持图标居中 */
.train-immersive .control-btns .icon-btn { padding: 0; }
/* AI 姿态引擎模型下拉（录制钮右侧）：小号紧凑，空间不足时自动收缩，选中项过长裁切 */
.engine-select {
  flex: 0 1 auto; width: 172px; min-width: 0;
  padding-top: 8px; padding-bottom: 8px;
  font-size: 12px; border-radius: 11px;
}
/* 沉浸模式：不随其他钮拉伸，完整型号名见下拉展开列表 */
.train-immersive .engine-select { flex: 0 0 auto; }
/* 移动端（≤640px）：引擎下拉缩窄，与镜像/音效/录制同处一行（可收缩填补剩余宽度），
   下行跟练/AI 分析等宽平分全宽；叠加指标同步缩小留足主画面 */
@media (max-width: 640px) {
  .control-btns { gap: 6px; }
  .tc-actions .btn { max-width: none; }
  .live-overlay { top: 10px; right: 10px; }
  .ov-timer { padding: 6px 11px 5px; }
  .ov-timer b { font-size: 15px; }
  .ov-match { padding: 4px 9px; font-size: 10.5px; }
  .ov-match b { font-size: 12px; }
  .ov-reps { font-size: 34px; right: 12px; }
  .ov-reps small { font-size: 13px; }
  .engine-select { flex: 1 1 auto; width: auto; font-size: 11px; padding-top: 6px; padding-bottom: 6px; }
  .train-immersive .engine-select { width: 118px; flex: 0 1 auto; }
}

/* ═══ 移动端沉浸跟练模式（≤640px）═══
   点「开始跟练 / 一键录制」后自动进入：隐藏动作切换、
   视频角标说明、镜像/音效等非核心区，实时指标叠加在主画面角落，
   主画面优先、一屏同显不滚动；暂停且停止录制后自动还原 */
@media (max-width: 640px) {
  /* —— 暂时无关内容自动隐藏（不依赖 :has()，旧浏览器同样生效）—— */
  .train-immersive .action-switch,
  .train-immersive .vsub,
  .train-immersive .btn-extra { display: none; }
  .train-immersive .rec-flag { padding: 4px 9px; font-size: 10.5px; }
  /* —— 视频区角标精简（一屏撑满由 .train-root 常驻规则接管）—— */
  .train-immersive .view-label { padding: 7px 12px 5px; }
  /* —— 沉浸模式：控制条回归单行（录制+引擎 | 跟练+AI 分析 等宽） —— */
  .train-immersive .train-controls { flex-direction: row; flex-wrap: nowrap; margin-top: 8px; padding: 8px 10px; gap: 8px; }
  .train-immersive .tc-setup { display: contents; }
  .train-immersive .tc-actions { flex: 1 1 auto; }
  .train-immersive .tc-actions .btn { max-width: none; padding: 10px 6px; font-size: 12px; }
}

/* 分析覆盖层 */
.analyze-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(246, 248, 250, .82); backdrop-filter: blur(8px);
  display: grid; place-items: center; animation: fadeIn .25s ease;
}
.analyze-panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 36px 44px; width: min(560px, 92vw);
  box-shadow: var(--shadow-lg); text-align: center;
  animation: panelIn .4s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes panelIn {
  from { transform: scale(.88) translateY(18px); opacity: 0; }
}
/* 完成态：面板绿色描边闪光一下 */
.analyze-panel.finishing {
  border-color: rgba(13, 148, 136, .4);
  animation: finishFlash .64s ease;
}
@keyframes finishFlash {
  35% { box-shadow: 0 0 0 5px rgba(13, 148, 136, .14), var(--shadow-lg); transform: scale(1.016); }
}
.analyze-title { font-size: 20px; font-weight: 800; margin-bottom: 26px; transition: color .3s; }
.analyze-title.ok { color: var(--mint); }
.dot-anim::after { content: '…'; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.analyze-steps { display: flex; flex-direction: column; gap: 13px; text-align: left; margin-bottom: 24px; }
.astep {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 18px; border-radius: 11px;
  background: var(--card-2); border: 1px solid var(--line-2);
  font-size: 13.5px; font-weight: 600; color: var(--txt-3);
  transition: all .3s;
}
.astep .s-ico {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); font-size: 13px; flex-shrink: 0; transition: all .3s;
}
.astep.active { border-color: rgba(13, 148, 136, .4); background: var(--mint-bg); color: var(--mint); animation: stepIn .3s ease; }
@keyframes stepIn { from { transform: translateX(-10px); opacity: .45; } }
.astep.active .s-ico { background: var(--mint); color: #fff; animation: spinPulse 1s linear infinite; }
@keyframes spinPulse { 50% { transform: scale(1.15); } }
.astep.done { color: var(--txt-2); }
.astep.done .s-ico { background: var(--mint); color: #fff; animation: checkPop .4s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes checkPop {
  0% { transform: scale(.3); }
  55% { transform: scale(1.28); }
}
/* 智能体次数用完：依赖次数的步骤变暗虚线化，不点亮不推进 */
.astep.off { opacity: .48; border-style: dashed; border-color: var(--line-2); background: var(--bg-2); }
.astep.off .s-txt { text-decoration: line-through; text-decoration-color: rgba(27, 37, 52, .28); text-decoration-thickness: 1px; }
.astep.off .s-txt small { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--coral); text-decoration: none; }
.s-txt { min-width: 0; }
.analyze-note { font-size: 12px; color: var(--txt-3); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ═══════════ 分析报告 ═══════════ */
.report-hero {
  display: flex; gap: 30px; align-items: center; flex-wrap: wrap;
  padding: 28px 32px; margin-bottom: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.report-hero::before {
  content: ''; position: absolute; left: -70px; bottom: -90px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,.07), transparent 65%);
}
.score-ring-wrap { position: relative; width: 150px; height: 150px; flex-shrink: 0; }
.score-ring { width: 150px; height: 150px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--bg-2); stroke-width: 11; }
.ring-fg {
  fill: none; stroke: url(#gradRing); stroke-width: 11; stroke-linecap: round;
  transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .3, 1);
}
.score-ring-num {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-ring-num b { font-size: 38px; font-weight: 800; line-height: 1; }
.score-ring-num span { font-size: 11px; color: var(--txt-3); margin-top: 4px; font-weight: 700; }
.report-meta { flex: 1; min-width: 260px; position: relative; }
.report-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.report-title-row h2 { font-size: 24px; font-weight: 800; }
.grade-badge {
  font-size: 13px; padding: 5px 15px; border-radius: 9px; font-weight: 700;
}
.grade-a { background: var(--mint-bg); color: var(--mint); border: 1px solid rgba(13,148,136,.3); }
.grade-b { background: var(--blue-bg); color: var(--blue); border: 1px solid rgba(61,123,192,.3); }
.grade-c { background: var(--orange-bg); color: var(--orange); border: 1px solid rgba(222,106,27,.3); }
.delta-badge { font-size: 12.5px; font-weight: 700; padding: 5px 13px; border-radius: 9px; }
.delta-badge.up { background: var(--mint-bg); color: var(--mint); }
.delta-badge.down { background: var(--red-bg); color: var(--red); }
/* 关键事实行：排名 · 时长 · 消耗合并为一行轻量展示（无卡片块），
   圆点分隔，数值强调；窄屏自动换行居中 */
.report-facts {
  display: flex; align-items: center; flex-wrap: wrap;
  row-gap: 8px; font-size: 13.5px; color: var(--txt-2); font-weight: 600;
}
.report-facts .fact {
  display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap;
}
/* 事实间竖线分隔：比圆点更清晰，避免语义粘连（如“超越 96%”与时长） */
.report-facts .fact + .fact::before {
  content: ''; width: 1px; height: 14px; background: var(--line-2);
  margin: 0 16px; flex-shrink: 0;
}
.report-facts b { font-weight: 900; }
/* 移动端窄屏（≤640px）：头部整体居中纵向堆叠
   （圆环 → 标题 → 事实逐项居中），无卡片块更简洁 */
@media (max-width: 640px) {
  .report-hero {
    flex-direction: column; align-items: center; text-align: center;
    padding: 24px 16px; gap: 18px;
  }
  .report-meta { min-width: 0; width: 100%; }
  .report-title-row { justify-content: center; }
  .report-facts { flex-direction: column; align-items: center; row-gap: 8px; }
  .report-facts .fact + .fact::before { display: none; }
  .score-ring-wrap { width: 124px; height: 124px; }
  .score-ring { width: 124px; height: 124px; }
  .score-ring-num b { font-size: 30px; }
  .report-title-row h2 { font-size: 21px; }
}

.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rcard.wide { grid-column: 1 / -1; }

/* 四维评分 */
.dim-bars { display: flex; flex-direction: column; gap: 17px; }
.dim-row { display: flex; align-items: center; gap: 14px; }
.dim-name { width: 60px; font-size: 13.5px; font-weight: 700; color: var(--txt-2); flex-shrink: 0; }
.dim-bar-track {
  flex: 1; height: 10px; background: var(--bg-2); border-radius: 6px; overflow: hidden;
}
.dim-bar-fill {
  height: 100%; border-radius: 6px;
  background: var(--grad-main);
  transition: width 1.2s cubic-bezier(.2, .8, .3, 1);
}
.dim-score { width: 42px; text-align: right; font-weight: 800; font-size: 15.5px; }

/* 分部位 */
.part-circles { display: flex; justify-content: space-around; padding: 8px 0; }
.pc-item { text-align: center; }
.pc-ring-wrap { position: relative; width: 88px; height: 88px; }
.pc-ring-wrap svg { width: 88px; height: 88px; transform: rotate(-90deg); }
.pc-ring-wrap .pbg { fill: none; stroke: var(--bg-2); stroke-width: 8; }
.pc-ring-wrap .pfg { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1.3s cubic-bezier(.2,.8,.3,1); }
.pc-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 19px; font-weight: 800;
}
.pc-item label { display: block; font-size: 12.5px; color: var(--txt-2); font-weight: 700; margin-top: 9px; }
.pc-item .pc-note { font-size: 11px; color: var(--txt-3); margin-top: 2px; }

/* 时间轴 */
.tl-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; color: var(--txt-3); font-weight: 600; }
.lg { display: flex; align-items: center; gap: 6px; }
.lg::before { content: ''; width: 11px; height: 11px; border-radius: 4px; }
.lg.mint::before { background: var(--mint-2); }
.lg.red::before { background: var(--red); }

/* 问题帧对比 */
.frame-compare { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.fc-box {
  background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 14px; text-align: center;
}
.fc-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 8px; margin-bottom: 11px;
}
.fc-tag.red { background: var(--red-bg); color: var(--red); }
.fc-tag.green { background: var(--mint-bg); color: var(--mint); }
.fc-box canvas { border-radius: 10px; background: #fff; display: block; width: 240px; height: 240px; }
.fc-note { font-size: 12.5px; color: var(--txt-2); margin-top: 11px; font-weight: 600; }

/* 诊断清单 */
/* 诊断清单：通栏卡内双列网格，窄屏回退单列 */
.issue-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .issue-list { grid-template-columns: 1fr; } }
.issue-item {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: 11px; padding: 14px 16px;
}
.sev-tag {
  font-size: 11px; font-weight: 700; color: #fff; padding: 4px 11px;
  border-radius: 7px; flex-shrink: 0; margin-top: 2px;
}
.sev-tag.s1 { background: var(--red); }
.sev-tag.s2 { background: var(--orange); }
.sev-tag.s3 { background: var(--gold); }
.issue-item .i-body b { font-size: 13.5px; display: block; margin-bottom: 3px; }
.issue-item .i-body small { font-size: 12px; color: var(--txt-3); line-height: 1.6; }

/* AI 教练 */
.ai-coach-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.ai-avatar {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-main); color: #fff; font-weight: 800; font-size: 14.5px;
  box-shadow: 0 3px 10px rgba(13, 148, 136, .20);
}
.ai-coach-head b { font-size: 14.5px; display: block; }
.ai-coach-head small { font-size: 11.5px; color: var(--txt-3); font-weight: 600; }
.coach-advice { display: flex; flex-direction: column; gap: 13px; }
.adv-item {
  background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: 11px; padding: 14px 17px;
}
.adv-head { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 800; margin-bottom: 7px; }
.adv-head .n {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint-bg); color: var(--mint); font-size: 12px;
}
.adv-item p { font-size: 13px; color: var(--txt-2); line-height: 1.75; }
.adv-quote {
  margin-top: 9px; padding: 9px 13px; border-radius: 8px;
  background: var(--blue-bg); border-left: 3px solid var(--blue);
  font-size: 12px; color: var(--txt-2);
}
.adv-quote b { color: var(--blue); }
.plan-chips { display: flex; gap: 9px; flex-wrap: wrap; }
.plan-chips span {
  font-size: 12.5px; font-weight: 600; color: var(--mint);
  background: var(--mint-bg); border: 1px dashed rgba(13, 148, 136, .35);
  padding: 7px 15px; border-radius: 9px;
}

/* 智能体深度分析卡（云端大模型 · 紫色系区分本地 AI 模型报告的青玉体系） */
.agent-card { border: 1px solid rgba(111, 91, 190, .25); }
.agent-card > h3 .sub { color: var(--purple); }
/* 智能体权益折叠条（默认收起，点击展开完整清单） */
.agent-intro .upsell-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--txt-2); line-height: 1.7; cursor: pointer; user-select: none;
  background: var(--purple-bg); border-radius: 11px; padding: 11px 14px; margin-bottom: 14px;
}
.agent-intro .upsell-toggle:hover { filter: brightness(.98); }
.agent-intro .upsell-toggle b { color: var(--txt); }
.agent-intro .upsell-toggle .up-arrow { flex: 0 0 auto; font-size: 11.5px; font-weight: 600; color: var(--purple); }
.agent-feats { list-style: none; margin: 0 0 16px; display: flex; flex-direction: column; gap: 9px; }
.agent-feats li {
  font-size: 12.5px; color: var(--txt-2); line-height: 1.7;
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 9px 13px;
}
.agent-feats b { color: var(--txt); }
.agent-btn {
  background: linear-gradient(135deg, #6F5BBE, #5A4899); color: #fff;
  border: none; font-weight: 600; padding: 11px 22px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(111, 91, 190, .22);
}
.agent-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
/* 分析中 */
.agent-loading { display: flex; align-items: center; gap: 14px; padding: 6px 2px; }
.al-face { font-size: 34px; }
.al-body { display: flex; flex-direction: column; gap: 4px; }
.al-body b { font-size: 14px; color: var(--purple); }
.al-body span { font-size: 12px; color: var(--txt-3); }
.al-dots { display: flex; gap: 5px; margin-top: 3px; }
.al-dots i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--purple);
  animation: alBounce 1s infinite ease-in-out;
}
.al-dots i:nth-child(2) { animation-delay: .15s; }
.al-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes alBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .45; }
  40% { transform: translateY(-5px); opacity: 1; }
}
/* 分析结果 */
.agent-result { display: flex; flex-direction: column; gap: 12px; }
.ar-block {
  background: var(--card-2); border: 1px solid var(--line-2);
  border-left: 3px solid var(--purple); border-radius: 9px; padding: 12px 15px;
}
.ar-h { font-size: 13px; font-weight: 800; color: var(--purple); margin-bottom: 6px; }
.ar-block p { font-size: 12.8px; color: var(--txt-2); line-height: 1.85; margin: 0; }
.ar-block p b { color: var(--txt); }
.ar-warn { border-left-color: var(--orange); background: rgba(222, 106, 27, .05); }
.ar-warn .ar-h { color: var(--orange); }
.ar-sub { font-size: 11px; color: var(--txt-3); font-weight: 600; margin-left: 6px; }
/* 智能体卡内复用的教练指导组件适配紫系：头像/编号紫化，条目白底嵌入灰块 */
.agent-card .ai-avatar {
  background: linear-gradient(135deg, #6F5BBE, #5A4899);
  box-shadow: 0 3px 10px rgba(111, 91, 190, .22);
}
.agent-card .adv-item { background: var(--card); }
.agent-card .adv-head .n { background: var(--purple-bg); color: var(--purple); }
/* 不足诊断清单嵌入智能体灰块：条目改白底，与 ar-block 拉开层次 */
.agent-card .issue-list { margin-top: 2px; }
.agent-card .issue-item { background: var(--card); }

/* 追问聊天（智能体卡内子区：方框包围独立成区，与上方解读块拉开层次） */
.agent-card .chat-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; max-height: 340px; overflow-y: auto; padding: 4px 2px; }
.qa-zone { margin-top: 22px; }
.qa-box {
  background: var(--card);
  border: 1px solid rgba(111, 91, 190, .22);
  border-radius: 12px;
  padding: 16px 18px 18px;
}
.qa-h { font-size: 14.5px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qa-h .sub { font-size: 12px; color: var(--purple); font-weight: 600; }
.qa-locked {
  display: flex; align-items: center; gap: 14px;
  background: var(--card-2); border: 1px dashed var(--line-2); border-radius: 10px;
  padding: 16px 18px; color: var(--txt-3);
}
.qa-lock-ico { font-size: 26px; opacity: .8; }
.qa-locked p { font-size: 12.5px; font-weight: 700; margin: 0; line-height: 1.75; }
.qa-locked small { font-size: 11.5px; color: var(--txt-3); font-weight: 500; }
.chat-tip { font-size: 12.5px; color: var(--txt-3); font-weight: 600; margin-bottom: 4px; }
.quick-asks { display: flex; gap: 9px; flex-wrap: wrap; margin: 10px 0 4px; }
.quick-asks button {
  font-size: 12.5px; padding: 7px 15px; border-radius: 999px; cursor: pointer;
  background: var(--blue-bg); color: var(--blue); border: 1px solid rgba(61, 123, 192, .25);
  font-weight: 600; transition: all .2s;
}
.quick-asks button:hover { background: var(--blue); color: #fff; }
.chat-msg { display: flex; gap: 11px; animation: fadeUp .3s ease; }
.chat-msg .cm-face {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0; color: #fff;
}
.chat-msg.ai .cm-face { background: var(--grad-main); }
.chat-msg.user { flex-direction: row-reverse; }
.chat-msg.user .cm-face { background: var(--purple); }
.cm-body {
  max-width: 76%; padding: 12px 16px; border-radius: 13px;
  font-size: 13.5px; line-height: 1.75;
}
.chat-msg.ai .cm-body { background: var(--card-2); border: 1px solid var(--line-2); color: var(--txt-2); border-top-left-radius: 4px; }
.chat-msg.user .cm-body { background: var(--purple); color: #fff; border-top-right-radius: 4px; }
.cm-body small { display: block; margin-top: 7px; font-size: 11px; color: var(--blue); }
.chat-input-row { display: flex; gap: 11px; }
.chat-input-row input {
  flex: 1; padding: 11px 17px; border-radius: 10px;
  border: 1px solid var(--line); outline: none; font-family: var(--font);
  font-size: 13.5px; background: var(--card-2); color: var(--txt); transition: all .2s;
}
.chat-input-row input:focus { border-color: var(--mint); background: #fff; box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }

.report-actions { display: flex; gap: 14px; margin-top: 24px; justify-content: center; }

/* ═══════════ 成长统计 ═══════════ */
.stats-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.stat-card {
  display: flex; align-items: center; gap: 15px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.st-ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; flex-shrink: 0;
}
.st-ico.mint { background: var(--mint-bg); } .st-ico.orange { background: var(--orange-bg); }
.st-ico.purple { background: var(--purple-bg); } .st-ico.blue { background: var(--blue-bg); }
.stat-card b { font-size: 23px; font-weight: 800; }
.stat-card b small { font-size: 13px; color: var(--txt-3); font-weight: 700; margin-left: 3px; }
.stat-card label { font-size: 12.5px; color: var(--txt-3); font-weight: 700; display: block; margin-top: 2px; }
.stats-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

/* 累计卡窄屏自适应（置于基础规则之后确保覆盖生效）：
   始终保持 2×2 完整显示，自动压缩图标/字号/内边距，数字与单位不换行不溢出 */
@media (max-width: 1080px) {
  .stats-cards { gap: 12px; }
}
@media (max-width: 640px) {
  .stats-cards { gap: 9px; margin-bottom: 16px; }
  .stat-card { padding: 12px 11px; gap: 9px; border-radius: 14px; }
  .st-ico { width: 36px; height: 36px; border-radius: 11px; font-size: 16px; }
  .stat-card b { font-size: 17px; }
  .stat-card b small { font-size: 10px; }
  .stat-card label { font-size: 10.5px; white-space: nowrap; }
}
@media (max-width: 400px) {
  .stat-card { padding: 10px 8px; gap: 7px; }
  .st-ico { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
  .stat-card b { font-size: 15px; }
  .stat-card label { font-size: 10px; }
}
.stats-grid .rcard.wide { grid-column: 1 / -1; }

/* 里程碑：竖排列表限高完整 5 行（68.5×5 + 11×4），右侧纵向滚动条查看更多；达成薄荷高亮 / 未达成灰暗 */
.milestones {
  display: flex; flex-direction: column; gap: 11px;
  max-height: 387px; overflow-y: auto; padding-right: 6px;
}
.milestones::-webkit-scrollbar { width: 6px; }
.milestones::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.milestones::-webkit-scrollbar-thumb:hover { background: var(--txt-3); }
.milestones::-webkit-scrollbar-track { background: transparent; }
.milestone {
  display: flex; align-items: center; gap: 13px; flex-shrink: 0;
  background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: 11px; padding: 12px 15px;
}
.milestone.locked { opacity: .55; }
.milestone:not(.locked) { border-color: rgba(20, 168, 154, .45); background: var(--mint-bg); }
.m-ico { font-size: 22px; }
.milestone .m-body b { font-size: 13px; display: block; }
.milestone .m-body small { font-size: 11.5px; color: var(--txt-3); }
.m-date { margin-left: auto; font-size: 11.5px; color: var(--txt-3); font-weight: 600; flex-shrink: 0; }

.record-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
/* 等级列胶囊强制不折行：任何屏宽「优秀/良好/待改进」保持一行 */
.record-table th:nth-child(4), .record-table td:nth-child(4) { width: 74px; white-space: nowrap; }
.record-table .rt-lv { display: inline-block; white-space: nowrap; }
.record-table th {
  text-align: left; font-size: 12px; color: var(--txt-3); font-weight: 700;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.record-table td { padding: 12px; font-size: 13.5px; border-bottom: 1px solid var(--line-2); }
.record-table tr:hover td { background: var(--card-2); }
.record-table .rt-score { font-weight: 800; }
.record-table .rt-lv { font-size: 11px; padding: 2px 10px; border-radius: 7px; font-weight: 600; }
/* 窄屏：动作名列允许省略号截断，等级列仍保一行 */
@media (max-width: 640px) {
  .record-table th, .record-table td { padding: 9px 7px; font-size: 12px; }
  .record-table th:nth-child(2), .record-table td:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .record-table th:nth-child(4), .record-table td:nth-child(4) { width: 60px; }
  .record-table .rt-lv { padding: 2px 7px; font-size: 10.5px; }
  .record-table td:last-child, .record-table th:last-child { white-space: nowrap; }
}

/* ═══════════ 我的 ═══════════ */
.mine-profile {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding: 28px 32px; margin-bottom: 22px;
  background: linear-gradient(160deg, rgba(111, 91, 190, .04), rgba(61, 123, 192, .02) 45%, transparent 75%), var(--card);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow);
}
.mp-avatar {
  width: 72px; height: 72px; border-radius: 18px;
  background: linear-gradient(135deg, #6F5BBE, #3D7BC0);
  display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(27, 37, 52, .14), 0 0 0 1px var(--line);
}
.mp-info { flex: 1; min-width: 250px; }
/* 中窄屏（≤900px）：资料文字与头像同行 */
@media (max-width: 900px) {
  .mp-info { flex: 1 1 0; min-width: 0; }
}
.mp-name { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.mp-tag {
  font-size: 11px; font-weight: 600; padding: 3px 11px; border-radius: 7px;
  background: var(--bg-2); color: var(--txt-3); border: 1px solid var(--line);
  flex: 0 0 auto; white-space: nowrap;
}
.mp-tag.tutor { background: var(--purple-bg); color: var(--purple); border-color: rgba(111, 91, 190, .25); }
/* 会员状态徽标：VIP 低饱和商务金（体验态已由顶栏计时标记展示，此处不再重复） */
.mp-tag.t-vip { background: linear-gradient(135deg, #C9962E, #A97718); color: #fff; border: none; }
/* 平台官方账号徽标：品牌渐变（发布内容即「平台发布」） */
.mp-tag.t-official { background: linear-gradient(135deg, #38BDF8, #2BB673); color: #fff; border: none; }
/* 加入天数：靠昵称行右端对齐，与昵称始终同一行（margin-left:auto 推到右端） */
.mp-days { display: inline-flex; align-items: baseline; gap: 3px; margin-left: auto; flex: 0 0 auto; white-space: nowrap; }
.mp-days b { font-size: 22px; font-weight: 800; color: var(--purple); line-height: 1; font-variant-numeric: tabular-nums; }
.mp-days small { font-size: 11px; color: var(--txt-3); font-weight: 800; }

.mine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mine-grid .rcard.wide { grid-column: 1 / -1; }
/* 上传主操作：通栏按钮，卡片第一视觉焦点 */
.up-main { width: 100%; padding: 13px; font-size: 14.5px; margin-top: 4px; }
.code-input-row { display: flex; gap: 11px; margin-bottom: 13px; }
.code-input-row input {
  flex: 1; padding: 11px 17px; border-radius: 10px;
  border: 1px solid var(--line); outline: none; font-family: var(--font);
  font-size: 13.5px; background: var(--card-2); color: var(--txt);
  letter-spacing: 1px; font-weight: 600; transition: all .2s;
}
.code-input-row input:focus { border-color: var(--mint); background: #fff; box-shadow: 0 0 0 3px rgba(13,148,136,.12); }
.bind-tip {
  font-size: 12px; color: var(--txt-3); background: var(--gold-bg);
  border: 1px solid rgba(201, 134, 10, .25); border-radius: 9px;
  padding: 10px 14px; font-weight: 600;
}
.bind-tip b { color: var(--orange); }

/* 邀请码使用说明：两条合并 · 默认收缩的折叠板块（点击头部展开） */
.tips-fold { margin-top: 12px; border: 1px solid rgba(201, 134, 10, .25); border-radius: 9px; background: var(--gold-bg); overflow: hidden; }
.tips-fold-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; font-size: 12.5px; font-weight: 700; color: var(--txt-2); cursor: pointer; user-select: none; }
.tips-fold-head:hover { color: var(--txt); }
.tips-fold-arrow { font-size: 12px; color: var(--txt-3); transition: transform .2s; }
.tips-fold-arrow.open { transform: rotate(180deg); }
.tips-fold-body { padding: 0 14px 10px; display: flex; flex-direction: column; gap: 6px; }
.tips-fold-item { font-size: 12px; color: var(--txt-3); font-weight: 600; line-height: 1.6; }

/* 身体数据（自愿填写）：与资料合并一卡 · 卡底通栏折叠区 + 入口行右侧按钮 + 2×2 大输入框网格（内嵌单位） */
.mp-body { flex-basis: 100%; min-width: 0; margin-top: 6px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.mp-body-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mp-body-head > label { font-size: 15px; font-weight: 700; flex-shrink: 0; }
/* 说明行独立成行：位于「身体数据 + 操作按钮」下方 */
.mp-body-sub { font-size: 11.5px; color: var(--txt-3); font-weight: 600; margin-top: 6px; }
.mp-body .body-form { margin-top: 12px; }
.body-acts { margin-left: auto; display: flex; gap: 8px; }
.body-acts .bf-save { padding: 7px 16px; font-size: 12.5px; border-radius: 10px; }
.body-acts .bf-save.ghost { background: var(--bg-2); box-shadow: none; }
.body-form { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 12px; }
.body-form .bf-item { position: relative; }
.body-form .bf-item select,
.body-form .bf-item input {
  width: 100%; box-sizing: border-box; padding: 11px 34px 11px 14px; border-radius: 10px;
  border: 1px solid var(--line); outline: none; font-family: var(--font);
  font-size: 14px; background: var(--card-2); color: var(--txt);
  font-weight: 600; transition: all .2s;
}
.body-form .bf-item select { appearance: none; cursor: pointer; }
.body-form .bf-item select:focus,
.body-form .bf-item input:focus { border-color: var(--mint); background: #fff; box-shadow: 0 0 0 3px rgba(13,148,136,.12); }
.body-form .bf-item input::placeholder { color: var(--txt-3); opacity: .75; font-weight: 600; }
.body-form .bf-unit {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 11.5px; color: var(--txt-3); font-weight: 800; pointer-events: none;
}
.body-note { font-size: 11.5px; color: var(--txt-3); font-weight: 600; }
/* 下拉箭头（select 内嵌倒三角） */
.body-form .bf-item:first-child::after {
  content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px;
  border-right: 2px solid var(--txt-3); border-bottom: 2px solid var(--txt-3);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.body-form .bf-item:first-child select { padding-right: 30px; }
/* 性别未选择时呈占位符灰色（渐进增强，不支持 :has 的浏览器无影响） */
.body-form .bf-item:has(select option[value=""]:checked) select { color: var(--txt-3); font-weight: 600; }
/* 超窄屏：按钮组随标题换行后靠右 */
@media (max-width: 420px) {
  .body-acts { margin-left: 0; }
}
.bound-empty { font-size: 13.5px; color: var(--txt-3); text-align: center; padding: 26px 10px; }
.bound-list { display: flex; flex-direction: column; gap: 12px; }
.bound-item {
  display: flex; align-items: center; gap: 13px;
  background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: 11px; padding: 13px 16px;
  animation: fadeUp .4s ease;
}
.bound-item .b-face {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 15px; flex-shrink: 0;
}
.bound-item .b-body { flex: 1; }
.bound-item .b-body b { font-size: 14px; display: block; }
.bound-item .b-body small { font-size: 11.5px; color: var(--txt-3); }
.b-ok { font-size: 11px; font-weight: 600; color: var(--mint); background: var(--mint-bg); padding: 4px 11px; border-radius: 7px; }

/* 我的上传列表（复用 bound-item 行结构）：状态标签 + 二次确认删除钮 */
.up-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg); font-size: 21px; flex-shrink: 0;
}
.up-status { font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 7px; white-space: nowrap; flex-shrink: 0; }
.up-status.st-ok { color: var(--mint); background: var(--mint-bg); }
.up-status.st-ing { color: var(--orange); background: var(--orange-bg); }
.up-status.st-rej { color: var(--red); background: var(--red-bg); }
.up-status.st-pri { color: var(--purple); background: var(--purple-bg); }
.up-del {
  flex-shrink: 0; padding: 7px 13px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--txt-3);
  font-family: var(--font); font-size: 12px; font-weight: 700; transition: all .18s;
}
.up-del:hover { color: var(--red); border-color: rgba(208, 79, 64, .4); background: var(--red-bg); }
.up-del.confirm { color: #fff; background: var(--red); border-color: var(--red); }
@media (max-width: 640px) {
  .up-status { display: none; }   /* 窄屏省略状态标签，标题已含状态语义，保留删除钮 */
  .up-del { padding: 7px 10px; }
}

/* 已绑定导师小节（并入邀请码绑定卡） */
.bound-sec { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.bound-sec > label { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 11px; }
.bound-sec > label span { font-size: 11.5px; color: var(--txt-3); font-weight: 700; margin-left: 4px; }
.bound-note { margin-top: 12px; font-size: 11.5px; color: var(--txt-3); font-weight: 600; }

/* 定价 */
.pricing-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card {
  position: relative; text-align: center;
  background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: 16px; padding: 28px 22px 26px;
  display: flex; flex-direction: column; transition: all .25s;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.price-card.hot {
  background: linear-gradient(180deg, rgba(13,148,136,.05), transparent 40%), var(--card);
  border: 1.5px solid rgba(13, 148, 136, .4);
  box-shadow: 0 8px 24px rgba(13, 148, 136, .10);
}
.p-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad-main); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 15px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(13, 148, 136, .22);
}
.p-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
/* 次数包卡底部注释（非卖点罗列） */
.pack-note {
  margin-top: 11px; padding-top: 10px;
  border-top: 1px dashed var(--line-2);
  font-size: 11px; color: var(--txt-3); font-weight: 600;
  line-height: 1.55; text-align: center;
}
.p-price { font-size: 32px; font-weight: 800; color: var(--txt); margin-bottom: 4px; }
.p-price small { font-size: 12px; color: var(--txt-3); font-weight: 700; }
.price-card ul { list-style: none; text-align: left; margin: 15px 0 19px; flex: 1; }
.price-card li {
  font-size: 13px; color: var(--txt-2); padding: 6px 0 6px 24px; position: relative;
  line-height: 1.5;
}
.price-card li::before {
  content: '✓'; position: absolute; left: 2px; color: var(--mint);
  font-weight: 800;
}

.share-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.sr-item {
  background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: 11px; padding: 15px 18px;
}
.sr-item b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.sr-item span { font-size: 12.5px; color: var(--txt-3); font-weight: 600; }

.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.pv-item {
  background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 17px 19px;
}
.pv-badge {
  font-size: 11px; font-weight: 600; padding: 3px 12px; border-radius: 7px;
  display: inline-block; margin-bottom: 9px;
}
.pv-badge.local { background: var(--mint-bg); color: var(--mint); }
.pv-badge.cloud { background: var(--blue-bg); color: var(--blue); }
.pv-item b { display: block; font-size: 13.5px; margin-bottom: 5px; }
.pv-item small { font-size: 12px; color: var(--txt-3); line-height: 1.65; display: block; }

/* ═══════════ 分享卡片（图片海报预览） ═══════════ */
.share-stage {
  display: grid; place-items: center; padding: 10px 0 4px;
}
.share-card {
  /* 卡片永不超出容器：窄屏随弹窗收缩，内部元素由 ≤500px 断点紧凑化 */
  width: min(360px, 100%); border-radius: 20px; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #12A491 0%, #0D9488 45%, #2B6CA8 130%);
  box-shadow: 0 20px 44px rgba(13, 148, 136, .25);
  animation: popIn .4s ease;
}
.share-head { padding: 22px 26px 14px; display: flex; justify-content: space-between; align-items: center; }
.sc-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 14px; }
.sc-brand .sc-logo {
  width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.22);
  display: grid; place-items: center; font-size: 15px;
}
.sc-date { font-size: 11px; opacity: .8; font-weight: 700; }
.share-body { padding: 10px 26px 6px; text-align: center; }
.sc-title { font-size: 19px; font-weight: 900; margin-bottom: 14px; }
/* 环中显数：分数嵌入圆环中心，填充与数字滚动同步 */
.sc-score-row {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-bottom: 18px; padding: 8px 0 4px;
}
.sc-score-ring { position: relative; width: 138px; height: 138px; flex-shrink: 0; }
.sc-score-ring svg { width: 100%; height: 100%; display: block; }
.sc-ring-num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.sc-ring-num b {
  font-size: 42px; font-weight: 900; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -1px;
}
.sc-ring-num span { font-size: 11px; opacity: .85; font-weight: 700; letter-spacing: 2px; }
.sc-score-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.sc-grade-pill {
  background: rgba(255, 255, 255, .95); color: #DE6A1B;
  font-size: 13px; font-weight: 800; padding: 6px 15px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
  letter-spacing: 1px;
}
.sc-beat { font-size: 16px; font-weight: 800; line-height: 1.3; }
.sc-sub { font-size: 11px; opacity: .8; font-weight: 600; line-height: 1.5; }
.sc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px;
}
.sc-item {
  background: rgba(255,255,255,.14); border-radius: 13px; padding: 9px 12px;
  text-align: center; backdrop-filter: blur(4px);
}
.sc-item b { font-size: 16px; display: block; font-weight: 900; }
.sc-item label { font-size: 10.5px; opacity: .85; font-weight: 700; }
.share-foot {
  padding: 14px 26px 20px; display: flex; align-items: center; gap: 14px;
  background: rgba(0, 0, 0, .14);
}
.share-qr { display: flex; align-items: center; gap: 12px; flex: 1; }
.qr-box {
  width: 62px; height: 62px; background: #fff; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
}
.qr-box svg { width: 52px; height: 52px; }
.qr-txt { font-size: 11px; line-height: 1.5; opacity: .9; font-weight: 700; }
.share-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* 分享弹窗窄屏适配：卡片随弹窗收缩后，内部元素等比紧凑防止拥挤溢出 */
@media (max-width: 500px) {
  .modal-inner { padding: 20px 16px 22px; }
  .share-head { padding: 16px 16px 10px; }
  .share-body { padding: 6px 16px 2px; }
  .sc-title { font-size: 17px; margin-bottom: 10px; }
  .sc-score-row { gap: 12px; margin-bottom: 12px; }
  .sc-score-ring { width: 106px; height: 106px; }
  .sc-ring-num b { font-size: 30px; }
  .sc-ring-num span { font-size: 10px; letter-spacing: 1px; }
  .sc-grade-pill { font-size: 12px; padding: 5px 12px; }
  .sc-beat { font-size: 14px; }
  .sc-sub { font-size: 10px; }
  .sc-score-meta { gap: 7px; }
  .sc-grid { gap: 6px; margin-bottom: 12px; }
  .sc-item { padding: 7px 8px; border-radius: 11px; }
  .sc-item b { font-size: 14px; }
  .share-foot { padding: 12px 16px 16px; gap: 10px; }
  .qr-box { width: 52px; height: 52px; border-radius: 10px; }
  .qr-box svg { width: 42px; height: 42px; }
  .qr-txt { font-size: 10px; }
  .share-actions { gap: 10px; }
  .share-actions .btn { padding: 10px 14px; font-size: 12.5px; }
}

/* ═══════════ Toast ═══════════ */
#toastRoot { position: fixed; top: 74px; right: 26px; z-index: 400; display: flex; flex-direction: column; gap: 11px; }
.toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 20px;
  box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600;
  color: var(--txt); animation: toastIn .35s cubic-bezier(.2, .9, .3, 1.2);
  max-width: 360px;
}
.toast.out { animation: toastOut .3s ease forwards; }
.toast .t-ico { font-size: 16px; }
.toast.mint { border-color: rgba(13, 148, 136, .35); }
.toast.warn { border-color: rgba(201, 134, 10, .4); }
.toast.red { border-color: rgba(208, 79, 64, .35); }
.toast.gold { border-color: rgba(201, 134, 10, .45); background: var(--gold-bg); }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }

/* 响应式微调 */
@media (max-width: 1080px) {
  .report-grid, .stats-grid, .mine-grid, .privacy-grid, .share-rules { grid-template-columns: 1fr; }
  .stats-cards { grid-template-columns: repeat(2, 1fr); }
  .pricing-row { grid-template-columns: 1fr; }
  .coach-flow-stats { grid-template-columns: repeat(3, 1fr); }
  .hero { flex-direction: column; align-items: stretch; }
  .hero-search { flex: 1 1 auto; }
  .nav { display: none; }
  /* 顶栏导航隐藏后，改用底部 tabbar 导航（App 壳固定项：占据布局底部，不随内容滚动） */
  .tabbar {
    display: flex; flex: 0 0 auto;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around; gap: 2px;
    box-shadow: 0 -4px 20px rgba(27, 37, 52, .06);
  }
  .tb-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    border: none; background: none; cursor: pointer; font-family: var(--font);
    color: var(--txt-3); font-size: 10.5px; font-weight: 600;
    padding: 6px 4px; border-radius: 9px; transition: all .2s;
  }
  .tb-item .nav-ico { width: 26px; height: 26px; border-radius: 8px; }
  .tb-item.active { color: var(--hue, var(--mint)); background: var(--hue-bg, var(--mint-bg)); }
  .tb-item.active .nav-ico {
    background: var(--hue, var(--mint)); color: #fff;
    box-shadow: 0 2px 6px rgba(27, 37, 52, .15);
  }
}

/* 顶栏移动端适配：压缩尺寸，确保按钮字样完整显示不换行 */
@media (max-width: 640px) {
  .topbar { height: 54px; padding: 0 12px; gap: 9px; }
  .topbar-right { gap: 8px; }
  .logo { gap: 8px; }
  .logo-icon { width: 32px; height: 32px; border-radius: 10px; }
  .logo-icon svg { width: 19px; height: 19px; }
  .logo-cn { font-size: 15px; }
  .logo-en { display: none; }
  .trial-timer, .lang-toggle { white-space: nowrap; flex-shrink: 0; }
  .trial-timer { padding: 6px 11px; font-size: 12px; gap: 6px; }
  .lang-toggle { padding: 6px 9px; font-size: 11px; }
  .user-avatar { width: 34px; height: 34px; font-size: 13px; }
}
/* 极窄屏：语言切换不再隐藏，改为图标化显示，确保功能始终可用 */
@media (max-width: 420px) {
  .lang-toggle { padding: 6px 8px; font-size: 11px; font-weight: 800; letter-spacing: 0; }
}
@media (max-width: 360px) {
  .logo-text { display: none; }
}

/* 移动端「我的」页面布局：头像+昵称同行、体验条通栏、卡片紧凑化 */
@media (max-width: 640px) {
  .main-wrap { padding: 18px 14px 34px; }
  /* 资料卡：头像与昵称信息同行 */
  .mine-profile { padding: 18px 16px; gap: 14px 16px; }
  .mp-avatar { width: 54px; height: 54px; border-radius: 14px; font-size: 21px; }
  .mp-info { flex: 1 1 0; min-width: 0; }
  .mp-name { font-size: 18px; gap: 8px; }
  .mp-days b { font-size: 20px; }
  /* 通用卡片紧凑化 */
  .rcard { padding: 18px 16px; }
  .rcard h3 { font-size: 15px; margin-bottom: 14px; }
  /* 定价三卡：单列堆叠，压缩内边距与字号 */
  .price-card { padding: 20px 16px 18px; }
  .p-price { font-size: 27px; }
  .price-card li { font-size: 12.5px; padding: 5px 0 5px 22px; }
  /* 分享续期规则：两列改单列，避免文字拥挤 */
  .share-rules { grid-template-columns: 1fr; gap: 10px; }
  .sr-item { padding: 13px 15px; }
  /* 隐私边界条目紧凑化 */
  .pv-item { padding: 14px 15px; }
  /* 已绑定导师行：徽标不挤压换行 */
  .b-ok { white-space: nowrap; flex-shrink: 0; }
  .bound-item { padding: 11px 13px; }
  /* 邀请码输入行紧凑化 */
  .code-input-row input { padding: 11px 14px; font-size: 13.5px; }
}

/* ═══════════════════════════════════════════════════
   目标管理（继承 Good-GYM）：周目标统领在前（窄列），日目标细化在后（宽列）
   ═══════════════════════════════════════════════════ */
.goal-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}
.goal-card, .week-card { margin: 0; }

.goal-empty {
  padding: 18px 4px;
  font-size: 13px;
  color: var(--txt-3);
  font-weight: 600;
  text-align: center;
}
.goal-rows { display: flex; flex-direction: column; gap: 11px; }
.goal-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px;
  background: var(--card-2);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  transition: border-color .2s ease, background-color .2s ease;
}
.goal-row.done { border-color: rgba(13, 148, 136, .3); background: var(--mint-bg); }
.g-name {
  flex: 0 0 118px;
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--txt);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g-emoji { font-size: 16px; }
.g-track {
  flex: 1 1 auto; min-width: 0;
  height: 10px; border-radius: 6px;
  background: var(--bg-2); position: relative;
}
.g-fill {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, #3D7BC0, #14A89A);
  transition: width .5s cubic-bezier(.34, 1.3, .64, 1);
  min-width: 4px;
}
.g-fill.hit {
  background: var(--mint);
  box-shadow: 0 0 8px rgba(13, 148, 136, .30);
}
.g-crown {
  position: absolute; right: 0; top: -22px;
  font-size: 10.5px; font-weight: 800; color: var(--mint);
  white-space: nowrap;
}
.g-num {
  flex: 0 0 76px; text-align: right;
  font-size: 15px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--txt);
}
.g-num small { font-size: 11px; color: var(--txt-3); font-weight: 700; }
.goal-row.done .g-num { color: var(--mint); }
.g-ops { display: flex; gap: 6px; flex-shrink: 0; }
.g-btn {
  width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 13px; font-weight: 700; color: var(--txt-2);
  cursor: pointer; display: grid; place-items: center;
  transition: all .18s ease;
  padding: 0; line-height: 1;
}
.g-btn:hover { color: var(--blue); border-color: rgba(61, 123, 192, .4); background: var(--blue-bg); transform: translateY(-1px); }
.g-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.g-btn.del:hover { color: var(--red); border-color: rgba(208, 79, 64, .35); background: var(--red-bg); }
.goal-add {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line-2);
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.goal-add label { font-size: 11.5px; color: var(--txt-3); font-weight: 700; }
.goal-select { padding-top: 7px; padding-bottom: 7px; font-size: 12.5px; border-radius: 11px; }
.goal-add-all { font-size: 12px; color: var(--txt-3); font-weight: 700; }
.goal-total {
  margin-top: 13px; font-size: 12.5px; color: var(--txt-2); font-weight: 700;
}
.goal-total b { color: var(--mint); font-size: 15px; }

/* 每周训练目标 */
.week-days {
  display: flex; justify-content: space-between;
  gap: 6px; margin: 6px 2px 16px;
}
.wd-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer; user-select: none; padding: 4px 2px; border-radius: 10px;
  transition: background .15s ease;
}
.wd-item:hover { background: var(--blue-bg); }
.wd-item:active { transform: scale(.96); }
/* 计划训练日：圆点外加红色圈记（红圈标记习惯）+ 星期文字高亮 */
.wd-item.planned .wd-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red); }
.wd-item.planned .wd-dot.full { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red), 0 2px 8px rgba(13, 148, 136, .30); }
.wd-item.planned label { color: var(--red); }
.wd-item label { font-size: 11.5px; color: var(--txt-3); font-weight: 800; }
.wd-dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
  border: 2px solid #DFE6ED; background: var(--card); color: #C3CED9;
  transition: all .25s ease;
}
.wd-dot.none { border-color: #DFE6ED; color: #C9D4DF; }
.wd-dot.part { border-color: #14A89A; color: #14A89A; background: var(--mint-bg); }
.wd-dot.full {
  border-color: var(--mint); background: var(--mint); color: #fff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, .30);
}
.week-legend i.wd-dot { width: 15px; height: 15px; font-size: 0; }
.week-legend i.wd-dot.plan-demo { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--red); }
.week-legend {
  display: flex; justify-content: center; gap: 15px;
  font-size: 11px; color: var(--txt-3); font-weight: 700;
}
.week-legend span { display: flex; align-items: center; gap: 5px; }

/* 移动端目标管理适配 */
@media (max-width: 860px) {
  .goal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .goal-row { gap: 8px; padding: 9px 10px; }
  .g-name { flex-basis: 92px; font-size: 12px; }
  .g-num { flex-basis: 58px; font-size: 13px; }
  .g-btn { width: 24px; height: 24px; }
  .wd-dot { width: 30px; height: 30px; }
  .week-days { margin: 4px 0 12px; }
}

/* ═══ 成长统计：得分曲线动作切换下拉（标题行右侧，mini-select 小号变体）═══ */
.growth-select { margin-left: auto; padding-top: 7px; padding-bottom: 7px; font-size: 12.5px; border-radius: 11px; }
/* 窄屏：标题换行后下拉靠左占行 */
@media (max-width: 640px) {
  .growth-select { margin-left: 0; }
}

/* ═══ 视频详情弹窗窄屏适配：封面与信息纵向堆叠，避免横向溢出裁切 ═══ */
@media (max-width: 640px) {
  .detail-head { flex-direction: column; gap: 16px; }
  .detail-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9.5; }
  /* 榜单周期 Tab：三等分平铺，不再挤压成竖排单字 */
  .rank-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .rank-tabs .chip { text-align: center; padding: 7px 6px; }
}
