

  * { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    color-scheme: only light;
    --t1: clamp(22px, 1.74vw, 37px);    /* 主标题 */
    --t2: clamp(16.5px, 1.25vw, 27px);  /* 面板标题 / 卡片标题 */
    --t3: clamp(15px, 1.19vw, 23.5px);   /* 正文 */
    --t4: clamp(13px, 1.02vw, 20px);     /* 注释 */
    --pad: clamp(10px, .85vw, 20px);
  }
  html, body { width: 100%; height: 100%; }
  body {
    font-family: "Source Han Sans SC VF", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background-color: #eef4fb;
    background-image: linear-gradient(160deg, #eef4fb 0%, #f7fafc 100%);
    color: #1f2d3d;
    overflow: hidden;
  }
  /* 满屏：左侧模型 + 右侧文字面板，任何分辨率都不出现滚动条 */
  main[data-canvas-root] {
    width: 100%; height: 100%;
    display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 23.5vw, 430px);
    gap: var(--pad); padding: var(--pad);
  }
  .left { display: flex; flex-direction: column; gap: clamp(6px, .8vh, 12px); min-width: 0; min-height: 0; }
  aside.side { display: flex; flex-direction: column; gap: clamp(8px, 1vh, 14px); min-height: 0;
               overflow-y: auto; overflow-x: hidden; }

  /* ===== 标题 ===== */
  header { display: flex; align-items: baseline; gap: clamp(8px, 1vw, 18px); flex: 0 0 auto; }
  header h1 { font-size: var(--t1); font-weight: 700; color: #16324f; letter-spacing: 1px; white-space: nowrap; }
  header .sub { font-size: var(--t4); color: #5b7186; white-space: nowrap; }
  header .tag { margin-left: auto; font-size: var(--t4); color: #7a8fa3; background: #fff; border: 1px solid #dbe7f0;
                border-radius: 20px; padding: .3em .9em; white-space: nowrap; }

  /* ===== 舞台 ===== */
  .stage {
    flex: 1 1 auto; min-height: 0; position: relative; overflow: hidden;
    background: #fcfbfb; border-radius: 18px; box-shadow: 0 6px 22px rgba(38,84,124,.10);
    display: flex; align-items: center; justify-content: center;
  }
  .canvas { position: relative; flex: 0 0 auto; }

  .layer { position: absolute; user-select: none; -webkit-user-drag: none; }
  .base  { inset: 0; width: 100%; height: 100%; z-index: 1; }
  /* 腘窝褶皱桥接层（随抬腿角度计算） */
  .bridge-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
  #bridgePath { opacity: 0; }
  /* 膝关节静态补片 */
  .joint { left: 18.2704%; top: 30.5120%; width: 13.5201%; height: 15.6740%; z-index: 3; }
  /* 可旋转的小腿（含胫腓骨与足） */
  .leg   { left: 12.9923%; top: 32.9154%; width: 16.9712%; height: 67.0846%;
           transform-origin: 75.467% 4.300%; z-index: 4; will-change: transform; }
  /* 可独立摆动的叩诊锤（与底图分离，握把尾端为旋转支点） */
  .hammer { left: 15.672%; top: 11.912%; width: 8.283%; height: 26.959%;
            transform-origin: 8.82% 10.08%; z-index: 6; pointer-events: none;
            will-change: transform; }

  /* ===== 传导路径与光点 ===== */
  .fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
  .wire { fill: none; stroke: #2f6fb0; stroke-width: 4; opacity: .13; stroke-linecap: round; }
  .lit-wide { fill: none; stroke: #ffb63c; stroke-width: 27; opacity: .13; stroke-linecap: round; stroke-linejoin: round;
              stroke-dasharray: 100; stroke-dashoffset: 100; }
  .lit-mid  { fill: none; stroke: #ffc957; stroke-width: 9.5; opacity: .38; stroke-linecap: round; stroke-linejoin: round;
              stroke-dasharray: 100; stroke-dashoffset: 100; }
  .lit-core { fill: none; stroke: #fff6cc; stroke-width: 3.1; opacity: .92; stroke-linecap: round; stroke-linejoin: round;
              stroke-dasharray: 100; stroke-dashoffset: 100; }
  #sparkG { opacity: 0; }
  #blockMark { opacity: 1; }

  /* 小腿抬起的弧形指示 */
  .kick-arc { fill: none; stroke: #e8743b; stroke-width: 8; stroke-linecap: round; opacity: 0;
              stroke-dasharray: 24 16; }
  .kick-head { fill: #e8743b; opacity: 0; }
  .kick-label { fill: #c9541f; font-size: 33px; font-weight: 700; opacity: 0; letter-spacing: 1px;
                font-family: "Source Han Sans SC VF", "PingFang SC", "Microsoft YaHei", sans-serif; }
  /* 受损时应答缺失提示 */
  .no-resp { fill: #c0392b; font-size: 42px; font-weight: 700; opacity: 0; letter-spacing: 2px;
             font-family: "Source Han Sans SC VF", "PingFang SC", "Microsoft YaHei", sans-serif; }

  /* ===== 感觉通路：脊髓 → 大脑皮层（点按钮才出现） ===== */
  .sense { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 8; pointer-events: none; }
  .brain-halo { left: 78%; top: 1.5%; width: 21%; height: 42%; z-index: 6; border-radius: 50%;
                background: radial-gradient(closest-side, rgba(255,255,255,.94) 46%, rgba(255,255,255,.66) 72%, rgba(255,255,255,0) 100%);
                opacity: 0; transition: opacity .5s; pointer-events: none; }
  .brain-halo.on { opacity: 1; }
  .brain { left: 78%; top: 3%; width: 20%; height: auto; z-index: 7;
           opacity: 0; transform: translateY(14px) scale(.95); transform-origin: 55% 90%;
           transition: opacity .55s ease, transform .62s cubic-bezier(.2,.8,.25,1);
           pointer-events: none; }
  .brain.on { opacity: 1; transform: none; }
  .brain.dim { filter: saturate(.35) brightness(1.02); }

  .tl-sense { white-space: nowrap; }

  .sense-label { fill: #d1511a; font-size: 38px; font-weight: 800; letter-spacing: .5px;
                 paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round;
                 font-family: "Source Han Sans SC VF", "PingFang SC", "Microsoft YaHei", sans-serif; }
  .sense-cut { fill: #c0392b; font-size: 27px; font-weight: 700; paint-order: stroke;
               stroke: #fff; stroke-width: 7px; stroke-linejoin: round;
               font-family: "Source Han Sans SC VF", "PingFang SC", "Microsoft YaHei", sans-serif; }
  #senseCortex.pulse { animation: ctxPulse 1.5s ease-in-out 2; }
  @keyframes ctxPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

  /* 正常反射时自动上行的“小光点” */

  /* ===== 叩击反馈 ===== */
  .impact { position: absolute; z-index: 6; left: 22.2%; top: 35.8%; width: 0; height: 0; pointer-events: none; opacity: 0; }
  .impact .ring { position: absolute; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px;
                  border: 3px solid #ffb63c; border-radius: 50%; opacity: 0; }
  .impact .ring.b { border-color: #ff8a3d; }
  .impact .flash { position: absolute; left: 0; top: 0; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%;
                   background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,196,64,.75) 40%, rgba(255,150,40,0) 100%); opacity: 0; }
  /* ===== 等待叩击：锤子处的脉冲光晕，提示“点这里才开始” ===== */
  .strike-pulse { position: absolute; z-index: 6; left: 10%; top: 5%; width: 18%; height: 38%;
                  border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .35s;
                  background: radial-gradient(closest-side, rgba(255,188,62,.34), rgba(255,188,62,.11) 58%, rgba(255,188,62,0) 100%); }
  .strike-pulse.on { opacity: 1; animation: spulse 1.9s ease-in-out infinite; }
  @keyframes spulse { 0%, 100% { transform: scale(.9); opacity: .45; } 50% { transform: scale(1.07); opacity: 1; } }

  /* ===== 叩击力度调节（贴在叩诊锤上方） ===== */
  .force { position: absolute; z-index: 9; left: 1.5%; top: 1.2%; display: flex; align-items: center;
           gap: clamp(4px, .42vw, 8px); background: #fff; border: 1.5px solid #dbe7f0; border-radius: 13px;
           padding: clamp(3px, .5vh, 7px) clamp(7px, .66vw, 12px);
           box-shadow: 0 3px 12px rgba(38,84,124,.13); }
  .force .ft { font-size: var(--t4); font-weight: 700; color: #3c5870; white-space: nowrap; }
  .fbtn { width: clamp(20px, 1.62vw, 29px); height: clamp(20px, 1.62vw, 29px); border-radius: 8px;
          background: #eef4fa; color: #2f6fb0; font-size: clamp(15px, 1.15vw, 20px); font-weight: 700; line-height: 1;
          padding: 0; display: flex; align-items: center; justify-content: center; box-shadow: none; }
  .fbtn:hover { background: #dbebf8; }
  .fbtn:disabled { opacity: .32; cursor: default; background: #f2f6f9; }
  .fbars { display: flex; align-items: flex-end; gap: 3px; height: clamp(13px, 1.25vw, 19px); }
  .fbars i { width: clamp(4px, .36vw, 6px); border-radius: 2px; background: #cddbe6; transition: background .2s, height .2s; }
  .fbars i:nth-child(1) { height: 40%; }
  .fbars i:nth-child(2) { height: 70%; }
  .fbars i:nth-child(3) { height: 100%; }
  .fbars i.on { background: #e8743b; }
  .fword { font-size: var(--t4); font-weight: 700; color: #c65a25; min-width: 2.4em; text-align: center; }
  .fword.weak { color: #b4523f; }
  .fword.strong { color: #c65a25; }

  /* 热区编号 */
  .hot { position: absolute; z-index: 8; width: 30px; height: 30px; margin: -15px 0 0 -15px; cursor: pointer; }
  .hot .pin { width: 30px; height: 30px; border-radius: 50%; background: #2f6fb0; color: #fff; font-size: 15px; font-weight: 700;
              display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(22,50,79,.35);
              border: 2px solid #fff; transition: transform .15s, background .15s; }
  .hot:hover .pin { transform: scale(1.14); }
  .hot.active .pin { background: #e8743b; transform: scale(1.18); }
  .hot.done .pin { background: #7fb98a; }

  /* ===== 进度条 ===== */
  .timeline { flex: 0 0 auto; display: flex; align-items: center; gap: clamp(8px, 1vw, 16px); padding: 0 2px; }
  .tl-btn { height: clamp(34px, 4.6vh, 46px); flex: 0 0 auto; border-radius: 12px; background: #2f6fb0; color: #fff;
            padding: 0 clamp(12px, 1.1vw, 22px);
            display: flex; align-items: center; justify-content: center; gap: 7px; font-size: var(--t3); line-height: 1;
            box-shadow: 0 3px 10px rgba(47,111,176,.30); transition: background .18s, box-shadow .18s; }
  .tl-btn:hover { background: #265e99; }
  .tl-btn.paused { background: #e8743b; box-shadow: 0 3px 10px rgba(232,116,59,.32); }
  .tl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 5px 0 2px; cursor: pointer; }
  .tl-track { position: relative; height: clamp(10px, 1.3vh, 14px); border-radius: 6px; background: #e3ecf3; }
  .tl-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0%; border-radius: 6px;
             background: linear-gradient(90deg, #4a8bc8, #2f6fb0); transition: none; }
  .tl-sep { position: absolute; top: 1px; width: 2px; height: calc(100% - 2px); background: #fff; opacity: .9; border-radius: 1px; }
  .tl-knob { position: absolute; top: 50%; left: 0; width: clamp(15px, 1.8vh, 19px); height: clamp(15px, 1.8vh, 19px);
             margin: calc(clamp(15px, 1.8vh, 19px) / -2) 0 0 calc(clamp(15px, 1.8vh, 19px) / -2); border-radius: 50%;
             background: #fff; border: 3.5px solid #2f6fb0; box-shadow: 0 2px 7px rgba(22,50,79,.32); }
  .tl-track.drag .tl-knob { transform: scale(1.12); }
  .tl-labels { position: relative; height: clamp(15px, 2vh, 22px); font-size: var(--t4); color: #7a8fa3; }
  .tl-labels span { position: absolute; top: 0; white-space: nowrap; transition: color .2s, font-weight .2s; }
  .tl-labels span.on { color: #2f6fb0; font-weight: 700; }
  /* 第六段：上行到大脑皮层（属“感觉”，不属于反射弧） */
  .tl-labels span.tl-sense { color: #bb7a4a; }
  .tl-labels span.tl-sense.on { color: #d1511a; font-weight: 700; }
  /* 窄屏（1024 投影常见）标签会挤在一起，改用两字简称 */
  /* 窄屏：标题右侧的“真实 3D 模型”徽标会挤出画面，直接隐藏 */
  @media (max-width: 1240px) {
    header .tag { display: none; }
    header .sub { font-size: clamp(12px, .92vw, 16px); }
  }
  @media (max-width: 1180px) {
    .tl-labels span[data-short] { font-size: 0; }
    .tl-labels span[data-short]::before { content: attr(data-short); font-size: var(--t4); }
  }
  .tl-reset { flex: 0 0 auto; font-size: var(--t4); padding: .55em 1em; }

  /* ===== 反射弧结构条（上方箭头指示传导方向） ===== */
  .strip-wrap { flex: 0 0 auto; display: flex; flex-direction: column; min-height: 0; }
  /* 小标题：2 认识反射弧 */
  .strip-head { flex: 0 0 auto; display: flex; align-items: center; gap: clamp(6px, .55vw, 11px);
                margin-bottom: clamp(3px, .7vh, 9px); }
  .strip-head .sn { width: 1.5em; height: 1.5em; border-radius: 7px; background: #2f6fb0; color: #fff;
                    font-size: calc(var(--t2) * .82); font-weight: 700; display: inline-flex; align-items: center;
                    justify-content: center; flex: 0 0 auto; }
  .strip-head .stt { font-size: var(--t2); font-weight: 700; color: #16324f; white-space: nowrap; letter-spacing: .5px; }
  .strip-head .shint { margin-left: auto; font-size: var(--t4); color: #7a8fa3; white-space: nowrap; }
  .chain { position: relative; display: flex; align-items: center; gap: clamp(6px, .6vw, 12px);
           height: clamp(15px, 2.1vh, 26px); margin-bottom: clamp(2px, .5vh, 6px); }
  .chain-tag { flex: 0 0 auto; font-size: var(--t4); font-weight: 700; color: #bb6a30; letter-spacing: .5px; white-space: nowrap; }
  .chain-line { position: relative; flex: 1 1 auto; height: 100%; }
  .chain-line::before { content: ""; position: absolute; left: 0; right: 11px; top: 50%; height: 0;
                        border-top: 3px dashed #e09a67; }
  .chain-line::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 0; height: 0;
                       border-left: 12px solid #d97c3e; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
  /* 每个结构正上方的短竖线，把箭头与下方五张卡片对应起来 */
  .chain i { position: absolute; top: 50%; height: 46%; width: 2px; background: #e09a67; opacity: .6;
             transform: translateX(-50%); }
  .strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(7px, .6vw, 12px);
           height: clamp(48px, 6.2vh, 72px); }
  .struct-item { background: #fff; border-radius: 14px; border: 1.5px solid #e2ecf3; padding: clamp(6px, .8vh, 11px) clamp(8px, .7vw, 14px);
                 box-shadow: 0 3px 12px rgba(38,84,124,.07); cursor: pointer; transition: all .18s; overflow: hidden;
                 display: flex; align-items: center; justify-content: center; }
  .struct-item .st { font-size: var(--t2); font-weight: 700; color: #24496b; display: flex; align-items: center; gap: 7px; }
  .struct-item .st .n { width: 1.5em; height: 1.5em; border-radius: 6px; background: #dfeaf2; color: #2f6fb0; font-size: .82em;
                        display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
  .struct-item.active { border-color: #e8743b; background: #fdf2ea; }
  .struct-item.active .st { color: #c65a25; }
  .struct-item.active .st .n { background: #e8743b; color: #fff; }
  .struct-item.done { border-color: #a7d2ae; background: #f3faf4; }
  .struct-item.done .st .n { background: #7fb98a; color: #fff; }

  /* 卡片被点选时的聚焦态：数字、文字、边框一起亮 */
  .struct-item { position: relative; }
  .struct-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #e8743b;
                         transform: scaleY(0); transform-origin: center; transition: transform .22s; }
  .struct-item:hover { border-color: #f3c3a4; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(38,84,124,.12); }
  .strip.has-focus .struct-item { opacity: .55; }
  .strip.has-focus .struct-item.focus { opacity: 1; }
  .struct-item.focus { border-color: #e8743b; background: linear-gradient(180deg, #fff8f2, #fceae0);
                       box-shadow: 0 0 0 3px rgba(232,116,59,.16), 0 10px 22px rgba(232,116,59,.20);
                       transform: translateY(-2px); opacity: 1; }
  .struct-item.focus::before { transform: scaleY(1); }
  .struct-item.focus .st { color: #c65a25; }
  .struct-item.focus .st .n { background: #e8743b; color: #fff; box-shadow: 0 0 0 4px rgba(232,116,59,.18); }

  /* ===== 结构高亮层（点选卡片时点亮模型中的对应结构） ===== */
  .hl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
  .hl-g { opacity: 0; transition: opacity .3s; }
  .hl-g.on { opacity: 1; }
  .hl-fill { fill: url(#gHl); }
  .hl-halo { fill: none; stroke: #fff; stroke-width: 13; opacity: .72; filter: url(#fHlS); }
  .hl-ring { fill: none; stroke: #ff7a33; stroke-width: 6; stroke-dasharray: 16 13; opacity: .92;
             animation: hlDash 1.7s linear infinite; }
  .hl-pglow { fill: none; stroke: #ff9a3c; stroke-width: 21; opacity: .26; stroke-linecap: round;
              filter: url(#fHl); }
  .hl-pcore { fill: none; stroke: #ffb457; stroke-width: 5.2; opacity: .95; stroke-linecap: round;
              stroke-dasharray: 15 17; animation: hlDash 1.1s linear infinite; }
  @keyframes hlDash { to { stroke-dashoffset: -58; } }
  .focusing .fx .lit-wide, .focusing .fx .lit-mid, .focusing .fx .lit-core { opacity: 0 !important; }
  .focusing #sparkG { opacity: 0 !important; }

  .hot.focus .pin { background: #e8743b; transform: scale(1.24);
                    box-shadow: 0 0 0 4px rgba(232,116,59,.22), 0 4px 14px rgba(232,116,59,.45); }
  .hot.focus::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid #e8743b;
                      animation: pinPulse 1.8s ease-out infinite; }
  @keyframes pinPulse { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(2.35); opacity: 0; } }

  /* ===== 右侧文字面板 ===== */
  .panel { background-color: #fff; background: #fff; border-radius: 16px; box-shadow: 0 6px 22px rgba(38,84,124,.10); padding: var(--pad);
           display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .panel-def { flex: 0 0 auto; }
  .panel-probe { flex: 1 1 0; }
  .panel h2 { font-size: var(--t2); font-weight: 700; color: #16324f; margin-bottom: clamp(6px, .8vh, 10px);
              display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
  .panel h2 .num { width: 1.5em; height: 1.5em; border-radius: 7px; background: #2f6fb0; color: #fff; font-size: .82em;
                   display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }

  /* 反射的概念卡 */
  .def-card { background-color: #fff7f0; background-image: linear-gradient(150deg, #fff7f0, #fdeade); border: 1.5px solid #f4d3ba; border-radius: 12px;
              padding: clamp(7px, .9vh, 12px) clamp(9px, .8vw, 14px); flex: 0 0 auto; }
  .def-main { font-size: var(--t3); line-height: 1.5; color: #6b3b22; }
  .def-main strong { color: #c1440e; font-weight: 700; }
  .def-sub { font-size: var(--t4); line-height: 1.42; color: #8a6248; margin-top: 5px; padding-top: 5px; border-top: 1px dashed #f0d3bf; }
  .def-sub b { color: #a13f13; }
  .cond-title { font-size: var(--t4); font-weight: 700; color: #5b7186; margin: clamp(7px, .9vh, 11px) 0 5px;
                flex: 0 0 auto; letter-spacing: .3px; }
  .cond-title::before { content: "◆"; color: #e8743b; margin-right: 5px; font-size: .8em; vertical-align: 1px; }

  .cond-list { display: flex; flex-direction: column; gap: clamp(4px, .6vh, 8px); flex: 0 0 auto; }
  .cond-item { flex: 0 0 auto; min-height: clamp(40px, 5vh, 56px);
               border: 1.5px solid #e2ecf3; border-radius: 10px; padding: clamp(4px, .6vh, 8px) clamp(8px, .7vw, 12px);
               background: #f8fbfd; transition: all .25s;
               flex: 1; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .cond-item .ct { font-size: var(--t2); font-weight: 700; color: #24496b; display: flex; align-items: center; }
  .cond-item .dot { display: inline-block; width: .58em; height: .58em; border-radius: 50%; background: #c4d4e0;
                    margin-right: .4em; flex: 0 0 auto; transition: all .25s; }
  .cond-item.on { border-color: #2f6fb0; background: #eef5fc; }
  .cond-item.on .dot { background: #2f6fb0; box-shadow: 0 0 0 3px rgba(47,111,176,.18); }
  .cond-item.broken { border-color: #e0a196; background: #fdf2f0; }
  .cond-item.broken .ct { color: #a5301f; }
  .cond-item.broken .dot { background: #c0392b; }
  .cond-item.broken .ct::after { content: "✕"; margin-left: auto; color: #c0392b; font-size: .95em; }
  /* 刺激过轻：条件“需要适宜的刺激”未满足 */
  .cond-item.warn { border-color: #e8b4a4; background: #fdf5f2; }
  .cond-item.warn .ct { color: #a5502f; }
  .cond-item.warn .dot { background: #d9704b; box-shadow: 0 0 0 3px rgba(217,112,75,.16); }
  .cond-item.warn .ct::after { content: "!"; margin-left: auto; color: #d9704b; font-size: 1.1em; font-weight: 700; }

  button { font-family: inherit; border: none; border-radius: 10px; cursor: pointer; font-size: var(--t4); font-weight: 600;
           padding: .55em 1em; transition: all .15s; }
  .btn-ghost { background: #eef3f7; color: #3c5870; }
  .btn-ghost:hover { background: #e2ecf3; }
  /* 「🧠 上行通路」：关闭时灰色虚线边框（提示可点开），打开时蓝底 */
  #btnSense { border: 1.5px solid #cfdde8; background: #fff; color: #3c5870; }
  #btnSense:hover { background: #f2f8fd; border-color: #9dc2de; }
  #btnSense.on { background: #e6f2ff; border-color: #7fb0d8; color: #164a78; font-weight: 700; }

  /* 当前步骤解说（左侧，进度条下方） */
  .status { flex: 0 0 auto; font-size: var(--t3); color: #3c5870; line-height: 1.42; background: #fff;
            border-radius: 12px; padding: clamp(6px, .9vh, 11px) clamp(10px, .9vw, 16px);
            box-shadow: 0 3px 12px rgba(38,84,124,.07); border-left: 5px solid #4a8bc8;
            /* 固定预留两行高度：解说词长短变化时 3D 画布不会忽高忽低，模型就不会随之缩放 */
            min-height: calc(2.84em + 2 * clamp(6px, .9vh, 11px)); }
  .status b { color: #c65a25; }
  .status strong { color: #2f6fb0; }

  /* 探究面板 */
  .probe-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(5px, .7vw, 9px); flex: 0 0 auto; }
  .probe-chip { font-size: var(--t4); padding: clamp(6px, 1vh, 11px) 4px; border-radius: 9px; background: #f4f8fb;
                border: 1.5px solid #e2ecf3; color: #3c5870; cursor: pointer; font-family: inherit; font-weight: 600;
                transition: all .15s; white-space: nowrap; }
  .probe-chip:hover { border-color: #f0b48f; background: #fdf6f1; }
  .probe-chip.active { border-color: #c0392b; background: #fdecea; color: #a5301f; box-shadow: 0 0 0 2px rgba(192,57,43,.12); }
  .probe-chip.restore { grid-column: span 2; background: #eef5fc; border-color: #c3dbee; color: #2f6fb0; }
  .probe-chip.restore:hover { background: #e1eefb; border-color: #98c2e2; }
  .probe-chip:nth-child(5) { grid-column: span 2; }
  .probe-result { margin-top: clamp(6px, .9vh, 12px); font-size: var(--t4); line-height: 1.45; color: #3c5870;
                  background: #f8fbfd; border-radius: clamp(10px, .8vw, 14px);
                  padding: clamp(6px, 1vh, 14px) clamp(10px, .9vw, 16px); flex: 1 0 auto;
                  min-height: 0; overflow: visible;
                  display: flex; flex-direction: column; justify-content: center; gap: clamp(4px, .7vh, 12px); }
  .pr-empty { color: #8296a8; text-align: center; line-height: 1.5; }
  .pr-row { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1vw, 20px); }
  .pr-k { flex: 0 0 auto; font-size: var(--t2); font-weight: 700; color: #33526e; }
  .pr-v { flex: 0 0 auto; min-width: clamp(52px, 4.4vw, 82px); text-align: center;
          font-size: var(--t2); font-weight: 800; letter-spacing: 2px;
          padding: clamp(1px, .42vh, 7px) clamp(12px, 1.1vw, 22px); border-radius: 999px; }
  .pr-v.no  { color: #a5301f; background: #fdecea; border: 1.5px solid #eeb4aa; }
  .pr-v.yes { color: #2c7a4d; background: #edf8f0; border: 1.5px solid #aed7bb; }

  /* 先预测：有 / 无 选项（选中态用中性的蓝色，避免提前泄露答案） */
  .pr-opts { display: flex; gap: clamp(6px, .55vw, 10px); flex: 0 0 auto; }
  .opt { font-size: var(--t2); font-weight: 700; line-height: 1.2; color: #47637c; background: #fff;
         border: 1.5px solid #cfdde8; border-radius: 999px;
         padding: clamp(2px, .45vh, 6px) clamp(11px, 1vw, 22px); box-shadow: 0 1px 3px rgba(38,84,124,.06); }
  .opt:hover { border-color: #8fb8da; background: #f2f8fd; }
  .opt.on { background: #e6f0fa; border-color: #2f6fb0; color: #1d4f80;
            box-shadow: 0 0 0 2px rgba(47,111,176,.16); }
  .pr-mk { flex: 0 0 auto; width: 1.1em; text-align: center; font-size: calc(var(--t3) * .94); font-weight: 800; }
  .pr-ans { display: flex; align-items: center; gap: clamp(3px, .4vw, 7px); flex: 0 0 auto; }
  .pr-mk.ok  { color: #2c7a4d; }
  .pr-mk.bad { color: #c0392b; }
  .pr-tip { font-size: var(--t4); line-height: 1.32; color: #8296a8; text-align: center; }
  .pr-tip.go  { color: #c65a25; font-weight: 700; }
  .pr-tip.ok  { color: #2c7a4d; font-weight: 700; }
  .pr-tip.mix { color: #c65a25; font-weight: 700; }
  .probe-result.pop .pr-row { animation: prIn .3s ease both; }
  .probe-result.pop .pr-row:nth-child(2) { animation-delay: .09s; }
  @keyframes prIn { from { opacity: 0; transform: translateY(5px); } }

  /* 受损结构在卡片 / 流程条上的呼应 */
  .struct-item.broken { border-color: #e4a79d; background: linear-gradient(180deg, #fdf4f2, #fbeae7); }
  .struct-item.broken .st { color: #a5301f; }
  .struct-item.broken .st .n { background: #c0392b; color: #fff; }
  .struct-item.focus.broken { box-shadow: 0 0 0 3px rgba(192,57,43,.18), 0 10px 22px rgba(192,57,43,.20); }

  /* 受损标记层 */
  .dmgbase { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
  .dmg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 7; pointer-events: none; }


  /* ================= 3D 舞台 ================= */
  .stage3d { position: relative; flex: 1 1 auto; min-height: 0; border-radius: 18px; overflow: hidden;
             background: radial-gradient(120% 120% at 30% -10%, #ffffff 0%, #f4f9fd 42%, #e6eff8 100%);
             box-shadow: 0 6px 22px rgba(38,84,124,.10); cursor: grab; touch-action: none; }
  .stage3d.grabbing { cursor: grabbing; }
  #gl { display: block; width: 100%; height: 100%; }
  .lbl-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
  .lead { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
  .lead-line { stroke: #9fb6c9; stroke-width: 1.2; stroke-dasharray: 3 3; opacity: .75; }
  .lead-line.on { stroke: #e8743b; stroke-width: 1.6; stroke-dasharray: none; }
  .lead-dot { fill: #7ea6c4; opacity: .8; }
  .lead-dot.on { fill: #e8743b; }

  .lbl3d { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: .3em;
           padding: .10em .56em .10em .10em; border-radius: 999px; background: rgba(255,255,255,.93);
           border: 1.5px solid #d3e2ee; box-shadow: 0 2px 9px rgba(30,60,90,.15);
           font-size: clamp(13px, 1.04vw, 19px); font-weight: 700; color: #2b5478; white-space: nowrap;
           pointer-events: auto; cursor: pointer; will-change: transform; transition: border-color .15s, color .15s; }
  .lbl3d .pin { width: 1.45em; height: 1.45em; border-radius: 50%; background: #2f6fb0; color: #fff;
                font-size: .86em; display: flex; align-items: center; justify-content: center;
                box-shadow: 0 1px 3px rgba(20,40,70,.25); }
  .lbl3d:hover { border-color: #9dc2de; }
  .lbl3d.focus { border-color: #e8743b; color: #c65a25; background: #fffdf9;
                 box-shadow: 0 0 0 3px rgba(232,116,59,.18), 0 3px 12px rgba(232,116,59,.24); }
  .lbl3d.focus .pin { background: #e8743b; }

  .tag3d { position: absolute; left: 0; top: 0; padding: .16em .62em; border-radius: 9px;
           font-size: clamp(13px, 1.06vw, 19px); font-weight: 700; white-space: nowrap;
           background: rgba(255,255,255,.92); border: 1.5px solid #d6e4ef; color: #3c5870;
           pointer-events: none; will-change: transform; box-shadow: 0 2px 8px rgba(30,60,90,.11); }
  .tag3d.grey  { color: #5b7186; background: rgba(255,255,255,.84); }
  .tag3d.warm  { color: #c9541f; border-color: #f0c3a6; background: rgba(255,248,242,.95); }
  .tag3d.strong{ font-size: clamp(14px, 1.2vw, 21px); }
  .tag3d.big   { color: #d1511a; font-size: clamp(15px, 1.34vw, 24px); border-color: #f2b183;
                 background: rgba(255,251,246,.97); box-shadow: 0 4px 16px rgba(232,116,59,.24); }
  .tag3d.red   { color: #c0392b; border-color: #eeb4aa; background: rgba(255,247,246,.96); }
  .tag3d.hint  { color: #a5661f; border-color: #f0cf9a; background: rgba(255,251,240,.96);
                 pointer-events: auto; cursor: pointer; animation: spulse3d 1.9s ease-in-out infinite; }
  @keyframes spulse3d { 0%,100% { box-shadow: 0 0 0 0 rgba(240,180,90,0); }
                        50%     { box-shadow: 0 0 0 6px rgba(240,180,90,.22); } }

  .viewbar { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 7px;
             font-size: var(--t4); color: #7a8fa3; }
  .viewbar button { background: rgba(255,255,255,.92); border: 1.5px solid #dbe7f0; color: #3c5870;
                    font-size: var(--t4); padding: .34em .76em; border-radius: 10px; cursor: pointer; }
  .viewbar button:hover { background: #fff; border-color: #b9d4e8; }
  .viewbar .vt { background: rgba(255,255,255,.7); border-radius: 999px; padding: .26em .76em; white-space: nowrap; }
  .viewbar .zgroup { display: flex; align-items: center; gap: 5px; }
  .viewbar .zbtn { min-width: 2.2em; padding: .3em .5em; font-weight: 800; font-size: calc(var(--t4) * 1.16);
                   line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
  .viewbar .zbtn:active { transform: translateY(1px); }
  .viewbar .zbtn:disabled { opacity: .38; cursor: default; background: rgba(255,255,255,.7); }
  .viewbar .zbtn.zreset { font-size: calc(var(--t4) * .92); font-weight: 700; letter-spacing: .3px; min-width: 2.8em; }
  .viewbar button.tgl { min-width: 3.6em; }
  .viewbar button.tgl.off { color: #9fb2c2; border-style: dashed; background: rgba(255,255,255,.66); }
  .stage3d.nolabels .lbl3d, .stage3d.nolabels .tag3d,
  .stage3d.nolabels .lead-line, .stage3d.nolabels .lead-dot { display: none !important; }
  .loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
             flex-direction: column; gap: 10px; color: #6d8ba3; font-size: var(--t4); background: #f2f8fd;
             z-index: 20; transition: opacity .45s; }
  .loading b { font-size: 15px; color: #3c6b93; font-weight: 700; }
  .loading .bar { width: 168px; height: 5px; border-radius: 3px; background: #d9e8f3; overflow: hidden; }
  .loading .bar i { display: block; width: 42%; height: 100%; border-radius: 3px;
                    background: linear-gradient(90deg, #7db4dd, #4f90c2); animation: ld 1.1s ease-in-out infinite; }
  @keyframes ld { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
  /* 装配失败时的诊断提示（分享给别人、对方用微信/QQ 内置预览打开时最常见） */
  .loading .fail { max-width: min(560px, 86%); text-align: center; padding: 0 6px; }
  .loading .fail b { display: block; font-size: clamp(15px, 1.15vw, 20px); color: #b3402a; margin-bottom: 10px; }
  .loading .fail p { font-size: clamp(12.5px, .95vw, 16px); line-height: 1.62; color: #3c5870; margin: 0 0 8px; }
  .loading .fail p.err { color: #8a5a3c; font-family: Consolas, Menlo, monospace; font-size: 12px;
                         background: #fff6ef; border-radius: 8px; padding: 6px 9px; word-break: break-all; }
  .loading .fail p.hint { color: #5b7186; background: #fff; border-radius: 10px; padding: 8px 12px; text-align: left; }
  .loading .fail p.hint b { display: inline; font-size: inherit; color: #1d4f80; margin: 0; }

/* =========================================================
   手机 / 平板竖屏：单列排布，整页可纵向滚动
   ========================================================= */
@media (max-width: 860px) {
  html, body { height: auto; min-height: 100%; }
  body { overflow-x: hidden; overflow-y: auto; }

  main[data-canvas-root] {
    display: flex; flex-direction: column; height: auto;
    min-height: 100vh; min-height: 100dvh;
    gap: 9px; padding: 9px;
  }
  .left { gap: 8px; min-height: 0; }

  header { flex-wrap: wrap; row-gap: 3px; column-gap: 8px; }
  header h1 { font-size: clamp(18px, 5.2vw, 24px); letter-spacing: 0; white-space: normal; }
  header .sub { font-size: 11.5px; white-space: normal; }
  header .tag { display: none; }

  /* 舞台：固定高度，占屏幕一半多一点；横屏时更矮一些 */
  /* 竖屏时舞台按 4:3 取高：模型是"宽扁"的，舞台太高只会多出空白，模型反而更小 */
  .stage3d { flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 4 / 3;
             min-height: 260px; max-height: 56svh; border-radius: 14px; }

  /* 工具条：去掉提示文字，按钮换行排 */
  .viewbar { right: 7px; bottom: 7px; gap: 5px; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 14px); }
  .viewbar .vt { display: none; }
  .viewbar button { font-size: 12.5px; padding: .32em .6em; }
  .viewbar .zbtn { min-width: 2.1em; }

  /* 力度控件缩小一点，别压住模型 */
  .force { left: 7px; top: 7px; gap: 4px; padding: 3px 7px; border-radius: 10px; }
  .force .ft, .fword { font-size: 12px; }
  .fbtn { width: 22px; height: 22px; font-size: 15px; }

  /* 时间轴：按钮一行，进度条单独一行 */
  .timeline { flex-wrap: wrap; gap: 8px 8px; }
  #btnPlay { order: 0; }
  #btnSense { order: 1; margin-left: auto; }
  #btnReset { order: 2; }
  .tl-main { order: 3; flex: 1 1 100%; padding: 2px 0 0; }
  .tl-btn { height: 38px; font-size: 13.5px; padding: 0 14px; }
  .tl-reset { font-size: 12.5px; padding: .55em .8em; }

  .status { font-size: 13.5px; line-height: 1.45; min-height: 0; padding: 8px 10px; }
  .status b, .status strong { font-weight: 700; }

  /* 反射弧条：提示与箭头省略，卡片三列 */
  .strip-head .shint { display: none; }
  .chain { display: none; }
  .strip { grid-template-columns: repeat(3, 1fr); height: auto; gap: 7px; }
  .struct-item { padding: 9px 6px; border-radius: 12px; }
  .struct-item .st { font-size: 14.5px; gap: 5px; }
  .struct-item .st .n { width: 1.35em; height: 1.35em; font-size: .78em; }

  /* 右侧面板改为整块铺开 */
  aside.side { gap: 9px; }
  .panel { flex: 0 0 auto; padding: 12px; border-radius: 14px; }
  .panel-def, .panel-probe { flex: 0 0 auto; }
  .panel h2 { margin-bottom: 8px; }
  .cond-list { flex: 0 0 auto; gap: 6px; }
  .cond-item { min-height: 42px; flex: 0 0 auto; }
  .def-main { font-size: 14px; }
  .def-sub { font-size: 12px; }
  .probe-row { gap: 7px; }
  .probe-chip { font-size: 12.5px; padding: 9px 4px; }
  .probe-result { min-height: 96px; flex: 0 0 auto; }

  /* 标注在窄屏再收一点，避免压住模型 */
  .lbl3d { font-size: 12.5px; }
  .tag3d { font-size: 12.5px; }
}


/* 窄屏（手机）：标注只留数字圆点，避免五个长标签在小模型上叠成一团；
   具体名称看下方「认识反射弧」的编号卡片，点卡片同样会高亮模型上的位置。 */
@media (max-width: 620px), (max-width: 900px) and (max-height: 560px) {
  .lbl3d { font-size: 12px; padding: .06em .12em; gap: 0; border-radius: 999px; }
  .lbl3d .nm { display: none; }
  .lbl3d .pin { width: 1.9em; height: 1.9em; font-size: .95em; }
  .tag3d { font-size: 11.5px; padding: .14em .5em; }
  .tag3d.big { font-size: 14px; }
  .tag3d.strong { font-size: 13px; }
  /* 小屏上“点叩诊锤开始”会压住肌肉，状态栏已经写了同样的话，这里省掉 */
  .tag3d.hint { display: none; }
}

/* 横屏手机（高度很小）：舞台更矮，控件更紧凑 */
@media (max-width: 900px) and (max-height: 520px) {
  .stage3d { aspect-ratio: auto; height: 62svh; min-height: 200px; max-height: none; }
  header { display: none; }
  .status { font-size: 12.5px; min-height: 0; }
}

/* =========================================================
   「想一想」判断弹层（不跳页、不改布局，浮在模型上方）
   ========================================================= */
.quiz { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center;
        padding: clamp(12px, 2vw, 26px); }
.quiz.on { display: flex; }
.quiz-mask { position: absolute; inset: 0; background: rgba(14, 36, 58, .46); }
.quiz-box { position: relative; width: min(720px, 96vw); max-height: 90vh; overflow: auto; background: #fff;
            border-radius: 20px; box-shadow: 0 26px 64px rgba(12, 38, 62, .32); padding: clamp(16px, 2vw, 26px);
            display: flex; flex-direction: column; gap: clamp(12px, 1.6vh, 18px); }
.quiz-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.quiz-step { font-size: var(--t4); color: #3f6d93; background: #eaf3fb; border-radius: 999px;
             padding: .22em .8em; white-space: nowrap; font-weight: 700; }
.quiz-head b { font-size: var(--t2); color: #16324f; }
.quiz-x { margin-left: auto; width: 2em; height: 2em; border-radius: 10px; border: 1.5px solid #dbe7f0;
          background: #fff; color: #5b7186; cursor: pointer; font-size: var(--t4); line-height: 1; }
.quiz-x:hover { background: #f3f8fc; border-color: #b9d4e8; }

.def-quiz { margin-top: auto; display: flex; align-items: center; gap: .5em; width: 100%;
            border: 1.5px dashed #e3a87f; background: #fff; color: #a5502a; border-radius: 10px;
            padding: .45em .8em; font-size: var(--t4); font-weight: 700; cursor: pointer; }
.def-quiz:hover { background: #fff6f0; border-color: #d9825a; }
.def-quiz .dq-ico { font-size: 1.1em; }
.def-quiz.done { border-style: solid; border-color: #7bb89a; background: #effaf4; color: #25714f; }

.quiz-body { display: flex; flex-direction: column; gap: clamp(10px, 1.4vh, 16px); }
.qz-case { background: linear-gradient(150deg, #f6fbff, #eaf4fd); border: 1.5px solid #cfe4f5; border-radius: 14px;
           padding: clamp(14px, 2vh, 22px) clamp(14px, 1.6vw, 22px); font-size: clamp(17px, 1.35vw, 24px);
           font-weight: 700; color: #17456e; line-height: 1.5; text-align: center; }
.qz-asks { display: flex; gap: 10px; }
.qz-a { flex: 1; padding: .8em .4em; border-radius: 12px; border: 1.6px solid #d7e5f0; background: #fff;
        color: #2b5478; font-size: var(--t3); font-weight: 700; cursor: pointer; transition: .15s; }
.qz-a:hover { border-color: #8fb9d8; background: #f6fbff; }
.qz-a.sel { border-color: #2f6fb0; background: #e9f4ff; box-shadow: 0 0 0 3px rgba(47,111,176,.13); }
.qz-fb { border-radius: 12px; padding: .7em .9em; font-size: var(--t4); line-height: 1.6; }
.qz-fb.hide { display: none; }
.qz-fb.ok { background: #eefaef; border: 1.4px solid #b9e2bd; color: #226b32; }
.qz-fb.bad { background: #fff3ef; border: 1.4px solid #f3c4b6; color: #9c3a20; }
.qz-dots { display: flex; gap: 6px; justify-content: center; }
.qz-dots i { width: 22px; height: 5px; border-radius: 3px; background: #dbe7f0; transition: .2s; }
.qz-dots i.done { background: #7fb2d8; }
.qz-dots i.cur { background: #2f6fb0; }
.quiz-foot { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.qz-tip { font-size: var(--t4); color: #8aa0b3; margin-right: auto; }
.qz-btn { padding: .62em 1.3em; border-radius: 11px; border: none; cursor: pointer; white-space: nowrap; flex: 0 0 auto;
          background: linear-gradient(180deg, #4a8bc8, #2f6fb0); color: #fff; font-size: var(--t3); font-weight: 700; }
.qz-btn:hover { filter: brightness(1.06); }
.qz-btn.ghost { background: #fff; color: #2f6fb0; border: 1.6px solid #c9dff0; }
.qz-btn.dim { opacity: .42; cursor: not-allowed; }

.qz-q { font-size: var(--t4); color: #47637c; margin: 0; }
.qz-chips { display: flex; flex-direction: column; gap: 8px; }
.qz-chip { text-align: left; padding: .7em .9em; border-radius: 12px; border: 1.6px solid #dbe7f0; background: #fff;
           color: #2b5478; font-size: var(--t4); cursor: pointer; transition: .15s; line-height: 1.45; }
.qz-chip:hover { border-color: #a9c9e0; background: #f7fbff; }
.qz-chip.on { border-color: #2f6fb0; background: #e9f4ff; font-weight: 700; }
.qz-chip.good { border-color: #63b374; background: #eefaef; color: #1f6a30; font-weight: 700; }
.qz-chip.bad { border-color: #e08a6d; background: #fff2ec; color: #9c3a20; }

.qz-def { font-size: clamp(16px, 1.25vw, 22px); line-height: 2.1; color: #1a3f60; font-weight: 600;
          background: #fbfdff; border: 1.6px dashed #cfe0ee; border-radius: 14px; padding: .7em .9em; }
.qz-blank { display: inline-block; min-width: 5.4em; text-align: center; padding: .06em .5em; margin: 0 .12em;
            border-bottom: 2.4px solid #9dc2de; color: #b9c8d6; font-weight: 700; cursor: pointer; border-radius: 6px 6px 0 0; }
.qz-blank.fill { color: #b3402a; border-bottom-color: #d9631f; background: #fff6f0; }
.qz-bank { display: flex; flex-wrap: wrap; gap: 9px; }
.qz-word { padding: .5em 1em; border-radius: 999px; border: 1.6px solid #cfe0ee; background: #fff; color: #2b5478;
           font-size: var(--t4); font-weight: 700; cursor: pointer; }
.qz-word:hover { border-color: #8fb9d8; background: #f6fbff; }
.qz-word.used { opacity: .32; pointer-events: none; text-decoration: line-through; }

.qz-done { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.qz-big { font-size: clamp(17px, 1.3vw, 23px); font-weight: 800; color: #1f6a30; }
.qz-final { font-size: clamp(15px, 1.15vw, 20px); line-height: 1.9; color: #1a3f60; background: #f2faf4;
            border: 1.5px solid #c6e6cd; border-radius: 14px; padding: .8em 1em; text-align: left; }
.qz-final strong { color: #b3402a; }
.qz-notes { margin: 0; padding-left: 1.2em; text-align: left; font-size: var(--t4); color: #4a6b85; line-height: 1.75; }

@media (max-width: 860px) {
  .quiz-box { width: 96vw; max-height: 88vh; border-radius: 16px; }
  .qz-case { font-size: 16px; padding: 14px; }
  .qz-asks { flex-direction: column; }
  .qz-def { font-size: 15px; line-height: 2; }
  .qz-blank { min-width: 4.6em; }
  .quiz-head b { font-size: 15px; }
  .qz-btn { padding: .7em 1.1em; }
}

/* ---- 定义句：三条横线，点一下才出现 ---- */
.def-line .nb, .qz-def2 .nb { white-space: nowrap; }
.def-line { font-size: clamp(13.5px, 1.02vw, 17px); line-height: 1.95; color: #3c5870; }
.def-blank, .qz-blank2 { display: inline-block; min-width: 4.6em; text-align: center; cursor: pointer;
  padding: 0 .28em; margin: 0 .1em; border-bottom: 2px solid #c9a06f; border-radius: 4px 4px 0 0;
  color: #b9a893; font-weight: 700; background: #fffdf8; transition: .15s; }
.def-blank:hover, .qz-blank2:hover { background: #fff4e6; border-bottom-color: #e08a3c; }
.def-blank.on, .qz-blank2.on { color: #b3402a; border-bottom-color: #d9631f; background: #fff3ec;
  animation: defpop .28s ease-out; }
@keyframes defpop { 0% { transform: scale(.86); opacity: .2; } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* ---- 膝跳反射：条件 / 非条件 二选一 ---- */
.def-ask { margin-top: 6px; font-size: var(--t4); color: #6d7f8f; }
.def-choices { display: flex; gap: 8px; margin-top: 5px; }
.def-choice { flex: 1; padding: .52em .2em; border-radius: 11px; border: 1.6px solid #e0cfbd; background: #fff;
  color: #8a5a34; font-size: clamp(14px, 1.12vw, 18px); font-weight: 800; letter-spacing: .02em; cursor: pointer; transition: .15s; }
.def-choice:hover { background: #fff7ef; border-color: #d7a97a; }
.def-choice.ok { background: #eefaf4; border-color: #62b389; color: #1f6a45; box-shadow: 0 0 0 3px rgba(98,179,137,.16); }
.def-choice.bad { background: #fff2ec; border-color: #e39a7c; color: #a8442a; }
.def-choice.dim { opacity: .45; }
.def-fb { font-size: clamp(12px, .92vw, 14.5px); line-height: 1.55; margin-top: 5px; color: #6d7f8f; }
.def-fb.hide { display: none; }
.def-fb.ok { color: #1f6a45; }
.def-fb.bad { color: #a8442a; }

/* ---- 面板标题右侧的“想一想”小按钮 ---- */
.h2-hint { margin-left: auto; font-size: clamp(10px, .8vw, 13px); font-weight: 700; color: #d0763c;
  letter-spacing: 0; white-space: nowrap; animation: hintBlink 1.9s ease-in-out infinite; }
.h2-hint::after { content: " ▸"; }
@keyframes hintBlink { 0%, 100% { opacity: 1; } 50% { opacity: .42; } }
.h2-quiz { margin-left: 3px; display: inline-flex; align-items: center; gap: .34em; border: none;
  background: linear-gradient(135deg, #ff9c55, #ef6f38); color: #fff; border-radius: 999px;
  padding: .36em .82em; font-size: clamp(13px, 1.02vw, 17.5px); font-weight: 800; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 5px 14px rgba(226,110,46,.30), inset 0 1px 0 rgba(255,255,255,.5);
  animation: quizPulse 2.1s ease-in-out 4; }
.h2-quiz:hover { filter: brightness(1.06); }
.h2-quiz .dq-ico { font-size: 1.08em; }
.h2-quiz.done { background: linear-gradient(135deg, #5cbf8e, #359a68);
  box-shadow: 0 5px 14px rgba(53,154,104,.26), inset 0 1px 0 rgba(255,255,255,.45); animation: none; }
@keyframes quizPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.055); } }
.panel h2 { display: flex; align-items: center; gap: 7px; min-width: 0; }

@media (max-width: 860px) {
  .def-line .nb, .qz-def2 .nb { white-space: nowrap; }
.def-line { font-size: 13px; line-height: 1.9; }
  .def-blank { min-width: 4em; }
  .def-choice { font-size: 15px; padding: .55em .2em; }
}

.qz-def2 { font-size: clamp(16px, 1.3vw, 23px); line-height: 2.15; color: #1a3f60; font-weight: 600;
           background: #fbfdff; border: 1.6px dashed #cfe0ee; border-radius: 14px; padding: .8em .9em; }
.qz-blank2 { min-width: 5.2em; font-size: .96em; }

  /* 系统开了“高对比度 / 强制颜色”时，浏览器会把所有配色替换成黑白，
     这里声明保留本页配色，避免外部浏览器里整页变成纯黑纯白。 */
  @media (forced-colors: active) {
    /* 系统开着“高对比度/强制颜色”时，浏览器默认会把整页换成黑白，
       这里对全部元素声明保留本页配色 */
    *, *::before, *::after { forced-color-adjust: none; -ms-high-contrast-adjust: none; }
    html, body { background-color: #eef4fb; color: #1f2d3d; }
  }
  /* 系统深色模式 / 浏览器自动深色：本页是浅色设计，显式锁回浅色 */
  @media (prefers-color-scheme: dark) {
    :root { color-scheme: only light; }
    html, body { background-color: #eef4fb; color: #1f2d3d; }
  }

/* =========================================================
   中枢参与：草履虫 / 含羞草 / 膝跳反射 三栏对照
   ========================================================= */
.cond-more { cursor: pointer; transition: .15s; }
.cond-more:hover { border-color: #d7a97a; background: #fffaf5; }
.cond-more .more { margin-left: auto; font-size: clamp(11px, .82vw, 13.5px); font-weight: 700; color: #c96f33; }

.cmp-box { width: min(900px, 96vw); }
.cmp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(9px, 1.2vw, 16px); }
.cmp-col { background: #fbfdff; border: 1.5px solid #dbe9f3; border-radius: 16px; padding: 16px 12px 18px;
           display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.cmp-ico { width: 96px; height: 72px; }
.cmp-name { font-size: clamp(15px, 1.25vw, 21px); font-weight: 800; color: #17456e; }
.cmp-act { font-size: clamp(12px, .98vw, 15.5px); color: #5b7186; line-height: 1.5; }
.cmp-ans { margin-top: 4px; min-height: 50px; width: 100%; display: flex; align-items: center; justify-content: center;
           font-size: clamp(12px, .98vw, 15.5px); color: #41576b; line-height: 1.55; }
.cmp-ansv { display: none; }
.cmp-wait { font-size: 1.7em; font-weight: 800; color: #ccd9e4; }
.cmp-ans b { font-size: 1.08em; }
.cmp-ans b.no { color: #c0392b; }
.cmp-ans b.yes { color: #1f7a4d; }
.cmp-ans .cmp-ansv span { display: block; color: #7a8fa3; font-size: .94em; }
.cmp-wrap.cmp-on .cmp-ansv { display: block; }
.cmp-wrap.cmp-on .cmp-wait { display: none; }

.cmp-ask { text-align: center; font-size: clamp(14px, 1.08vw, 17.5px); color: #2b5478; font-weight: 700;
           background: #f4f9fe; border-radius: 12px; padding: .6em .8em; }
.cmp-concl { font-size: clamp(13px, 1vw, 16px); line-height: 1.78; color: #2f4a60;
             background: #fff8f0; border: 1.5px solid #f0d6bd; border-radius: 12px; padding: .7em .85em;
             display: none; }
.cmp-concl b { color: #b3402a; }
.cmp-wrap.cmp-on .cmp-concl { display: block; }
.cmp-wrap.cmp-on .cmp-ask { display: none; }

@media (max-width: 860px) {
  .cmp-grid { grid-template-columns: 1fr; gap: 8px; }
  .cmp-col { display: grid; grid-template-columns: 54px 1fr; grid-template-areas: "ico name" "ico act" "ans ans";
             column-gap: 10px; row-gap: 2px; align-items: start; text-align: left; padding: 9px 11px 10px; }
  .cmp-ico { grid-area: ico; width: 54px; height: 42px; margin-top: 1px; }
  .cmp-name { grid-area: name; font-size: 15px; text-align: left; }
  .cmp-act { grid-area: act; font-size: 12px; text-align: left; }
  .cmp-ans { grid-area: ans; justify-content: flex-start; text-align: left; min-height: 0; margin-top: 6px; }
  .cmp-ans .cmp-ansv span { display: inline; margin-left: 6px; }
}

/* 矮屏（1280×720 / 1366×768 等）：收紧面板内边距与行高，
   保证“验证：反射弧受损”的结果（感觉/反应 有或无）不被裁掉 */
@media (max-height: 790px) and (min-width: 861px) {
  aside.side { gap: 8px; }
  .panel { padding: clamp(9px, 1.2vh, 12px) clamp(10px, .8vw, 13px); }
  .panel h2 { margin-bottom: 6px; }
  .def-line { font-size: 12.5px; line-height: 1.72; }
  .def-card { padding: 8px 9px; }
  .def-choice { padding: .40em .2em; font-size: 14px; }
  .cond-item { min-height: 36px; padding-top: 3px; padding-bottom: 3px; }
  .cond-list { gap: 4px; }
  .probe-row { gap: 5px; }
  .probe-chip { padding: 5px 4px; }
  .probe-result { padding: 6px 10px; gap: 5px; }
  .pr-k { font-size: 15px; }
}

/* ---- 条件/非条件 对比小弹窗 ---- */
.def-ask { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.def-more { flex: 0 0 auto; border: none; background: linear-gradient(135deg, #ffb066, #ef8236); color: #fff;
            border-radius: 999px; padding: .26em .86em; font-size: clamp(12px, .95vw, 15px);
            font-weight: 800; letter-spacing: .02em; cursor: pointer; white-space: nowrap;
            box-shadow: 0 3px 10px rgba(226,120,46,.32), inset 0 1px 0 rgba(255,255,255,.45);
            animation: cmpPulse 2.2s ease-in-out 3; }
.def-more:hover { filter: brightness(1.07); }
@keyframes cmpPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.cond-box { width: min(700px, 96vw); }
.ctab { display: grid; grid-template-columns: 104px 1fr 1fr; gap: 1px; background: #e3edf5;
        border: 1.5px solid #dbe9f3; border-radius: 12px; overflow: hidden; }
.ctab > div { background: #fff; padding: 11px 12px; font-size: clamp(14px, 1.12vw, 17.5px); line-height: 1.6; }
.ctab-h { background: #f2f8fd !important; font-weight: 800; color: #17456e; text-align: center; }
.ctab-h.k { color: #8ba0b3; font-weight: 700; }
.ctab-h.c0 { color: #b4552a; }
.ctab-h.c1 { color: #1f6a8c; }
.ctab-k { background: #f8fbfd !important; font-weight: 700; color: #47637c; white-space: nowrap; }
.ctab-v span { display: block; color: #8094a6; font-size: .92em; margin-top: 3px; }
.ctab-v.span2 { grid-column: span 2; }
.ctab-v b { color: #b3402a; }

@media (max-width: 620px) {
  .ctab { grid-template-columns: 82px 1fr 1fr; }
  .ctab > div { padding: 8px 7px; font-size: 12.5px; line-height: 1.5; }
  .ctab-k { font-size: 12px; }
}

