/* ==========================================================================
   诊股 DIAGNOS · 视觉系统 v2
   深空科技风：近黑底 + 电光青 + 数据网格 + 玻璃拟态
   ========================================================================== */

:root {
  --bg-0: #05070c;
  --bg-1: #0a0e17;
  --bg-2: #0f1421;
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .05);
  --ink: #eef3fb;
  --ink-2: #a7b3c7;
  --ink-3: #66738a;
  --cyan: #22e6c8;
  --cyan-d: #0bb89e;
  --blue: #3d8bff;
  --violet: #8b6cff;
  --amber: #ffb340;
  --red: #ff5d6c;
  --green: #2ee59d;
  --radius: 20px;
  --glow-cyan: 0 0 24px rgba(34, 230, 200, .28);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #070a10;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(61, 139, 255, .16), transparent 62%),
    radial-gradient(700px 520px at 96% 6%, rgba(34, 230, 200, .10), transparent 60%),
    radial-gradient(800px 700px at 60% 110%, rgba(139, 108, 255, .10), transparent 65%),
    #070a10;
  min-height: 100vh;
}

button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }

.stage { display: flex; min-height: 100vh; }

/* ================= 左侧说明 ================= */
.aside {
  width: 336px; flex: 0 0 336px;
  padding: 40px 28px 32px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, .05);
  scrollbar-width: none;
}
.aside::-webkit-scrollbar { display: none; }

.aside-logo { display: flex; align-items: center; gap: 11px; }
.aside-logo .mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(145deg, #16d9bd, #1f78ff 60%, #7a5cff);
  display: grid; place-items: center; color: #04080e;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 12px 28px -10px rgba(34,230,200,.7);
  position: relative; overflow: hidden;
}
.aside-logo .mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.5), transparent 45%);
  mix-blend-mode: overlay;
}
.aside-logo h1 { font-size: 19px; margin: 0; letter-spacing: .5px; font-weight: 700; }
.aside-logo p { margin: 3px 0 0; font-size: 9.5px; color: var(--ink-3); letter-spacing: 2.2px; font-weight: 600; }

.aside-lead { font-size: 12.5px; line-height: 1.85; color: var(--ink-2); margin: 0; }
.aside-lead b { color: var(--cyan); font-weight: 600; }

.aside-sec-title {
  font-size: 9.5px; font-weight: 700; letter-spacing: 2px;
  color: var(--ink-3); margin: 8px 0 -8px; display: flex; align-items: center; gap: 7px;
}
.aside-sec-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.08), transparent); }

.aside-list { display: flex; flex-direction: column; gap: 1px; }
.aside-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 10px; border-radius: 10px;
  font-size: 12px; line-height: 1.5; color: var(--ink-2);
  transition: background .2s, color .2s; text-align: left; width: 100%;
}
.aside-item:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.aside-item .idx {
  flex: 0 0 auto; font-size: 9.5px; font-weight: 700; color: var(--cyan);
  letter-spacing: .5px; padding-top: 2px; font-variant-numeric: tabular-nums;
}
.aside-item b { color: var(--ink); font-weight: 600; }

.aside-foot {
  margin-top: auto; font-size: 10.5px; line-height: 1.8; color: var(--ink-3);
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06);
}
.aside-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10px;
  padding: 5px 10px; border-radius: 999px; background: rgba(34,230,200,.08);
  border: 1px solid rgba(34,230,200,.22); color: var(--cyan); letter-spacing: .3px;
  margin-bottom: 10px;
}

/* ================= 手机框 ================= */
.device-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }

.device {
  width: 400px; height: 860px; max-height: calc(100vh - 48px);
  background: var(--bg-0);
  border-radius: 44px; position: relative; overflow: hidden;
  box-shadow:
    0 0 0 9px #0d1119,
    0 0 0 10px rgba(255,255,255,.09),
    0 0 70px -10px rgba(34,230,200,.18),
    0 44px 90px -30px rgba(0,0,0,.9);
  display: flex; flex-direction: column;
}

/* 屏幕内背景层 */
.bg-layer {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(420px 300px at 18% 0%, rgba(61,139,255,.20), transparent 62%),
    radial-gradient(360px 280px at 96% 12%, rgba(34,230,200,.12), transparent 62%),
    radial-gradient(400px 420px at 50% 104%, rgba(139,108,255,.12), transparent 65%),
    #05070c;
}
.bg-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(120,160,220,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,220,.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 32%, #000 0%, rgba(0,0,0,.55) 55%, transparent 88%);
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 0%, rgba(0,0,0,.55) 55%, transparent 88%);
}
.bg-scan {
  position: absolute; left: 0; right: 0; height: 1px; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(34,230,200,.5), transparent);
  animation: scan 7s linear infinite; opacity: .5;
}
@keyframes scan {
  0% { top: 8%; opacity: 0; }
  12% { opacity: .6; }
  88% { opacity: .6; }
  100% { top: 92%; opacity: 0; }
}

.statusbar {
  height: 48px; flex: 0 0 48px; position: relative; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 24px 0 30px; font-size: 12px; font-weight: 600; letter-spacing: .3px;
  color: var(--ink);
}
.statusbar .right { display: flex; align-items: center; gap: 5px; opacity: .9; }
.notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 25px; border-radius: 15px; background: #000;
  z-index: 40; border: 1px solid rgba(255,255,255,.06);
}

.screen {
  flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; z-index: 5;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 104px;
}
.screen::-webkit-scrollbar { display: none; }

/* 导航栏 */
.tabbar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px; z-index: 25;
  background: linear-gradient(180deg, rgba(10,14,23,.55), rgba(5,7,12,.96) 55%);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: flex-start; padding: 10px 6px 0;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 9.5px; color: var(--ink-3); padding: 4px 0; position: relative;
  transition: color .22s;
}
.tab svg { width: 21px; height: 21px; stroke-width: 1.7; transition: transform .25s; }
.tab.active { color: var(--cyan); }
.tab.active svg { transform: translateY(-1px); filter: drop-shadow(0 0 6px rgba(34,230,200,.7)); }
.tab.active::before {
  content: ''; position: absolute; top: -10px; width: 18px; height: 2px; border-radius: 2px;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}

/* ================= 通用 ================= */
.pad { padding: 0 18px; }

.sec-title { display: flex; align-items: center; justify-content: space-between; padding: 26px 18px 12px; }
.sec-title h3 { font-size: 15px; margin: 0; letter-spacing: .2px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sec-title h3::before {
  content: ''; width: 3px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 8px rgba(34,230,200,.8);
}
.sec-title span { font-size: 10.5px; color: var(--ink-3); letter-spacing: .3px; }

.card {
  background: linear-gradient(160deg, rgba(255,255,255,.065), rgba(255,255,255,.028));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.t-up { color: var(--red); }
.t-down { color: var(--green); }
.t-warn { color: var(--amber); }
.muted { color: var(--ink-3); }

.tag {
  display: inline-flex; align-items: center; font-size: 9.5px; padding: 3px 7px; border-radius: 5px;
  line-height: 1.4; white-space: nowrap; font-weight: 600; letter-spacing: .2px;
  border: 1px solid transparent;
}
.tag.good { background: rgba(46,229,157,.10); color: var(--green); border-color: rgba(46,229,157,.22); }
.tag.warn { background: rgba(255,179,64,.10); color: var(--amber); border-color: rgba(255,179,64,.22); }
.tag.bad  { background: rgba(255,93,108,.10); color: var(--red); border-color: rgba(255,93,108,.22); }
.tag.blue { background: rgba(61,139,255,.12); color: #6fb0ff; border-color: rgba(61,139,255,.25); }
.tag.cyan { background: rgba(34,230,200,.10); color: var(--cyan); border-color: rgba(34,230,200,.25); }
.tag.gray { background: rgba(255,255,255,.06); color: var(--ink-2); border-color: rgba(255,255,255,.08); }

/* ================= 首页 ================= */
.hero { padding: 4px 18px 0; }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.hero-top .eyebrow {
  font-size: 9.5px; letter-spacing: 2.6px; color: var(--cyan); font-weight: 700;
  display: flex; align-items: center; gap: 6px; margin-bottom: 5px;
}
.hero-top .live-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan); animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.hero-top h2 { font-size: 25px; margin: 0; letter-spacing: -.5px; font-weight: 700; }
.hero-top .date { font-size: 10.5px; color: var(--ink-3); margin-top: 5px; letter-spacing: .3px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--ink-2);
  backdrop-filter: blur(8px); transition: background .2s;
}
.icon-btn:active { background: rgba(255,255,255,.12); }

.searchbox {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 15px; padding: 13px 14px;
  transition: border-color .25s, box-shadow .25s;
  position: relative;
}
.searchbox::after {
  content: ''; position: absolute; inset: -1px; border-radius: 15px; pointer-events: none;
  background: linear-gradient(120deg, rgba(34,230,200,.35), transparent 40%, rgba(61,139,255,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; opacity: .55;
}
.searchbox input {
  border: none; outline: none; flex: 1; font-size: 13.5px; background: transparent;
  color: var(--ink); font-family: inherit; min-width: 0;
}
.searchbox input::placeholder { color: #55627a; }
.searchbox .go {
  font-size: 10.5px; font-weight: 700; color: #04080e; padding: 5px 10px; border-radius: 7px;
  background: linear-gradient(135deg, var(--cyan), #38d2ff); letter-spacing: .5px;
  box-shadow: 0 0 16px -2px rgba(34,230,200,.7);
}

.hot-row { display: flex; gap: 7px; overflow-x: auto; padding: 13px 18px 2px; scrollbar-width: none; }
.hot-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; font-size: 11.5px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.045); color: var(--ink-2);
  border: 1px solid rgba(255,255,255,.075); transition: all .2s;
  display: inline-flex; align-items: center; gap: 5px;
}
.chip.primary {
  background: linear-gradient(135deg, rgba(34,230,200,.16), rgba(61,139,255,.16));
  color: var(--cyan); border-color: rgba(34,230,200,.35);
  box-shadow: 0 0 18px -6px rgba(34,230,200,.6);
}

/* 扫描主卡 */
.scan-card {
  margin: 18px 18px 0; padding: 18px; border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(155deg, rgba(34,230,200,.10), rgba(61,139,255,.06) 45%, rgba(255,255,255,.02));
  border: 1px solid rgba(34,230,200,.20);
  cursor: pointer;
}
.scan-card::before {
  content: ''; position: absolute; width: 240px; height: 240px; right: -100px; top: -120px;
  background: radial-gradient(circle, rgba(34,230,200,.32), transparent 68%);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.18); opacity: .5; } }
.scan-card .sc-tag {
  font-size: 9px; letter-spacing: 1.8px; color: var(--cyan); font-weight: 700; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.scan-card .sc-name { font-size: 17px; font-weight: 600; letter-spacing: .2px; position: relative; z-index: 2; }
.scan-card .sc-code { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; letter-spacing: .6px; position: relative; z-index: 2; }
.scan-card .sc-mid { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 18px; position: relative; z-index: 2; }
.scan-card .sc-price { font-size: 30px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.scan-card .sc-chg { font-size: 11.5px; font-weight: 600; margin-top: 5px; }
.scan-card .sc-ring { position: relative; }
.scan-card .sc-score { font-size: 34px; font-weight: 700; letter-spacing: -1.5px; line-height: 1; color: var(--cyan); }
.scan-card .sc-score small { font-size: 11px; color: var(--ink-3); font-weight: 500; margin-left: 3px; }
.scan-card .sc-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(34,230,200,.14);
  display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2;
}
.scan-card .sc-foot span { font-size: 10.5px; color: var(--ink-2); }
.scan-cta {
  font-size: 10.5px; font-weight: 700; color: #04080e; padding: 6px 12px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), #45d9ff); display: inline-flex; align-items: center; gap: 5px;
  box-shadow: 0 0 20px -4px rgba(34,230,200,.8);
}

/* 雷达小图 */
.radar-mini { position: absolute; right: -26px; bottom: -34px; opacity: .28; pointer-events: none; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px 18px 0; }
.g-item {
  border-radius: 15px; padding: 12px 3px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 10.5px; color: var(--ink-2);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  transition: transform .15s, background .2s;
}
.g-item:active { transform: scale(.96); background: rgba(255,255,255,.08); }
.g-item .g-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }

/* 列表 */
.list { margin: 0 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.row {
  display: flex; align-items: center; gap: 12px; padding: 14px 15px;
  border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .18s;
}
.row:last-child { border-bottom: none; }
.row:active { background: rgba(255,255,255,.04); }
.row .r-main { flex: 1; min-width: 0; }
.row .r-name { font-size: 13px; font-weight: 500; }
.row .r-desc { font-size: 10.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.55; }
.row .r-right { text-align: right; flex: 0 0 auto; }
.row .r-val { font-size: 13.5px; font-weight: 600; }
.row .r-sub { font-size: 10px; color: var(--ink-3); margin-top: 3px; }

/* ================= 个股页 ================= */
.stock-head { padding: 2px 18px 16px; }
.sh-top { display: flex; align-items: center; gap: 10px; }
.sh-top h2 { font-size: 18px; margin: 0; letter-spacing: .2px; font-weight: 600; }
.sh-tags { display: flex; gap: 4px; margin-left: auto; }
.sh-price { display: flex; align-items: flex-end; gap: 10px; margin-top: 16px; }
.sh-price .big { font-size: 38px; font-weight: 700; letter-spacing: -1.6px; line-height: 1; }
.sh-price .chg { font-size: 12.5px; font-weight: 600; padding-bottom: 3px; }
.sh-meta {
  display: flex; gap: 0; margin-top: 14px; font-size: 10.5px; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.025);
}
.sh-meta > div {
  flex: 1; padding: 8px 4px; text-align: center; border-right: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 3px;
}
.sh-meta > div:last-child { border-right: none; }
.sh-meta b { color: var(--ink); font-weight: 600; font-size: 11.5px; }

/* 评分主卡 */
.score-hero {
  margin: 4px 18px 0; padding: 18px; border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(155deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  border: 1px solid var(--line); backdrop-filter: blur(14px);
  display: flex; align-items: center; gap: 16px;
}
.score-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(180px 180px at 12% 20%, rgba(34,230,200,.14), transparent 70%);
  pointer-events: none;
}
.gauge-wrap { position: relative; width: 112px; height: 112px; flex: 0 0 112px; }
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-center .v { font-size: 30px; font-weight: 700; letter-spacing: -1.4px; line-height: 1; }
.gauge-center .l { font-size: 8.5px; color: var(--ink-3); margin-top: 4px; letter-spacing: 1.2px; }
.score-side { flex: 1; min-width: 0; position: relative; z-index: 2; }
.score-side .verdict { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.score-side .verdict-sub { font-size: 10.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.7; }
.score-side .pills { display: flex; gap: 5px; margin-top: 10px; flex-wrap: wrap; }

/* 维度网格 */
.dim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 18px; }
.dim-card {
  border-radius: 16px; padding: 13px; position: relative; overflow: hidden; text-align: left;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.022));
  border: 1px solid rgba(255,255,255,.07); transition: transform .15s, border-color .2s;
}
.dim-card:active { transform: scale(.97); border-color: rgba(34,230,200,.35); }
.dim-card .dc-name { font-size: 11.5px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.dim-card .dc-score { font-size: 24px; font-weight: 700; letter-spacing: -1px; margin-top: 8px; line-height: 1; }
.dim-card .dc-score small { font-size: 9px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.dim-card .dc-level { font-size: 9.5px; color: var(--ink-3); margin-top: 5px; }
.dim-card .bar { height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.07); margin-top: 9px; overflow: hidden; }
.dim-card .bar i { display: block; height: 100%; border-radius: 2px; box-shadow: 0 0 8px currentColor; }
.dim-card .weight { position: absolute; top: 13px; right: 12px; font-size: 8.5px; color: #4d596e; letter-spacing: .3px; }

/* 雷达图卡片 */
.radar-card { margin: 0 18px; padding: 6px 10px 12px; }
.radar-legend { display: flex; justify-content: center; gap: 16px; font-size: 9.5px; color: var(--ink-3); padding-bottom: 2px; }
.radar-legend i { display: inline-block; width: 14px; height: 2px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }

/* 明细项 */
.check-item { padding: 14px 15px; border-bottom: 1px solid var(--line-2); }
.check-item:last-child { border-bottom: none; }
.ci-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ci-label { font-size: 10px; color: var(--ink-3); letter-spacing: .3px; }
.ci-value { font-size: 13px; font-weight: 600; margin-top: 5px; line-height: 1.55; }
.ci-note { font-size: 10.5px; color: var(--ink-3); margin-top: 7px; line-height: 1.7; }

.detail-head { padding: 4px 18px 16px; }
.detail-score-row { display: flex; align-items: center; gap: 15px; }
.detail-score-row .ds { font-size: 52px; font-weight: 700; letter-spacing: -2.5px; line-height: 1; }
.detail-score-row .dl { font-size: 10px; color: var(--ink-3); letter-spacing: .2px; }

/* 风险矩阵 */
.matrix { margin: 0 18px; padding: 13px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.matrix-grid { display: grid; grid-template-columns: 24px repeat(5, 1fr); grid-template-rows: repeat(5, 1fr) 20px; gap: 4px; aspect-ratio: 1.05; }
.mx-cell { border-radius: 5px; display: grid; place-items: center; position: relative; border: 1px solid rgba(255,255,255,.03); }
.mx-cell span {
  font-size: 8.5px; font-weight: 700; width: 15px; height: 15px; border-radius: 50%;
  background: rgba(5,7,12,.78); display: grid; place-items: center; color: #fff;
  border: 1px solid rgba(255,255,255,.22);
}
.mx-axis-y, .mx-axis-x { display: grid; place-items: center; font-size: 8.5px; color: var(--ink-3); }
.mx-legend { display: flex; justify-content: space-between; font-size: 9px; color: var(--ink-3); margin-top: 9px; }

/* 时间轴 */
.timeline { margin: 0 18px; position: relative; padding-left: 20px; }
.timeline::before {
  content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, rgba(34,230,200,.6), rgba(61,139,255,.35), transparent);
}
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 4px; }
.tl-dot {
  position: absolute; left: -20px; top: 4px; width: 9px; height: 9px; border-radius: 50%;
  background: #0a0e17; border: 1.5px solid #3a465c;
}
.tl-item.key .tl-dot { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.tl-date { font-size: 9.5px; color: var(--cyan); letter-spacing: 1px; font-weight: 600; }
.tl-title { font-size: 12.5px; font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.tl-desc { font-size: 10.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.7; }

/* 情景推演 */
.scn-controls { margin: 0 18px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.scn-ctl { margin-bottom: 17px; }
.scn-ctl:last-child { margin-bottom: 0; }
.scn-ctl-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; color: var(--ink-2); }
.scn-ctl-top b { font-size: 14px; color: var(--cyan); letter-spacing: .2px; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(34,230,200,.6), rgba(61,139,255,.35)); margin: 14px 0 6px; outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #061019; border: 2px solid var(--cyan); box-shadow: 0 0 12px rgba(34,230,200,.9); cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: #061019;
  border: 2px solid var(--cyan); box-shadow: 0 0 12px rgba(34,230,200,.9); cursor: pointer;
}
.scn-ticks { display: flex; justify-content: space-between; font-size: 9px; color: #4d596e; }

.scn-result { margin: 14px 18px 0; padding: 16px; border-radius: 18px; border: 1px solid rgba(34,230,200,.16); background: linear-gradient(155deg, rgba(34,230,200,.07), rgba(255,255,255,.02)); }
.scn-row { display: flex; align-items: baseline; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.07); font-size: 11.5px; color: var(--ink-2); }
.scn-row:last-of-type { border-bottom: none; }
.scn-row b { font-size: 14.5px; font-weight: 700; color: var(--ink); }

/* 结论卡 */
.verdict-card {
  margin: 0 18px; padding: 18px; border-radius: 20px; position: relative; overflow: hidden;
  background: linear-gradient(158deg, rgba(34,230,200,.10), rgba(61,139,255,.05) 45%, rgba(255,255,255,.02));
  border: 1px solid rgba(34,230,200,.20);
}
.verdict-card::after {
  content: ''; position: absolute; width: 200px; height: 200px; right: -90px; bottom: -100px;
  background: radial-gradient(circle, rgba(34,230,200,.22), transparent 70%);
}
.verdict-head { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 2; }
.verdict-badge {
  font-size: 10.5px; font-weight: 700; padding: 6px 11px; border-radius: 8px; letter-spacing: .3px;
  background: rgba(255,179,64,.12); color: var(--amber); border: 1px solid rgba(255,179,64,.3);
}
.verdict-body { font-size: 11.5px; line-height: 1.9; color: var(--ink-2); margin-top: 12px; position: relative; z-index: 2; }
.verdict-body p { margin: 0 0 9px; }
.verdict-body b { color: var(--ink); }
.bullet { display: flex; gap: 8px; font-size: 11.5px; line-height: 1.75; color: var(--ink-2); margin-bottom: 9px; }
.bullet .bd { flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; margin-top: 8px; box-shadow: 0 0 7px currentColor; }

/* 加载 */
.loading-mask {
  position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  background: radial-gradient(360px 360px at 50% 40%, rgba(34,230,200,.10), transparent 70%), rgba(5,7,12,.97);
  backdrop-filter: blur(12px);
}
.scanner { width: 168px; height: 168px; position: relative; }
.scanner .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(34,230,200,.22);
}
.scanner .ring:nth-child(2) { inset: 20px; border-color: rgba(34,230,200,.14); }
.scanner .ring:nth-child(3) { inset: 42px; border-color: rgba(34,230,200,.10); border-style: dashed; }
.scanner .sweep {
  position: absolute; inset: 8px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(34,230,200,.42) 40deg, transparent 80deg);
  animation: spin 2.2s linear infinite;
  mask: radial-gradient(circle, transparent 30%, #000 32%);
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 32%);
}
.scanner .core {
  position: absolute; inset: 62px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,230,200,.9), rgba(34,230,200,.1) 70%);
  box-shadow: 0 0 30px rgba(34,230,200,.6); animation: breathe 1.8s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-steps { display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: #45526a; letter-spacing: .3px; }
.loader-steps .done { color: var(--cyan); }
.loader-steps .done::before { content: '✓ '; }

/* 免责 */
.disclaimer {
  margin: 22px 18px 0; font-size: 9.5px; line-height: 1.8; color: #4a566b;
  padding: 13px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05);
}
.disclaimer b { color: #6b7a92; }

/* 合规声明条：画像页顶部常驻 */
.compliance-note {
  margin: 10px 18px 0;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 9.5px;
  line-height: 1.75;
  color: #8a94a6;
  background: linear-gradient(135deg, rgba(255,179,64,.10), rgba(255,179,64,.03));
  border: 1px solid rgba(255,179,64,.24);
}
.compliance-note b {
  display: block;
  color: var(--amber);
  font-size: 10px;
  letter-spacing: .4px;
  margin-bottom: 3px;
}

.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 14px; border-radius: 14px; font-size: 13.5px; font-weight: 700; letter-spacing: .3px;
  background: linear-gradient(135deg, var(--cyan), #33c8ff); color: #04080e;
  box-shadow: 0 8px 26px -8px rgba(34,230,200,.7);
}
.btn-ghost {
  width: 100%; padding: 13px; border-radius: 14px; font-size: 12.5px; color: var(--ink-2);
  background: rgba(255,255,255,.045); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-ghost:active { background: rgba(255,255,255,.09); }

/* 自选 / 我的 */
.watch-item { display: flex; align-items: center; gap: 12px; padding: 14px 15px; border-bottom: 1px solid var(--line-2); }
.watch-item:last-child { border-bottom: none; }
.watch-avatar {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 38px;
  font-size: 12px; font-weight: 700; color: #04080e;
  background: linear-gradient(150deg, var(--cyan), #3d8bff);
}
.watch-avatar.alt { background: linear-gradient(150deg, #8b6cff, #3d8bff); color: #fff; }
.watch-avatar.alt2 { background: linear-gradient(150deg, #ffb340, #ff7a59); }
.mini-bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.07); margin-top: 7px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: 2px; }

.profile-head { padding: 6px 18px 0; display: flex; align-items: center; gap: 14px; }
.avatar-lg {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(34,230,200,.9), rgba(61,139,255,.9));
  color: #04080e; font-size: 20px; font-weight: 800;
  box-shadow: 0 0 26px -8px rgba(34,230,200,.8);
}
.stat-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 18px 0; }
.stat-box {
  padding: 13px 10px; border-radius: 14px; text-align: center;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.07);
}
.stat-box .v { font-size: 19px; font-weight: 700; letter-spacing: -.6px; }
.stat-box .k { font-size: 9.5px; color: var(--ink-3); margin-top: 4px; }

/* 评分环动画 */
@keyframes ringIn { from { stroke-dasharray: 0 999; } }

/* ================= 响应式 ================= */
@media (max-width: 1180px) {
  .aside { display: none; }
  .stage { justify-content: center; }
}

@media (max-width: 760px) {
  body { background: #05070c; }
  .device-wrap { padding: 0; }
  .device {
    width: 100%; height: 100vh; height: 100dvh; max-height: none;
    border-radius: 0; box-shadow: none;
  }
  .notch { display: none; }
  .statusbar { height: 28px; flex: 0 0 28px; padding-top: 0; }
  .screen { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { height: calc(76px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
}

/* 首屏进入动画 */
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: riseIn .45s cubic-bezier(.22,.9,.3,1) both; }
.d1 { animation-delay: .04s; } .d2 { animation-delay: .08s; } .d3 { animation-delay: .12s; }
.d4 { animation-delay: .16s; } .d5 { animation-delay: .2s; } .d6 { animation-delay: .24s; }

/* ================= 搜索联想 ================= */
.searchbox input { padding-right: 4px; }
#searchMsg { display: none; }

.suggest {
  margin-top: 10px; border-radius: 14px; overflow: hidden;
  background: rgba(14, 20, 30, .96);
  border: 1px solid rgba(34, 230, 200, .22);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9), 0 0 24px -10px rgba(34, 230, 200, .5);
  backdrop-filter: blur(16px);
  animation: riseIn .2s ease both;
}
.sug-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border-bottom: 1px solid rgba(255, 255, 255, .05);
  cursor: pointer; transition: background .15s;
}
.sug-item:last-child { border-bottom: none; }
.sug-item:active { background: rgba(34, 230, 200, .08); }
.sug-avatar {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: linear-gradient(150deg, rgba(34, 230, 200, .85), rgba(61, 139, 255, .85));
  color: #04080e;
}
.sug-name { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; }
.sug-meta { font-size: 10px; color: #5d6a80; margin-top: 3px; letter-spacing: .2px; }
.sug-empty {
  margin-top: 10px; padding: 14px; border-radius: 12px; font-size: 11px;
  color: var(--ink-3); background: rgba(255, 255, 255, .035);
  border: 1px dashed rgba(255, 255, 255, .10); text-align: center; line-height: 1.6;
}
#searchInput:focus { outline: none; }
.searchbox:focus-within {
  border-color: rgba(34, 230, 200, .45);
  box-shadow: 0 0 0 3px rgba(34, 230, 200, .08);
}
