/* ============================================================
   健康管理服务 · PC 门户
   设计系统：暗色极光 / 玻璃拟态 / 分层立体
   ============================================================ */

/* ---------- 1. Reset & Tokens ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* surface */
  --bg-deep:      #060912;
  --bg:           #0b1020;
  --bg-raise:     #111830;
  --glass:        rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.075);
  --glass-line:   rgba(255, 255, 255, 0.10);
  --glass-line-2: rgba(255, 255, 255, 0.16);

  /* brand */
  --mint:   #2ee6a8;
  --mint-d: #12b981;
  --cyan:   #38bdf8;
  --violet: #8b7cf6;
  --amber:  #fbbf24;
  --rose:   #fb7185;
  --orange: #fb923c;

  /* ink */
  --ink:      #f2f6ff;
  --ink-2:    rgba(233, 240, 255, 0.72);
  --ink-3:    rgba(233, 240, 255, 0.46);
  --ink-4:    rgba(233, 240, 255, 0.26);

  /* semantic */
  --ok:   var(--mint);
  --warn: var(--amber);
  --bad:  var(--rose);

  /* shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;

  /* depth */
  --sh-1: 0 2px 8px rgba(0,0,0,.32);
  --sh-2: 0 10px 30px rgba(0,0,0,.38);
  --sh-3: 0 24px 60px rgba(0,0,0,.46);
  --sh-4: 0 40px 100px rgba(0,0,0,.55);
  --glow-mint: 0 0 0 1px rgba(46,230,168,.30), 0 12px 40px rgba(46,230,168,.20);

  /* motion */
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-back: cubic-bezier(.34,1.56,.64,1);
  --ease-io:   cubic-bezier(.65,.05,.36,1);

  --font: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --serif: "DM Serif Display", Georgia, "Songti SC", serif;
}

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.6;
}

::selection { background: rgba(46,230,168,.28); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.10);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.20); background-clip: padding-box; }

/* ---------- 2. 背景：极光网格 + 粒子层 ---------- */
.bg-stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.bg-base {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 1200px 800px at 18% 8%,  rgba(46,230,168,.13), transparent 62%),
    radial-gradient(ellipse 1000px 700px at 82% 12%, rgba(56,189,248,.12), transparent 60%),
    radial-gradient(ellipse 900px 900px  at 62% 92%, rgba(139,124,246,.12), transparent 62%),
    radial-gradient(ellipse 700px 600px  at 8% 74%,  rgba(251,113,133,.08), transparent 60%),
    linear-gradient(180deg, #070b16 0%, #0b1020 46%, #080c18 100%);
}

/* 缓慢流动的极光光斑 */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora.a1 { width: 46vw; height: 46vw; left: -8vw;  top: -10vw; background: radial-gradient(circle, rgba(46,230,168,.55), transparent 68%); animation: drift1 26s var(--ease-io) infinite; }
.aurora.a2 { width: 40vw; height: 40vw; right: -6vw; top: 4vh;   background: radial-gradient(circle, rgba(56,189,248,.50), transparent 68%); animation: drift2 31s var(--ease-io) infinite; }
.aurora.a3 { width: 38vw; height: 38vw; right: 12vw; bottom: -14vw; background: radial-gradient(circle, rgba(139,124,246,.48), transparent 68%); animation: drift3 37s var(--ease-io) infinite; }
.aurora.a4 { width: 26vw; height: 26vw; left: 26vw; bottom: 2vh;  background: radial-gradient(circle, rgba(251,146,60,.30), transparent 68%); animation: drift1 41s var(--ease-io) infinite reverse; }

@keyframes drift1 { 0%,100%{transform:translate3d(0,0,0) scale(1)} 33%{transform:translate3d(14vw,8vh,0) scale(1.18)} 66%{transform:translate3d(-6vw,14vh,0) scale(.88)} }
@keyframes drift2 { 0%,100%{transform:translate3d(0,0,0) scale(1)} 40%{transform:translate3d(-16vw,10vh,0) scale(1.22)} 70%{transform:translate3d(6vw,-8vh,0) scale(.9)} }
@keyframes drift3 { 0%,100%{transform:translate3d(0,0,0) scale(1)} 45%{transform:translate3d(-12vw,-12vh,0) scale(.92)} 75%{transform:translate3d(10vw,6vh,0) scale(1.16)} }

/* 细网格 */
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
}

/* 粒子 */
/* 粒子压到背景亮度：核心亮度须低于正文合成亮度（约 113/255），
   否则会透过 46% 半透明字形笔画显形，视觉上像压在文字上。
   空背景底色约 11/255，压暗后依然清晰可辨。 */
#particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }

/* 噪点 */
.bg-noise {
  position: absolute; inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 3. 通用原子 ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--sh-2);
  position: relative;
}

/* 顶部高光描边 */
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255,255,255,.28), rgba(255,255,255,0) 42%, rgba(255,255,255,0) 70%, rgba(255,255,255,.10));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); }

.eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
}

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 99px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag.ok   { color: var(--mint);  background: rgba(46,230,168,.12);  border-color: rgba(46,230,168,.26); }
.tag.warn { color: var(--amber); background: rgba(251,191,36,.12);  border-color: rgba(251,191,36,.26); }
.tag.bad  { color: var(--rose);  background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.26); }
.tag.info { color: var(--cyan);  background: rgba(56,189,248,.12);  border-color: rgba(56,189,248,.26); }
.tag.gray { color: var(--ink-3); background: rgba(255,255,255,.05);  border-color: var(--glass-line); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- 4. 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 0 18px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--glass-line-2);
  background: var(--glass);
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform .28s var(--ease-back), background .25s, border-color .25s, box-shadow .28s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  background: var(--glass-strong);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-2px) translateZ(18px);
  box-shadow: 0 10px 24px rgba(0,0,0,.34);
}
.btn:active { transform: translateY(0) scale(.965); transition-duration: .09s; }
.btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.btn-primary {
  border: none;
  background: linear-gradient(135deg, var(--mint) 0%, #22d3ee 58%, var(--cyan) 100%);
  color: #04121b;
  font-weight: 800;
  box-shadow: 0 8px 26px rgba(46,230,168,.30);
}
.btn-primary:hover {
  box-shadow: 0 14px 38px rgba(46,230,168,.46), 0 0 0 1px rgba(46,230,168,.4);
  filter: brightness(1.06) saturate(1.08);
}

/* 扫光 */
.btn::after {
  content: "";
  position: absolute; top: 0; left: -140%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-18deg);
  z-index: 2;
  pointer-events: none;
}
.btn:hover::after { animation: sweep .75s var(--ease-out); }
@keyframes sweep { to { left: 160%; } }

/* 涟漪 */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,0) 70%);
  pointer-events: none;
  z-index: 3;
  animation: rip .62s var(--ease-out) forwards;
}
.btn-primary .ripple { background: radial-gradient(circle, rgba(4,18,27,.42), rgba(4,18,27,0) 70%); }
@keyframes rip { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

.btn-lg { height: 48px; font-size: 15px; padding: 0 26px; border-radius: 14px; }
.btn-sm { height: 32px; font-size: 12.5px; padding: 0 13px; border-radius: 9px; }
.btn-icon { width: 40px; padding: 0; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }

/* 3D 立体按钮（带底部厚度） */
.btn-3d { transform-style: preserve-3d; }
.btn-3d::before {
  content: "";
  position: absolute; left: 4px; right: 4px; bottom: -4px;
  height: 100%; border-radius: inherit;
  background: rgba(46,230,168,.28);
  filter: blur(1px);
  transform: translateZ(-14px);
  z-index: -1;
  transition: transform .28s var(--ease-back), opacity .28s;
}
.btn-3d:hover { transform: translateY(-3px) translateZ(24px); }
.btn-3d:active { transform: translateY(2px) translateZ(4px); }
.btn-3d:active::before { opacity: .5; }

/* ---------- 5. 登录页 ---------- */
.auth {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  perspective: 1400px;
}
.auth.hidden { pointer-events: none; }

.auth-card {
  width: min(940px, 100%);
  min-height: 540px;
  display: grid; grid-template-columns: 1.05fr .95fr;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-out), opacity .5s var(--ease-out);
  animation: authIn .9s var(--ease-out) both;
}
@keyframes authIn { from { opacity: 0; transform: translateY(40px) rotateX(12deg) scale(.96); } }

/* 左：品牌侧 */
.auth-brand {
  position: relative;
  padding: 48px 44px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(ellipse 460px 340px at 22% 18%, rgba(46,230,168,.30), transparent 62%),
    radial-gradient(ellipse 420px 340px at 78% 88%, rgba(139,124,246,.28), transparent 62%),
    linear-gradient(150deg, rgba(20,30,58,.92), rgba(9,13,28,.96));
  border-right: 1px solid var(--glass-line);
  overflow: hidden;
}
.auth-brand::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(140deg, #000, transparent 72%);
  -webkit-mask-image: linear-gradient(140deg, #000, transparent 72%);
  pointer-events: none;
}

.brand-mark { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand-mark .logo {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  color: #04121b;
  box-shadow: 0 8px 22px rgba(46,230,168,.36);
  transform: translateZ(24px);
  animation: logoFloat 5s ease-in-out infinite;
}
@keyframes logoFloat { 0%,100%{transform:translateZ(24px) translateY(0) rotate(0)} 50%{transform:translateZ(24px) translateY(-5px) rotate(-4deg)} }
.brand-mark .txt b { display: block; font-size: 16px; letter-spacing: .02em; }
.brand-mark .txt span { font-size: 11px; color: var(--ink-3); letter-spacing: .22em; text-transform: uppercase; }

.auth-head { position: relative; z-index: 2; }
.auth-head h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 38px; line-height: 1.22; letter-spacing: -.01em;
  margin-bottom: 14px;
}
.auth-head h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--mint), var(--cyan) 55%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-head p { color: var(--ink-2); font-size: 14px; max-width: 34ch; }

.auth-feats { list-style: none; display: grid; gap: 12px; position: relative; z-index: 2; }
.auth-feats li { display: flex; align-items: center; gap: 11px; font-size: 13px; color: var(--ink-2); }
.auth-feats .ic {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--glass-line);
  color: var(--mint);
}
.auth-feats .ic svg { width: 15px; height: 15px; }

/* 浮动立体装饰 */
.auth-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.42), rgba(255,255,255,.04) 58%, transparent 72%);
  border: 1px solid rgba(255,255,255,.16);
  transform-style: preserve-3d;
  animation: orbFloat 9s ease-in-out infinite;
}
.orb.o1 { width: 78px; height: 78px; right: 8%;  top: 14%; animation-delay: -1s; }
.orb.o2 { width: 46px; height: 46px; right: 22%; bottom: 22%; animation-delay: -3s; }
.orb.o3 { width: 28px; height: 28px; right: 34%; top: 40%; animation-delay: -5s; }
@keyframes orbFloat {
  0%,100% { transform: translate3d(0,0,0) rotate(0deg); }
  33%     { transform: translate3d(-12px,16px,30px) rotate(14deg); }
  66%     { transform: translate3d(10px,-12px,50px) rotate(-9deg); }
}

/* 右：表单侧 */
.auth-form {
  padding: 48px 44px;
  display: flex; flex-direction: column; justify-content: center;
  background: rgba(10,14,28,.72);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  position: relative;
}
.auth-form h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-form .sub { color: var(--ink-3); font-size: 13px; margin-bottom: 26px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 7px; letter-spacing: .04em; }
.input-wrap { position: relative; }
.input-wrap .lead-ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-4); pointer-events: none;
  transition: color .25s;
}
.input-wrap input {
  width: 100%; height: 46px;
  padding: 0 14px 0 40px;
  font-family: inherit; font-size: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.045);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.input-wrap input::placeholder { color: var(--ink-4); }
.input-wrap input:focus {
  border-color: rgba(46,230,168,.55);
  background: rgba(46,230,168,.05);
  box-shadow: 0 0 0 4px rgba(46,230,168,.10);
}
.input-wrap input:focus + .lead-ic, .input-wrap:focus-within .lead-ic { color: var(--mint); }
.input-wrap .suffix {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
}

.check-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; font-size: 12.5px; }
.check-row a { color: var(--mint); text-decoration: none; font-weight: 600; }
.check-row a:hover { text-decoration: underline; }

.custom-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-2); user-select: none; }
.custom-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.custom-check .box {
  width: 17px; height: 17px; border-radius: 5px;
  border: 1.5px solid var(--glass-line-2);
  background: rgba(255,255,255,.04);
  display: grid; place-items: center;
  transition: all .25s var(--ease-back);
}
.custom-check .box svg { width: 11px; height: 11px; color: #04121b; opacity: 0; transform: scale(.4); transition: all .25s var(--ease-back); }
.custom-check input:checked + .box { background: var(--mint); border-color: var(--mint); transform: scale(1.06); }
.custom-check input:checked + .box svg { opacity: 1; transform: scale(1); }

.auth-demo {
  margin-top: 18px; padding: 13px 15px;
  border-radius: var(--r-sm);
  background: rgba(56,189,248,.07);
  border: 1px solid rgba(56,189,248,.20);
  font-size: 12px; color: var(--ink-2); line-height: 1.7;
}
.auth-demo b { color: var(--cyan); }
.auth-demo code {
  font-family: var(--mono); font-size: 11.5px;
  background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 5px;
}

.demo-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.demo-head span { font-size: 10.5px; color: var(--ink-4); }

/* 账号快捷选择 */
.acc-list { display: grid; gap: 5px; }
.acc-item {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 10px;
  align-items: center;
  padding: 7px 10px; border-radius: 9px;
  background: rgba(255,255,255,.035);
  border: 1px solid transparent;
  cursor: pointer; text-align: left;
  font-family: inherit; color: var(--ink-2);
  transition: all .26s var(--ease-out);
}
.acc-item:hover {
  background: rgba(46,230,168,.10);
  border-color: rgba(46,230,168,.30);
  transform: translateX(3px);
}
.acc-item .acc-av {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; color: #04121b;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
}
.acc-item .acc-nm { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.acc-item .acc-ph { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.acc-item .acc-cd {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-line); color: var(--ink-3);
}
.acc-item.pending { opacity: .48; cursor: not-allowed; }
.acc-item.pending:hover { transform: none; background: rgba(255,255,255,.035); border-color: transparent; }
.acc-item.pending .acc-av { background: linear-gradient(135deg, #64748b, #475569); color: rgba(255,255,255,.65); }

/* 演示账号：单独标出来，避免被误认成某个真实客户 */
.acc-item.demo { border-color: rgba(56,189,248,.26); background: rgba(56,189,248,.055); }
.acc-item.demo:hover { border-color: rgba(56,189,248,.42); background: rgba(56,189,248,.09); }
.acc-demo-tag {
  font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--cyan); background: rgba(56,189,248,.14);
  border: 1px solid rgba(56,189,248,.3);
  border-radius: 99px; padding: 1px 6px; margin-left: 7px;
  vertical-align: middle; white-space: nowrap;
}

.demo-note { margin-top: 9px; font-size: 11px; color: var(--ink-4); line-height: 1.8; }
.demo-note strong { color: var(--ink-2); font-weight: 600; }
.demo-note code {
  font-family: var(--mono); font-size: 10.5px;
  padding: 1px 5px; border-radius: 5px;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-line); color: var(--ink-2);
}

/* 手机号匹配提示：只说「已登记」，不透露是谁 */
.acc-hint { margin-top: 7px; font-size: 11px; color: var(--ink-4); line-height: 1.6; min-height: 0; }
.acc-hint.ok { color: var(--mint); }
.acc-hint:not(:empty) { min-height: 16px; }

/* 输入错误态 */
.input-wrap input.has-error {
  border-color: rgba(251,113,133,.62);
  background: rgba(251,113,133,.06);
  box-shadow: 0 0 0 4px rgba(251,113,133,.11);
}
.field-err {
  font-size: 11.5px; color: var(--rose);
  margin-top: 6px; display: flex; align-items: center; gap: 5px;
  animation: errIn .3s var(--ease-out);
}
.field-err::before { content: "!"; font-weight: 800; }
@keyframes errIn { from { opacity: 0; transform: translateY(-4px); } }

.auth-foot { margin-top: 22px; font-size: 11.5px; color: var(--ink-4); text-align: center; line-height: 1.8; }

/* 登录成功：卡片分裂飞散 */
.auth.leaving .auth-card { transform: scale(1.08) rotateX(-14deg); opacity: 0; filter: blur(12px); }
.auth.leaving .auth-brand { transform: translateX(-120px); }
.auth.leaving .auth-form  { transform: translateX(120px); }
.auth-brand, .auth-form { transition: transform .6s var(--ease-io); }

/* ---------- 6. 应用外壳 ---------- */
.app { position: relative; z-index: 2; min-height: 100vh; display: none; }
.app.on { display: block; animation: appIn .8s var(--ease-out) both; }
@keyframes appIn { from { opacity: 0; transform: scale(.97) translateY(20px); } }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 30px;
  background: rgba(8,12,24,.72);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border-bottom: 1px solid var(--glass-line);
}
.topbar .brand-mark .logo { width: 36px; height: 36px; border-radius: 11px; }
.topbar .brand-mark .txt b { font-size: 14.5px; }
.topbar .brand-mark .txt span { font-size: 10px; }

.topbar-spacer { flex: 1; }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 13px 5px 5px;
  border-radius: 99px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  cursor: pointer;
  transition: transform .28s var(--ease-back), background .25s, border-color .25s;
}
.user-chip:hover { transform: translateY(-2px); background: var(--glass-strong); border-color: var(--glass-line-2); }
.user-chip .ava {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #04121b;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  box-shadow: 0 4px 12px rgba(46,230,168,.32);
}
.user-chip .meta b { display: block; font-size: 12.5px; line-height: 1.25; }
.user-chip .meta span { font-size: 10.5px; color: var(--ink-3); }

.notif {
  position: relative; width: 38px; height: 38px;
  border-radius: 11px; border: 1px solid var(--glass-line);
  background: var(--glass);
  display: grid; place-items: center; cursor: pointer;
  color: var(--ink-2);
  transition: transform .28s var(--ease-back), background .25s, color .25s;
}
.notif:hover { transform: translateY(-2px) rotate(6deg); background: var(--glass-strong); color: var(--mint); }
.notif svg { width: 17px; height: 17px; }
.notif .badge {
  position: absolute; top: 6px; right: 7px;
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 99px; background: var(--rose); color: #fff;
  font-size: 9.5px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg-deep);
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.22)} }

/* ---------- 7. 页面容器 ---------- */
.page-wrap { max-width: 1520px; margin: 0 auto; padding: 26px 30px 90px; }

/* 页面标题区 */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 22px;
}
.page-head h2 {
  font-family: var(--serif); font-weight: 400; font-size: 30px;
  line-height: 1.2; margin-top: 6px;
}
.page-head .desc { color: var(--ink-3); font-size: 13px; margin-top: 6px; }
.page-head .head-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- 8. 选项卡（3D 滑动指示器） ---------- */
.tabs {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--glass-line);
  margin-bottom: 24px;
  transform-style: preserve-3d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--sh-1);
}
.tabs .glider {
  position: absolute; top: 5px; left: 5px; height: calc(100% - 10px);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(46,230,168,.20), rgba(56,189,248,.18));
  border: 1px solid rgba(46,230,168,.40);
  box-shadow: 0 6px 18px rgba(46,230,168,.20), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .48s var(--ease-back), width .48s var(--ease-back);
  z-index: 0;
  pointer-events: none;
}
.tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 17px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-3);
  background: none; border: none; cursor: pointer;
  border-radius: 10px;
  transition: color .3s var(--ease-out), transform .3s var(--ease-back);
  white-space: nowrap;
}
.tab:hover { color: var(--ink); transform: translateY(-1px); }
.tab.active { color: var(--mint); }
.tab svg { width: 15px; height: 15px; }
.tab .count {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  padding: 1px 6px; border-radius: 99px;
  background: rgba(251,113,133,.18); color: var(--rose);
  border: 1px solid rgba(251,113,133,.30);
}

/* 内容切换动画：3D 翻转进入 */
.view { display: none; }
.view.active { display: block; }
.view.anim-in > * { animation: viewIn .6s var(--ease-out) both; }
.view.anim-in > *:nth-child(1) { animation-delay: .02s; }
.view.anim-in > *:nth-child(2) { animation-delay: .07s; }
.view.anim-in > *:nth-child(3) { animation-delay: .12s; }
.view.anim-in > *:nth-child(4) { animation-delay: .17s; }
.view.anim-in > *:nth-child(5) { animation-delay: .22s; }
.view.anim-in > *:nth-child(6) { animation-delay: .27s; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(26px) rotateX(-9deg); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 9. 3D 浮动卡片 ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt .lift { transform: translateZ(0); transition: transform .45s var(--ease-out); }

/* 悬浮光斑（跟随鼠标） */
.sheen {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.10), transparent 62%);
  opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 3;
}
.tilt:hover .sheen { opacity: 1; }

/* ---------- 10. 网格 ---------- */
.grid { display: grid; gap: 16px; }
.g-kpi    { grid-template-columns: repeat(4, 1fr); }
.g-2      { grid-template-columns: repeat(2, 1fr); }
.g-3      { grid-template-columns: repeat(3, 1fr); }
.g-4      { grid-template-columns: repeat(4, 1fr); }
.g-main   { grid-template-columns: 1.55fr 1fr; }
.g-metric { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.g-todo   { grid-template-columns: 1fr 340px; }

@media (max-width: 1280px) {
  .g-kpi { grid-template-columns: repeat(2, 1fr); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-main { grid-template-columns: 1fr; }
  .g-todo { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .page-wrap { padding: 20px 18px 70px; }
  /* 选项卡变多后窄屏横向滚动，不撑破版心 */
  .tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .plan-blocks { grid-template-columns: 1fr; }
  .plan-hero { padding: 20px 18px; }
}

/* 窄屏：选项卡横向滚动，不撑破版心 */
@media (max-width: 900px) {
  .tabs {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .glider { display: none; }          /* 滚动容器内滑块定位不可靠，交给激活态底色 */
  .tab { flex: 0 0 auto; }
  .tab.active {
    background: linear-gradient(135deg, rgba(46,230,168,.20), rgba(56,189,248,.18));
    border: 1px solid rgba(46,230,168,.40);
    box-shadow: 0 4px 14px rgba(46,230,168,.18);
  }
  .page-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-head h2 { font-size: 24px; }
  .topbar { padding: 10px 16px; gap: 12px; }
  .topbar .brand-mark .txt { display: none; }
  .user-chip .meta { display: none; }
  .user-chip { padding: 4px; }
  .g-kpi { grid-template-columns: 1fr 1fr; }
  .card { padding: 16px 15px; }
  .page-wrap { padding: 18px 14px 60px; }
  .find.open .find-body { padding-left: 16px; }
  .todo { grid-template-columns: 24px 1fr; }
  .todo .t-right { grid-column: 2; flex-direction: row; align-items: center; }
}

/* 登录页窄屏 */
@media (max-width: 560px) {
  .auth { padding: 14px; }
  .auth-card { min-height: 0; border-radius: var(--r-lg); }
  .auth-form { padding: 32px 22px; }
  .auth-form h2 { font-size: 19px; }
  .grid.g-kpi { grid-template-columns: 1fr 1fr; }
  .kpi { min-height: 122px; padding: 16px 15px 14px; }
  .kpi .k-val { font-size: 26px; }
  .chart-wrap, .chart-wrap.tall { height: 250px; }
  .find-head { grid-template-columns: 26px 1fr auto; gap: 10px; }
  .find-body { font-size: 12.5px; }
  .sum-card .s-num { font-size: 26px; }
}

/* ---------- 11. KPI 卡（立体浮起） ---------- */
.kpi {
  padding: 20px 20px 18px;
  border-radius: var(--r);
  overflow: hidden;
  min-height: 142px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi .k-label { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; }
.kpi .k-ic {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-line);
  color: var(--mint);
  transition: transform .4s var(--ease-back);
}
.kpi:hover .k-ic { transform: rotate(-10deg) scale(1.1); }
.kpi .k-ic svg { width: 16px; height: 16px; }
.kpi .k-val {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 33px; font-weight: 700; line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.kpi .k-val .u { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.kpi .k-val.warn { color: var(--amber); }
.kpi .k-val.bad  { color: var(--rose); }
.kpi .k-val.ok   { color: var(--mint); }
.kpi .k-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 7px; display: flex; align-items: center; gap: 6px; }
.kpi .k-bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,.07); margin-top: 12px; overflow: hidden; }
.kpi .k-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mint), var(--cyan)); width: 0; transition: width 1.2s var(--ease-out); }
.kpi .k-bar.warn i { background: linear-gradient(90deg, var(--amber), var(--orange)); }
.kpi .k-bar.bad  i { background: linear-gradient(90deg, var(--rose), var(--orange)); }
.kpi .k-bar.ok   i { background: linear-gradient(90deg, var(--mint), var(--cyan)); }

/* KPI 角标光晕 */
.kpi::after {
  content: ""; position: absolute; width: 150px; height: 150px;
  right: -50px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,230,168,.16), transparent 68%);
  pointer-events: none;
  transition: transform .6s var(--ease-out);
}
.kpi:hover::after { transform: scale(1.5); }

/* ---------- 12. 卡片 / 区块 ---------- */
.card {
  padding: 20px 22px;
  border-radius: var(--r);
  overflow: hidden;
}
.card-h {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 16px;
}
.card-h h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card-h h3 svg { width: 16px; height: 16px; color: var(--mint); }
.card-h .cd { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.55; }
.card-h .right { display: flex; gap: 8px; align-items: center; flex: none; }

.chart-wrap { position: relative; width: 100%; height: 300px; }
.chart-wrap.tall { height: 340px; }
.chart-wrap canvas { width: 100% !important; height: 100% !important; display: block; }

/* ---------- 健康方案 ---------- */
.plan-hero { padding: 24px 26px; margin-bottom: 16px; }
.plan-hero-top h2 { font-size: 21px; font-weight: 800; letter-spacing: -.015em; margin-top: 6px; }
.plan-sub { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.65; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.plan-summary {
  font-size: 13px; line-height: 1.85; color: var(--ink-2);
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--glass-line);
  max-width: 92ch;
}

.g-plan { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.plan-metric { padding: 16px 18px; }
.plan-metric .pm-k { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.plan-metric .pm-v {
  font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 6px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(140deg, var(--mint), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plan-metric .pm-v span { font-size: 12px; font-weight: 600; margin-left: 4px; -webkit-text-fill-color: var(--ink-3); }
.plan-metric .pm-note { font-size: 11.5px; line-height: 1.65; color: var(--ink-4); margin-top: 8px; }

.plan-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
/* 5 块及以上的方案走 3 列（3+2），并按内容高度收口：
   否则一条长清单（如 22 条行动清单）会把同排其他块拉成大片空白玻璃。 */
.plan-blocks.c3 { grid-template-columns: repeat(3, minmax(300px, 1fr)); align-items: start; }
.plan-block { padding: 20px 22px; }
.pb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pb-head h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.pb-ic {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-line); color: var(--ink-3);
}
.pb-ic.mint  { color: var(--mint);  background: rgba(46,230,168,.11); border-color: rgba(46,230,168,.24); }
.pb-ic.cyan  { color: var(--cyan);  background: rgba(56,189,248,.11); border-color: rgba(56,189,248,.24); }
.pb-ic.amber { color: var(--amber); background: rgba(251,191,36,.11); border-color: rgba(251,191,36,.24); }
.pb-ic.rose  { color: var(--rose);  background: rgba(251,113,133,.11); border-color: rgba(251,113,133,.24); }
.pb-ic.violet{ color: #8b7cf6;      background: rgba(139,124,246,.11); border-color: rgba(139,124,246,.24); }

.plan-rules-list, .plan-daily-list, .plan-check-list, .plan-goal-list, .plan-stage-list {
  list-style: none; display: grid; gap: 10px;
}
.plan-rules-list li {
  padding: 11px 13px; border-radius: var(--r-sm);
  background: rgba(251,113,133,.06); border: 1px solid rgba(251,113,133,.16);
}
.plan-rules-list b { display: block; font-size: 13px; font-weight: 700; color: var(--rose); margin-bottom: 4px; }
.plan-rules-list span { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }

.plan-daily-list li {
  position: relative;
  padding: 11px 13px 11px 30px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.03); border: 1px solid var(--glass-line);
}
.plan-daily-list li::before {
  content: ''; position: absolute; left: 13px; top: 19px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); flex: none;
}
.plan-daily-list b { display: block; font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.plan-daily-list span { display: block; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }

.plan-check-list li {
  padding: 11px 13px; border-radius: var(--r-sm);
  background: rgba(139,124,246,.07); border: 1px solid rgba(139,124,246,.18);
}
.plan-check-list b { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.plan-check-list span { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }

.plan-goal-list li {
  padding: 11px 13px; border-radius: var(--r-sm);
  background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.18);
}
.plan-goal-list b { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.plan-goal-list span { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }

.plan-stage-list { counter-reset: st; }
.plan-stage-list li {
  counter-increment: st;
  position: relative; padding-left: 30px;
  padding: 10px 13px 10px 42px; border-radius: var(--r-sm);
  background: rgba(56,189,248,.055); border: 1px solid rgba(56,189,248,.16);
}
.plan-stage-list li::before {
  content: counter(st); position: absolute; left: 12px; top: 11px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10.5px; font-weight: 700; font-family: var(--mono);
  color: #04121b; background: linear-gradient(135deg, var(--mint), var(--cyan));
}
.plan-stage-list b { display: block; font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.plan-stage-list span { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }

.plan-empty {
  padding: 44px 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.plan-empty b { font-size: 15px; font-weight: 700; }
.plan-empty span { font-size: 12.5px; color: var(--ink-3); max-width: 52ch; line-height: 1.75; }

/* 演示模式提示条：仅演示账号可见 */
.demo-bar {
  display: flex; align-items: flex-start; gap: 9px;
  margin-bottom: 16px; padding: 11px 15px;
  border-radius: var(--r-sm);
  font-size: 12.5px; line-height: 1.65; color: var(--ink-2);
  background: rgba(56,189,248,.09); border: 1px solid rgba(56,189,248,.22);
}
.demo-bar[hidden] { display: none; }
.demo-bar svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--cyan); }

/* 空状态：该档案没有此板块的真实数据时，替代空白画布 */
.empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; text-align: center; padding: 18px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.022);
  border: 1px dashed var(--glass-line);
}
.empty[hidden] { display: none; }
.empty svg { width: 22px; height: 22px; color: var(--ink-4); flex: none; }
.empty b { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.empty span { font-size: 11.5px; color: var(--ink-4); line-height: 1.65; max-width: 36em; }

/* 卡片按数据显隐：隐藏后同栅格兄弟占满整行 */
.card[hidden] { display: none !important; }
.grid.g-2 > .fill { grid-column: 1 / -1; }

/* 健康数据首行：两张卡内容高度天然不同（横条图按条目数自适应），
   顶对齐比等高拉伸更耐看 */
#gridBody { align-items: start; }

/* 图例 */
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.legend span { font-size: 11.5px; color: var(--ink-3); display: inline-flex; align-items: center; }

/* ---------- 13. 指标卡 ---------- */
.metric {
  padding: 15px 16px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform .34s var(--ease-back), border-color .25s, background .25s, box-shadow .34s;
  position: relative; overflow: hidden;
}
.metric:hover {
  transform: translateY(-5px) translateZ(22px);
  border-color: var(--glass-line-2);
  background: var(--glass-strong);
  box-shadow: var(--sh-3);
}
.metric .m-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.metric .m-name { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.metric .m-val { font-size: 25px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.metric .m-val.warn { color: var(--amber); }
.metric .m-val.bad  { color: var(--rose); }
.metric .m-val.ok   { color: var(--mint); }
.metric .m-val .u { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-left: 3px; }
.metric .m-ref { font-size: 11px; color: var(--ink-4); margin-top: 6px; }
.metric .m-date { font-size: 10.5px; color: var(--ink-4); margin-top: 3px; }

/* ---------- 14. 评估报告条目 ---------- */
.find {
  border: 1px solid var(--glass-line);
  border-radius: var(--r-sm);
  margin-bottom: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.028);
  transition: border-color .3s, background .3s, transform .34s var(--ease-out);
}
.find:hover { border-color: var(--glass-line-2); background: rgba(255,255,255,.05); transform: translateX(3px); }
.find.open { background: rgba(255,255,255,.055); border-color: var(--glass-line-2); }

.find-head {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 13px;
  align-items: center; padding: 14px 16px; cursor: pointer; user-select: none;
}
.find-head .lv {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  border: 1px solid transparent;
}
.find-head .lv.alert { background: rgba(251,113,133,.14); color: var(--rose);  border-color: rgba(251,113,133,.28); }
.find-head .lv.warn  { background: rgba(251,191,36,.14);  color: var(--amber); border-color: rgba(251,191,36,.28); }
.find-head .lv.good  { background: rgba(46,230,168,.14);  color: var(--mint);  border-color: rgba(46,230,168,.28); }
.find-head .lv.info  { background: rgba(56,189,248,.14);  color: var(--cyan);  border-color: rgba(56,189,248,.28); }
.find-head .lv svg { width: 15px; height: 15px; }
.find-head .f-title { font-size: 14px; font-weight: 600; }
.find-head .f-sys { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.find-head .f-chev { color: var(--ink-4); transition: transform .38s var(--ease-back); }
.find-head .f-chev svg { width: 15px; height: 15px; }
.find.open .f-chev { transform: rotate(180deg); color: var(--mint); }

.find-body {
  max-height: 0; overflow: hidden;
  transition: max-height .5s var(--ease-io), padding .4s;
  padding: 0 16px;
}
.find.open .find-body { padding: 2px 16px 16px 59px; max-height: 620px; }
.find-body .f-sec { margin-top: 12px; }
.find-body .f-sec .lbl {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 5px;
}
.find-body .f-sec p { font-size: 13px; color: var(--ink-2); line-height: 1.72; }
.find-body .f-adv {
  margin-top: 12px; padding: 11px 13px;
  border-radius: 10px;
  background: rgba(46,230,168,.07);
  border-left: 2px solid var(--mint);
  font-size: 12.5px; color: var(--ink-2); line-height: 1.68;
}
.find-body .f-adv b { color: var(--mint); }

/* ---------- 15. 待办 ---------- */
.todo {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--glass-line);
  background: rgba(255,255,255,.028);
  margin-bottom: 9px;
  transition: transform .34s var(--ease-back), border-color .25s, background .25s, opacity .4s;
  position: relative; overflow: hidden;
}
.todo:hover { transform: translateY(-3px) translateZ(16px); border-color: var(--glass-line-2); background: rgba(255,255,255,.055); box-shadow: var(--sh-2); }
.todo.done { opacity: .48; }
.todo.done .t-title { text-decoration: line-through; text-decoration-color: var(--ink-4); }
/* 演示账号只读：待办不可勾选 */
.todo.locked { cursor: default; }
.todo.locked:hover { transform: none; background: rgba(255,255,255,.055); }
.todo.locked .t-check { opacity: .45; cursor: not-allowed; }
.todo.just-done { animation: todoDone .8s var(--ease-out); }
@keyframes todoDone {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.025); box-shadow: 0 0 0 1px rgba(46,230,168,.5), 0 0 40px rgba(46,230,168,.35); }
  100% { transform: scale(1); }
}

.todo .t-check { padding-top: 2px; }
.todo .t-check .box {
  width: 20px; height: 20px; border-radius: 7px;
  border: 1.5px solid var(--glass-line-2);
  background: rgba(255,255,255,.04);
  display: grid; place-items: center; cursor: pointer;
  transition: all .3s var(--ease-back);
}
.todo .t-check .box svg { width: 12px; height: 12px; color: #04121b; opacity: 0; transform: scale(.3) rotate(-45deg); transition: all .3s var(--ease-back); }
.todo.done .t-check .box { background: var(--mint); border-color: var(--mint); transform: scale(1.05); }
.todo.done .t-check .box svg { opacity: 1; transform: scale(1) rotate(0); }

.todo .t-title { font-size: 14px; font-weight: 600; line-height: 1.5; }
.todo .t-desc { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.65; }
.todo .t-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.todo .t-right { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: none; }
.todo .t-due { font-size: 11px; color: var(--ink-3); font-family: var(--mono); white-space: nowrap; }
.todo .t-owner { font-size: 10.5px; color: var(--ink-4); }

/* 优先级条 */
.todo::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--ink-4);
  transition: background .3s;
}
.todo.p0::before { background: linear-gradient(180deg, var(--rose), var(--orange)); }
.todo.p1::before { background: linear-gradient(180deg, var(--amber), var(--orange)); }
.todo.p2::before { background: linear-gradient(180deg, var(--cyan), var(--violet)); }

/* 待办进度环 */
.progress-ring { display: grid; place-items: center; position: relative; }
.progress-ring .pr-num {
  position: absolute; text-align: center;
}
.progress-ring .pr-num b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.progress-ring .pr-num span { font-size: 11px; color: var(--ink-3); }

/* 统计小块 */
.stat-mini { padding: 13px 15px; border-radius: var(--r-sm); background: rgba(255,255,255,.035); border: 1px solid var(--glass-line); transition: transform .32s var(--ease-back), background .25s; }
.stat-mini:hover { transform: translateY(-4px) translateZ(18px); background: rgba(255,255,255,.07); }
.stat-mini b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-mini span { font-size: 11.5px; color: var(--ink-3); }

/* 提示条 */
.note {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 15px; border-radius: var(--r-sm);
  font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
}
.note svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }
.note.alert { background: rgba(251,113,133,.09); border: 1px solid rgba(251,113,133,.22); }
.note.alert svg { color: var(--rose); }
.note.warn  { background: rgba(251,191,36,.09); border: 1px solid rgba(251,191,36,.22); }
.note.warn svg { color: var(--amber); }
.note.info  { background: rgba(56,189,248,.09); border: 1px solid rgba(56,189,248,.22); }
.note.info svg { color: var(--cyan); }
.note.ok    { background: rgba(46,230,168,.09); border: 1px solid rgba(46,230,168,.22); }
.note.ok svg { color: var(--mint); }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-weight: 700; font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-4); padding: 0 12px 9px 0; border-bottom: 1px solid var(--glass-line);
}
.tbl td { padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--ink-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; padding-right: 0; }
.tbl .hi { color: var(--rose); font-weight: 700; }
.tbl .lo { color: var(--amber); font-weight: 700; }
.tbl .ok { color: var(--mint); font-weight: 700; }

/* 滚动进入 */
.reveal { opacity: 0; transform: translateY(30px) rotateX(-8deg); }
.reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }

/* toast */
.toast-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: grid; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 17px; border-radius: 13px;
  background: rgba(16,22,42,.94);
  border: 1px solid var(--glass-line-2);
  backdrop-filter: blur(20px);
  box-shadow: var(--sh-3);
  font-size: 13px; font-weight: 500;
  animation: toastIn .5s var(--ease-back) both;
}
.toast.out { animation: toastOut .4s var(--ease-io) both; }
.toast svg { width: 16px; height: 16px; color: var(--mint); }
.toast.bad svg { color: var(--rose); }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px) scale(.9); } }

/* 加载遮罩 */
.loader { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: rgba(6,9,18,.92); backdrop-filter: blur(10px); }
.loader.on { display: grid; }
.loader .ring {
  width: 54px; height: 54px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.10);
  border-top-color: var(--mint);
  border-right-color: var(--cyan);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 16. 筛选 chip ---------- */
.chip-set { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 99px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--glass-line);
  color: var(--ink-3);
  cursor: pointer;
  transition: all .28s var(--ease-out);
  white-space: nowrap;
}
.chip:hover { color: var(--ink); border-color: var(--glass-line-2); background: rgba(255,255,255,.09); transform: translateY(-1px); }
.chip.active {
  color: #04121b; font-weight: 700;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(46,230,168,.28);
}

/* ---------- 17. 时间轴 ---------- */
.timeline { list-style: none; position: relative; padding: 0; margin: 0; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px;
  width: 2px; background: linear-gradient(180deg, var(--mint), rgba(139,124,246,.5), transparent);
  opacity: .45;
}
.tl-item { position: relative; padding: 0 0 20px 30px; }
.tl-item::before {
  content: ""; position: absolute; left: 2px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-deep); border: 2px solid var(--mint);
  transition: all .3s var(--ease-back);
}
.tl-item:hover::before { transform: scale(1.35); box-shadow: 0 0 0 5px rgba(46,230,168,.14); }
.tl-item.crit::before { border-color: var(--rose); }
.tl-item.warn::before { border-color: var(--amber); }
.tl-date { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.tl-item .t { font-weight: 700; font-size: 14px; margin: 3px 0 4px; }
.tl-item .d { font-size: 13px; color: var(--ink-3); line-height: 1.65; }

/* ---------- 18. 冲突台账 ---------- */
.conflict {
  padding: 13px 15px; border-radius: var(--r-sm);
  background: rgba(251,191,36,.07);
  border: 1px solid rgba(251,191,36,.20);
  margin-bottom: 10px;
  transition: transform .32s var(--ease-out), background .25s;
}
.conflict:hover { transform: translateX(4px); background: rgba(251,191,36,.11); }
.conflict .c-title { font-size: 13.5px; font-weight: 700; color: var(--amber); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.conflict .c-title .pill-id {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 99px;
  background: rgba(251,191,36,.18); border: 1px solid rgba(251,191,36,.32);
}
.conflict .c-body { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.conflict .c-body ul { margin: 6px 0 0 16px; }
.conflict .c-body li { margin-top: 4px; }
.conflict .c-body li::marker { color: var(--amber); }

/* ---------- 19. 报告摘要卡 ---------- */
.sum-card { padding: 18px 20px; border-radius: var(--r); position: relative; overflow: hidden; }
.sum-card .s-num { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sum-card .s-lbl { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.sum-card .s-sub { font-size: 11px; color: var(--ink-4); margin-top: 8px; }
.sum-card::after {
  content: ""; position: absolute; width: 120px; height: 120px;
  right: -40px; bottom: -50px; border-radius: 50%;
  background: radial-gradient(circle, currentColor, transparent 68%);
  opacity: .14; pointer-events: none;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .aurora { animation: none; }
}

/* ============================================================
   方案块响应式 —— 必须放在基础规则之后。
   媒体查询不增加优先级，同选择器时「后写的赢」：
   基础规则若排在 @media 之后，窄屏的 1fr 会被基础规则覆盖。
   ============================================================ */
@media (max-width: 1100px) {
  .plan-blocks.c3 { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
}
@media (max-width: 860px) {
  .plan-blocks.c3 { grid-template-columns: 1fr; }
}
