/* ================================================================
   五育成长 · H5 移动端样式 v2（第22轮 商业级打磨）
   设计基准：成熟商业 App 移动端范式 —— 渐变 Hero + 浮层统计卡、
   骨架屏加载、全局按压反馈、胶囊分段、安全区完整适配。
   ================================================================ */
:root {
  --brand-400: #5B8CF7; --brand-500: #2E62E8; --brand-600: #1E4FD8; --brand-900: #0D245E;
  --grad-brand: linear-gradient(135deg, #0D245E 0%, #1E4FD8 55%, #4C8DF6 100%);
  --grad-hero: linear-gradient(150deg, #123073 0%, #1E4FD8 52%, #4C8DF6 100%);
  --de: #E25C55; --zhi: #3B7CF0; --ti: #2FA65A; --mei: #9B59B6; --lao: #EE9B2E; --heart: #18A5B0;
  --ink: #1B2233; --ink-2: #4A5268; --mut: #8A91A6;
  --bg: #F3F5FA; --card: #FFFFFF; --line: #E6EAF2;
  --ok: #2FA65A; --bad: #D9534F; --warn: #EE9B2E;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow-md: 0 1px 2px rgba(16,24,40,.05), 0 10px 26px -14px rgba(16,24,40,.14);
  --shadow-lg: 0 18px 44px -18px rgba(13,36,94,.35);
  --tb-h: calc(56px + env(safe-area-inset-bottom));
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(1100px 320px at 50% -90px, rgba(46, 98, 232, .10), transparent 70%),
    radial-gradient(700px 260px at 100% 0, rgba(47, 166, 90, .05), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}
#app { min-height: 100%; padding-bottom: var(--tb-h); }
.boot-hint { text-align: center; color: var(--mut); padding: 80px 0; }

/* ===== 全局按压反馈（商业 App 手感的核心）===== */
button, .qitem, .tb, .li-click { transition: transform .12s ease, filter .12s ease; }
button:active, .qitem:active { transform: scale(.965); filter: brightness(.97); }
.tb:active { transform: scale(.92); }

/* ===== 顶部玻璃标题栏 ===== */
.mhead {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) 14px 10px;
  background: rgba(243, 245, 250, .82);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid rgba(15, 32, 68, .06);
}
.mhead h1 { font-size: 17px; font-weight: 800; flex: 1; letter-spacing: .2px; }
.mhead .act {
  width: 34px; height: 34px; border: none; border-radius: 12px; position: relative;
  background: #fff; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.mhead .act svg { width: 18px; height: 18px; }
.mhead .act .dot {
  position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px;
  border-radius: 8px; background: var(--bad); color: #fff;
  font-size: 10px; line-height: 16px; padding: 0 4px; font-weight: 700;
}
.mhead .back { color: var(--brand-600); }

/* ===== 卡片体系 ===== */
.card {
  background: var(--card); border-radius: 18px; padding: 14px 16px; margin: 10px 12px;
  box-shadow: var(--shadow-md);
}
.card h3 { font-size: 14.5px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.card h3::before { content: ''; width: 4px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); }
.card h3 .sub { font-weight: 500; font-size: 12px; color: var(--mut); margin-left: auto; }
.small { font-size: 12.5px; color: var(--ink-2); }
.hint { font-size: 12px; color: var(--mut); line-height: 1.7; }

/* ===== 渐变 Hero + 统计行（第22.2轮：徽章入顶行，正文不再拥挤）===== */
.hero {
  margin: 10px 12px -30px; padding: 16px 18px 56px;
  border-radius: 20px; color: #fff; position: relative; overflow: hidden;
  background: var(--grad-hero); box-shadow: var(--shadow-lg);
}
.hero::before { content: ''; position: absolute; right: -34px; top: -34px;
  width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.10); }
.hero::after { content: ''; position: absolute; right: 44px; top: 30px;
  width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero .hx-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero .hx-greet { font-size: 12.5px; opacity: .82; letter-spacing: .5px; }
.hero .hx-name { font-size: 21px; font-weight: 800; margin-top: 6px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero .hx-name .chip { border-radius: 999px; }
.hero .hx-cls { font-size: 12px; opacity: .85; margin-top: 5px; letter-spacing: .3px; }
.hero .hx-pill {
  display: flex; align-items: center; gap: 5px; flex: none;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  backdrop-filter: blur(6px);
}
.hero .hx-pill b { font-size: 14px; }
.hero .hx-pill svg { width: 14px; height: 14px; }
/* 统计行（单卡多格 + 细分隔线，替代四张独立小卡）*/
.statrow { display: flex; gap: 0; margin: 10px 12px;
  background: #fff; border-radius: 18px; padding: 13px 2px; box-shadow: var(--shadow-md); }
.statrow.overlap { margin-top: 0; transform: translateY(-26px); margin-bottom: -12px; }
.statcell {
  flex: 1; min-width: 0; text-align: center; padding: 0 6px;
}
.statcell + .statcell { border-left: 1px solid var(--line); }
.statcell b { display: block; font-size: 21px; font-weight: 800; color: var(--brand-600); font-variant-numeric: tabular-nums; }
.statcell span { font-size: 11px; color: var(--mut); white-space: nowrap; }

/* ===== 心理守护横幅（第22.2轮：等级整幅承载，不再挤压统计格）===== */
.guard {
  margin: 10px 12px; border-radius: 18px; padding: 15px 17px; color: #fff;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-md);
}
.guard[data-lv="good"] { background: linear-gradient(135deg, #2FA65A, #1D7C43); }
.guard[data-lv="watch"] { background: linear-gradient(135deg, #F0A32F, #D07A12); }
.guard[data-lv="refer"] { background: linear-gradient(135deg, #E05B55, #B93A36); }
.guard[data-lv="none"] { background: linear-gradient(135deg, #7C89A6, #5A6786); }
.guard .g-main { flex: 1; min-width: 0; }
.guard .g-cap { font-size: 11.5px; opacity: .85; letter-spacing: .4px; }
.guard .g-level { font-size: 21px; font-weight: 800; margin-top: 3px; letter-spacing: 1px; }
.guard .g-score { text-align: right; flex: none; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.35); }
.guard .g-score b { display: block; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.guard .g-score span { font-size: 11px; opacity: .85; }

/* ===== 快捷宫格（单行五列 · 淡彩平贴瓦片，商业 App 设置页范式）===== */
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px 2px; }
.qitem { text-align: center; padding: 6px 0 4px; border-radius: 14px; }
.qitem .qi {
  width: 46px; height: 46px; margin: 0 auto 6px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
}
.qitem .qi svg { width: 23px; height: 23px; }
.qitem span { font-size: 11px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }

/* ===== 通用控件（iOS 尺寸，16px 防 iOS 聚焦缩放）===== */
button, input, textarea, select { font: inherit; color: inherit; }
.btn {
  display: block; width: 100%; border: none; border-radius: 14px;
  background: var(--brand-500); color: #fff; font-size: 16px; font-weight: 700;
  padding: 12px 16px; text-align: center;
}
.btn:active { background: var(--brand-600); }
.btn.ghost { background: #fff; color: var(--brand-500); border: 1px solid rgba(46, 98, 232, .35); }
.btn.sm { display: inline-block; width: auto; font-size: 13px; padding: 6px 14px; border-radius: 10px; }
.btn.mini { display: inline-block; width: auto; font-size: 12px; padding: 4px 10px; border-radius: 9px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.loading, .csend.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after, .csend.loading::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
input.inp, textarea.inp, select.inp {
  width: 100%; background: #F6F8FC; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; font-size: 16px; outline: none;
}
input.inp:focus, textarea.inp:focus { border-color: rgba(46, 98, 232, .45); background: #fff; box-shadow: 0 0 0 3px rgba(46,98,232,.08); }
textarea.inp { resize: none; min-height: 110px; line-height: 1.7; }
.field { margin: 10px 12px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 5px; }
/* 输入框 + 内嵌动作（密码可见切换）*/
.iwrap { position: relative; }
.iwrap .inp { padding-right: 46px; }
.iwrap .iaction {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: none; color: var(--mut); font-size: 15px; padding: 6px 8px;
}
/* 字数计数器 */
.charcnt { text-align: right; font-size: 11px; color: var(--mut); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ===== 徽章与标签 ===== */
.chip {
  display: inline-block; font-size: 11px; font-weight: 700; color: #fff;
  border-radius: 999px; padding: 2px 8px; vertical-align: middle;
}
.chip.line { background: rgba(15, 32, 68, .05); color: var(--ink-2); border: 1px solid var(--line); }
.tagline { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }

/* ===== 我的页：渐变身份卡（第22.2轮）===== */
.me-card {
  margin: 10px 12px; border-radius: 20px; padding: 18px 16px 12px; color: #fff;
  background: var(--grad-brand); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.me-card::before { content: ''; position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.09); }
.me-card .mc-row { display: flex; gap: 13px; align-items: center; position: relative; }
.me-card .mc-ava {
  width: 58px; height: 58px; flex: none; border-radius: 19px; overflow: hidden;
  background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center;
  font-size: 23px; font-weight: 800; box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}
.me-card .mc-ava img { width: 100%; height: 100%; object-fit: cover; }
.me-card .mc-info { flex: 1; min-width: 0; }
.me-card .mc-name { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.me-card .mc-sub { font-size: 12px; opacity: .85; margin-top: 3px; }
.me-card .mc-acts { display: flex; gap: 8px; margin-top: 10px; }
.me-card .mc-acts .btn.mini {
  background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(4px);
}
.me-card .mc-acts .btn.mini:active { background: rgba(255,255,255,.26); }
.me-card .mc-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.18);
  font-size: 11px; line-height: 1.6; opacity: .8; position: relative; }

/* ===== 记录卡（第22.2轮：虚线流改实体卡；--acc 由卡片首维度驱动）===== */
.rec {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; margin: 0 0 10px; box-shadow: var(--shadow-sm);
}
.rec:last-child { margin-bottom: 0; }
.rec .rc-head { display: flex; gap: 5px; align-items: center; }
.rec .rc-ts { margin-left: auto; font-size: 11px; color: var(--mut); flex: none; }
.rec .rc-body { margin-top: 5px; line-height: 1.75; font-size: 14px; }

/* ===== 时光轴（第22.2轮：彩点导轨）===== */
.tl-year { font-size: 13.5px; font-weight: 800; color: var(--brand-600); margin: 14px 0 2px; }
.tl-month { font-size: 11.5px; color: var(--mut); margin: 10px 0 7px; }
.grow-rail { position: relative; padding-left: 20px; margin: 4px 12px; }
.grow-rail::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(46,98,232,.38), rgba(46,98,232,.06)); }
.grow-rail::after { content: ''; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px;
  background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.grow-rail .rec::before { content: ''; position: absolute; left: -19px; top: 17px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--acc, var(--brand-500));
  box-shadow: 0 0 0 3px var(--bg); }
.grow-rail .tl-year:first-child { margin-top: 6px; }

/* ===== 列表项 ===== */
.li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: none; }
.li .li-main { flex: 1; min-width: 0; }
.li .li-t { font-size: 14px; font-weight: 700; }
.li .li-t svg { width: 17px; height: 17px; vertical-align: -3.5px; margin-right: 5px; }
.ms-ico { display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 11px; background: #F2F5FC; color: var(--brand-600); flex: none; }
.ms-ico svg { width: 19px; height: 19px; }
.li .li-b { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.6; }
.li .li-x { font-size: 11px; color: var(--mut); white-space: nowrap; }
/* 未读左侧呼吸点（通知）*/
.li.unread { position: relative; }
.li.unread::before {
  content: ''; position: absolute; left: -8px; top: 17px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--bad);
  box-shadow: 0 0 0 3px rgba(217,83,79,.15); animation: breath 1.8s ease-in-out infinite;
}
@keyframes breath { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ===== 底部标签栏 ===== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; height: var(--tb-h); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid rgba(15, 32, 68, .07);
}
.tabbar .tb {
  flex: 1; border: none; background: none; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; color: var(--mut); font-size: 10.5px;
  position: relative;
}
.tabbar .tb .ico { line-height: 1; display: flex; }
.tabbar .tb .ico svg { width: 23px; height: 23px; }
.tabbar .tb.on { color: var(--brand-500); font-weight: 700; }
.tabbar .tb .bdot {
  position: absolute; top: 8px; left: calc(50% + 8px);
  min-width: 15px; height: 15px; border-radius: 8px; background: var(--bad); color: #fff;
  font-size: 9.5px; line-height: 15px; padding: 0 4px; font-weight: 700;
  box-shadow: 0 0 0 2px #fff;
}
.tabbar .tb.on::after {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand-500);
}

/* ===== 登录页 ===== */
.login-hero {
  background: var(--grad-brand); color: #fff; text-align: center;
  padding: calc(env(safe-area-inset-top) + 56px) 24px 46px; border-radius: 0 0 30px 30px;
  position: relative; overflow: hidden;
}
.login-hero::after { content: ''; position: absolute; left: -40px; bottom: -60px;
  width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,.07); }
.login-hero .lg {
  width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 22px;
  background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center;
  font-size: 34px; border: 1px solid rgba(255,255,255,.22);
}
.login-hero h1 { font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.login-hero p { font-size: 12.5px; opacity: .82; margin-top: 6px; }
.demo-row { display: flex; gap: 8px; margin-top: 12px; }
.demo-row button { flex: 1; }

/* ===== 助手对话 ===== */
.chatwrap { display: flex; flex-direction: column; min-height: calc(100vh - var(--tb-h) - 120px); padding-bottom: 118px; }
.msg { display: flex; gap: 8px; margin: 9px 12px; }
.msg.me { flex-direction: row-reverse; }
.msg .m-ava {
  width: 30px; height: 30px; flex: none; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700;
  background: #EEF2FF; color: var(--brand-500);
}
.msg .m-ava svg { width: 15px; height: 15px; }
.msg.me .m-ava { background: var(--brand-500); color: #fff; }
.msg .m-bub {
  max-width: 76%; padding: 9px 13px; border-radius: 16px 16px 16px 5px; font-size: 14px; line-height: 1.7;
  background: #fff; border: 1px solid rgba(15, 32, 68, .07); word-break: break-word; white-space: pre-wrap;
}
.msg.me .m-bub { background: var(--brand-500); color: #fff; border-color: transparent; border-radius: 16px 16px 5px 16px; }
.msg-card { margin: 6px 12px 6px 50px; }
/* 打字中指示器 */
.typing .m-bub { display: flex; align-items: center; gap: 5px; min-height: 38px; }
.typing .td {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mut);
  animation: td 1s ease-in-out infinite;
}
.typing .td:nth-child(2) { animation-delay: .15s; }
.typing .td:nth-child(3) { animation-delay: .3s; }
@keyframes td { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.chatbar {
  position: fixed; left: 0; right: 0; bottom: var(--tb-h); z-index: 30;
  display: flex; gap: 8px; align-items: center; padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(243, 245, 250, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(15, 32, 68, .06);
  box-shadow: 0 -10px 26px -20px rgba(16, 24, 40, .35);
}
.chatbar .inp { flex: 1; min-width: 0; border-radius: 22px; padding: 11px 16px; background: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.chatbar .inp:focus { border-color: rgba(46, 98, 232, .4); }
.csend {
  flex: none; width: 44px; height: 44px; border: none; border-radius: 50%;
  background: var(--brand-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -6px rgba(46, 98, 232, .65);
}
.csend svg { width: 20px; height: 20px; }
.csend:active { transform: scale(.93); }
#chiprow { scrollbar-width: none; }
#chiprow::-webkit-scrollbar { display: none; }
#chiprow .btn.mini { border-radius: 999px; padding: 6px 13px; background: #fff; }

/* ===== 分段控件 ===== */
.seg { display: flex; background: #E8ECF6; border-radius: 12px; padding: 3px; margin: 10px 12px; }
.seg button {
  flex: 1; border: none; border-radius: 10px; padding: 7px 0; font-size: 13px;
  background: transparent; color: var(--ink-2); font-weight: 600;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ===== 五育横条 ===== */
.dimrow { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.dimrow .dr-i { width: 10px; height: 10px; border-radius: 4px; }
.dimrow .dr-n { width: 44px; font-size: 12.5px; color: var(--ink-2); }
.dimrow .dr-bar { flex: 1; height: 8px; border-radius: 4px; background: #EDF0F8; overflow: hidden; }
.dimrow .dr-bar i { display: block; height: 100%; border-radius: 4px; width: 0;
  transition: width .8s cubic-bezier(.22,.68,.32,1); }
.dimrow .dr-v { width: 20px; text-align: right; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ===== 骨架屏（商用加载态核心）===== */
.sk {
  background: linear-gradient(90deg, #EAEDF5 25%, #F5F7FC 37%, #EAEDF5 63%);
  background-size: 400% 100%; animation: skmv 1.2s ease infinite;
  border-radius: 12px;
}
@keyframes skmv { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk-card { height: 86px; margin: 10px 12px; }
.sk-row { height: 64px; margin: 8px 12px; }
.sk-line { height: 14px; margin: 8px 12px; }
.sk-line.w60 { width: 60%; }

/* ===== 下拉刷新指示器 ===== */
#ptr {
  position: fixed; left: 0; right: 0; top: 0; z-index: 80; pointer-events: none;
  display: flex; justify-content: center; padding-top: calc(env(safe-area-inset-top) + 6px);
  transform: translateY(-40px); transition: transform .2s ease;
}
#ptr.on { transform: translateY(0); }
#ptr i {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(46,98,232,.2); border-top-color: var(--brand-500);
  animation: spin .8s linear infinite; background: #fff; box-shadow: var(--shadow-sm);
}

/* ===== 身心自测进度 ===== */
.hp-prog { display: flex; gap: 4px; margin: 2px 0 8px; }
.hp-prog i { flex: 1; height: 4px; border-radius: 2px; background: #E8ECF6; transition: background .25s; }
.hp-prog i.done { background: var(--brand-500); }

/* ===== 空态 / 杂项 ===== */
.empty { text-align: center; color: var(--mut); font-size: 13px; padding: 34px 20px; }
.empty .e-ico { font-size: 40px; display: block; margin-bottom: 8px; }
.hotline { border: 1.5px solid var(--bad); }
.hotline .hc-t { color: var(--bad); font-weight: 800; font-size: 12.5px; margin-bottom: 4px; }
.fade-in { animation: fi .3s ease both; }
@keyframes fi { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* toast */
#mt {
  position: fixed; left: 50%; bottom: calc(var(--tb-h) + 26px); transform: translateX(-50%) translateY(14px);
  background: rgba(20, 28, 48, .92); color: #fff; font-size: 13.5px; padding: 10px 18px;
  border-radius: 12px; opacity: 0; transition: .25s ease; z-index: 99; pointer-events: none; max-width: 82vw;
  display: flex; align-items: center; gap: 7px;
}
#mt.show { opacity: 1; transform: translateX(-50%); }
#mt .t-ico { font-weight: 800; }

/* 第22.1轮：登录页 logo 用 SVG 学士帽（.lg 容器样式沿用上方），尺寸适配 */
.login-hero .lg svg { width: 36px; height: 36px; }

/* —— 第22.1轮：.sup-capsule 悬浮舱已删除（头部 ✨ 为全站统一入口）—— */
