/* 课堂作业系统学员端 · 浅色版＋黑底心电表头 系统 V1.0.3／原型 V1.0.5 */
:root{--bg:#EEF2F8;--brand:#2147D8;--brand2:#3B6CF6;--cyan:#35E0FF;color-scheme:light}
body{background:var(--bg)}
.app{container-type:inline-size;background:var(--bg)}
.appbar{position:sticky;top:0;z-index:25;display:flex;align-items:center;gap:7px;height:42px;padding:0 12px;background:#fff;border-bottom:1px solid var(--line)}
.appbar img{width:27px;height:27px;border-radius:7px;flex:none}
.appbar>b{font-size:14px;white-space:nowrap}
.appbar>em{margin-left:auto;font-style:normal;font-size:12.5px;font-weight:600;color:#334155;white-space:nowrap}
.appbar>b+span{margin-left:auto}
.appbar>span{flex:none;font:600 10.5px var(--mono);color:var(--muted)}
.appbar>span i{display:none}
.nav{padding:4px 4px calc(4px + env(safe-area-inset-bottom));background:#fff}
.nav button{font-size:11px;padding:1px 0}
.nav svg{width:22px;height:22px}
.board .rk .flag{width:15px;height:17px;vertical-align:-3px}

/* 黑底心电表头，下面保持白卡 */
.navy{background:#050A14;border:1px solid #1B2C45;border-radius:14px;box-shadow:0 8px 18px -12px rgba(5,10,20,.65)}
.navy::after{display:none}
.ecgbox{background-image:linear-gradient(rgba(43,221,142,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(43,221,142,.09) 1px,transparent 1px);background-size:14px 14px;border-radius:4px}

/* 打分页：保留原来的卡片，适度压缩，放不下可以下滑 */
#vHw:has(.qz){padding:8px 12px 0}
#vHw:has(.qz) .who{display:none}
#vHw:has(.qz) .back{padding:0 2px 5px}
#vHw .chips{margin:0 -12px 2px;padding:0 12px 5px;gap:6px}
#vHw .chips button{padding:4px 12px;font-size:13.5px}
#vHw .chips button.on{background:var(--brand);border-color:var(--brand)}
#vHw:has(.qz) .brandline{margin:5px 2px 0;font-size:12.5px}
#vHw:has(.qz) .brandline i{width:18px;height:18px;border-radius:5px}
.qzt{font-size:21px;line-height:1.3;margin:2px 2px 8px}
.qz{padding:10px 13px 8px}
.qz .r1 b{font-size:14px;margin-right:auto}
.qz .r1{gap:6px}
.qz .r1 .lv{font-size:11px;font-weight:700;line-height:1.6;padding:0 8px;border-radius:999px}
.qz .chip{padding:2px 8px;font-size:11px}
.qz .qzm{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;margin-top:3px}
.qz .score{margin:0;gap:4px}
.qz .score .n{font-size:36px;line-height:1;letter-spacing:-1px}
.qz .score .d{font-size:13px}
.qz .ecgbox{margin:0;height:54px;overflow:hidden}
.qz .ecgbox svg{width:100%;height:54px}
.qz .ecgbox path{vector-effect:non-scaling-stroke}
.qz .stats{margin-top:6px;padding-top:6px}
.qz .stats b{font-size:16px}
.qzhint{margin:9px 2px 3px;font-size:12.5px;line-height:1.45;color:var(--muted)}
.pit{margin:6px 0;padding:8px 10px 5px;border-radius:12px}
.pit::before{top:10px;bottom:10px;width:3px}
.pit .hd{gap:6px}
.pit .no{font-size:11px;padding:1px 5px;border-radius:5px}
.pit .nm{font-size:16px;line-height:1.3;white-space:nowrap}
.pit .tag{font-size:11px;line-height:1.6;padding:0 8px;white-space:nowrap}
.pit .two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;margin:5px 0 3px;font-size:12.5px;line-height:1.42}
.pit .two div{display:block;padding:4px 7px;border-radius:7px}
.pit .two .bad{background:#FEF2F2}
.pit .two .gd{background:#ECFDF3}
.pit .two i{display:inline-block;margin:0 4px 0 0;padding:0 4px;font-size:10.5px;line-height:1.5;border-radius:4px}
.pit .stars{gap:0;justify-content:space-between}
.pit .stars button{flex:1;gap:0;padding:1px 0}
.pit .stars svg{width:24px;height:24px}
.pit .stars span{font-size:10px;line-height:1.2}
.go{bottom:48px;padding:6px 0}
.go button{padding:11px;border-radius:12px;font-size:15px}

/* 宽屏：两列卡片，8 个坑四排 */
@container (min-width:620px){
  #vHw:has(.qz){max-width:1040px;margin:0 auto}
  #pits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:6px}
  .pit{margin:0}
  .qz .ecgbox,.qz .ecgbox svg{height:60px}
}

/* 诊断报告：压缩长度；长文字两行省略，点整行看全文 V2.0.2 */
#vRep h1.h{font-size:22px;line-height:1.3;margin:2px 2px 8px}
#vRep h1.h br{display:none}
#vRep .brandline{margin:8px 2px 0;font-size:12.5px}
#vRep .card{margin:8px 0;padding:10px 12px}
#vRep .card h3{font-size:15px;margin:0 0 4px}
#vRep .navy{padding:11px 13px 8px;margin-top:8px}
#vRep .navy .score .big{font-size:44px}
#vRep .navy .sub{font-size:12px}
#vRep .navy .stats{margin-top:4px;padding-top:6px}
#vRep .navy .stats b{font-size:17px}
#vRep .navy .stats.s5{display:none}
#vRep .navy .ecgbox{margin:2px -2px 0}
#vRep .sysbars .r{margin:5px 0}
#vRep .crit{padding:6px 0}
#vRep .crit b{font-size:14px}
#vRep .crit .bar{height:4px}
#vRep .rp-it .crit b::after{content:" ›";color:var(--muted);font-weight:400}
#vRep .crit p,#vRep .quote{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#vRep .crit p{font-size:12.5px;line-height:1.45}
#vRep .quote{font-size:13px;line-height:1.5;margin-top:5px;padding:6px 9px}
#vRep .wp{padding:6px 0;gap:8px}
#vRep .wp .sc{width:30px;height:30px;border-radius:9px;font-size:14px}
#vRep .wp b{font-size:14px}
#vRep .wp p{font-size:12.5px;line-height:1.45}
#vRep .wp p em{color:#1E3A8A}
#vRep .rp-go{padding:7px 0}
#vRep .rp-end .hw-p{font-size:13px;line-height:1.5}
#vRep .rp-end .btn{margin-top:8px}
#vRep .quote{padding:6px 9px 0;border-bottom:6px solid rgba(120,160,255,.09);background-clip:padding-box}

/* 学员档案和作业原文：完整显示，只收紧间距 V2.0.4 */
#vRep .rp-prof .hw-pf{grid-template-columns:78px minmax(0,1fr);gap:8px;padding:4px 0;font-size:13.5px;line-height:1.45}
#vRep .rp-prof .hw-pf>span{font-size:12px}
#vRep .rp-prof .rp-edit{margin-top:2px}
#vRep .rp-raw summary{padding:7px 0;font-size:13.5px}
#vRep .rp-f{padding:0 0 6px 14px;font-size:13px;line-height:1.5}
.hw-prof .hw-pf{padding:6px 0}

/* 诊断表三档打分：题目一整排，下面一条三段刻度条，左低右高，点哪段亮到哪段，圆点停在选中处 V2.0.8 */
#vHw .hw-sq{padding:9px 12px 8px;margin-top:6px;--lv:#2147D8}
#vHw .hw-sq>p{margin:2px 0 0;font-size:13px;line-height:1.45}
#vHw .hw-sq:has(.on){border-color:color-mix(in srgb,var(--lv,#2147D8) 45%,#fff)}
#vHw .hw-opts{display:flex;flex-direction:row-reverse;align-items:stretch;gap:3px;margin-top:9px;padding:0 6px}
#vHw .hw-sq:has(.hw-opts>button:nth-child(1).on){--lv:#16A36A}
#vHw .hw-sq:has(.hw-opts>button:nth-child(2).on){--lv:#E59A12}
#vHw .hw-sq:has(.hw-opts>button:nth-child(3).on){--lv:#E0524F}
#vHw .hw-opts button{position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px;padding:4px 0 0;border:0;border-radius:0;background:none;color:var(--muted);text-align:center;min-height:0}
#vHw .hw-opts button::before{content:"";display:block;align-self:stretch;height:10px;background:#E3E9F2;transition:background .15s}
#vHw .hw-opts button:nth-child(3)::before{border-radius:999px 0 0 999px}
#vHw .hw-opts button:nth-child(1)::before{border-radius:0 999px 999px 0}
#vHw .hw-opts button.on::before{background:var(--lv)}
#vHw .hw-opts button.on~button::before{background:color-mix(in srgb,var(--lv) 55%,#fff)}
#vHw .hw-opts button.on::after{content:"";position:absolute;top:-1px;right:-9px;z-index:1;width:20px;height:20px;box-sizing:border-box;border-radius:50%;background:#fff;border:4px solid var(--lv);box-shadow:0 2px 6px -1px rgba(15,23,42,.3)}
#vHw .hw-opts button:nth-child(1).on::after{right:-6px}
#vHw .hw-opts button b{font-size:12px;line-height:1.2;font-weight:600;white-space:nowrap}
#vHw .hw-opts button small{font-size:10.5px;line-height:1.25;margin:-4px 0 0;color:var(--muted)}
#vHw .hw-opts button.on b{color:var(--lv);font-weight:800}
#vHw .hw-opts button.on small{color:#334155}
#vHw .hw-opts button:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:6px}
#vHw:has(.hw-sq) h1.h{font-size:23px;line-height:1.3;margin:2px 2px 4px}
#vHw:has(.hw-sq) h1.h br{display:none}
#vHw:has(.hw-sq) h1.h em{margin-left:8px;font-size:13px;font-weight:700;vertical-align:3px;padding:2px 8px;border-radius:999px;background:rgba(33,71,216,.1)}
#vHw:has(.hw-sq) .hint{margin:0 2px 2px;font-size:12.5px}
#vHw .hw-group{margin:12px 2px 0}
