/* ============================================================
   移动端演示页 · 演示台 + 手机浏览器外壳 + App 界面
   ============================================================ */

body.demo-mobile {
  background: radial-gradient(1000px 600px at 20% 0%, #122f2f, transparent 60%),
              radial-gradient(900px 600px at 90% 100%, #102c33, transparent 60%),
              #0a1a1d;
  color: #e7f4ef;
  min-height: 100vh;
}

/* 顶部演示导航 */
.demo-nav {
  height: 62px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(8, 22, 24, .7);
}
.demo-nav .dn-left { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }
.demo-nav .dn-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #a6f5bf, #23c98a); color: #08352a; display: grid; place-items: center; font-weight: 800; }
.demo-nav .dn-tag { font-size: 10px; letter-spacing: 1px; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(126, 232, 224, .3); color: #8fe3bd; }
.demo-nav .dn-links { display: flex; gap: 8px; }
.demo-nav .dn-links a { font-size: 12px; padding: 8px 14px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .14); color: #b9d6cd; display: inline-flex; align-items: center; gap: 7px; }
.demo-nav .dn-links a:hover { background: rgba(47, 208, 143, .14); border-color: rgba(47, 208, 143, .4); color: #fff; }
.demo-nav .dn-links a.hl { background: linear-gradient(100deg, #9df2b6, #2fd08f); color: #073328; border: none; font-weight: 700; }

.demo-layout { display: grid; grid-template-columns: 248px minmax(430px, 1fr) 258px; gap: 22px; max-width: 1360px; margin: 0 auto; padding: 26px 24px 40px; align-items: start; }
.panel { background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; }
.panel-title { font-size: 12px; letter-spacing: 1.4px; color: #7fd6ab; font-weight: 700; padding: 16px 16px 10px; }
.panel-sub { font-size: 11px; color: #7f9f97; padding: 0 16px 12px; line-height: 1.7; border-bottom: 1px solid rgba(255, 255, 255, .07); }

/* 左侧页面清单 */
.nav-group { padding: 12px 10px 2px; }
.nav-group h5 { margin: 0 0 8px 6px; font-size: 10.5px; color: #6f9a8e; letter-spacing: 1px; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border-radius: 9px; font-size: 12.5px; color: #b6d1c9; text-align: left; margin-bottom: 3px; transition: background .15s, color .15s; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.active { background: linear-gradient(100deg, rgba(47, 208, 143, .26), rgba(47, 208, 143, .08)); color: #b9ffdc; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(47, 208, 143, .35); }
.nav-item svg { flex: none; opacity: .85; }
.nav-item .mini-new { margin-left: auto; font-size: 9px; padding: 2px 6px; border-radius: 5px; background: #ff8a3d; color: #fff; font-weight: 800; }
.side-foot { padding: 14px 16px 18px; font-size: 11px; line-height: 1.8; color: #77978e; border-top: 1px solid rgba(255, 255, 255, .07); }

/* 中间舞台 */
.stage { display: flex; flex-direction: column; align-items: center; }
.stage-head { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.stage-head .sh-title { font-size: 13px; color: #cfe9e0; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.stage-head .sh-title span { width: 7px; height: 7px; border-radius: 50%; background: #2fd08f; box-shadow: 0 0 0 4px rgba(47, 208, 143, .18); }
.stage-head .sh-hint { font-size: 11px; color: #72978c; }

/* 手机设备 */
.device { position: relative; width: 399px; padding: 12px; border-radius: 52px;
  background: linear-gradient(150deg, #4b5c62, #121c1f 24%, #0d1517 70%, #3b4c51);
  box-shadow: 0 36px 90px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 0 0 3px rgba(0, 0, 0, .5);
}
.device::before, .device::after { content: ""; position: absolute; left: -3px; width: 3px; border-radius: 3px 0 0 3px; background: #3a4b50; }
.device::before { top: 150px; height: 30px; }
.device::after { top: 200px; height: 58px; }
.device .power-btn { position: absolute; right: -3px; top: 190px; width: 3px; height: 66px; border-radius: 0 3px 3px 0; background: #3a4b50; }
.device-screen { width: 375px; height: 812px; border-radius: 41px; overflow: hidden; background: #f6f8f9; display: flex; flex-direction: column; position: relative; color: var(--ink); }

/* 状态栏 / 手机浏览器栏 */
.status-bar { height: 36px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 26px; font-size: 12px; font-weight: 700; background: #e8fbf5; color: #12262a; }
.status-bar .sb-icons { display: flex; align-items: center; gap: 5px; }
.status-bar .sb-icons svg { width: 15px; height: 15px; }
.status-bar .sb-icons .bat { width: 22px; height: 13px; }
.browser-top { height: 44px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #f4f6f7; border-bottom: 1px solid #e7ebec; }
.browser-url { flex: 1; height: 30px; border-radius: 15px; background: #fff; border: 1px solid #e5eaeb; display: flex; align-items: center; gap: 6px; padding: 0 11px; font-size: 11px; color: #5c6e72; overflow: hidden; white-space: nowrap; }
.browser-url svg { width: 12px; height: 12px; color: #8aa09b; flex: none; }
.browser-url b { color: #2d4145; font-weight: 600; }
.browser-top .bt-btn { width: 26px; height: 30px; display: grid; place-items: center; color: #5f7477; }
.browser-top .bt-btn svg { width: 17px; height: 17px; }
.browser-tools { height: 44px; flex: none; display: flex; align-items: center; justify-content: space-around; background: #f4f6f7; border-top: 1px solid #e7ebec; color: #5f7477; }
.browser-tools button { width: 44px; height: 34px; display: grid; place-items: center; }
.browser-tools svg { width: 19px; height: 19px; }
.home-bar { height: 18px; flex: none; background: #f4f6f7; display: grid; place-items: center; }
.home-bar i { width: 118px; height: 4px; border-radius: 4px; background: #16262a; }

/* App 视口 */
.app-viewport { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; background: #f6f8f9; scrollbar-width: thin; scrollbar-color: #cfe0da transparent; }
.app-viewport::-webkit-scrollbar { width: 4px; }
.app-viewport::-webkit-scrollbar-thumb { background: #cfe0da; border-radius: 4px; }
.screen { min-height: 100%; padding-bottom: 14px; position: relative; }
.hh-cloud, .te-art img, .mini-cloud { mix-blend-mode: multiply; }
.te-art { border-radius: 50%; overflow: hidden; }
.btn-outline[disabled] { opacity: .5; }

/* App 顶部标题栏 */
.app-header { height: 46px; display: flex; align-items: center; padding: 0 14px; background: linear-gradient(180deg, #e7fbf5, #eaf8fa); position: relative; }
.app-header.plain { background: #fff; border-bottom: 1px solid #f0f3f3; }
.app-header h1 { position: absolute; left: 0; right: 0; text-align: center; font-size: 16px; font-weight: 700; margin: 0; pointer-events: none; }
.app-header .ah-back, .app-header .ah-right { position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; font-size: 12px; color: #3b5256; }
.app-header .ah-right { margin-left: auto; }

/* 首页 */
.home-top { background: linear-gradient(140deg, #e4fbf3 0%, #ddf6f7 52%, #dceaff 100%); padding: 8px 14px 18px; position: relative; overflow: hidden; }
.home-hero { position: relative; height: 106px; }
.home-hero .hh-tag { display: inline-block; font-size: 9px; font-weight: 700; color: #3f5d3a; background: #dcf5a4; padding: 3px 7px; border-radius: 4px; margin-top: 4px; }
.home-hero .hh-logo { font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: 2px; color: #0a9a83; margin-top: 8px; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.home-hero .hh-hello { position: absolute; right: 2px; top: 2px; font-size: 13px; font-weight: 800; font-style: italic; color: #183b39; }
.home-hero .hh-cloud { position: absolute; right: -8px; top: 18px; width: 108px; }
.hi-card { border-radius: 16px; padding: 11px 12px 12px; background: linear-gradient(105deg, #8ce9a6, #3ed38d 62%, #2acb8e); box-shadow: 0 8px 20px rgba(47, 208, 143, .25); position: relative; }
.hi-card .hi-row { display: flex; justify-content: space-between; align-items: center; }
.hi-card .hi-name { font-size: 15px; font-weight: 800; color: #103e2b; }
.hi-card .hi-bubble { font-size: 9.5px; color: #1c5238; background: rgba(255, 255, 255, .45); border-radius: 11px 11px 11px 2px; padding: 4px 8px; }
.hi-duo { display: flex; gap: 9px; margin-top: 10px; }
.hi-duo > div { flex: 1; background: #fff; border-radius: 11px; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); cursor: pointer; }
.hi-duo b { font-size: 12px; display: block; }
.hi-duo small { font-size: 9px; color: #8a9b9c; }
.hi-duo .pill { font-size: 9px; color: #fff; background: linear-gradient(90deg, #6de0a8, #2fd08f); border-radius: 6px; padding: 3px 6px; }
.hi-duo .pill.orange { background: linear-gradient(90deg, #ffd27e, #ffa53d); }
.hi-duo .hi-ico { width: 30px; height: 30px; border-radius: 9px; background: #e9fbf2; color: #2fd08f; display: grid; place-items: center; }
.notice-bar { display: flex; align-items: center; gap: 7px; margin: 12px 14px 0; padding: 8px 10px; background: #fff; border-radius: 10px; font-size: 10.5px; color: #4c5f62; box-shadow: 0 3px 12px rgba(30, 90, 75, .05); }
.notice-bar .nb-tag { background: linear-gradient(90deg, #ff9b5c, #ff6b4a); color: #fff; font-weight: 700; font-size: 9px; padding: 2px 6px; border-radius: 5px; flex: none; }
.notice-bar .nb-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-grid { display: flex; gap: 10px; margin: 12px 14px 0; }
.quick-grid > div { flex: 1; border-radius: 13px; padding: 14px 8px 12px; text-align: center; cursor: pointer; transition: transform .15s; }
.quick-grid > div:hover { transform: translateY(-2px); }
.quick-grid .q-ico { width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .75); }
.quick-grid b { display: block; font-size: 12.5px; }
.quick-grid small { display: block; font-size: 9px; color: #7d9791; margin-top: 5px; line-height: 1.5; }
.q-green { background: #dcf7ec; color: #229c74; }
.q-lime { background: #eef9dc; color: #7caa3c; }
.q-pink { background: #fdeaf2; color: #e077a4; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 14px 10px; }
.section-head h3 { margin: 0; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.section-head .sh-more { font-size: 10.5px; color: #8b9b9e; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.new-badge { font-size: 9px; font-weight: 800; color: #fff; background: #ff8a3d; padding: 2px 6px; border-radius: 5px; letter-spacing: .5px; }

/* 首页 · 新增心理测评板块 */
.test-entry { margin: 0 14px; border-radius: 16px; padding: 14px; position: relative; overflow: hidden;
  background: linear-gradient(115deg, #e6fff2 0%, #dff7fb 60%, #e9e8ff 100%);
  box-shadow: 0 6px 18px rgba(30, 90, 75, .07); border: 1px solid #d3f2e4; }
.test-entry .te-kicker { font-size: 9.5px; color: #1c9e73; font-weight: 800; letter-spacing: 1px; }
.test-entry h4 { margin: 6px 0 4px; font-size: 16px; font-weight: 800; }
.test-entry p { margin: 0; font-size: 10.5px; color: #6a8580; line-height: 1.7; max-width: 210px; }
.test-entry .te-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 11px; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(100deg, #7ce8a5, #22c78c); padding: 7px 14px; border-radius: 999px; box-shadow: 0 6px 14px rgba(47, 208, 143, .3); }
.test-entry .te-art { position: absolute; right: -6px; top: 14px; width: 106px; opacity: .95; }
.test-entry .te-art img { width: 100%; }
.test-mini-grid { display: flex; gap: 9px; margin: 9px 14px 0; }
.test-mini { flex: 1; background: #fff; border-radius: 13px; padding: 11px; box-shadow: 0 4px 14px rgba(30, 90, 75, .05); cursor: pointer; border: 1px solid #f0f4f3; }
.test-mini .tm-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 8px; }
.test-mini b { font-size: 11.5px; display: block; line-height: 1.4; }
.test-mini small { font-size: 9px; color: #92a2a4; display: block; margin-top: 5px; }
.test-mini .tm-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 9px; color: #2fd08f; font-weight: 700; }

.teacher-banner { margin: 16px 14px 0; border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: 0 6px 16px rgba(30, 90, 75, .07); }
.teacher-banner img { width: 100%; }
.expert-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 4px; scrollbar-width: none; }
.expert-row::-webkit-scrollbar { display: none; }
.expert-card { flex: none; width: 104px; background: #fff; border-radius: 13px; padding: 12px 8px; text-align: center; box-shadow: 0 4px 14px rgba(30, 90, 75, .05); cursor: pointer; }
.expert-card img { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 8px; object-fit: cover; }
.expert-card b { display: block; font-size: 12px; }
.expert-card small { display: block; font-size: 9px; color: #8c9ea0; margin: 3px 0 7px; }
.expert-card span { font-size: 9px; color: #9a7221; background: var(--yellow); padding: 3px 8px; border-radius: 5px; }

.feed-list { padding: 0 14px; }
.feed-card { background: #fff; border-radius: 14px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 4px 16px rgba(30, 90, 75, .05); cursor: pointer; }
.feed-card.big img { width: 100%; height: 138px; object-fit: cover; }
.feed-card .fc-body { padding: 10px 12px 11px; }
.feed-card .fc-title { font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.feed-card .fc-meta { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 9px; color: #9aa9ab; }
.feed-card .fc-meta .fc-stat { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.feed-card .fc-meta .fc-stat span { display: flex; align-items: center; gap: 3px; }
.feed-card.row { display: flex; gap: 10px; padding: 10px; }
.feed-card.row img { width: 84px; height: 62px; border-radius: 8px; object-fit: cover; flex: none; }
.feed-card.row .fc-body { padding: 0; flex: 1; display: flex; flex-direction: column; }
.feed-card.row .fc-meta { margin-top: auto; }
.tag { font-size: 9px; padding: 2px 7px; border-radius: 5px; background: var(--mint-soft); color: #1ba972; font-weight: 700; }
.tag.pink { background: #ffedf4; color: #e0709c; }
.tag.blue { background: #e9f2ff; color: #5b8ee0; }
.tag.yellow { background: #fff5d9; color: #b58a24; }
.tag.purple { background: #f0ecff; color: #8a72d8; }

/* 底部频道导航 */
.app-tabbar { height: 56px; flex: none; display: flex; background: #fff; border-top: 1px solid #f0f3f3; }
.app-tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 9.5px; color: #9aa8ab; }
.app-tabbar button.active { color: #20c68a; font-weight: 700; }
.app-tabbar svg { width: 21px; height: 21px; }
.app-tabbar button.active svg { stroke-width: 2.1; }

/* 通用 App 组件 */
.app-body { padding: 12px 14px 20px; }
.card { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 4px 16px rgba(30, 90, 75, .05); margin-bottom: 10px; }
.card.flat { box-shadow: none; border: 1px solid #eef2f2; }
.card-title { font-size: 13px; font-weight: 800; margin: 0 0 10px; display: flex; align-items: center; gap: 7px; }
.card-title::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: #2fd08f; }
.muted { color: #8d9c9f; }
.tiny { font-size: 10px; }
.btn-primary { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; border-radius: 12px; font-size: 14px; font-weight: 700; color: #17382c; background: linear-gradient(100deg, #a4f2b5, #35d18f); box-shadow: 0 8px 18px rgba(47, 208, 143, .22); }
.btn-primary:active { transform: translateY(1px); }
.btn-outline { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: #4b5f62; background: #fff; border: 1px solid #e3e9e9; }
.btn-danger { color: #ff6b6b; border-color: #ffd7d7; }
.btn-row { display: flex; gap: 10px; margin-top: 12px; }
.btn-row .btn-primary, .btn-row .btn-outline { flex: 1; }
.fixed-actions { padding: 10px 14px 14px; background: #f6f8f9; }

.form-row { display: flex; align-items: center; justify-content: space-between; min-height: 46px; border-bottom: 1px solid #f0f3f3; font-size: 12.5px; }
.form-row:last-child { border-bottom: none; }
.form-row label, .form-row .fr-label { color: #8b9b9e; font-size: 12px; }
.form-row .fr-value { font-weight: 600; color: #263a3e; display: flex; align-items: center; gap: 5px; }
.form-row input { border: none; outline: none; text-align: right; font-size: 12.5px; color: #263a3e; background: transparent; width: 60%; }
.form-row input::placeholder { color: #b6c1c3; }
.field-box { border: 1px solid #e6ecec; border-radius: 9px; padding: 10px; font-size: 12px; line-height: 1.8; color: #4a5e62; min-height: 96px; }
.tip-box { background: #fff6f1; border-radius: 9px; padding: 10px; font-size: 10.5px; line-height: 1.8; color: #a5623b; margin-top: 10px; }

.stepbar { display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 12px 12px; background: #e9fbf5; position: relative; }
.stepbar::before { content: ""; position: absolute; left: 32px; right: 32px; top: 25px; height: 2px; background: #d5e9e2; }
.step-item { position: relative; z-index: 1; flex: 1; text-align: center; font-size: 10px; color: #9aacae; }
.step-item i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #d6e8e1; margin: 0 auto 6px; font-style: normal; font-size: 10px; font-weight: 700; color: #9aacae; }
.step-item.done i { background: #2fd08f; border-color: #2fd08f; color: #fff; }
.step-item.current i { background: #16b47c; border-color: #16b47c; color: #fff; box-shadow: 0 0 0 4px rgba(47, 208, 143, .18); }
.step-item.done, .step-item.current { color: #2d4a44; font-weight: 700; }

.option-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: #fff; border: 1.5px solid #eef2f2; margin-bottom: 10px; cursor: pointer; font-size: 12.5px; }
.option-card.selected { border-color: #2fd08f; background: #eafaF3; }
.option-card .oc-radio { width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid #cbd8d8; flex: none; display: grid; place-items: center; }
.option-card.selected .oc-radio { background: #2fd08f; border-color: #2fd08f; color: #fff; }
.option-card.selected .oc-radio svg { width: 12px; height: 12px; }
.option-card .oc-check { margin-left: auto; color: #2fd08f; }

.tabs { display: flex; background: #fff; border-bottom: 1px solid #f0f3f3; }
.tabs button { flex: 1; padding: 12px 0; font-size: 13px; color: #7b8e91; position: relative; }
.tabs button.active { color: #1ab77d; font-weight: 700; }
.tabs button.active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 56px; height: 2px; border-radius: 2px; background: #2fd08f; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 11px 14px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; font-size: 11px; padding: 6px 13px; border-radius: 999px; background: #fff; color: #74898c; border: 1px solid #e9eeee; }
.chip.active { background: #2fd08f; color: #fff; border-color: #2fd08f; font-weight: 700; }
.filter-bar { display: flex; align-items: center; justify-content: space-around; background: #fff; padding: 12px 0; font-size: 12px; color: #4b5f62; border-bottom: 1px solid #f2f5f5; }
.filter-bar span { display: flex; align-items: center; gap: 5px; }

/* 心理测评 */
.test-hero { margin: 12px 14px; padding: 15px; border-radius: 16px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(115deg, #24c48c, #35d6b1 55%, #62cfd9); box-shadow: 0 10px 22px rgba(35, 190, 145, .22); }
.test-hero .th-kicker { font-size: 10px; opacity: .85; letter-spacing: 1px; }
.test-hero h2 { margin: 7px 0 5px; font-size: 19px; font-weight: 800; }
.test-hero p { margin: 0; font-size: 10.5px; line-height: 1.7; opacity: .9; max-width: 230px; }
.test-hero .th-ring { position: absolute; right: -18px; top: -26px; width: 120px; height: 120px; border-radius: 50%; border: 16px solid rgba(255, 255, 255, .18); }
.test-hero .th-ring2 { position: absolute; right: 26px; bottom: -34px; width: 78px; height: 78px; border-radius: 50%; border: 12px solid rgba(255, 255, 255, .13); }
.test-stat-row { display: flex; gap: 9px; margin: 0 14px 12px; }
.test-stat-row > div { flex: 1; background: #fff; border-radius: 12px; padding: 11px; text-align: center; box-shadow: 0 4px 14px rgba(30, 90, 75, .05); }
.test-stat-row b { display: block; font-size: 17px; color: #1bab78; }
.test-stat-row small { font-size: 9.5px; color: #8d9c9f; }
.scale-card { display: flex; gap: 11px; align-items: center; background: #fff; border-radius: 14px; padding: 12px; margin: 0 14px 10px; box-shadow: 0 4px 14px rgba(30, 90, 75, .05); cursor: pointer; border: 1px solid #f1f5f4; }
.scale-card .sc-ico { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; }
.scale-card .sc-main { flex: 1; min-width: 0; }
.scale-card .sc-main b { font-size: 12.5px; display: block; margin-bottom: 4px; }
.scale-card .sc-main p { margin: 0; font-size: 9.5px; color: #94a3a5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scale-card .sc-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 9px; color: #9aa8aa; }
.scale-card .sc-go { font-size: 10px; color: #fff; background: linear-gradient(100deg, #7ce8a5, #22c78c); border-radius: 999px; padding: 6px 11px; font-weight: 700; flex: none; }

.progress-wrap { padding: 12px 14px 4px; }
.progress-head { display: flex; justify-content: space-between; font-size: 10.5px; color: #8c9c9e; margin-bottom: 7px; }
.progress-track { height: 6px; border-radius: 6px; background: #e6efec; overflow: hidden; }
.progress-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #8bf0b0, #22c78c); transition: width .25s; }
.quiz-question { padding: 16px 14px 6px; font-size: 15px; font-weight: 800; line-height: 1.6; }
.quiz-question span { color: #2fd08f; margin-right: 5px; }
.quiz-hint { padding: 0 14px 12px; font-size: 10.5px; color: #97a6a8; }
.quiz-options { padding: 0 14px; }

.report-hero { background: linear-gradient(160deg, #e5fbf2, #dff4fb 70%, #e9e7ff); padding: 22px 14px 26px; text-align: center; }
.report-hero .rh-label { font-size: 11px; color: #5e8b7c; }
.report-ring { width: 132px; height: 132px; border-radius: 50%; margin: 12px auto; display: grid; place-items: center;
  background: conic-gradient(#2fd08f 0deg, #2fd08f var(--deg, 180deg), rgba(255, 255, 255, .75) var(--deg, 180deg)); box-shadow: 0 8px 24px rgba(47, 208, 143, .18); }
.report-ring .rr-inner { width: 108px; height: 108px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.report-ring b { font-size: 34px; line-height: 1; color: #1d8c66; }
.report-ring small { font-size: 9.5px; color: #94a5a6; margin-top: 5px; }
.report-hero .rh-level { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #107a56; background: #fff; border-radius: 999px; padding: 7px 15px; box-shadow: 0 5px 14px rgba(30, 90, 75, .08); }
.dim-row { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font-size: 11px; }
.dim-row .dr-name { width: 62px; color: #5f7376; flex: none; }
.dim-row .dr-track { flex: 1; height: 8px; border-radius: 8px; background: #eef3f2; overflow: hidden; }
.dim-row .dr-track i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #8bf0b0, #22c78c); }
.dim-row .dr-track i.warn { background: linear-gradient(90deg, #ffd28a, #ff9a5c); }
.dim-row .dr-track i.high { background: linear-gradient(90deg, #ffb3a7, #ff6b6b); }
.dim-row .dr-val { width: 30px; text-align: right; font-weight: 700; color: #3a5154; }
.advice-item { display: flex; gap: 9px; font-size: 11.5px; line-height: 1.8; color: #50676a; margin-bottom: 9px; }
.advice-item .ai-num { width: 18px; height: 18px; border-radius: 6px; background: #e7f8f0; color: #1bab78; font-weight: 800; font-size: 10px; flex: none; display: grid; place-items: center; margin-top: 2px; }
.record-row { display: flex; align-items: center; gap: 11px; padding: 12px; background: #fff; border-radius: 12px; margin-bottom: 9px; box-shadow: 0 3px 12px rgba(30, 90, 75, .05); }
.record-row .rr-ico { width: 36px; height: 36px; border-radius: 11px; background: #e9fbf2; color: #22b881; display: grid; place-items: center; flex: none; }
.record-row b { font-size: 12px; }
.record-row small { font-size: 9.5px; color: #98a6a8; display: block; margin-top: 4px; }
.record-row .rr-score { margin-left: auto; text-align: right; font-size: 15px; font-weight: 800; color: #1bab78; }
.record-row .rr-score small { color: #98a6a8; font-weight: 400; }

/* 我的 */
.mine-top { background: linear-gradient(160deg, #e9fbf4, #dff3fa 60%, #e4ecff); padding: 6px 18px 22px; }
.mine-user { display: flex; align-items: center; gap: 12px; padding: 12px 0 18px; }
.mine-user img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.mine-user b { font-size: 18px; }
.mine-user small { font-size: 11px; color: #7e9395; display: block; margin-top: 4px; }
.mine-stats { display: flex; }
.mine-stats div { flex: 1; text-align: center; }
.mine-stats b { font-size: 20px; display: block; }
.mine-stats small { font-size: 10px; color: #8a9b9d; }
.menu-card { margin: -10px 14px 12px; background: #fff; border-radius: 14px; padding: 2px 14px; box-shadow: 0 5px 18px rgba(30, 90, 75, .06); }
.menu-row { display: flex; align-items: center; gap: 12px; height: 50px; border-bottom: 1px solid #f2f5f5; font-size: 13px; cursor: pointer; }
.menu-row:last-child { border-bottom: none; }
.menu-row svg { color: #6a8184; }
.menu-row span { flex: 1; }

/* 老师专区 */
.teacher-head { background: linear-gradient(140deg, #e8fbf5, #dcf4f6 60%, #d9f0ff); padding: 6px 16px 18px; position: relative; overflow: hidden; }
.teacher-head .th-name { font-size: 17px; font-weight: 800; margin-top: 10px; }
.teacher-head .th-school { font-size: 10.5px; color: #7b9395; margin-top: 4px; }
.teacher-head .th-logout { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: #ff6b6b; border: 1px solid #ffc9c9; background: #fff; border-radius: 7px; padding: 5px 9px; margin-top: 11px; }
.teacher-head .th-art { position: absolute; right: 8px; top: 10px; width: 126px; }
.teacher-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }
.teacher-grid .tg-item { background: #fff; border-radius: 14px; padding: 13px; box-shadow: 0 4px 14px rgba(30, 90, 75, .05); cursor: pointer; position: relative; min-height: 82px; }
.teacher-grid .tg-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #e6f7ff; color: #35a8dd; margin-bottom: 9px; }
.teacher-grid .tg-item.mint .tg-ico { background: #e3fbf1; color: #20b981; }
.teacher-grid .tg-item b { font-size: 12px; }
.teacher-grid .tg-item small { display: block; font-size: 9px; color: #9aa8aa; margin-top: 4px; }
.teacher-grid .tg-item.disabled { opacity: .55; }
.teacher-grid .tg-badge { position: absolute; right: 9px; top: 9px; font-size: 8px; background: #eef2f2; color: #9aa8aa; padding: 2px 5px; border-radius: 4px; }
.login-hero { padding: 22px 18px 4px; display: flex; align-items: center; justify-content: space-between; }
.login-hero .lh-logo { font-size: 16px; font-weight: 900; font-style: italic; color: #0a9a83; }
.login-hero h2 { font-size: 30px; margin: 8px 0 6px; font-weight: 800; }
.login-hero p { margin: 0; font-size: 12px; color: #4a6063; }
.login-hero .lh-sub { font-size: 10.5px; color: #0da88c; margin-top: 10px; font-weight: 700; }
.login-hero img { width: 132px; }
.login-form { padding: 22px 18px; }
.login-input { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 14px; font-size: 12.5px; color: #9aa8aa; box-shadow: 0 4px 14px rgba(30, 90, 75, .04); }
.login-input input { border: none; outline: none; flex: 1; font-size: 12.5px; }
.login-extra { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: #6d8184; margin: 4px 0 18px; }
.login-extra .le-remember { display: flex; align-items: center; gap: 6px; }
.login-extra .le-remember i { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #cbd8d8; }
.login-extra a { color: #4b7bf0; }

/* 就诊人 / 弹层 */
.patient-hint { padding: 10px 14px; font-size: 10.5px; color: #8c9c9e; background: #f0f4f4; }
.patient-card { display: flex; gap: 11px; align-items: flex-start; background: #fff; border-radius: 12px; padding: 12px; margin: 0 14px 9px; }
.patient-card img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.patient-card .pc-main { flex: 1; }
.patient-card .pc-main b { font-size: 12.5px; }
.patient-card .pc-main small { display: block; font-size: 9.5px; color: #96a5a7; line-height: 1.7; margin-top: 3px; }
.patient-card .pc-default { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: #20b981; margin-top: 5px; }
.patient-card .pc-default.off { color: #a9b5b7; }
.sheet-mask { position: absolute; inset: 0; background: rgba(30, 45, 48, .45); z-index: 9; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #f0fbff, #fff 30%); border-radius: 20px 20px 0 0; padding: 14px 16px 20px; z-index: 10; }
.sheet-handle { width: 36px; height: 4px; border-radius: 4px; background: #d7e0e0; margin: 0 auto 14px; }
.sheet h3 { text-align: center; font-size: 15px; margin: 0 0 6px; }
.sheet .sheet-close { position: absolute; right: 16px; top: 16px; color: #8c9c9e; }
.sheet .sheet-desc { font-size: 11px; color: #7e9294; margin: 0 0 14px; }

/* 结果成功页 */
.success-hero { background: linear-gradient(160deg, #e6fbf2, #e1f5fb); text-align: center; padding: 22px 14px 24px; }
.success-hero .sh-circle { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(140deg, #4ce0a0, #16c78d); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; box-shadow: 0 8px 20px rgba(47, 208, 143, .28); }
.success-hero h2 { font-size: 19px; margin: 0 0 7px; }
.success-hero p { font-size: 10.5px; color: #8a9c9e; margin: 0; }
.info-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f2f5f5; font-size: 12px; }
.info-row:last-child { border-bottom: none; }
.info-row label { color: #8e9ea0; width: 68px; flex: none; }
.info-row b { font-weight: 700; }

/* Toast */
.toast { position: absolute; left: 50%; bottom: 118px; transform: translateX(-50%) translateY(10px); background: rgba(24, 45, 45, .92); color: #fff; font-size: 11px; padding: 9px 16px; border-radius: 999px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 右侧信息面板 */
.info-panel { padding-bottom: 16px; }
.ip-head { padding: 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ip-head .ip-badge { display: inline-block; font-size: 9px; letter-spacing: 1px; color: #7fd6ab; border: 1px solid rgba(47, 208, 143, .3); padding: 3px 8px; border-radius: 5px; margin-bottom: 10px; }
.ip-head h3 { margin: 0 0 7px; font-size: 17px; }
.ip-head p { margin: 0; font-size: 11.5px; color: #9dbaB2; line-height: 1.8; }
.ip-block { padding: 14px 16px 4px; }
.ip-block h5 { margin: 0 0 9px; font-size: 10.5px; letter-spacing: 1px; color: #6f9a8e; }
.ip-block li { font-size: 11.5px; color: #b5cec7; line-height: 1.9; list-style: none; padding-left: 14px; position: relative; }
.ip-block li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: #45c994; }
.ip-block ul { margin: 0; padding: 0; }
.ip-quick { display: flex; flex-direction: column; gap: 8px; padding: 8px 16px 0; }
.ip-quick button, .ip-quick a { font-size: 11.5px; padding: 9px 11px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .12); color: #c6ded6; display: flex; align-items: center; gap: 8px; text-align: left; }
.ip-quick button:hover, .ip-quick a:hover { background: rgba(47, 208, 143, .12); }
.ip-colors { display: flex; gap: 7px; padding: 6px 16px 10px; }
.ip-colors i { width: 24px; height: 24px; border-radius: 7px; display: block; }

@media (max-width: 1180px) {
  .demo-layout { grid-template-columns: 220px 1fr; }
  .info-panel { display: none; }
}
@media (max-width: 860px) {
  .demo-layout { grid-template-columns: 1fr; }
  .demo-sidebar { display: none; }
  .device { transform: scale(.9); transform-origin: top center; }
}
