/*! AOPT 主样式表 · 由 public/user.html 拆分外移（2026-10-20）
 *  来源：<style> 行 10-1469（原文件第一个样式块，约 982 条规则）
 *  说明：内容与原内联样式逐字一致，仅位置外移。文档中后续的小 <style> 块仍在本文件之后，
 *        层叠顺序未变。修改本文件后请同步更新 user.html 中 link 标签的 ?v= 版本号。
 */
  :root {
    --brand: #e0631b;
    --brand-dark: #c55315;
    --brand-soft: rgba(224,99,27,.14);
    --aopt-orange: #e0631b;
    --aopt-orange-light: #fff7ed;
    --aopt-orange-border: #fed7aa;
    --aopt-charcoal: #1f2937;
    --aopt-gray-body: #4b5563;
    --aopt-gray-light: #9ca3af;
    --aopt-bg: #faf8f5;
    --aopt-card-bg: #ffffff;
    --aopt-border: #ebe5dc;
    --aopt-danger: #dc2626;
    --aopt-danger-bg: #fef2f2;
    --aopt-success: #059669;
    --aopt-success-bg: #ecfdf5;
    --radius-card: 12px;
    --radius-pill: 9999px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.04);
    --bg: #faf8f5;
    --bg-soft: #f2ece3;
    --card: #ffffff;
    --card-2: #f7f1e8;
    --thumb: #f0e9dd;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #ebe5dc;
    --ok: #059669;
    --warn: #d97706;
    --err: #dc2626;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { font-size: 16px; }
  /* 电脑端字号略放大，手机端保持清晰可读（rem 随 html 缩放） */
  @media (min-width: 1024px) { html { font-size: 16.5px; } }
  body {
    background: var(--aopt-bg);
    color: var(--text);
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 1rem;
    line-height: 1.65;
  }
  .muted { color: var(--muted); }
  /* 全屏看图灯箱：图在上 + 讲解文字紧贴下方（常规阅读布局） */
  .lightbox {
    position: fixed; inset: 0; z-index: 200; display: none;
    flex-direction: column; align-items: center; justify-content: center;
    background: rgba(0,0,0,.92); cursor: zoom-out; padding: 44px 16px 18px;
    box-sizing: border-box;
  }
  .lightbox.on { display: flex; }
  .lightbox img { max-width: 96vw; max-height: 64vh; border-radius: 10px; box-shadow: 0 8px 40px rgba(0,0,0,.6); }
  .lightbox .lb-close { position: absolute; top: 10px; right: 14px; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; user-select: none; z-index: 2; }
  .lightbox .lb-cap { position: static; margin-top: 12px; max-width: 96vw; max-height: 24vh; overflow-y: auto; text-align: left; color: #fff; font-size: 15px; line-height: 1.7; white-space: pre-line; background: rgba(255,255,255,.1); padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); }
  header {
    background: #fff;
    background-image: radial-gradient(1100px 380px at 12% -25%, rgba(255,122,26,.14), transparent 62%);
    color: var(--text);
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  header h1 { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
  header h1 b { color: var(--brand); }
  header p { font-size: 12px; opacity: .65; margin-top: 3px; font-weight: 500; }
  .user-btn {
    background: var(--brand); color: #141414; border: none;
    padding: 8px 16px; border-radius: 22px; cursor: pointer;
    font-size: 13px; font-weight: 800; white-space: nowrap;
    box-shadow: 0 4px 16px rgba(255,122,26,.35);
  }
  .user-btn:hover { background: #ff8c3a; }
  .member-badge { display: flex; align-items: center; gap: 8px; color: var(--text); }
  .member-name { font-size: 13px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
  .member-chip { background: var(--brand); color: #141414; font-weight: 800; padding: 2px 9px; border-radius: 12px; font-size: 11px; }
  .unbind { color: var(--muted); background: transparent; border: none; cursor: pointer; font-size: 11px; text-decoration: underline; }
  .unbind:hover { color: var(--err); }

  /* 微信绑定模拟弹窗 */
  .modal-mask { position: fixed; inset: 0; background: rgba(60,50,40,.5); display: flex; align-items: center; justify-content: center; z-index: 100; }
  .modal { background: var(--card); width: 340px; max-width: 92vw; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(60,50,40,.25); }
  .modal-head { background: var(--card-2); color: var(--text); padding: 14px 16px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
  .modal-close { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
  .modal-close:hover { color: var(--text); }
  .modal-body { padding: 16px; }
  .wx-box { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
  .wx-avatar { width: 42px; height: 42px; border-radius: 50%; background: #07c160; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex: none; }
  .wx-text { font-size: 13px; color: var(--text); }
  .wx-text span { color: var(--muted); font-size: 11px; }
  .modal-body input { width: 100%; padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); border-radius: 10px; margin-bottom: 12px; font-size: 13px; box-sizing: border-box; outline: none; }
  .modal-body input:focus { border-color: var(--brand); }
  .member-plan { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
  .member-plan b { color: var(--brand); }
  .modal-note { font-size: 11px; color: var(--muted); margin-top: 10px; text-align: center; }

  /* 会员专属锁卡 */
  .lock-card { background: var(--card); border: 1px dashed rgba(255,122,26,.55); border-radius: 16px; padding: 30px 20px; text-align: center; margin-bottom: 14px; }
  .lock-icon { font-size: 36px; }
  .lock-title { font-size: 18px; font-weight: 800; margin: 10px 0 6px; }
  .lock-desc { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
  .lock-hint { color: var(--muted); font-size: 12px; margin-top: 14px; }

  /* 免费训练计划（v3.0） */
  .fp-filters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}
  .fp-filter-btn{padding:6px 16px;border:1px solid var(--line);border-radius:20px;background:var(--card);color:var(--text);font-size:13px;cursor:pointer;transition:all .15s}
  .fp-filter-btn.active{background:var(--brand);color:#fff;border-color:var(--brand)}
  .fp-grid{display:grid;grid-template-columns:1fr;gap:12px}
  .fp-card{border:1px solid var(--line);border-radius:14px;padding:16px;background:var(--bg-soft);cursor:pointer;transition:all .2s;position:relative;overflow:hidden;display:flex;align-items:flex-start;gap:12px}
  .fp-card:active{transform:scale(.98)}
  .fp-card.expanded{border-color:rgba(255,122,26,.4);border-bottom-left-radius:0;border-bottom-right-radius:0}
  .fp-group{border:1px solid transparent;border-radius:14px;transition:border-color .2s,box-shadow .2s;margin-bottom:14px}
  .fp-group.fp-open{border-color:rgba(255,122,26,.35);box-shadow:0 4px 14px rgba(255,122,26,.08)}
  .fp-group .fp-card{border:none;box-shadow:none;border-radius:14px}
  .fp-group.fp-open .fp-card{border-radius:14px 14px 0 0}
  .fp-share-inline{margin-top:10px;padding:6px 16px;border:1px solid #fed7aa;border-radius:18px;background:#fff7ed;color:#e0631b;font-size:12px;cursor:pointer;display:inline-block}
  .fp-card-top{display:flex;align-items:flex-start;gap:12px}
  .fp-card-icon{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}
  .fp-card-icon.cat-beginner{background:linear-gradient(135deg,#dcfce7,#bbf7d0)}
  .fp-card-icon.cat-muscle{background:linear-gradient(135deg,#dbeafe,#bfdbfe)}
  .fp-card-icon.cat-fat{background:linear-gradient(135deg,#fef3c7,#fde68a)}
  .fp-card-icon.cat-rehab{background:linear-gradient(135deg,#fce7f3,#fbcfe8)}
  .fp-card-icon.cat-core{background:linear-gradient(135deg,#e0e7ff,#c7d2fe)}
  .fp-card-icon.cat-shape{background:linear-gradient(135deg,#f3e8ff,#e9d5ff)}
  .fp-card-icon.cat-strength{background:linear-gradient(135deg,#fee2e2,#fecaca)}
  .fp-card-icon.cat-posture{background:linear-gradient(135deg,#ccfbf1,#99f6e4)}
  .fp-card-icon.cat-sport{background:linear-gradient(135deg,#fff7ed,#fed7aa)}
  .fp-card-icon.cat-default{background:linear-gradient(135deg,#f1f5f9,#e2e8f0)}
  .fp-card-info{flex:1;min-width:0}
  .fp-card-title{font-size:15px;font-weight:700;color:var(--text);margin-bottom:6px;line-height:1.4}
  .fp-card-desc{font-size:12px;color:var(--muted);margin-bottom:8px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .fp-card-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
  .fp-tag{font-size:11px;padding:2px 8px;border-radius:10px;font-weight:600;white-space:nowrap}
  .fp-tag-cat{background:#dbeafe;color:#1d4ed8}
  .fp-tag-diff{background:#fef3c7;color:#92400e}
  .fp-tag-dur{background:#f1f5f9;color:#475569}
  .fp-tag-ex{background:#dcfce7;color:#166534}
  .fp-card-arrow{position:absolute;right:14px;top:16px;color:var(--muted);font-size:14px;transition:transform .2s}
  .fp-card.expanded .fp-card-arrow{transform:rotate(180deg);color:var(--brand)}
  .fp-card-body{flex:1;min-width:0;padding-right:24px}
  .fp-detail{max-height:0;overflow:hidden;transition:max-height .35s ease;margin:0;border:0}
  .fp-detail.expanded{border-top:1px dashed var(--line);margin-top:12px;padding-top:12px}
  .fp-detail .rendered{font-size:14px;line-height:1.8}
  .fp-detail .rendered .ac-img{width:100%;max-width:280px;border-radius:8px;margin:8px 0;background:#f1f5f9}
  .fp-detail .actions{display:flex;gap:8px;flex-wrap:wrap}
  .fp-detail .actions button{padding:6px 14px;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--text);font-size:12px;cursor:pointer}
  @media(min-width:480px){.fp-grid{grid-template-columns:repeat(2,1fr)}}

  /* Keep 风格训练打卡（v3.0） */
  .ci-board{background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-top:18px}
  .ci-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 12px;border-bottom:1px solid var(--line)}
  .ci-head h3{font-size:16px;font-weight:700;color:var(--text);margin:0;display:flex;align-items:center;gap:8px}
  .ci-streak{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--brand);font-weight:600}
  .ci-streak-fire{font-size:18px}
  .ci-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-bottom:1px solid var(--line)}
  .ci-stat{padding:14px 12px;text-align:center;border-right:1px solid var(--line)}
  .ci-stat:last-child{border-right:none}
  .ci-stat-val{font-size:22px;font-weight:800;color:var(--brand);line-height:1.2}
  .ci-stat-label{font-size:11px;color:var(--muted);margin-top:4px}
  .ci-cal{padding:14px 18px}
  .ci-cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
  .ci-cal-title{font-size:14px;font-weight:600;color:var(--text)}
  .ci-cal-nav{display:flex;gap:6px}
  .ci-cal-nav button{width:28px;height:28px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--text);cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center}
  .ci-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}
  .ci-cal-dow{font-size:11px;color:var(--muted);padding:4px 0;font-weight:600}
  .ci-cal-day{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:12px;border-radius:10px;color:var(--text);position:relative}
  .ci-cal-day.empty{color:transparent}
  .ci-cal-day.today{border:2px solid var(--brand);font-weight:700}
  .ci-cal-day.checked{background:linear-gradient(135deg,#ff7a1a,#ff9a44);color:#fff;font-weight:700;border-radius:10px}
  .ci-cal-day.checked::after{content:'✓';position:absolute;bottom:1px;right:2px;font-size:8px;opacity:.8}
  .ci-form{padding:14px 18px;border-top:1px solid var(--line)}
  .ci-form-title{font-size:14px;font-weight:600;color:var(--text);margin-bottom:12px}
  .ci-field{margin-bottom:12px}
  .ci-field label{display:block;font-size:12px;color:var(--muted);margin-bottom:4px;font-weight:600}
  .ci-field select,.ci-field input,.ci-field textarea{width:100%;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg-soft);color:var(--text);font-size:13px;box-sizing:border-box}
  .ci-field textarea{resize:vertical;min-height:50px}
  .ci-mood-row{display:flex;gap:8px}
  .ci-mood-btn{flex:1;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--bg-soft);cursor:pointer;text-align:center;font-size:18px;transition:all .15s}
  .ci-mood-btn.active{border-color:var(--brand);background:rgba(255,122,26,.08);box-shadow:0 0 0 2px rgba(255,122,26,.15)}
  .ci-row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .ci-submit{width:100%;padding:12px;border:none;border-radius:12px;background:linear-gradient(135deg,#ff7a1a,#ff9a44);color:#fff;font-size:15px;font-weight:700;cursor:pointer;margin-top:6px;transition:opacity .15s}
  .ci-submit:active{opacity:.85}
  .ci-submit:disabled{opacity:.5;cursor:not-allowed}
  .ci-records{padding:14px 18px;border-top:1px solid var(--line)}
  .ci-records-title{font-size:14px;font-weight:600;color:var(--text);margin-bottom:10px}
  .ci-rec{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
  .ci-rec:last-child{border-bottom:none}
  .ci-rec-dot{width:8px;height:8px;border-radius:50%;background:var(--brand);flex-shrink:0}
  .ci-rec-info{flex:1;min-width:0}
  .ci-rec-name{font-size:13px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ci-rec-meta{font-size:11px;color:var(--muted);margin-top:2px}
  .ci-rec-date{font-size:11px;color:var(--muted);flex-shrink:0}
  .ci-empty{padding:20px;text-align:center;color:var(--muted);font-size:13px}
  .ci-login{padding:30px 18px;text-align:center}
  .ci-login p{font-size:14px;color:var(--muted);margin-bottom:12px}
  .ci-login button{padding:10px 28px;border:none;border-radius:12px;background:linear-gradient(135deg,#ff7a1a,#ff9a44);color:#fff;font-size:14px;font-weight:600;cursor:pointer}
  .ci-heatmap{padding:14px 18px;border-top:1px solid var(--line);overflow-x:auto}
  .ci-heatmap-title{font-size:14px;font-weight:600;color:var(--text);margin-bottom:10px}
  .ci-rings{padding:14px 18px;border-top:1px solid var(--line);text-align:center}
  .ci-rings-title{font-size:14px;font-weight:600;color:var(--text);margin-bottom:10px}
  .ci-review{padding:14px 18px;border-top:1px solid var(--line)}
  .ci-review-title{font-size:14px;font-weight:600;color:var(--text);margin-bottom:10px}
  .ci-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
  .ci-review-card{padding:10px 12px;border-radius:10px;background:var(--surface-soft,#f8f5f0);border:1px solid var(--line)}
  .ci-review-card .label{font-size:11px;color:var(--muted);margin-bottom:4px}
  .ci-review-card .val{font-size:18px;font-weight:700;color:var(--text)}
  .ci-review-card .trend{font-size:11px;margin-top:2px}
  .ci-review-card .trend.up{color:#16a34a}
  .ci-review-card .trend.down{color:#dc2626}
  .ci-review-card .trend.flat{color:var(--muted)}
  .ci-review-suggestions{margin-top:8px;padding:10px 14px;border-radius:10px;background:#fff7ed;border:1px solid #fed7aa;font-size:13px;line-height:1.6;color:#9a3412}
  .ci-review-suggestions b{color:#c2410c}

  /* 训前三问（P2-a） */
  .ptc-card{padding:16px 18px;border-radius:12px;border:1px solid var(--line);background:var(--card-bg,#fff);margin-bottom:14px}
  .ptc-title{font-size:14px;font-weight:600;color:var(--text);margin-bottom:12px;display:flex;align-items:center;gap:6px}
  .ptc-questions{display:flex;flex-direction:column;gap:12px}
  .ptc-q{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
  .ptc-q-label{font-size:13px;color:var(--text);min-width:110px;font-weight:500}
  .ptc-opts{display:flex;gap:6px;flex-wrap:wrap}
  .ptc-opt{padding:5px 12px;border-radius:16px;border:1px solid var(--line);background:var(--surface-soft,#f8f5f0);font-size:12px;color:var(--text);cursor:pointer;transition:all .15s;user-select:none}
  .ptc-opt:hover{border-color:var(--brand)}
  .ptc-opt.selected{background:var(--brand);color:#fff;border-color:var(--brand)}
  .ptc-result{margin-top:12px;padding:10px 14px;border-radius:10px;font-size:13px;line-height:1.6;display:none}
  .ptc-result.green{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}
  .ptc-result.yellow{background:#fffbeb;border:1px solid #fde68a;color:#92400e}
  .ptc-result.red{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
  .ptc-toggle{font-size:12px;color:var(--muted);cursor:pointer;text-decoration:underline;margin-top:8px;display:inline-block}

  /* 肌肉分布图（P3-a） */
  .ci-muscle-map{text-align:center;padding:14px 18px;border-top:1px solid var(--line)}
  .ci-muscle-title{font-size:14px;font-weight:600;color:var(--text);margin-bottom:10px}
  .ci-muscle-svg{max-width:220px;margin:0 auto}
  .ci-muscle-legend{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:8px}
  .ci-muscle-legend span{font-size:10px;color:#9ca3af;display:flex;align-items:center;gap:2px}
  .ci-muscle-legend .dot{display:inline-block;width:8px;height:8px;border-radius:2px}

  /* 训练DNA（P3-b） */
  .tdna-card{padding:18px;border-radius:14px;border:1px solid var(--line);background:linear-gradient(135deg,rgba(255,122,26,.04),rgba(255,122,26,.01));margin-bottom:16px}
  .tdna-header{display:flex;align-items:center;gap:10px;margin-bottom:14px}
  .tdna-title{font-size:15px;font-weight:700;color:var(--text)}
  .tdna-subtitle{font-size:11px;color:var(--muted);margin-top:2px}
  .tdna-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
  .tdna-item{padding:10px 12px;border-radius:10px;background:var(--card-bg,#fff);border:1px solid var(--line)}
  .tdna-item .label{font-size:11px;color:var(--muted);margin-bottom:3px}
  .tdna-item .val{font-size:15px;font-weight:700;color:var(--text)}
  .tdna-item .detail{font-size:11px;color:var(--muted);margin-top:2px}
  .tdna-bar{height:4px;border-radius:2px;background:#f0e6d8;margin-top:6px;overflow:hidden}
  .tdna-bar-fill{height:100%;border-radius:2px;background:var(--brand);transition:width .4s ease}
  .tdna-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}
  .tdna-tag{padding:3px 10px;border-radius:12px;font-size:11px;background:rgba(255,122,26,.1);color:var(--brand);border:1px solid rgba(255,122,26,.2)}

  /* 生成方案三步引导（v2.6） */
  .gen-entry { text-align: center; padding: 26px 20px; border: 1px dashed rgba(255,122,26,.45); background: linear-gradient(135deg, rgba(255,122,26,.06), rgba(255,122,26,.02)); }
  .gen-entry .hint { margin-bottom: 14px; }
  .checkin-card .checkin-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
  .checkin-arrow { color: var(--brand); font-size: 13px; }
  .pre-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; color: var(--text); }
  .pre-done { color: #16a34a; font-weight: 600; font-size: 12px; }
  .pre-undo { color: var(--muted); font-weight: 600; font-size: 12px; }
  /* 顶部一级主导航（Tab）自适应重构：全端均分 + 防溢出 + 精致激活态 */
  .main-nav-container, nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-bottom: 1px solid #ede8e1;
    background: #ffffff;
    padding: 0 18px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 10;
    gap: clamp(10px, 2vw, 26px);
  }
  .nav-tab-item, nav button {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    letter-spacing: .3px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: #374151; /* 未选中：深炭灰，对比度扎实不发虚 */
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    box-sizing: border-box;
    border: none;
    background: transparent;
  }
  .nav-tab-item:hover, nav button:hover { color: var(--text, #333); }
  .nav-tab-item.active, nav button.active {
    color: var(--aopt-orange);
    font-weight: 700;
  }
  .nav-tab-item.active::after, nav button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background-color: var(--aopt-orange);
    border-radius: 3px 3px 0 0;
  }
  /* 多端响应式微调：手机字号15px铺满一行；iPad/PC 字号16px且容器限宽居中 */
  @media (max-width: 767px) {
    .main-nav-container, nav { padding: 0 8px; font-size: 14px; overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; gap: clamp(8px, 2.5vw, 14px); -webkit-overflow-scrolling: touch; }
    .nav-tab-item, nav button { font-size: 15px; padding: 13px 8px; flex: 1 0 auto; }
  }
  @media (min-width: 768px) {
    .main-nav-container, nav { max-width: 1200px; margin: 0 auto; left: 0; right: 0; }
    .nav-tab-item, nav button { font-size: 16px; padding: 15px 12px; }
  }
  /* v2.39 三端响应式布局体系：
     PC(>1024) 核心容器 1080 自适应 Grid；平板(768~1024) 全功能多列 + 内容区适配 100vh；
     移动端(<768) 单列流式、收紧内边距、字体 15~16px。 */
  main { max-width: 1080px; margin: 0 auto; padding: 16px 14px 56px; } /* 移动端默认 */
  @media (min-width: 768px) { main { padding: 20px 20px 64px; min-height: calc(100vh - 118px); } } /* 平板+桌面 100vh */
  @media (min-width: 1024px) { main { padding: 24px 24px 72px; } } /* PC 宽屏 */
  /* 桌面端聊天可读宽度：气泡文字最长 760px，避免 1080 容器下整行拉伸难以阅读 */
  @media (min-width: 1024px) { .msg.bot .bubble { max-width: 760px; } .msg.user .bubble { max-width: 520px; } }
  .panel, .tab-pane { display: none; } /* 严格隔离：仅当前选中 Tab 显示，其余完全隐藏 */
  .panel.active, .tab-pane.active { display: block; animation: panelIn .22s ease; }
  @keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

  /* 问答区：撑满视口、去除多余留白（IP 特异性 > .panel{display:none}，故仅在 active 时 display:flex，保证 Tab 切换可被彻底隐藏） */
  #panel-ask.active { display: flex; flex-direction: column; min-height: calc(100vh - 178px); }
  .chat-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    flex: 1;
    min-height: 320px;
    max-height: none;
    overflow-y: auto;
    margin-bottom: 8px;
  }
  .msg { display: flex; margin-bottom: 12px; }
  .msg .bubble {
    max-width: 84%;
    padding: 11px 15px;
    border-radius: 14px;
    font-size: 16px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
  }
  .msg.user { justify-content: flex-end; }
  .msg.user .bubble { background: var(--brand); color: #141414; font-weight: 500; border-bottom-right-radius: 4px; }
  .msg.bot { justify-content: flex-start; }
  .msg.bot .bubble { background: var(--card-2); color: var(--text); border-bottom-left-radius: 4px; }
  .msg .bubble h4 { font-size: 1.05rem; margin-bottom: 6px; }
  .msg .bubble .meta { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
  .msg .bubble pre { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 10px; overflow-x: auto; font-size: .9rem; line-height: 1.6; }
  .msg .bubble img { max-width: 100%; border-radius: 8px; margin-top: 8px; border: 1px solid var(--line); }
  .msg .bubble .ocr-hit { margin-top: 8px; }
  .msg .bubble .ocr-hit a { display: inline-block; margin-right: 6px; margin-bottom: 6px; }
  .msg .bubble .ocr-hit a img { width: 132px; height: 132px; object-fit: cover; margin: 0; cursor: zoom-in; border-radius: 10px; border: 1px solid var(--line); }
  @media (max-width: 600px) { .msg .bubble .ocr-hit a img { width: 96px; height: 96px; } }
  @media (max-width: 600px) { .cat-select-row { flex-direction: column; align-items: stretch; } .cat-select-row select { width: 100%; } }
  @media (max-width: 640px) { .lib-detail { top: 12px; right: 8px; bottom: 8px; left: 8px; width: auto; max-width: none; } }
  .msg .bubble .src-block { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; font-size: 12px; color: var(--muted); }
  .msg .bubble .src-block b { color: var(--text); }
  .msg .bubble .src-item { margin-top: 5px; }
  .msg .bubble .src-snip { color: var(--muted); margin-top: 1px; font-size: 12px; line-height: 1.5; }
  .msg .bubble .related { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
  .msg .bubble .related-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
  .msg .bubble .related button { display: inline-block; margin: 0 6px 6px 0; padding: 5px 12px; border: 1px solid var(--line); border-radius: 16px; background: transparent; font-size: 13px; color: var(--brand); cursor: pointer; }
  .msg .bubble .related button:hover { background: var(--brand-soft); border-color: var(--brand); }
  /* 追问胶囊（suggested_queries）样式 */
  .msg .bubble .sq-wrap { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
  .msg .bubble .sq-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
  .msg .bubble .sq-wrap button { display: inline-block; margin: 0 6px 6px 0; padding: 5px 12px; border: 1px solid var(--line); border-radius: 16px; background: transparent; font-size: 13px; color: var(--brand); cursor: pointer; transition: all .15s; }
  .msg .bubble .sq-wrap button:hover { background: var(--brand-soft); border-color: var(--brand); }
  .msg .bubble .tagline { font-size: 12px; color: var(--muted); margin-top: 6px; }
  /* ===== v2.36 智能问答：推荐动作卡 + 引用文献角标 ===== */
  .msg .bubble .qa-actions, .msg .bubble .qa-cite-bar { white-space: normal; }
  .msg .bubble .qa-actions { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
  .msg .bubble .qa-actions-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
  .msg .bubble .qa-action-card { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 6px 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); cursor: pointer; max-width: 100%; vertical-align: top; }
  .msg .bubble .qa-action-card:hover { background: var(--brand-soft); border-color: var(--brand); }
  .msg .bubble .qa-action-card .qa-ac-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #fff; flex: none; }
  .msg .bubble .qa-action-card .qa-ac-name { font-size: 13px; color: var(--text); font-weight: 600; line-height: 1.3; }
  .msg .bubble .qa-action-card .qa-ac-hint { font-size: 11px; color: var(--muted); }
  .msg .bubble .qa-cite-bar { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
  .msg .bubble .qa-cite-title { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
  /* ChatGPT 风格：小角标 + 悬浮展开 */
  .msg .bubble .qa-cite-tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
  .msg .bubble .qa-cite-tag { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: var(--brand-soft); font-size: 11px; font-weight: 700; color: var(--brand); cursor: pointer; transition: all .15s; user-select: none; }
  .msg .bubble .qa-cite-tag:hover { background: var(--brand); color: #fff; transform: scale(1.1); }
  .msg .bubble .qa-cite-pop { display: none; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12px; color: var(--text); line-height: 1.6; }
  .msg .bubble .qa-cite-pop.show { display: block; }
  .msg .bubble .qa-cite-pop .qcp-item { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .msg .bubble .qa-cite-pop .qcp-item:last-child { border-bottom: none; }
  .msg .bubble .qa-cite-pop .qcp-num { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; background: var(--brand-soft); font-size: 10px; font-weight: 700; color: var(--brand); margin-right: 6px; vertical-align: middle; }
  .msg .bubble .qa-cite-pop .qcp-title { font-weight: 600; color: var(--brand-dark); }
  .msg .bubble .qa-cite-pop .qcp-detail { color: var(--muted); margin-top: 2px; }
  .msg .bubble .qa-cite-pop .qcp-toggle { font-size: 11px; color: var(--brand); cursor: pointer; margin-top: 6px; text-align: right; }
  .msg .bubble .qa-cite-pop .qcp-toggle:hover { text-decoration: underline; }
  /* v2.34：限次提示醒目样式 */
  .msg .bubble.limit-bubble { background: #fef3c7; border: 1px solid #f59e0b; color: #78350f; }
  /* ===== v2.38 合健道版式：核心结论卡 + 营养食材卡 + 文献溯源 ===== */
  .msg .bubble .qa-conclusion { display: flex; align-items: flex-start; gap: 8px; background: linear-gradient(90deg, rgba(255,166,43,.14), rgba(255,166,43,.05)); border: 1px dashed #f0b24b; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font-weight: 700; color: #7c4a03; line-height: 1.65; white-space: normal; }
  .msg .bubble .qa-conclusion .qc-ico { flex: none; font-size: 15px; line-height: 1.4; }
  .msg .bubble .qa-conclusion .qc-body { font-weight: 700; color: #6b4a0a; }
  .msg .bubble .qa-foods { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; white-space: normal; }
  .msg .bubble .qa-foods-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
  .msg .bubble .qa-food-card { display: inline-block; margin: 0 6px 6px 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); font-size: 13px; color: var(--text); vertical-align: top; }
  .msg .bubble .qa-food-name { font-weight: 700; color: var(--brand-dark); }
  .msg .bubble .qa-food-mac { color: var(--muted); }
  /* v2.39 原理题「知识图解」卡片（THEORY 领域：呼吸方法/生理机制/生物力学等，替换无关力量动作推荐） */
  .msg .bubble .qa-infographics { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; white-space: normal; }
  .msg .bubble .qa-infographics-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
  .msg .bubble .qa-info-card { display: inline-flex; flex-direction: column; margin: 0 8px 8px 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); vertical-align: top; max-width: 220px; cursor: zoom-in; }
  .msg .bubble .qa-info-card:hover { border-color: var(--brand); background: var(--brand-soft); }
  .msg .bubble .qa-info-card img { display: block; width: 100%; height: auto; max-height: 160px; object-fit: cover; border-radius: 8px; margin: 0 0 6px; border: 1px solid var(--line); }
  .msg .bubble .qa-info-title { font-size: 13px; color: var(--text); font-weight: 600; line-height: 1.4; }
  .msg .bubble .qa-info-cap { font-size: 11px; color: var(--muted); margin-top: 2px; }
  /* 文献溯源：终极胶囊条叠加到引用角标 */
  .msg .bubble .qa-cite-title { font-weight: 700; color: var(--brand-dark); }
  .input-row {
    display: flex;
    gap: 8px;
  }
  .input-row input {
    flex: 1;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 12px;
    font-size: 15px;
    outline: none;
  }
  .input-row input::placeholder { color: var(--muted); }
  .input-row input:focus { border-color: var(--brand); }
  .input-row select {
    flex: 1;
    min-width: 0;
    padding: 12px 10px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .input-row select:focus { border-color: var(--brand); }
  .input-row button {
    flex: 0 0 auto;
    min-width: 96px;
    padding: 0 22px;
    border: none;
    border-radius: 12px;
    background: var(--brand);
    color: #141414;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
  }
  .input-row button:disabled { opacity: .5; cursor: not-allowed; }  .suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .suggest button {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
    font-size: 13px;
    color: var(--brand);
    cursor: pointer;
  }
  .suggest button:hover { background: var(--brand-soft); border-color: var(--brand); }

  /* ===== 动作库 · Hevy 风格 ===== */
  .cat-select-row { display: flex; gap: 8px; align-items: center; }
  .cat-select-row select {
    flex: 0 0 auto; min-width: 150px; padding: 11px 12px; background: var(--card);
    border: 1px solid var(--line); color: var(--text); border-radius: 12px; font-size: 14px;
    font-weight: 700; cursor: pointer; outline: none;
  }
  .cat-select-row select:focus { border-color: var(--brand); }
  .lib-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 4px; }
  .lib-pager button {
    padding: 8px 18px; border: 1px solid var(--line); border-radius: 22px;
    background: var(--card); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all .15s;
  }
  .lib-pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
  .lib-pager button:disabled { opacity: .4; cursor: not-allowed; }
  .lib-pager .pg-info { font-size: 13px; color: var(--muted); font-weight: 600; }
  .lib-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; margin-top: 16px; }
  /* 在线链接卡片 */
  .vc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
  .vc-wrap { display: flex; flex-direction: column; }
  .vc-wrap .vc-card { height: 100%; }
  .vc-wrap .vc-share { margin-top: 8px; }
  .vc-wrap .vc-share button { margin-top: 0; }
  .vc-card {
    display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
    border-radius: 12px; overflow: hidden; cursor: pointer; text-decoration: none; color: inherit;
    transition: transform .18s, box-shadow .18s, border-color .18s; box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.04));
  }
  .vc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); border-color: var(--brand, #e0631b); }
  .vc-cover { width: 100%; aspect-ratio: 16 / 9; background: #f0e9dd; object-fit: cover; display: block; }
  .vc-cover-ph { width: 100%; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e0631b, #c55315); color: #fff; font-size: 40px; }
  .vc-body { padding: 12px 14px; }
  .vc-title { font-size: 14px; font-weight: 700; color: #1e293b; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .vc-note { font-size: 12px; color: #6b7280; margin-top: 6px; line-height: 1.5; }
  .vc-source { font-size: 11px; color: #9ca3af; margin-top: 8px; }
  .vc-empty { padding: 30px 16px; text-align: center; color: var(--muted, #6b7280); font-size: 13px; }
  .vc-group-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .vc-group-btn { padding: 8px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap; }
  .vc-group-btn:hover { border-color: var(--brand); color: var(--brand); }
  .vc-group-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
  .vc-cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .vc-cat-btn { padding: 6px 14px; border: 1px solid var(--line); border-radius: 16px; background: #f8f9fa; color: var(--text); font-size: 12px; font-weight: 500; cursor: pointer; transition: all .15s; white-space: nowrap; }
  .vc-cat-btn:hover { border-color: var(--brand); color: var(--brand); }
  .vc-cat-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
  .vc-cat-btn .vc-cat-count { font-size: 10px; font-weight: 400; opacity: .7; margin-left: 3px; }
  .vc-loadmore { display: block; margin: 20px auto 0; padding: 10px 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
  .vc-loadmore:hover { border-color: var(--brand); color: var(--brand); }
  /* 词条卡片 */
  .lib-term {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
    cursor: pointer; transition: all .18s; display: flex; flex-direction: column;
  }
  .lib-term:hover { border-color: var(--brand); box-shadow: 0 10px 30px rgba(0,0,0,.35); transform: translateY(-2px); }
  .lib-term.active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft), 0 10px 30px rgba(0,0,0,.35); }
  .lib-term .lt-title { font-size: 19px; font-weight: 800; color: var(--text); margin-bottom: 5px; }
  .lib-term .lt-en { font-size: 14px; color: var(--muted); font-weight: 400; }
  .lib-term .lt-snip { font-size: 15px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: auto; }
  /* 动作大全卡片：大图在上、信息在下（图上文下，Hevy 风格） */
  .lib-term.ex { padding: 0; overflow: hidden; }
  .lib-term.ex .ex-thumb {
    width: 100%; height: 240px; background: var(--thumb); display: flex;
    align-items: center; justify-content: center; padding: 14px;
  }
  .lib-term.ex .ex-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .lib-term.ex .ex-body { padding: 15px 16px 17px; display: flex; flex-direction: column; }
  .lib-term.ex .lt-title { font-size: 19px; font-weight: 800; }
  .lib-term.ex .ex-tag {
    display: inline-block; font-size: 13px; color: var(--text); background: var(--bg-soft);
    border-radius: 10px; padding: 3px 12px; margin: 8px 5px 0 0; font-weight: 700;
  }
  .lib-term.ex .ex-tag.ex-tag-muscle { color: var(--brand); background: var(--brand-soft); }
  .ex-scoring-entry { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
  .ex-scoring-entry .generate { width: 100%; }
  .ex-scoring-entry .hint { font-size: 12px; }
  .lib-detail {
    display: none;
    position: fixed; top: 78px; right: 16px; bottom: 16px;
    width: 420px; max-width: 94vw;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.22); z-index: 70; overflow: hidden;
    flex-direction: column;
  }
  .lib-detail.show { display: flex; }
  .ld-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
  }
  .ld-topbar .ld-title { font-size: 15px; font-weight: 800; color: var(--text); }
  .ld-close {
    color: var(--brand); font-size: 13px; cursor: pointer;
    background: transparent; border: 1px solid var(--brand); border-radius: 16px; padding: 4px 13px; font-weight: 700;
  }
  .ld-close:hover { background: var(--brand); color: #141414; }
  .lib-detail .lib-detail-card.ld-body { flex: 1; overflow-y: auto; padding: 18px 20px; border: none; border-radius: 0; }
  .lib-detail .ld-nav {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-soft);
  }
  .ld-nav button {
    padding: 8px 18px; border: 1px solid var(--line); border-radius: 20px;
    background: var(--card); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s;
  }
  .ld-nav button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
  .ld-nav button:disabled { opacity: .4; cursor: not-allowed; }
  .ld-nav .ld-pos { font-size: 13px; color: var(--muted); font-weight: 700; }
  .lib-detail-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; position: relative; }
  .lib-detail-card h4 { font-size: 18px; font-weight: 800; margin-bottom: 10px; padding-right: 70px; }
  .lib-detail-card .rendered { font-size: 14px; line-height: 1.8; }
  .lib-detail-card .ld-close {
    position: absolute; top: 12px; right: 14px; color: var(--brand); font-size: 13px; cursor: pointer;
    background: transparent; border: 1px solid var(--brand); border-radius: 16px; padding: 4px 13px; font-weight: 700;
  }
  .lib-detail-card .ld-close:hover { background: var(--brand); color: #141414; }
  /* 动作库：词条/动作大全 切换 */
  .lib-mode { display: flex; gap: 8px; margin-bottom: 12px; }
  .lib-mode button { padding: 8px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; }
  .lib-mode button.active { background: var(--brand); color: #141414; border-color: var(--brand); box-shadow: 0 4px 14px rgba(255,122,26,.3); }
  .lib-mode .mode-note { align-self: center; font-size: 12px; color: var(--muted); }
  /* 动作详情 */
  .lib-detail-card .ex-gif-wrap { text-align: center; margin: 6px 0 14px; }
  .lib-detail-card .ex-gif {
    width: 250px; height: 250px; object-fit: contain; border-radius: 16px;
    display: inline-block; background: var(--thumb); box-shadow: 0 8px 24px rgba(0,0,0,.35);
  }
  .lib-detail-card .ex-tags { font-size: 15px; color: var(--text); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
  .lib-detail-card .ex-tags span { background: var(--brand-soft); color: var(--brand); border-radius: 12px; padding: 5px 13px; font-size: 14px; font-weight: 700; }
  .lib-detail-card .ex-steps { border-top: 1px solid var(--line); padding-top: 12px; }
  .lib-detail-card .ex-steps b { display: block; margin-bottom: 6px; font-size: 15px; }
  .lib-detail-card .ex-steps ol { padding-left: 20px; margin: 6px 0; line-height: 1.9; font-size: 15px; }
  .lib-detail-card .ex-steps li { margin-bottom: 4px; }
  .lib-detail-card .ex-muscles { font-size: 16px; color: var(--text); margin: 4px 0 12px; line-height: 1.8; }
  .lib-detail-card .ex-muscles b { color: var(--brand); }
  .lib-detail-card .ex-attrib,
  .map-detail-card .ex-attrib {
    margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line);
    font-size: 11px; color: var(--muted); text-align: center;
  }

  /* 方案区 */
  .form-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
  .form-card label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
  .form-card input, .form-card textarea {
    width: 100%;
    padding: 11px 13px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    margin-bottom: 14px;
  }
  .form-card input:focus, .form-card textarea:focus { border-color: var(--brand); }
  .form-card input::placeholder, .form-card textarea::placeholder { color: var(--muted); }
  .form-card textarea { min-height: 90px; resize: vertical; }
  .form-card .hint { font-size: 12px; color: var(--muted); margin: -8px 0 14px; }
  .form-card button.generate {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--brand);
    color: #141414;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255,122,26,.3);
  }
  .form-card button.generate:hover { background: #ff8c3a; }
  .form-card button.generate:disabled { opacity: .5; cursor: not-allowed; }
  @keyframes aopt-pulse { 0%,100%{transform:scale(1);opacity:.7} 50%{transform:scale(1.15);opacity:1} }
  @keyframes aopt-spin { to{transform:rotate(360deg)} }
  .aopt-loading { display:flex; flex-direction:column; align-items:center; gap:16px; padding:32px 16px; }
  .aopt-loading-ring { width:48px; height:48px; border:3px solid #fde8d7; border-top-color:#ff7a1a; border-radius:50%; animation:aopt-spin .9s linear infinite; }
  .aopt-loading-steps { display:flex; gap:8px; }
  .aopt-loading-steps span { width:8px; height:8px; border-radius:50%; background:#ff7a1a; animation:aopt-pulse 1.2s ease-in-out infinite; }
  .aopt-loading-steps span:nth-child(2) { animation-delay:.2s; }
  .aopt-loading-steps span:nth-child(3) { animation-delay:.4s; }
  .aopt-loading-text { font-size:14px; color:#64748b; text-align:center; line-height:1.6; }
  .aopt-loading-text b { color:#ff7a1a; }
  .plan-out {
    margin-top: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
  }
  .plan-out .plan-title { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
  .plan-out .rendered { font-size: 14px; line-height: 1.8; }
  .plan-out .rendered h1,.plan-out .rendered h2,.plan-out .rendered h3 { margin: 14px 0 8px; line-height: 1.4; }
  .plan-out .rendered ul,.plan-out .rendered ol { padding-left: 22px; margin: 6px 0; }
  .plan-out .rendered strong { color: var(--brand); }
  .plan-out .rendered blockquote { border-left: 3px solid var(--brand); padding-left: 12px; color: var(--muted); margin: 8px 0; }
  .plan-out .rendered img { max-width: 100%; border-radius: 8px; }
  .plan-out .actions { margin-top: 12px; display: flex; gap: 8px; }
  .plan-out .actions button {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
  }
  .plan-out .enrich-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 14px;border-radius:999px;background:linear-gradient(135deg,#fff7ed,#fef3c7);border:1px solid #fbbf24;color:#92400e;font-size:12px;font-weight:600;animation:enrichPulse 2s ease-in-out infinite}
.enrich-badge .dot{width:6px;height:6px;border-radius:50%;background:#f59e0b;animation:aopt-pulse 1s ease-in-out infinite}
@keyframes enrichPulse{0%,100%{opacity:1}50%{opacity:.7}}
.plan-out .rendered{transition:opacity .3s ease}
/* 肌群热力图卡片（最小 UI） */
.mh-card{margin:12px 0;padding:12px 14px;border:1px solid #e5e7eb;border-radius:12px;background:#fafafa}
.mh-title{font-size:13px;font-weight:700;color:#374151;margin-bottom:8px;display:flex;align-items:center;gap:8px}
.mh-total{font-size:11px;font-weight:500;color:#6b7280}
.mh-row{display:flex;align-items:center;gap:8px;margin:5px 0}
.mh-part{flex:0 0 56px;font-size:12px;color:#374151;text-align:right}
.mh-bar{flex:1;height:10px;background:#f3f4f6;border-radius:5px;overflow:hidden}
.mh-fill{height:100%;border-radius:5px;transition:width .4s ease}
.mh-fill.high{background:linear-gradient(90deg,#ef4444,#dc2626)}
.mh-fill.medium{background:linear-gradient(90deg,#f97316,#ea580c)}
.mh-fill.low{background:linear-gradient(90deg,#22c55e,#16a34a)}
.mh-sets{flex:0 0 44px;font-size:12px;color:#374151;font-weight:600}
.mh-pct{flex:0 0 40px;font-size:11px;color:#9ca3af}
.mh-ex{font-size:11px;color:#6b7280;margin:0 0 4px 64px;line-height:1.5}
.plan-out .actions button:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

  /* 训练打卡 */
  .checkin-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
  .checkin-row input {
    flex: 1 1 90px; padding: 9px 10px; background: var(--bg-soft); color: var(--text);
    border: 1px solid var(--line); border-radius: 10px; font-size: 14px; min-width: 0; outline: none;
  }
  .checkin-row input:focus { border-color: var(--brand); }
  .checkin-row input[type=date] { flex: 0 0 140px; }
  .checkin-row button {
    padding: 9px 18px; border: none; border-radius: 10px;
    background: var(--brand); color: #141414; font-size: 14px; font-weight: 700; cursor: pointer;
  }
  .checkin-row button:hover { background: #ff8c3a; }
  .sum-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    padding: 16px; margin-top: 14px;
  }
  .sum-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
  .sum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .sum-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
  .sum-item .si-name { font-size: 13px; color: var(--muted); }
  .sum-item .si-val { font-size: 18px; font-weight: 800; margin-top: 2px; color: var(--brand); }
  .sum-item .si-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .train-log-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
  .train-log-table th, .train-log-table td {
    border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left;
  }
  .train-log-table th { color: var(--muted); font-weight: 700; }
  .train-log-table .del { color: var(--err); cursor: pointer; background:none; border:none; font-size: 13px; }

  /* 姿态分析 */
  .pose-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; align-items: center; }
  .pose-actions select, .pose-actions input[type=file] {
    padding: 8px 10px; background: var(--bg-soft); color: var(--text);
    border: 1px solid var(--line); border-radius: 10px; font-size: 13px;
  }
  .pose-actions button {
    padding: 9px 18px; border: none; border-radius: 10px; background: var(--brand); color: #141414; font-size: 14px; font-weight: 700; cursor: pointer;
  }
  .pose-actions button:hover { background: #ff8c3a; }
  .posture-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
  .posture-upload { display: flex; flex-direction: column; gap: 4px; padding: 8px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; }
  .posture-upload span { font-size: 12px; color: var(--muted); font-weight: 700; }
  .posture-upload input[type=file] { font-size: 12px; }
  .posture-actions button { grid-column: 1 / -1; }
  .posture-seg-grade { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 12px; color: #141414; margin-top: 4px; }
  .posture-seg-grade.excellent { background: var(--ok); }
  .posture-seg-grade.good { background: #b7e6a8; }
  .posture-seg-grade.pass { background: var(--warn); }
  .posture-seg-grade.fail { background: var(--err); }
  /* ========== 实时训练 · 商业版界面 ========== */
  .rt-wrap {
    position: relative; display: flex; flex-direction: column;
    margin-top: 8px; width: 100%;
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
    border: 1px solid #1e293b;
    border-radius: 16px; overflow: hidden;
    height: calc(100vh - 150px); height: calc(100dvh - 150px); min-height: 480px;
    box-shadow: 0 12px 48px rgba(2,6,23,.55);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  }
  .rt-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; background: rgba(15,23,42,.96); border-bottom: 1px solid rgba(255,255,255,.08); flex: 0 0 auto; }
  .rt-topbar .rtb-left { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1 1 auto; }
  .rt-topbar .rtb-mark { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); box-shadow: 0 0 0 3px var(--brand-soft); }
  .rt-topbar .rtb-name { cursor: pointer; font-size: 15px; font-weight: 700; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .rt-topbar .rtb-meta { font-size: 12px; color: #94a3b8; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .rt-topbar .rtb-actions { display: flex; gap: 8px; flex-shrink: 0; }
  .rt-top-btn { border: none; border-radius: 9px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; background: rgba(255,255,255,.08); color: #e2e8f0; transition: background .15s; }
  .rt-top-btn:hover { background: rgba(255,255,255,.14); }
  .rt-top-btn.primary { background: var(--brand); color: #fff; box-shadow: 0 2px 10px rgba(224,99,27,.32); }
  .rt-top-btn.primary:hover { background: var(--brand-dark); }
  .rt-top-btn.danger { background: rgba(239,68,68,.16); color: #fca5a5; }
  .rt-top-btn.danger:hover { background: rgba(239,68,68,.26); }
  .rt-stage { flex: 1 1 auto; position: relative; width: 100%; overflow: hidden; min-height: 0; background: #000; }
  .rt-stage video, .rt-stage canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
  .rt-stage canvas { position: absolute; inset: 0; }
  .rt-panel { flex: 0 0 auto; background: rgba(15,23,42,.97); border-top: 1px solid rgba(255,255,255,.08); padding: 12px 16px; color: #e2e8f0; overflow-y: auto; max-height: 42%; }
  /* 沉浸模式：收起分析详情，把画面让给监测区 */
  .rt-panel.compact { max-height: 24%; }
  .rt-panel.compact .rt-curve-box, .rt-panel.compact .rt-detail, .rt-panel.compact #rtReportBtn { display: none !important; }
  .rt-panel-toggle { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: #cbd5e1; padding: 0 0 7px; cursor: pointer; user-select: none; }
  .rt-panel-toggle .rpt-ar { color: #94a3b8; font-size: 11px; font-weight: 600; }
  /* 全屏监测 */
  .rt-stage:fullscreen { width: 100vw; height: 100vh; background: #000; }
  .rt-stage:-webkit-full-screen { width: 100vw; height: 100vh; background: #000; }
  .rt-fs-exit { display: none; position: absolute; top: 14px; right: 14px; z-index: 40; border: none; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 700; cursor: pointer; background: rgba(15,23,42,.82); color: #e2e8f0; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .rt-stage:fullscreen .rt-fs-exit { display: block; }
  .rt-stage:-webkit-full-screen .rt-fs-exit { display: block; }
  .rt-main { min-height: auto; font-size: 14px; }
  .rt-status-row { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
  .rt-status-dot { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
  .rt-status-dot.ok { background: rgba(34,197,94,.2); color: #4ade80; box-shadow: 0 0 18px rgba(34,197,94,.35); }
  .rt-status-dot.warning { background: rgba(234,179,8,.2); color: #fde047; box-shadow: 0 0 18px rgba(234,179,8,.35); }
  .rt-status-dot.error { background: rgba(239,68,68,.2); color: #fca5a5; box-shadow: 0 0 18px rgba(239,68,68,.35); }
  .rt-status-text { font-size: 22px; font-weight: 700; line-height: 1.25; color: #f8fafc; }
  .rt-status-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
  .rt-angles-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
  .rt-angle-chip { flex: 1 1 auto; min-width: 76px; padding: 7px 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; font-size: 12px; text-align: center; }
  .rt-angle-chip .val { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
  .rt-angle-chip .lbl { font-size: 10px; color: rgba(255,255,255,.5); letter-spacing: .5px; }
  .rt-name { font-size: 15px; font-weight: 800; margin-right: 8px; }
  .rt-advice { font-size: 14px; color: #cbd5e1; margin-top: 7px; line-height: 1.55; }
  .rt-advice .rt-advice-ic { margin-right: 4px; }
  .rt-detail { display: none; }
  .rt-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
  .rt-row span { color: var(--muted); }
  .rt-row b { font-family: var(--font-mono); }
  .rt-bar { height: 8px; background: rgba(255,255,255,.1); border-radius: 99px; margin-top: 8px; overflow: hidden; }
  .rt-bar i { display: block; height: 100%; border-radius: 99px; transition: width .3s; background: linear-gradient(90deg, var(--brand) 0%, var(--brand-dark) 100%); }
  .rt-bar-label { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 3px; }
  /* 站姿校准横幅 */
  .rt-calib { margin-top: 8px; display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; color: #fde68a; background: var(--brand-soft); border: 1px solid rgba(224,99,27,.3); border-radius: 10px; padding: 8px 11px; }
  .rt-calib .rtc-ic { flex-shrink: 0; }
  .rt-calib .rtc-items { display: flex; flex-direction: column; gap: 2px; }
  .rt-calib .rtc-hint { font-size: 11px; color: #fbbf24; opacity: .85; margin-top: 1px; }
/* 训练兜底错误提示 */
.rt-errbox { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 10px; padding: 4px 2px; }
.rt-errbox .rt-err-t { font-size: 14px; font-weight: 800; color: #fca5a5; }
.rt-errbox .rt-err-m { font-size: 12px; color: #94a3b8; line-height: 1.6; }
  /* 角度曲线 */
  .rt-curve-box { margin-top: 9px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 7px 9px 4px; }
  .rt-curve-hd { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.55); margin-bottom: 3px; }
  .rt-curve-hd .rt-curve-tag { color: #60a5fa; font-weight: 700; font-variant-numeric: tabular-nums; }
  .rt-curve { display: block; width: 100%; }
  /* 组间休息卡 */
  .rt-rest-card { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 18; width: max-content; max-width: 92%; background: linear-gradient(135deg, rgba(15,23,42,.97), rgba(30,41,59,.97)); border: 1px solid rgba(148,163,184,.25); border-radius: 14px; padding: 12px 16px; box-shadow: 0 10px 40px rgba(2,6,23,.6); animation: rt-card-in .28s ease-out; }
  .rt-rest-card .rrc-t { font-size: 15px; font-weight: 800; color: #f8fafc; margin-bottom: 3px; }
  .rt-rest-card .rrc-m { font-size: 12px; color: #94a3b8; line-height: 1.6; margin-bottom: 9px; }
  .rt-rest-card .rrc-btns { display: flex; gap: 8px; }
  .rt-rest-card button { flex: 1; padding: 9px 12px; border: none; border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer; }
  .rt-rest-card .rrc-skip { background: #334155; color: #cbd5e1; }
  .rt-rest-card .rrc-skip:hover { background: #475569; }
  .rt-rest-card .rrc-continue { background: var(--brand); color: #fff; box-shadow: 0 2px 10px rgba(224,99,27,.3); }
  .rt-rest-card .rrc-continue:hover { background: var(--brand-dark); }
  @media (max-width: 640px) {
    .rt-wrap { height: calc(100vh - 120px); height: calc(100dvh - 120px); min-height: 420px; border-radius: 0; }
    .rt-panel { padding: 10px 12px; max-height: 44%; }
    .rt-status-text { font-size: 19px; }
    .rt-status-dot { width: 38px; height: 38px; font-size: 19px; }
  }
  .rt-summary-overlay { position: absolute; inset: 0; z-index: 20; background: rgba(2,6,23,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
  .rt-summary-card { width: 100%; max-width: 400px; color: #e5e7eb; animation: rt-card-in .28s ease-out; }
  @keyframes rt-card-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
  .rt-summary-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; color: #f9fafb; }
  .rt-summary-card .sc-line { font-size: 13px; color: #fbbf24; line-height: 1.7; margin-bottom: 14px; background: rgba(251,191,36,.08); border-radius: 10px; padding: 9px 12px; }
  .rt-summary-card .sc-score { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
  .rt-summary-card .sc-ring { width: 88px; height: 88px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; font-family: var(--font-mono); flex-shrink: 0; }
  .rt-summary-card .sc-meta { font-size: 13px; color: #94a3b8; line-height: 1.9; }
  .rt-summary-card .sc-meta b { color: #f3f4f6; }
  .rt-summary-card .sc-dims { margin-bottom: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 10px 12px; }
  .rt-metrics-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .rt-m-chip { background: rgba(224,99,27,.12); border: 1px solid rgba(224,99,27,.35); border-radius: 8px; padding: 3px 8px; }
  .rt-m-chip .lb { font-size: 10px; color: #94a3b8; margin-right: 4px; }
  .rt-m-chip .vl { font-size: 12px; font-weight: 900; color: #fdba74; }
  .rt-summary-card .sc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
  .rt-summary-card .sm-tile { background: rgba(224,99,27,.07); border: 1px solid rgba(224,99,27,.25); border-radius: 10px; padding: 7px 9px; }
  .rt-summary-card .sm-lb { font-size: 10px; color: #94a3b8; }
  .rt-summary-card .sm-vl { font-size: 13px; font-weight: 900; color: #fdba74; font-family: var(--font-mono); }
  .rt-summary-card .sc-dim { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #94a3b8; margin: 5px 0; }
  .rt-summary-card .sc-dim .d-label { width: 64px; text-align: right; flex-shrink: 0; }
  .rt-summary-card .sc-dim .d-track { flex: 1; height: 7px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
  .rt-summary-card .sc-dim .d-fill { height: 100%; border-radius: 99px; transition: width .5s ease; }
  .rt-summary-card .sc-dim .d-val { width: 34px; font-family: var(--font-mono); color: #d1d5db; text-align: right; }
  .rt-summary-card .sc-issues { margin-top: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 6px 12px; }
  .rt-summary-card .sc-issue { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13px; }
  .rt-summary-card .sc-issue:last-child { border-bottom: none; }
  .rt-summary-card .sc-issue .si-name { color: #d1d5db; }
  .rt-summary-card .sc-issue .si-count { font-weight: 800; font-family: var(--font-mono); color: #fbbf24; }
  .rt-summary-card .sc-advice { margin-top: 12px; font-size: 13px; color: #cbd5e1; line-height: 1.7; background: rgba(224,99,27,.1); border: 1px solid rgba(224,99,27,.24); border-left: 3px solid var(--brand); border-radius: 12px; padding: 10px 12px; }
  .rt-summary-card .sc-btns { display: flex; gap: 8px; margin-top: 16px; }
  .rt-summary-card .sc-close { flex: 1; padding: 12px; border: none; border-radius: 10px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 10px rgba(224,99,27,.3); }
  .rt-summary-card .sc-close:hover { background: var(--brand-dark); }
  .rt-summary-card .sc-close.ghost { background: #334155; }
  .rt-summary-card .sc-close.ghost:hover { background: #475569; }
  .pose-result { margin-top: 16px; }
  .pose-img-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
  .pose-img-box img { max-width: 100%; border-radius: 10px; display: block; }
  .aopt-kfgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .aopt-kf { break-inside: avoid; page-break-inside: avoid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
  .aopt-kf img { width: 100%; display: block; border-radius: 12px 12px 0 0; }
  .aopt-kf-cap { font-size: 12px; font-weight: 700; color: #b05618; padding: 6px 10px; background: #fff7ed; }
  @media print { .aopt-kfgrid, .aopt-kf { break-inside: avoid; page-break-inside: avoid; } }
  /* ===== 视频分析舞台（视频为主体 + 结构化结果条），深色影棚底，强调色沿用主色调 ===== */
  .pv-stage { position: relative; background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%); border: 1px solid #1e293b; border-radius: 16px; overflow: hidden; margin-bottom: 12px; box-shadow: 0 10px 34px rgba(2,6,23,.26); break-inside: avoid; page-break-inside: avoid; }
  .pv-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 13px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(15,23,42,.96); }
  .pv-hd-l { display: flex; align-items: center; gap: 9px; min-width: 0; }
  .pv-mark { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); box-shadow: 0 0 0 3px var(--brand-soft); }
  .pv-title { font-size: 13px; font-weight: 700; color: #f1f5f9; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pv-title .pv-eng { display: block; font-size: 10px; font-weight: 600; color: #7c8ba1; font-family: var(--font-mono); letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pv-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
  .pv-chip { font-size: 11px; font-family: var(--font-mono); color: #cbd5e1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
  .pv-chip.on { color: #ffd0a8; border-color: rgba(224,99,27,.5); background: rgba(224,99,27,.18); }
  .pv-chip.warn { color: #fcd34d; border-color: rgba(252,211,77,.3); background: rgba(252,211,77,.12); }
  @media (max-width: 520px) { .pv-hd { flex-wrap: wrap; } .pv-chips { width: 100%; justify-content: flex-start; flex-shrink: 1; } .pv-title { flex: 1 1 auto; } }
  .pv-video-box { position: relative; background: #000; }
  .pv-video-box video { display: block; width: 100%; max-height: 62vh; background: #000; }
  .pv-note { padding: 7px 13px; font-size: 11px; color: #8494ab; line-height: 1.6; border-top: 1px solid rgba(255,255,255,.06); background: rgba(11,18,32,.9); }
  .pv-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 1px; background: rgba(255,255,255,.08); }
  .pv-cell { background: rgba(15,23,42,.95); padding: 9px 11px; min-width: 0; }
  .pv-k { font-size: 10px; color: #7c8ba1; letter-spacing: .4px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pv-v { font-size: 17px; font-weight: 800; color: #f8fafc; font-variant-numeric: tabular-nums; font-family: var(--font-mono); line-height: 1.15; white-space: nowrap; }
  .pv-v small { font-size: 11px; font-weight: 600; color: #94a3b8; margin-left: 2px; }
  .pv-cell.hi .pv-v { color: #ffb877; }
  /* ===== 首屏第一指标：有效次数 + Full ROM 占比 ===== */
  /* 用户打开报告第一眼要看到的是"这次练到底算不算数"，而不是一个抽象分数；
     分数仍在评分卡里，只是不再霸占第一眼。配色全部由主色 #e0631b 派生。 */
  .pv-hero { display: flex; align-items: center; gap: 14px; padding: 12px 13px; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(90deg, rgba(224,99,27,.20) 0%, rgba(224,99,27,.05) 52%, rgba(15,23,42,.95) 100%); }
  .pv-hero-main { flex-shrink: 0; min-width: 96px; }
  .pv-hero-k { font-size: 10px; color: #b7c4d4; letter-spacing: .4px; margin-bottom: 3px; white-space: nowrap; }
  .pv-hero-v { font-size: 31px; font-weight: 800; line-height: 1; color: #ffb877; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .pv-hero-v small { font-size: 13px; font-weight: 700; color: #94a3b8; margin-left: 4px; }
  .pv-hero-bar { flex: 1 1 auto; min-width: 0; }
  .pv-hero-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11px; color: #b7c4d4; margin-bottom: 5px; }
  .pv-hero-line b { font-size: 17px; font-weight: 800; color: #f8fafc; font-family: var(--font-mono); }
  .pv-hero-track { height: 7px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.12); }
  .pv-hero-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #b8480f 0%, var(--brand) 100%); }
  .pv-hero-sub { margin-top: 5px; font-size: 10.5px; color: #8494ab; font-family: var(--font-mono); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pv-hero-sub em { font-style: normal; color: #fcd34d; }
  .pv-hero.pv-hero-zero .pv-hero-v { color: #cbd5e1; }
  @media (max-width: 520px) { .pv-hero { flex-wrap: wrap; gap: 8px 12px; } .pv-hero-bar { flex-basis: 100%; } }
  /* 引擎徽标行（报告头下方，浅色区，主色调描边） */
  .pv-engine-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; padding: 9px 12px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 12px; background: linear-gradient(90deg, var(--brand-soft) 0%, rgba(255,255,255,0) 60%); }
  .pv-engine-row .per-tag { font-size: 11px; font-weight: 800; color: #fff; background: var(--brand); border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
  .pv-engine-row .per-tag.fb { background: #94a3b8; }
  .pv-engine-row .per-name { font-size: 13px; font-weight: 800; color: var(--brand-dark); white-space: nowrap; }
  .pv-engine-row .per-desc { font-size: 12px; color: var(--muted); line-height: 1.5; flex: 1 1 220px; }
  .pose-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
  .pose-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
  .angle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .angle-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-align: center; }
  .angle-item .ai-name { font-size: 12px; color: var(--muted); }
  .angle-item .ai-val { font-size: 15px; font-weight: 800; color: var(--brand); }
  .check-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
  .check-item:last-child { border-bottom: none; }
  .check-badge { flex: 0 0 auto; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 800; color: #141414; }
  .check-badge.ok { background: var(--ok); }
  .check-badge.warning { background: var(--warn); }
  .check-badge.fix { background: var(--err); }
  .check-body .cb-name { font-weight: 700; font-size: 14px; }
  .check-body .cb-meas { font-size: 12px; color: var(--muted); margin: 2px 0; }
  .check-body .cb-advice { font-size: 13px; line-height: 1.6; }

  /* 综合评分 */
  .score-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .score-ring { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: conic-gradient(var(--brand) calc(var(--p,0)*1%), var(--bg-soft) 0); position: relative; }
  .score-ring::before { content: ''; position: absolute; inset: 7px; background: var(--card); border-radius: 50%; }
  .score-ring .sr-num { position: relative; font-size: 26px; font-weight: 900; color: var(--brand); line-height: 1; }
  .score-ring .sr-cap { position: relative; font-size: 11px; color: var(--muted); margin-top: 2px; }
  .score-grade { font-size: 20px; font-weight: 900; }
  .score-grade.excellent { color: var(--ok); }
  .score-grade.good { color: var(--warn); }
  .score-grade.pass { color: #7ba05b; }
  .score-grade.fail { color: var(--err); }
  .score-dims { flex: 1 1 220px; display: grid; gap: 8px; }
  .score-dim { display: grid; grid-template-columns: 88px 1fr 36px; align-items: center; gap: 8px; font-size: 13px; }
  .score-dim .sd-name { color: var(--muted); }
  .score-dim .sd-bar { height: 8px; background: var(--bg-soft); border-radius: 6px; overflow: hidden; }
  .score-dim .sd-bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
  .score-dim .sd-val { text-align: right; font-weight: 800; }
  .score-notes { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.7; }
  .report-conclusion { font-size: 14px; line-height: 1.9; background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
  .report-conclusion p { margin: 0 0 4px; }
  .report-advice li { font-size: 13px; line-height: 1.8; margin-left: 18px; }
  .sk3d-box { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
  .sk3d-box svg { flex: 1 1 260px; min-width: 240px; }
  .sk3d-box .sk3d-note { flex: 1 1 200px; min-width: 200px; font-size: 13px; color: var(--muted); line-height: 1.8; }


  .error { color: var(--err); font-size: 14px; }
  .loading { color: var(--muted); font-size: 14px; }
  footer { text-align: center; font-size: 12px; color: var(--muted); padding: 20px; border-top: 1px solid var(--line); }
  /* 饮食营养助手：分析结果 markdown 渲染 */
  .diet-result { line-height: 1.8; font-size: 14px; color: var(--text); }
  .diet-result h4 { margin: 14px 0 6px; font-size: 15px; color: var(--accent); border-left: 3px solid var(--accent); padding-left: 8px; }
  .diet-result p { margin: 4px 0; }
  .diet-result ul, .diet-result ol { margin: 4px 0; padding-left: 22px; }
  .diet-result li { margin: 2px 0; }
  .diet-result strong { color: var(--accent); }
  /* 训练方案：免费计划 / 个性方案 双按钮切换 */
  .plan-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
  .plan-tabs button { flex: 1; padding: 11px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--brand); font-size: 15px; font-weight: 700; cursor: pointer; transition: all .15s; border-color: rgba(255,122,26,.45); }
  .plan-tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 4px 14px rgba(255,122,26,.25); }
  @media (max-width:420px){ .plan-tabs { gap: 8px; } .plan-tabs button { font-size: 14px; } }
  /* 饮食营养：食物搜索联想 */
  .diet-hits { margin-top: 6px; }
  .diet-hit-list { display: flex; flex-direction: column; gap: 4px; }
  .diet-hit-list a { padding: 7px 10px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--text); text-decoration: none; }
  .diet-hit-list a:hover { border-color: var(--accent); }

  /* ===== v2.25f 大字号适配（中老年友好）===== */
  html { font-size: 17px; }
  body { font-size: 16px; line-height: 1.8; }
  .hint, .form-card .hint, .ex-scoring-entry .hint, .lib-pager, .mode-note { font-size: 14px !important; }
  .form-card label { font-size: 16px !important; }
  .form-card select, .form-card input, .form-card textarea, .pose-actions select { font-size: 15px !important; }
  .pose-actions button, .form-card button { font-size: 15px !important; }
  .msg .bubble, .msg .bubble p, .msg .bubble li { font-size: 16px !important; }
  .msg .bubble h4 { font-size: 17px !important; }
  .msg .bubble pre, .msg .bubble .src-block, .msg .bubble .related button, .msg .bubble .tagline, .msg .bubble .qa-cite-tag, .msg .bubble .qa-cite-title, .msg .bubble .qa-cite-pop, .msg .bubble .qa-actions-label, .msg .bubble .qa-action-card, .msg .bubble .qa-ac-hint { font-size: 14px !important; }
  .msg .bubble .qa-conclusion, .msg .bubble .qa-conclusion .qc-body { font-size: 15.5px !important; line-height: 1.65 !important; }
  .msg .bubble .qa-food-card { font-size: 14px !important; }
  .rendered, .free-body .rendered, .lib-detail-card .rendered, .plan-out .rendered { font-size: 16px !important; line-height: 1.9 !important; }
  .lib-detail-card h4 { font-size: 19px !important; }
  .lib-term .lt-title { font-size: 20px !important; }
  .lib-term .lt-snip { font-size: 16px !important; }
  .lib-detail-card .ex-tags { font-size: 16px !important; }
  .lib-detail-card .ex-steps ol, .lib-detail-card .ex-steps b { font-size: 16px !important; }
  .check-body .cb-name { font-size: 16px !important; }
  .check-body .cb-meas { font-size: 13px !important; }
  .check-body .cb-advice { font-size: 15px !important; line-height: 1.7 !important; }
  .pose-card h4 { font-size: 16px !important; }
  .angle-item .ai-val { font-size: 16px !important; }
  .rt-name { font-size: 16px !important; }
  .rt-advice { font-size: 15px !important; }
  .report-conclusion { font-size: 15px !important; }
  .report-advice li { font-size: 15px !important; }
  .sum-card h4 { font-size: 16px !important; }
  .sum-item .si-val { font-size: 19px !important; }
  .train-log-table { font-size: 14px !important; }
  .diet-result { font-size: 15px !important; }
  .diet-result h4 { font-size: 16px !important; }
  .plan-tabs button { font-size: 16px !important; }
  /* 智能问答面板 */
  .ai-chat-wrap { display:flex; flex-direction:column; height:calc(100vh - 220px); min-height:420px; background:var(--card); border-radius:16px; border:1px solid var(--line); overflow:hidden; }
  .ai-chat-header { padding:14px 18px; border-bottom:1px solid var(--line); background:linear-gradient(135deg,rgba(255,122,26,.06),rgba(255,122,26,.02)); }
  .ai-chat-header h3 { margin:0; font-size:16px; color:var(--brand); }
  .ai-chat-header p { margin:4px 0 0; font-size:12px; color:var(--muted); }
  .ai-chat-messages { flex:1; overflow-y:auto; padding:18px; display:flex; flex-direction:column; gap:14px; }
  .ai-msg { display:flex; gap:10px; max-width:88%; animation:aiFadeIn .25s ease; }
  .ai-msg.user { align-self:flex-end; flex-direction:row-reverse; }
  .ai-msg.bot { align-self:flex-start; }
  .ai-msg-avatar { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
  .ai-msg.bot .ai-msg-avatar { background:linear-gradient(135deg,#fff3e0,#ffe0b2); }
  .ai-msg.user .ai-msg-avatar { background:linear-gradient(135deg,#e3f2fd,#bbdefb); }
  .ai-msg-bubble { padding:11px 15px; border-radius:16px; line-height:1.7; font-size:14.5px; word-break:break-word; }
  .ai-msg.bot .ai-msg-bubble { background:var(--surface-soft,#f8f5f0); color:var(--text); border-bottom-left-radius:4px; }
  .ai-msg.user .ai-msg-bubble { background:var(--brand); color:#fff; border-bottom-right-radius:4px; }
  .ai-msg-bubble p { margin:0 0 6px; } .ai-msg-bubble p:last-child { margin-bottom:0; }
  .ai-msg-bubble ul,.ai-msg-bubble ol { margin:4px 0; padding-left:20px; }
  .ai-msg-bubble strong { color:var(--brand); }
  .ai-msg.user .ai-msg-bubble strong { color:#fff; }
  .ai-msg-bubble h1,.ai-msg-bubble h2,.ai-msg-bubble h3,.ai-msg-bubble h4 { margin:12px 0 6px; font-weight:700; color:var(--brand); }
  .ai-msg-bubble h1 { font-size:18px; } .ai-msg-bubble h2 { font-size:16px; } .ai-msg-bubble h3 { font-size:15px; } .ai-msg-bubble h4 { font-size:14.5px; }
  .ai-msg-bubble li { margin:2px 0; }
  .ai-msg-bubble blockquote { margin:6px 0; padding:4px 10px; border-left:3px solid var(--brand); background:rgba(255,122,26,.06); border-radius:0 8px 8px 0; }
  .ai-msg-bubble pre { background:#f5f0eb; padding:8px 10px; border-radius:8px; overflow-x:auto; font-size:13px; }
  .ai-msg-bubble .ai-img-gallery { margin-top:10px; padding-top:8px; border-top:1px solid var(--line); }
  .ai-msg-bubble .ai-img-gallery-label { font-size:12px; color:var(--muted); margin-bottom:6px; }
  .ai-msg-bubble .ai-img-gallery a { display:inline-block; margin:0 6px 6px 0; }
  .ai-msg-bubble .ai-img-gallery a img { width:120px; height:120px; object-fit:cover; border-radius:10px; border:1px solid var(--line); cursor:zoom-in; }
  @media (max-width:600px) { .ai-msg-bubble .ai-img-gallery a img { width:88px; height:88px; } }
  .ai-chat-input-area { padding:12px 16px; border-top:1px solid var(--line); display:flex; gap:10px; align-items:flex-end; background:var(--card); }
  .ai-chat-input { flex:1; border:1px solid var(--line); border-radius:22px; padding:10px 16px; font-size:14.5px; resize:none; outline:none; max-height:100px; line-height:1.5; font-family:inherit; background:var(--surface-soft,#f8f5f0); }
  .ai-chat-input:focus { border-color:var(--brand); box-shadow:0 0 0 2px rgba(255,122,26,.12); }
  .ai-chat-send { width:42px; height:42px; border-radius:50%; border:none; background:var(--brand); color:#fff; font-size:20px; cursor:pointer; flex-shrink:0; transition:opacity .15s; display:flex; align-items:center; justify-content:center; }
  .ai-chat-send:disabled { opacity:.35; cursor:not-allowed; }
  .ai-chat-quick { padding:10px 16px; display:flex; flex-wrap:wrap; gap:8px; border-top:1px solid var(--line); }
  .ai-chat-quick button { padding:6px 13px; border:1px solid var(--line); border-radius:16px; background:var(--card); color:var(--text); font-size:12.5px; cursor:pointer; transition:all .15s; }
  .ai-chat-quick button:hover { border-color:var(--brand); color:var(--brand); }
  .ai-safety-banner { margin:0 0 10px 0; padding:10px 14px; border-radius:10px; background:#fff7ed; border:1px solid #fed7aa; font-size:13px; line-height:1.6; color:#9a3412; }
  .ai-safety-banner b { color:#c2410c; }
  .ai-safety-banner .safety-items { margin-top:4px; font-size:12px; color:#c2410c; }
  @keyframes aiFadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
  .ai-typing { display:inline-flex; gap:4px; padding:4px 0; }
  .ai-typing span { width:7px; height:7px; border-radius:50%; background:var(--muted); animation:aiDot 1.2s infinite; }
  .ai-typing span:nth-child(2) { animation-delay:.2s; } .ai-typing span:nth-child(3) { animation-delay:.4s; }
  @keyframes aiDot { 0%,80%,100%{opacity:.25;transform:scale(.85)} 40%{opacity:1;transform:scale(1.1)} }
  /* v2.33：档案卡片小屏适配——下拉/按钮行允许换行，避免文字截断与出边 */
  @media (max-width:520px){
    .form-card .input-row { flex-wrap: wrap; }
    .form-card .input-row select { min-width: calc(50% - 4px); flex: 1 1 auto; }
    .form-card .input-row button { width: 100%; min-height: 46px; margin-top: 2px; }
  }
  .score-grade { font-size: 21px !important; }
  .score-notes { font-size: 14px !important; }
  .error, .loading { font-size: 15px !important; }
  .wx-text { font-size: 14px !important; }
  .member-plan { font-size: 13px !important; }
  footer { font-size: 13px !important; }
  header p { font-size: 13px !important; }
  .tab-btn { font-size: 14px !important; }
  .free-head { font-size: 16px !important; }
  @media (max-width:420px){
    .form-card label { font-size: 15px !important; }
    .msg .bubble, .msg .bubble p, .msg .bubble li { font-size: 15.5px !important; }
    .rendered, .free-body .rendered, .lib-detail-card .rendered, .plan-out .rendered { font-size: 15px !important; }
  }
  /* ===== 知识库（kb）===== */
  .kb-subtabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
  .kb-subtabs button { flex: 1; min-width: 80px; padding: 9px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; font-weight: 600; color: #4b5563; cursor: pointer; }
  .kb-subtabs button.active { background: var(--brand, #ff7a1a); border-color: var(--brand, #ff7a1a); color: #fff; }
  /* 元分类导航 */
  .kb-meta-nav {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 6px 4px 12px 4px;
    margin-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .kb-meta-nav::-webkit-scrollbar { display: none; }
  .kb-meta-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    height: 36px;
    padding: 0 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f4f1eb;
    color: #4b5563;
    border: 1px solid #e5e0d8;
  }
  .kb-meta-btn:hover { background: #ece8df; color: #374151; }
  .kb-meta-btn.active {
    background: #fff !important;
    color: var(--aopt-orange) !important;
    font-weight: 700 !important;
    border-color: var(--aopt-orange) !important;
    box-shadow: 0 1px 4px rgba(224,99,27,.12);
  }
  .kb-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; box-sizing: border-box; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
  .kb-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
  .kb-item a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
  .kb-item-img { aspect-ratio: 16 / 10; overflow: hidden; background: #f8f8f8; display: flex; align-items: stretch; justify-content: stretch; }
  .kb-item img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .kb-title { padding: 12px 16px; font-size: 14px; line-height: 1.5; color: #1f2937; word-break: break-word; flex: 1; }
  .kb-chapter-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #f0e9dd; color: #8a7f6e; font-size: 11px; margin-top: 4px; }
  /* 知识图解详情弹窗 */
  .kb-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); }
  .kb-modal-card { width: min(90vw, 860px); max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff; border-radius: 16px; padding: 0; box-shadow: 0 16px 60px rgba(0,0,0,.3); box-sizing: border-box; }
  .kb-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
  .kb-modal-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: #1f2937; }
  .kb-modal-close { width: 36px; height: 36px; border: none; border-radius: 50%; background: #f3f4f6; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  /* 统一垂直排版流：顶部栏 → 全宽大图 → 标签 → 文字 */
  .kb-modal-body { display: block; box-sizing: border-box; padding: 0; }
  .kb-modal-body .infographic-canvas.ig-full { border-radius: 0 0 16px 16px; }
  /* 图解容器：全宽自适应，彻底移除限制高度/宽度的多余样式 */
  .modal-infographic-container, .kb-modal-img {
    width: 100% !important;
    margin: 4px 0 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    min-width: 0;
  }
  .modal-infographic-container img,
  .modal-infographic-container svg,
  .modal-infographic-container .infographic-canvas,
  .kb-modal-img img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
    border-radius: 8px;
  }
  .kb-modal-text { width: 100%; min-width: 0; }
  .kb-modal-text .cap { font-size: 14px; line-height: 1.7; color: #374151; word-break: break-word; white-space: pre-line; }
  .kb-modal-meta { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
  .kb-modal-tag { padding: 3px 10px; border-radius: 999px; background: #fde8d7; color: #b45309; font-size: 12px; font-weight: 600; }
  /* ===== 统一知识图解母版容器 ===== */
  .infographic-canvas {
    width: 100%; padding: 0; display: flex; flex-direction: column;
    background: #faf8f5; border-radius: 12px; overflow: hidden; box-sizing: border-box;
    font-size: 13px; color: #374151; line-height: 1.45;
  }
  /* 缩略图模式：紧凑排版，自适应高度 */
  .infographic-canvas.ig-thumb {
    aspect-ratio: auto; height: 100%; overflow: hidden;
  }
  .infographic-canvas.ig-thumb .ig-header { padding: 8px 12px; }
  .infographic-canvas.ig-thumb .ig-title { font-size: 13px; }
  .infographic-canvas.ig-thumb .ig-subtitle { font-size: 10px; }
  .infographic-canvas.ig-thumb .ig-content { padding: 6px 8px; gap: 6px; }
  .infographic-canvas.ig-thumb .ig-cards { gap: 4px; }
  .infographic-canvas.ig-thumb .ig-card { padding: 5px 7px; font-size: 11px; line-height: 1.35; }
  .infographic-canvas.ig-thumb .ig-card b { font-size: 11.5px; }
  .infographic-canvas.ig-thumb .ig-footer { padding: 5px 10px; font-size: 10.5px; }
  /* 弹窗大图模式：自适应高度 */
  .infographic-canvas.ig-full { aspect-ratio: auto; max-height: none; font-size: 14px; line-height: 1.6; border-radius: 0; }
  /* 顶部通栏标题 */
  .ig-header {
    flex-shrink: 0; padding: 10px 16px; background: #1e293b; color: #fff;
    display: flex; flex-direction: column; gap: 2px;
  }
  .ig-header .ig-title { font-size: 15px; font-weight: 700; color: #fff; margin: 0; }
  .ig-header .ig-subtitle { font-size: 11.5px; color: #94a3b8; }
  .ig-full .ig-header { padding: 14px 20px; }
  .ig-full .ig-header .ig-title { font-size: 18px; }
  .ig-full .ig-header .ig-subtitle { font-size: 13px; }
  /* 内容主体区 */
  .ig-content { flex: 1; display: flex; gap: 12px; padding: 10px 12px; overflow: hidden; box-sizing: border-box; min-height: 0; }
  .ig-content.ig-col { flex-direction: column; }
  .ig-full .ig-content { overflow: visible; padding: 16px 20px; gap: 16px; }
  /* 解剖图容器 */
  .ig-anatomy { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .ig-anatomy img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }
  .ig-anatomy.ig-fallback { display: none; }
  .ig-content:has(.ig-fallback) .ig-cards { flex: 1; }
  .ig-full .ig-anatomy { flex: 1.1; }
  /* 结构化卡片区 */
  .ig-cards { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
  .ig-full .ig-cards { gap: 10px; }
  .ig-card { background: #fff; border: 1px solid #e2e8f0; border-left: 3px solid #cbd5e1; border-radius: 6px; padding: 8px 12px; margin-bottom: 8px; font-size: 12px; line-height: 1.4; box-sizing: border-box; }
  .ig-full .ig-card { padding: 10px 14px; font-size: 13.5px; line-height: 1.6; }
  .ig-card b { display: block; font-size: 13px; margin-bottom: 2px; color: #1e293b; }
  .ig-full .ig-card b { font-size: 14px; }
  .ig-card-green { border-left-color: #10b981; }
  .ig-card-green b { color: #065f46; }
  .ig-card-gold { border-left-color: #f59e0b; }
  .ig-card-gold b { color: #92400e; }
  .ig-card-red { border-left-color: #ef4444; }
  .ig-card-red b { color: #991b1b; }
  .ig-card-blue { border-left-color: #3b82f6; }
  .ig-card-blue b { color: #1e40af; }
  .ig-card-brand { border-left-color: var(--aopt-orange); background: #fafaf9; }
  .ig-card-brand b { color: var(--aopt-charcoal); }
  /* 底部警示/提示条 */
  .ig-footer {
    flex-shrink: 0; padding: 7px 14px; background: #f8fafc; border-top: 1px solid #e2e8f0;
    font-size: 12px; color: #475569; line-height: 1.45; box-sizing: border-box;
  }
  .ig-full .ig-footer { padding: 10px 20px; font-size: 13px; }
  /* 结构化封面在 kb-item-img 容器中的适配 */
  .kb-item-img.ig { height: auto; min-height: 0; padding: 0; display: block; background: transparent; aspect-ratio: auto; overflow: visible; }
  @media (max-width: 767px) {
    .kb-title { font-size: 13px; }
    .kb-modal-card { width: 94vw !important; max-height: 90vh !important; }
    .kb-modal-header { padding: 12px 14px; }
    .kb-modal-header h3 { font-size: 16px; }
    .kb-meta-nav { gap: 8px; } .kb-meta-btn { height: 34px; padding: 0 14px; font-size: 13px; }
  }

  /* ===== 人体地图 ===== */
  .body-map-controller { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 16px; padding: 12px; background: var(--card, #fff); border: 1px solid var(--line, #e8e0d4); border-radius: 14px; }
  .ctrl-group { display: flex; gap: 0; background: #f0e9dd; border-radius: 20px; padding: 3px; }
  .map-btn { padding: 7px 16px; border: none; border-radius: 18px; background: transparent; color: var(--muted, #8a7f6e); font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s; white-space: nowrap; }
  .map-btn:hover { color: var(--text, #26221c); }
  .map-btn.active { background: var(--brand, #ff7a1a); color: #fff; box-shadow: 0 2px 8px rgba(255,122,26,.3); }
  /* 左右分栏 */
  .map-dual-layout { display: flex; gap: 18px; align-items: flex-start; }
  .map-left-col { flex: 0 0 380px; min-width: 0; }
  .body-map-container { position: relative; width: 320px; height: 600px; margin: 0 auto; }
  .body-map-svg { width: 100%; height: 100%; display: none; }
  .body-map-svg.active { display: block; }
  .muscle { fill: #2c3440; stroke: #1a202c; stroke-width: 1.5; cursor: pointer; transition: all 0.2s; }
  .muscle:hover, .muscle.map-active { fill: #ea580c; filter: drop-shadow(0 0 6px rgba(234, 88, 12, 0.6)); }
  .joint { fill: #0ea5e9; stroke: #0284c7; stroke-width: 1.5; cursor: pointer; transition: all 0.2s; }
  .joint:hover, .joint.map-active { fill: #ef4444; filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.8)); }
  .bone-line { fill: none; stroke: #94a3b8; stroke-width: 1.5; stroke-dasharray: 2 2; pointer-events: none; }
  /* 右栏 */
  .map-right-col { flex: 1; min-width: 0; max-height: calc(100vh - 260px); overflow-y: auto; padding: 16px; background: var(--card, #fff); border: 1px solid var(--line, #e8e0d4); border-radius: 14px; }
  .map-filter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; padding: 10px 12px; background: #f8f4ef; border-radius: 10px; }
  .map-filter-bar .map-filter-label { font-size: 12px; color: var(--muted, #8a7f6e); font-weight: 700; align-self: center; margin-right: 4px; }
  .map-filter-bar button { padding: 5px 14px; border: 1px solid var(--line, #e8e0d4); border-radius: 16px; background: #fff; color: var(--text, #26221c); font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s; }
  .map-filter-bar button:hover { border-color: var(--brand, #ff7a1a); color: var(--brand, #ff7a1a); }
  .map-filter-bar button.active { background: var(--brand, #ff7a1a); color: #fff; border-color: var(--brand, #ff7a1a); }
  .map-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  .map-exercise-card { background: #fff; border: 1px solid var(--line, #e8e0d4); border-radius: 12px; overflow: hidden; cursor: pointer; transition: all .2s; }
  .map-exercise-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); border-color: var(--brand, #ff7a1a); }
  .map-exercise-card .mec-thumb { width: 100%; height: 140px; background: #f0e9dd; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .map-exercise-card .mec-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .map-exercise-card .mec-body { padding: 10px 12px 12px; }
  .map-exercise-card .mec-title { font-size: 14px; font-weight: 800; color: var(--text, #26221c); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .map-exercise-card .mec-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
  .map-exercise-card .mec-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 8px; background: #f0e9dd; color: var(--muted, #8a7f6e); }
  .map-exercise-card .mec-tag.mec-equip { background: var(--brand-soft, rgba(255,122,26,.14)); color: var(--brand, #ff7a1a); }
  .map-exercise-card .mec-snip { font-size: 12px; color: var(--muted, #8a7f6e); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .map-part-header { font-size: 15px; font-weight: 800; color: var(--brand, #ff7a1a); margin-bottom: 4px; }
  .map-part-desc { font-size: 13px; color: var(--muted, #8a7f6e); line-height: 1.6; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line, #e8e0d4); }
  .map-joint-tip { padding: 12px 14px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px; font-size: 13px; color: #0369a1; line-height: 1.6; margin-bottom: 14px; }
  .map-detail-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; }
  .map-detail-card { position: relative; background: #fff; border-radius: 16px; max-width: 480px; width: 92vw; max-height: 88vh; overflow-y: auto; padding: 24px; }
  .map-detail-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
  .map-detail-card .md-gif { text-align: center; margin-bottom: 14px; }
  .map-detail-card .md-gif img { max-width: 220px; border-radius: 12px; background: #f0e9dd; }
  .map-detail-card .md-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
  .map-detail-card .md-tags span { padding: 4px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; background: #f0e9dd; }
  .map-detail-card .md-steps { font-size: 14px; line-height: 1.8; }
  .map-detail-card .md-steps ol { padding-left: 20px; }
  .map-detail-card .md-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted, #8a7f6e); }
  /* PC 端专属优化（>=1024px）：等高对齐 + 2×2 网格 */
  @media (min-width: 1024px) {
    .map-dual-layout { height: 620px !important; gap: 24px; max-width: 1400px; margin: 0 auto; align-items: stretch; }
    .map-left-col { flex: 0 0 340px; height: 100%; display: flex; align-items: center; justify-content: center; }
    .body-map-container { height: 100%; }
    .map-right-col { flex: 1; height: 620px !important; min-height: 620px !important; max-height: 620px !important; display: flex; flex-direction: column; padding: 0; border-radius: 14px; border: 1px solid var(--line, #e8e0d4); background: var(--card, #fff); box-shadow: 0 4px 20px rgba(0,0,0,.06); overflow: hidden; }
    .map-right-fixed { flex: 0 0 auto; padding: 14px 16px 10px; border-bottom: 1px solid var(--line, #e8e0d4); }
    .map-right-scroll { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; }
    .map-part-header { font-size: 15px; margin-bottom: 2px; }
    .map-part-desc { font-size: 13px; margin-bottom: 8px; padding-bottom: 8px; }
    .map-filter-bar { padding: 8px 10px; margin-bottom: 0; }
    .map-joint-tip { padding: 10px 12px; font-size: 12px; margin-bottom: 8px; }
    .map-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; flex: 1; align-content: start; }
    .map-exercise-card { display: flex; flex-direction: column; }
    .map-exercise-card .mec-thumb { height: 145px; flex: 0 0 auto; }
    .map-exercise-card .mec-thumb img { object-fit: cover; border-radius: 0; }
    .map-exercise-card .mec-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
    .map-exercise-card .mec-title { font-size: 13px; }
    .map-exercise-card .mec-snip { font-size: 11px; -webkit-line-clamp: 1; margin-top: auto; }
    .map-exercise-card .mec-tag { font-size: 10px; padding: 2px 6px; }
    .map-detail-overlay .map-detail-card { max-width: 520px; }
    .map-detail-card .md-gif img { max-width: 260px; }
  }
  /* iPad / 小屏平板（768–1023px） */
  @media (max-width: 1023px) and (min-width: 769px) {
    .map-dual-layout { flex-direction: column; }
    .map-left-col { flex: none; width: 100%; }
    .map-right-col { max-height: none; }
    .map-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  }
  /* 手机端（<=768px） */
  @media (max-width: 768px) {
    .map-dual-layout { flex-direction: column; gap: 8px; }
    .map-left-col { flex: none; width: 100%; }
    .body-map-container { height: 450px; }
    .map-right-col { max-height: none; padding: 12px; margin-top: 0; }
    .map-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  }
  @media (max-width: 520px) {
    .body-map-container { width: 100%; height: 420px; }
    .body-map-controller { flex-direction: row; justify-content: center; flex-wrap: wrap; padding: 8px; gap: 6px; }
    .ctrl-group { padding: 2px; }
    .map-btn { padding: 5px 10px; font-size: 12px; }
    .map-cards-grid { grid-template-columns: 1fr; }
  }


.mm-stat{background:#f8faf9;border-radius:8px;padding:8px 10px;text-align:center}
.mm-stat-label{display:block;font-size:11px;color:#66746c;margin-bottom:2px}
.mm-stat-val{display:block;font-size:14px;font-weight:600;color:#17231d}

  /* ===== Plan Chat UI (v3.0) ===== */
  .plan-chat-wrap { margin-top:14px; }
  .plan-chat-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 0;
    max-height: 420px;
    min-height: 180px;
    overflow-y: auto;
    margin-bottom: 12px;
    scroll-behavior: smooth;
  }
  .plan-chat-box .pc-msg {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #f3f0ea;
    align-items: flex-start;
  }
  .plan-chat-box .pc-msg:last-child { border-bottom: none; }
  .plan-chat-box .pc-msg.bot { background: #faf8f5; }
  .plan-chat-box .pc-msg.user { background: #fff; }
  .pc-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
    background: var(--brand-soft); color: var(--brand);
  }
  .pc-msg.user .pc-avatar { background: #e8f5e9; color: #2e7d32; }
  .pc-bubble {
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    word-break: break-word;
  }
  .pc-bubble p { margin: 4px 0; }
  .pc-bubble ul, .pc-bubble ol { padding-left: 18px; margin: 4px 0; }
  .pc-bubble strong { color: var(--brand); }
  .pc-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
  }
  .pc-input-row textarea {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    background: var(--card);
    color: var(--text);
    outline: none;
    transition: border-color .15s;
  }
  .pc-input-row textarea:focus { border-color: var(--brand); }
  .pc-input-row button {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
  }
  .pc-input-row button:hover { background: var(--brand-dark); }
  .pc-input-row button:disabled { background: #ccc; cursor: not-allowed; }
  .pc-gen-row {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .pc-gen-row button {
    flex: 1;
    background: linear-gradient(135deg, var(--brand), #f59e0b);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px 0;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
  }
  .pc-gen-row button:hover { opacity: .9; }
  .pc-gen-row button:disabled { opacity: .5; cursor: not-allowed; }
  .pc-gen-hint { font-size: 12px; color: var(--muted); }
  .pc-streaming { color: var(--muted); font-style: italic; }

.rt-score-bar{height:6px;background:#e2e8f0;border-radius:3px;margin-top:4px;overflow:hidden}.rt-score-fill{height:100%;border-radius:3px;background:linear-gradient(90deg,#22c55e,#3b82f6)}
/* ===== v2.64 qa-fullwidth 合健道QA：满屏顶格、大字、追问紧贴回答 ===== */
main:has(#panel-qa.active) { max-width:100%; padding-left:0; padding-right:0; }
#panel-qa .ai-chat-wrap { height:calc(100vh - 150px); min-height:420px; border-radius:0; border-left:none; border-right:none; }
#panel-qa .ai-chat-messages { padding:14px 12px; }
#panel-qa .ai-msg { max-width:100%; }
#panel-qa .ai-msg.user { max-width:86%; }
#panel-qa .ai-msg.bot { align-self:stretch; }
#panel-qa .ai-msg.bot .ai-msg-bubble { flex:1 1 auto; max-width:100%; font-size:16px !important; line-height:1.85 !important; }
#panel-qa .ai-msg-bubble .sq-wrap, #panel-qa .ai-msg-bubble .related { margin-top:12px; padding-top:10px; border-top:1px solid var(--line); }
#panel-qa .ai-msg-bubble .sq-label, #panel-qa .ai-msg-bubble .related-label { font-size:13px; color:var(--muted); margin-bottom:8px; font-weight:600; }
#panel-qa .ai-msg-bubble .sq-wrap button, #panel-qa .ai-msg-bubble .related button { display:inline-block; margin:0 8px 8px 0; padding:8px 14px; border:1px solid var(--line); border-radius:18px; background:#fff; font-size:14.5px; color:var(--brand); cursor:pointer; }
#panel-qa .ai-msg-bubble .sq-wrap button:hover, #panel-qa .ai-msg-bubble .related button:hover { background:var(--brand-soft); border-color:var(--brand); }

/* ==== AOPT_FULLSCREEN_PATTERN 2026-10-22 ==== */
.rt-wrap { height: auto !important; min-height: 0 !important; }
.rt-topbar { position: sticky; top: 0; z-index: 6; }
.rt-stage { min-height: 420px; }
.rt-panel { max-height: none !important; border-radius: 0 0 12px 12px; }
.rt-panel.compact { max-height: none !important; }

.rt-stage:fullscreen, .rt-stage:-webkit-full-screen { height: 100vh !important; min-height: 100vh; }

/* ==== AOPT_APP_HUD 2026-10-22 ==== */
.rt-wrap.rt-live { position: fixed !important; inset: 0 !important; height: 100vh !important; height: 100dvh !important; z-index: 900 !important; background: #000; overflow: hidden !important; }
.rt-live .rt-topbar { position: absolute !important; top: 0; left: 0; right: 0; z-index: 8; background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,0)) !important; border-bottom: none !important; }
.rt-live .rt-stage { height: 100vh !important; height: 100dvh !important; }
#rtHud { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 22px; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.8)); color: #fff; z-index: 5; pointer-events: none; }
#rtHud .hud-p { font-size: 12.5px; font-weight: 700; color: #ffb987; letter-spacing: .4px; }
#rtHud .hud-a { font-size: 30px; font-weight: 800; line-height: 1.12; margin-top: 2px; font-variant-numeric: tabular-nums; }
#rtHud .hud-chip { display: inline-block; margin: 6px 6px 0 0; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 12px; color: #f8fafc; font-variant-numeric: tabular-nums; }
#rtHud .hud-chip.hot { background: rgba(224,99,27,.85); }
#rtHud .hud-mus { margin-top: 8px; font-size: 13px; color: #ffd7b8; }
#rtHud .hud-goal { margin-top: 4px; font-size: 12.5px; color: #fde68a; }
#rtHud .hud-rep { position: absolute; right: 18px; bottom: 24px; font-size: 52px; font-weight: 900; color: #fff; opacity: 0; transition: opacity .18s; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.rt-live .rt-panel { position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 950; max-height: 66vh !important; overflow-y: auto; border-radius: 18px 18px 0 0 !important; transform: translateY(calc(100% - 48px)); transition: transform .28s ease; box-shadow: 0 -10px 34px rgba(0,0,0,.5); }
.rt-panel.open { transform: translateY(0); }
#rtDrawerHandle { height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: #94a3b8; cursor: pointer; user-select: none; }
#rtDrawerHandle span { width: 34px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); }

/* ==== AOPT_CAM_BTN 2026-10-22 ==== */
.rt-wrap:not(.rt-live) { display: none !important; }
#rtCamSection > button { display: inline-block; margin: 10px 10px 0 0; padding: 12px 26px;
  border: none; border-radius: 12px; background: linear-gradient(135deg, #e0631b, #c2410c);
  color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .5px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(224,99,27,.32); }
#rtCamSection > button:active { transform: translateY(1px); }
#rtCamSection > button#rtStop { background: #334155; box-shadow: none; }
#rtCamSection > button#rtSwitch { background: #fff; color: #c2410c; border: 1px solid rgba(224,99,27,.6); box-shadow: none; }

/* ==== AOPT_LIVE_FIX2 ==== */
.rt-wrap.rt-live { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
.rt-wrap.rt-live .rt-stage { height: 100vh !important; height: 100dvh !important; }

/* ==== AOPT_MIRROR：前置摄像头左右镜像，像照镜子 ==== */
/* 镜像改在画布内部处理，避免文字被翻转 */

/* ===== v6.4 适老化字号与自适应 =====
   设计基准仍是 rem，放大 html 字号即可整体等比放大，不改布局比例。 */
@media (max-width: 480px) { html { font-size: 17px; } }        /* 手机 */
@media (min-width: 481px) and (max-width: 1024px) { html { font-size: 17.5px; } }  /* 平板 */
@media (min-width: 1025px) { html { font-size: 18px; } }       /* 电脑 */
body { font-size: 15.5px; line-height: 1.65; }
/* 问答对话框：正文字号单独再放大，行距放宽（老花也能读） */
.ai-chat-messages { font-size: 16.5px !important; line-height: 1.8 !important; }
.ai-chat-messages * { font-size: inherit !important; line-height: 1.8 !important; }
.ai-chat-input, .ai-chat-send { font-size: 16px !important; }
.ai-chat-quick button { font-size: 14.5px !important; }
/* 全局最小可读字号：把 11~12px 的小字提到 13px 起 */
.hint, .muted, small, .meta, .sub, .note { font-size: 13px; }
@media (min-width: 768px) { .panel, .card, main { line-height: 1.7; } }
