/* ============================================================================
 * QuantPick 牛股智选 — 设计系统 v3 (深海蓝金 · 专业行情终端版)
 * 深海蓝底 + 鎏金点缀 · 专业沉稳聚焦 · 红涨绿跌铁律 · 长时间盯盘不刺眼
 * ========================================================================== */
:root {
  /* 色彩:深海蓝 + 鎏金(专业/聚焦/招财) */
  --bg-0: #0b1220;
  --bg-1: #0f1829;
  --bg-2: #141f33;
  --bg-3: #1a2740;
  --panel: rgba(21, 33, 56, 0.72);
  --panel-2: rgba(15, 24, 42, 0.66);
  --line: rgba(160, 190, 255, 0.10);
  --line-2: rgba(160, 190, 255, 0.20);
  --txt-1: #e9effc;
  --txt-2: #a9b9d9;
  --txt-3: #7488ac;
  --up: #f5222d;        /* A鑲￠搧寰?绾㈡定 */
  --down: #00b578;      /* 绿跌 */
  --up-bg: rgba(245, 34, 45, 0.14);
  --down-bg: rgba(0, 181, 120, 0.12);
  --brand: #2e6be6;     /* 深海蓝(专业行情蓝) */
  --brand-2: #38bdf8;   /* 浜潚钃?*/
  --gold: #f5b301;
  --gold-2: #ffd34d;
  --violet: #a78bfa;
  --warn: #ff9f1c;
  --danger: #f5222d;
  --ok: #00b578;
  --shadow: 0 12px 40px rgba(2, 8, 20, 0.55);
  --radius: 14px;
  --radius-sm: 9px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --num: 'DIN Alternate', 'Bahnschrift', 'Segoe UI', var(--font);
--kai: 'KaiTi', 'STKaiti', 'Kaiti SC', var(--font);   /* 吉祥文案书法体 */
}
[data-up="true"] { color: var(--up); }
[data-up="false"] { color: var(--down); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--txt-1);
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(46, 107, 230, 0.40); color: #fff; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(140, 170, 230, 0.22); border-radius: 8px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: rgba(140, 170, 230, 0.38); }

a { color: var(--gold-2); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: 0.2px; }

/* ---------------- 背景层(深海蓝极光) ---------------- */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(46, 107, 230, 0.16), transparent 60%),
    radial-gradient(800px 480px at 88% -6%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(700px 700px at 50% 110%, rgba(245, 179, 1, 0.06), transparent 60%),
    linear-gradient(180deg, #0e1728 0%, #0b1220 100%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 175, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 175, 240, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------------- 鍔犺浇灞?---------------- */
#preloader {
  position: fixed; inset: 0; z-index: 999; background: var(--bg-0);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity 0.5s ease, visibility 0.5s;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.pre-logo {
  width: 66px; height: 66px; border-radius: 20px;
  background: linear-gradient(135deg, #1e4fbf, var(--brand) 45%, var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 30px; color: #fff; font-family: var(--kai);
  border: 1px solid rgba(255, 211, 77, 0.55);
  box-shadow: 0 0 46px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: prePulse 1.6s ease-in-out infinite;
}
@keyframes prePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(56, 189, 248, 0.3); }
  50% { transform: scale(1.06); box-shadow: 0 0 60px rgba(46, 107, 230, 0.5); }
}
.pre-bar { width: 220px; height: 4px; border-radius: 4px; background: rgba(160, 190, 255, 0.12); overflow: hidden; border: 1px solid rgba(56, 189, 248, 0.25); }
.pre-bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--gold)); animation: preSlide 1.1s ease-in-out infinite; }
@keyframes preSlide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.pre-txt { color: var(--gold); font-size: 12px; letter-spacing: 4px; font-family: var(--kai); }

/* ---------------- 登录页(深海蓝金) ---------------- */
.auth-screen {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1000px 600px at 70% -10%, rgba(56, 189, 248, 0.09), transparent 55%),
    radial-gradient(900px 700px at 10% 110%, rgba(46, 107, 230, 0.16), transparent 55%),
    var(--bg-0);
}
/* 婕傛诞閲戝竵 */
.auth-screen::before, .auth-screen::after {
  content: '馃獧'; position: fixed; font-size: 34px; opacity: 0.14; pointer-events: none;
  animation: coinFloat 7s ease-in-out infinite;
}
.auth-screen::before { left: 12%; top: 18%; }
.auth-screen::after { right: 13%; bottom: 16%; animation-delay: 2.4s; }
@keyframes coinFloat { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-16px) rotate(8deg); } }

.auth-card {
  position: relative; width: 410px; max-width: 92vw;
  background: linear-gradient(180deg, rgba(22, 34, 58, 0.92), rgba(12, 19, 34, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.30); border-radius: 22px; padding: 42px 38px 30px;
  box-shadow: 0 0 0 1px rgba(46, 107, 230, 0.16), var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
/* 顶部鎏金压边 */
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--brand-2) 18%, var(--gold-2) 50%, var(--brand-2) 82%, transparent);
}
/* 鍥涜鏋佸厜绾?*/
.auth-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120px 60px at 0% 100%, rgba(56, 189, 248, 0.10), transparent 70%),
    radial-gradient(120px 60px at 100% 0%, rgba(245, 179, 1, 0.08), transparent 70%);
}
/* 鍚夎█妯箙 */
.auth-wish {
  margin: -6px 0 20px; text-align: center;
  font-family: var(--kai); font-size: 15px; letter-spacing: 3px; color: var(--gold-2);
  text-shadow: 0 0 18px rgba(245, 179, 1, 0.35);
  background: linear-gradient(90deg, transparent, rgba(245, 179, 1, 0.10), transparent);
  border-top: 1px dashed rgba(255, 211, 77, 0.25);
  border-bottom: 1px dashed rgba(255, 211, 77, 0.25);
  padding: 7px 0;
}
.auth-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; position: relative; z-index: 1; }
.auth-logo .logo-badge {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #1e4fbf, var(--brand) 45%, var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 24px; color: #fff; font-family: var(--kai);
  border: 1px solid rgba(255, 211, 77, 0.5);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.auth-title { font-size: 21px; font-weight: 700; letter-spacing: 0.5px; }
.auth-sub { color: var(--gold); font-size: 12px; margin-top: 3px; letter-spacing: 0.5px; }
.auth-tabs { display: flex; gap: 6px; margin: 24px 0 20px; background: rgba(10, 17, 31, 0.7); border-radius: 10px; padding: 4px; border: 1px solid var(--line); }
.auth-tabs button { flex: 1; padding: 8px 0; border-radius: 8px; font-size: 13.5px; color: var(--txt-2); transition: all 0.25s; }
.auth-tabs button.on {
  background: linear-gradient(135deg, rgba(46, 107, 230, 0.42), rgba(245, 179, 1, 0.26));
  color: #fff; font-weight: 600;
  box-shadow: 0 2px 14px rgba(245, 179, 1, 0.25);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--txt-2); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: rgba(9, 15, 28, 0.75); border: 1px solid var(--line-2);
  color: var(--txt-1); font-size: 14px; outline: none; transition: border 0.2s, box-shadow 0.2s;
}
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.16); }
.auth-btn {
  width: 100%; padding: 12px; border-radius: 10px; margin-top: 6px;
  background: linear-gradient(135deg, #1e4fbf, var(--brand) 50%, var(--gold));
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 3px;
  box-shadow: 0 6px 22px rgba(46, 107, 230, 0.4);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.auth-btn:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 8px 30px rgba(245, 179, 1, 0.45); }
.auth-btn:active { transform: translateY(0); }
.auth-btn.loading { pointer-events: none; opacity: 0.75; }
.demo-hint {
  margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--txt-3);
  border: 1px dashed var(--line-2); border-radius: 10px; padding: 9px;
}
.demo-hint b { color: var(--gold-2); cursor: pointer; }
.auth-risk { margin-top: 16px; font-size: 11px; color: var(--txt-3); text-align: center; line-height: 1.7; }
.auth-error {
  display: none; background: rgba(245, 34, 45, 0.12); border: 1px solid rgba(245, 34, 45, 0.35);
  color: #ff9aa0; font-size: 12.5px; padding: 9px 12px; border-radius: 9px; margin-bottom: 14px;
  animation: shake 0.4s;
}
.auth-error.show { display: block; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.auth-footer { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: var(--txt-3); font-size: 12px; }

/* ---------------- 搴旂敤楠ㄦ灦 ---------------- */
#app { position: relative; z-index: 1; height: 100vh; display: none; }
#app.on { display: flex; }
.shell { display: flex; width: 100%; height: 100%; }

/* 侧边栏(深海墨蓝) */
.sidebar {
  width: 232px; flex-shrink: 0; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 32, 55, 0.94), rgba(10, 17, 30, 0.96));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: width 0.28s ease, transform 0.28s ease;
  z-index: 40;
}
.sidebar.collapsed { width: 68px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 18px 16px 14px; }
.brand .logo-badge {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #1e4fbf, var(--brand) 45%, var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 19px; color: #fff; font-family: var(--kai);
  border: 1px solid rgba(255, 211, 77, 0.45);
  box-shadow: 0 0 18px rgba(245, 179, 1, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.brand-name { font-size: 15.5px; font-weight: 700; letter-spacing: 0.4px; white-space: nowrap; overflow: hidden; }
.brand-sub { font-size: 10.5px; color: var(--gold); letter-spacing: 1.5px; white-space: nowrap; }
.sidebar.collapsed .brand-name, .sidebar.collapsed .brand-sub,
.sidebar.collapsed .nav-label, .sidebar.collapsed .user-info { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 12px 0; }
.sidebar.collapsed .nav-item .nav-ico { margin: 0; }

.nav { flex: 1; padding: 8px 10px; overflow-y: auto; overflow-x: hidden; }
.nav-label { font-size: 10.5px; color: var(--gold); letter-spacing: 2px; padding: 14px 12px 6px; white-space: nowrap; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; margin: 2px 0; border-radius: 10px;
  color: var(--txt-2); font-size: 13.5px; position: relative;
  transition: all 0.2s;
}
.nav-item:hover { background: rgba(46, 107, 230, 0.10); color: var(--txt-1); }
.nav-item.on {
  background: linear-gradient(90deg, rgba(46, 107, 230, 0.28), rgba(245, 179, 1, 0.08));
  color: #fff; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(245, 179, 1, 0.28);
}
.nav-item.on::before {
  content: ''; position: absolute; left: -10px; top: 20%; bottom: 20%; width: 3px;
  border-radius: 3px; background: linear-gradient(180deg, var(--gold), var(--brand));
  box-shadow: 0 0 12px rgba(245, 179, 1, 0.8);
}
.nav-ico { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nav-ico svg { width: 18px; height: 18px; }
.nav-item .nav-badge {
  margin-left: auto; font-size: 10px; background: rgba(245, 34, 45, 0.2); color: #ff9aa0;
  padding: 1px 7px; border-radius: 20px; border: 1px solid rgba(245, 34, 45, 0.32);
}
.user-card {
  padding: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #1e4fbf, var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  box-shadow: 0 0 14px rgba(245, 179, 1, 0.35);
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--txt-3); }
.logout-btn { color: var(--txt-3); padding: 6px; border-radius: 8px; transition: all 0.2s; flex-shrink: 0; }
.logout-btn:hover { color: var(--danger); background: rgba(245, 34, 45, 0.12); }
.sidebar.collapsed .user-card { justify-content: center; padding: 10px 0; }

/* 涓诲尯鍩?*/
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 58px; flex-shrink: 0; display: flex; align-items: center; gap: 14px;
  padding: 0 22px; border-bottom: 1px solid var(--line);
  background: rgba(14, 22, 39, 0.75); backdrop-filter: blur(14px);
  z-index: 30;
}
.hamburger { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; color: var(--txt-2); transition: all 0.2s; }
.hamburger:hover { background: rgba(46, 107, 230, 0.14); color: #fff; }
.search-box { position: relative; flex: 1; max-width: 460px; }
.search-box input {
  width: 100%; padding: 9px 16px 9px 40px; border-radius: 11px;
  background: rgba(9, 15, 28, 0.82); border: 1px solid var(--line-2);
  color: var(--txt-1); font-size: 13.5px; outline: none; transition: all 0.25s;
}
.search-box input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.15); }
.search-box input::placeholder { color: var(--txt-3); }
.search-box .s-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--txt-3); display: flex; }
.search-drop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 13px;
  box-shadow: var(--shadow); overflow: hidden; display: none;
  animation: fadeDown 0.22s ease;
}
.search-drop.show { display: block; }
.search-drop .sd-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer; transition: background 0.15s; }
.search-drop .sd-item:hover { background: rgba(46, 107, 230, 0.10); }
.sd-code { font-family: var(--num); color: var(--txt-3); font-size: 12px; }
.sd-name { font-weight: 600; }
.sd-market { font-size: 10.5px; padding: 1px 8px; border-radius: 20px; background: rgba(245, 179, 1, 0.15); color: var(--gold-2); }
.sd-chg { margin-left: auto; font-family: var(--num); font-weight: 600; }
.search-drop .sd-empty { padding: 16px; text-align: center; color: var(--txt-3); font-size: 12.5px; }

.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.market-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--txt-2); background: rgba(9, 15, 28, 0.72); border: 1px solid rgba(245, 179, 1, 0.22); padding: 6px 13px; border-radius: 20px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; position: relative; }
.status-dot.live { background: var(--ok); box-shadow: 0 0 0 0 rgba(0, 181, 120, 0.6); animation: ping 1.6s infinite; }
.status-dot.closed { background: var(--txt-3); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0, 181, 120, 0.5); } 80%, 100% { box-shadow: 0 0 0 9px rgba(0, 181, 120, 0); } }
.clock { font-family: var(--num); font-size: 13px; color: var(--txt-2); }
.bell-btn { position: relative; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--txt-2); transition: all 0.2s; }
.bell-btn:hover { background: rgba(46, 107, 230, 0.14); color: #fff; }
.bell-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 8px rgba(245, 34, 45, 0.8); }
.bell-drop {
  position: absolute; top: 48px; right: 0; width: 340px; max-height: 420px; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow); display: none; z-index: 70; animation: fadeDown 0.22s ease;
}
.bell-drop.show { display: block; }
.bell-drop .bd-head { padding: 13px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 13.5px; }
.bell-item { padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.bell-item:last-child { border-bottom: none; }
.bell-item .bi-t { color: var(--txt-1); }
.bell-item .bi-s { color: var(--txt-3); font-size: 11px; margin-top: 3px; }
.bell-item .bi-tag { float: right; font-size: 10px; padding: 1px 7px; border-radius: 20px; background: rgba(245, 179, 1, 0.15); color: var(--gold); border: 1px solid rgba(245, 179, 1, 0.3); }
.bell-empty { padding: 26px; text-align: center; color: var(--txt-3); font-size: 12.5px; }

/* 鍚夎█璧伴┈鏉?椤舵爮涓嬫柟) */
.wish-strip {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 0;
  background: linear-gradient(90deg, rgba(46, 107, 230, 0.16), rgba(245, 179, 1, 0.10), rgba(46, 107, 230, 0.16));
  border-bottom: 1px solid rgba(255, 211, 77, 0.14);
  padding: 5px 0; overflow: hidden; white-space: nowrap;
}
.wish-strip .wish-item {
  font-family: var(--kai); font-size: 12px; letter-spacing: 2px; color: var(--gold-2);
  padding: 0 26px; opacity: 0.95;
}
.wish-strip .wish-item i { font-style: normal; color: var(--brand-2); margin: 0 8px; }

/* 琛屾儏璺戦┈鐏?*/
.ticker-wrap { flex-shrink: 0; border-bottom: 1px solid var(--line); background: rgba(9, 15, 28, 0.88); overflow: hidden; position: relative; }
.ticker { display: flex; width: max-content; animation: tickerMove 80s linear infinite; }
.ticker:hover { animation-play-state: paused; }
@keyframes tickerMove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 8px; padding: 7px 20px; border-right: 1px solid var(--line); white-space: nowrap; font-size: 12.5px; }
.ticker-item .t-name { color: var(--txt-2); }
.ticker-item .t-code { color: var(--txt-3); font-family: var(--num); font-size: 11px; }
.ticker-item .t-px { font-family: var(--num); font-weight: 600; }
.ticker-item .t-pct { font-family: var(--num); }

/* 鍐呭鍖?*/
.content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 22px 24px 60px; position: relative; }
.page { animation: fadeUp 0.45s cubic-bezier(0.2, 0.8, 0.3, 1); max-width: 1500px; margin: 0 auto; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { font-size: 21px; font-weight: 700; letter-spacing: 0.5px; display: flex; align-items: center; gap: 12px; }
.page-title .sub { font-size: 12px; color: var(--txt-3); font-weight: 400; margin-top: 3px; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* 鍗＄墖 */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  backdrop-filter: blur(10px);
}
.panel.hoverable:hover { border-color: rgba(255, 211, 77, 0.3); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(245, 179, 1, 0.10); transform: translateY(-2px); }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px 0; }
.panel-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.panel-title .dot { width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(135deg, var(--brand), var(--gold)); box-shadow: 0 0 10px rgba(245, 34, 45, 0.65); }
.panel-title .dot.gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); box-shadow: 0 0 10px rgba(245, 179, 1, 0.7); }
.panel-title .dot.violet { background: linear-gradient(135deg, var(--violet), var(--gold)); box-shadow: 0 0 10px rgba(181, 155, 255, 0.6); }
.panel-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.panel-body { padding: 16px 18px 18px; }
.panel-body.pt-0 { padding-top: 8px; }

/* 鎸夐挳 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--line-2); color: var(--txt-1);
  background: rgba(21, 33, 56, 0.6); transition: all 0.2s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--gold); color: #fff; background: rgba(46, 107, 230, 0.16); }
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: linear-gradient(135deg, #1e4fbf, var(--brand) 55%, var(--gold));
  border: none; color: #fff; font-weight: 600;
  box-shadow: 0 4px 18px rgba(46, 107, 230, 0.4);
}
.btn.primary:hover { filter: brightness(1.12); box-shadow: 0 6px 26px rgba(245, 179, 1, 0.45); }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(245, 34, 45, 0.4); color: #ff9aa0; }
.btn.danger:hover { background: rgba(245, 34, 45, 0.14); border-color: var(--danger); }
.btn.success { border-color: rgba(0, 181, 120, 0.4); color: #5fe3b8; }
.btn.success:hover { background: rgba(0, 181, 120, 0.13); border-color: var(--ok); }
.btn.sm { padding: 5px 11px; font-size: 12px; border-radius: 8px; }
.btn.xs { padding: 3px 9px; font-size: 11.5px; border-radius: 7px; }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn .spin { width: 13px; height: 13px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: rot 0.7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* 标签 */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 3px 10px; border-radius: 20px; background: rgba(245, 179, 1, 0.13); color: var(--gold-2); border: 1px solid rgba(245, 179, 1, 0.28); }
.chip.gold { background: rgba(245, 179, 1, 0.15); color: var(--gold-2); border-color: rgba(245, 179, 1, 0.32); }
.chip.green { background: var(--down-bg); color: #5fe3b8; border-color: rgba(0, 181, 120, 0.3); }
.chip.red { background: var(--up-bg); color: #ff9aa0; border-color: rgba(245, 34, 45, 0.3); }
.chip.violet { background: rgba(181, 155, 255, 0.13); color: var(--violet); border-color: rgba(181, 155, 255, 0.3); }
.chip.gray { background: rgba(160, 190, 255, 0.08); color: var(--txt-2); border-color: var(--line-2); }

/* 统计卡片(醒目大字) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px;
  border-radius: 50%; background: radial-gradient(circle, rgba(245, 179, 1, 0.14), transparent 70%);
}
.kpi .k-label { font-size: 12px; color: var(--txt-3); display: flex; align-items: center; gap: 6px; }
.kpi .k-value { font-family: var(--num); font-size: 29px; font-weight: 700; margin-top: 7px; letter-spacing: 0.3px; text-shadow: 0 0 20px rgba(245, 34, 45, 0.18); }
.kpi .k-sub { font-size: 11.5px; color: var(--txt-3); margin-top: 5px; display: flex; align-items: center; gap: 8px; }
.kpi .k-ico { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; opacity: 0.95; }
.kpi .k-ico svg { width: 18px; height: 18px; }

/* 杩蜂綘K绾?闈㈢Н鍥惧鍣?*/
.mini-chart { width: 100%; height: 64px; margin-top: 10px; }

/* 琛ㄦ牸 */
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th {
  text-align: left; padding: 10px 12px; color: var(--txt-3); font-weight: 500; font-size: 12px;
  border-bottom: 1px solid var(--line-2); white-space: nowrap; position: sticky; top: 0;
  background: rgba(21, 33, 56, 0.98); z-index: 2; user-select: none;
}
table.grid th.sortable { cursor: pointer; transition: color 0.15s; }
table.grid th.sortable:hover { color: var(--txt-1); }
table.grid th .sort-arrow { font-size: 10px; margin-left: 3px; color: var(--gold-2); }
table.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid tbody tr { transition: background 0.15s; }
table.grid tbody tr:hover { background: rgba(46, 107, 230, 0.07); }
table.grid tbody tr.clickable { cursor: pointer; }
table.grid .num { text-align: right; }
table.grid th.num { text-align: right; }
.rank-badge { display: inline-flex; width: 22px; height: 22px; border-radius: 7px; align-items: center; justify-content: center; font-family: var(--num); font-size: 11.5px; font-weight: 700; }
.rank-1 { background: linear-gradient(135deg, rgba(245, 179, 1, 0.4), rgba(255, 143, 61, 0.3)); color: var(--gold-2); box-shadow: 0 0 12px rgba(245, 179, 1, 0.3); }
.rank-2 { background: rgba(190, 210, 250, 0.12); color: #ead7cb; }
.rank-3 { background: rgba(181, 155, 255, 0.18); color: var(--violet); }
.rank-n { background: rgba(160, 190, 255, 0.08); color: var(--txt-3); }
.star-btn { color: var(--txt-3); transition: all 0.2s; padding: 3px; border-radius: 6px; display: inline-flex; }
.star-btn:hover { color: var(--gold); background: rgba(245, 179, 1, 0.12); }
.star-btn.on { color: var(--gold); }
.cell-flash-up { animation: flashUp 0.9s ease; }
.cell-flash-down { animation: flashDown 0.9s ease; }
@keyframes flashUp { 0% { background: rgba(245, 34, 45, 0.35); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: rgba(0, 181, 120, 0.35); } 100% { background: transparent; } }

/* 杩涘害鏉?*/
.bar { height: 6px; border-radius: 6px; background: rgba(160, 190, 255, 0.12); overflow: hidden; min-width: 70px; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--gold)); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.3, 1); }

/* 楠ㄦ灦灞?*/
.skeleton { position: relative; overflow: hidden; background: rgba(160, 190, 255, 0.08); border-radius: 8px; }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(160, 190, 255, 0.13), transparent);
  animation: skSlide 1.3s infinite;
}
@keyframes skSlide { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* 绌虹姸鎬?/ 閿欒 */
.empty-state { text-align: center; padding: 46px 20px; color: var(--txt-3); }
.empty-state .e-ico { font-size: 40px; margin-bottom: 10px; opacity: 0.7; }
.empty-state .e-t { font-size: 14px; color: var(--txt-2); margin-bottom: 6px; }
.empty-state .e-s { font-size: 12px; }

/* 椋庨櫓鎻愮ず鏉?*/
.risk-note {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(245, 179, 1, 0.07); border: 1px solid rgba(245, 179, 1, 0.25);
  color: #ecd391; font-size: 12px; padding: 10px 14px; border-radius: 10px; line-height: 1.7;
}
.risk-note.danger { background: rgba(245, 34, 45, 0.08); border-color: rgba(245, 34, 45, 0.3); color: #ffb3b8; }
.risk-note .rn-ico { flex-shrink: 0; margin-top: 1px; }

/* 椤佃剼鎻愮ず */
.page-foot { margin-top: 26px; text-align: center; font-size: 11.5px; color: var(--txt-3); line-height: 1.9; }

/* 标签页 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button {
  padding: 9px 16px; font-size: 13.5px; color: var(--txt-2); border-bottom: 2px solid transparent;
  transition: all 0.2s; white-space: nowrap; position: relative;
}
.tabs button:hover { color: var(--txt-1); }
.tabs button.on { color: #fff; border-bottom-color: var(--gold-2); }
.tabs button.on::after {
  content: ''; position: absolute; left: 20%; right: 20%; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  filter: blur(3px);
}
.tab-pane { display: none; animation: fadeUp 0.35s ease; }
.tab-pane.on { display: block; }

/* 寮圭獥 */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(16, 5, 6, 0.7);
  backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center;
}
.modal-mask.show { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 560px; max-width: 94vw; max-height: 86vh; overflow-y: auto;
  background: linear-gradient(180deg, #2c1618, #1e0e10);
  border: 1px solid rgba(255, 211, 77, 0.28); border-radius: 18px; box-shadow: var(--shadow);
  animation: modalPop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes modalPop { from { opacity: 0; transform: scale(0.92) translateY(14px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-head { display: flex; align-items: center; padding: 18px 22px 12px; }
.modal-title { font-size: 16px; font-weight: 700; flex: 1; }
.modal-close { color: var(--txt-3); padding: 5px; border-radius: 8px; transition: all 0.2s; }
.modal-close:hover { color: #fff; background: rgba(245, 34, 45, 0.16); }
.modal-body { padding: 6px 22px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 4px 22px 20px; }

/* Toast */
.toast-wrap { position: fixed; top: 74px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px;
  background: linear-gradient(180deg, rgba(21, 33, 56, 0.97), rgba(13, 20, 36, 0.97));
  border: 1px solid rgba(255, 211, 77, 0.25); border-left: 3px solid var(--brand);
  border-radius: 12px; padding: 12px 16px; font-size: 13px;
  box-shadow: var(--shadow); animation: toastIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast.out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
.toast.ok { border-left-color: var(--ok); }
.toast.warn { border-left-color: var(--warn); }
.toast.err { border-left-color: var(--danger); }
.toast .t-ico { flex-shrink: 0; display: flex; }

/* 杈撳叆鎺т欢 */
.input, .select, textarea.input {
  width: 100%; padding: 9px 13px; border-radius: 9px;
  background: rgba(9, 15, 28, 0.75); border: 1px solid var(--line-2);
  color: var(--txt-1); font-size: 13.5px; outline: none; transition: all 0.2s;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.14); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a08279' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.select option { background: var(--bg-2); }

/* 开关 */
.switch { position: relative; width: 38px; height: 21px; border-radius: 20px; background: rgba(160, 190, 255, 0.2); transition: background 0.25s; flex-shrink: 0; cursor: pointer; }
.switch::after { content: ''; position: absolute; top: 2.5px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #e8d3c5; transition: all 0.25s cubic-bezier(0.3, 0.9, 0.4, 1.3); }
.switch.on { background: linear-gradient(135deg, var(--brand), var(--gold)); }
.switch.on::after { left: 19px; background: #fff; }

/* 璇勫垎鐜?*/
.score-ring {
  --p: 0; --c: var(--brand);
  width: 108px; height: 108px; border-radius: 50%; position: relative; flex-shrink: 0;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(160, 190, 255, 0.1) 0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.8s ease;
}
.score-ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--bg-2); }
.score-ring .sr-val { position: relative; font-family: var(--num); font-size: 27px; font-weight: 700; }
.score-ring .sr-label { position: absolute; bottom: 22px; font-size: 9.5px; color: var(--txt-3); letter-spacing: 1px; }

/* 鍒嗛〉 */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 16px 0 4px; }
.pager button { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; font-size: 12.5px; color: var(--txt-2); border: 1px solid var(--line); transition: all 0.2s; }
.pager button:hover:not(:disabled) { border-color: var(--gold); color: #fff; }
.pager button.on { background: linear-gradient(135deg, var(--brand), var(--gold)); color: #fff; border-color: transparent; }
.pager button:disabled { opacity: 0.35; cursor: default; }
.pager .pg-info { font-size: 12px; color: var(--txt-3); margin: 0 8px; font-family: var(--num); }

/* 閫夎偂鍣?*/
.cond-group {
  border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 14px;
  background: rgba(10, 17, 30, 0.5); overflow: hidden;
}
.cond-group-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(46, 107, 230, 0.07); border-bottom: 1px solid var(--line); }
.cond-group-head .logic-select { width: auto; padding: 4px 26px 4px 10px; font-size: 12px; border-radius: 7px; }
.cond-row { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.cond-row:last-child { border-bottom: none; }
.cond-row .sep { color: var(--txt-3); font-size: 12px; font-family: var(--num); }
.cond-row .input, .cond-row .select { width: auto; min-width: 110px; padding: 6px 10px; font-size: 12.5px; }
.cond-row .select { min-width: 150px; }
.cond-del { color: var(--txt-3); padding: 4px 7px; border-radius: 7px; transition: all 0.2s; }
.cond-del:hover { color: var(--danger); background: rgba(245, 34, 45, 0.12); }
.cond-desc { font-size: 12px; color: var(--txt-3); }
.group-logic-tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--gold-2); padding: 2px 8px; border-radius: 6px; background: rgba(245, 179, 1, 0.12); }

/* 绛栫暐鍗＄墖 */
.strategy-card { padding: 16px 18px; margin-bottom: 12px; }
.strategy-card .sc-name { font-size: 14.5px; font-weight: 600; }
.strategy-card .sc-meta { font-size: 11.5px; color: var(--txt-3); margin-top: 4px; font-family: var(--num); }
.strategy-card .sc-conds { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.strategy-card .sc-actions { margin-top: 12px; display: flex; gap: 8px; }

/* 鑲＄エ璇︽儏 */
.stock-hero { padding: 20px 22px; margin-bottom: 16px; overflow: hidden; position: relative; }
.stock-hero::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--gold));
  box-shadow: 0 0 12px rgba(245, 34, 45, 0.6);
}
.hero-top { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.hero-name { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.hero-code { font-family: var(--num); color: var(--txt-3); font-size: 13px; }
.hero-price { font-family: var(--num); font-size: 38px; font-weight: 800; letter-spacing: 0.5px; line-height: 1.1; }
.hero-chg { font-family: var(--num); font-size: 16px; font-weight: 600; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--txt-2); }
.hero-meta b { color: var(--txt-1); font-family: var(--num); font-weight: 600; }
.hero-actions { margin-left: auto; display: flex; gap: 9px; align-items: center; }

.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.quote-cell { background: rgba(9, 15, 28, 0.58); border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; }
.quote-cell .qc-l { font-size: 11.5px; color: var(--txt-3); }
.quote-cell .qc-v { font-family: var(--num); font-size: 15px; font-weight: 600; margin-top: 3px; }

/* 指标开关 */
.ind-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.ind-switch button {
  font-size: 11.5px; padding: 4px 11px; border-radius: 16px;
  border: 1px solid var(--line-2); color: var(--txt-3); transition: all 0.2s;
}
.ind-switch button.on { background: rgba(245, 179, 1, 0.18); color: var(--gold-2); border-color: rgba(245, 179, 1, 0.42); }

/* 璐㈠姟琛?*/
.fin-table td { padding: 8px 12px; font-size: 12.5px; }
.fin-table .ft-label { color: var(--txt-3); }

/* 鏂伴椈鍒楄〃 */
.news-item { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.news-item:last-child { border-bottom: none; }
.news-item .n-tag { flex-shrink: 0; font-size: 10.5px; padding: 2px 8px; border-radius: 6px; margin-top: 2px; }
.news-item .n-title { font-size: 13.5px; line-height: 1.6; }
.news-item .n-meta { font-size: 11.5px; color: var(--txt-3); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }

/* 鑱婂ぉ */
.chat-box { display: flex; flex-direction: column; height: calc(100vh - 250px); min-height: 420px; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { max-width: 82%; padding: 12px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.chat-msg.bot { align-self: flex-start; background: rgba(13, 20, 36, 0.92); border: 1px solid var(--line-2); border-top-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: linear-gradient(135deg, rgba(46, 107, 230, 0.38), rgba(245, 179, 1, 0.22)); border: 1px solid rgba(245, 179, 1, 0.4); border-top-right-radius: 4px; }
.chat-msg .cm-time { display: block; font-size: 10.5px; color: var(--txt-3); margin-top: 7px; }
.chat-msg table { border-collapse: collapse; font-size: 12.5px; margin: 8px 0; }
.chat-msg th, .chat-msg td { border: 1px solid var(--line-2); padding: 5px 10px; }
.chat-msg th { background: rgba(46, 107, 230, 0.12); }
.chat-msg blockquote { border-left: 3px solid var(--gold-2); padding-left: 10px; color: var(--txt-3); margin: 8px 0; font-size: 12px; }
.chat-typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); animation: tyBounce 1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tyBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-input-row { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: rgba(10, 17, 30, 0.6); }
.chat-quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px 12px; border-bottom: 1px solid var(--line); }
.chat-quick button { font-size: 12px; padding: 5px 12px; border-radius: 16px; border: 1px solid var(--line-2); color: var(--txt-2); transition: all 0.2s; }
.chat-quick button:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* 鍥炴祴 */
.bt-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bt-cell { padding: 14px 16px; text-align: center; }
.bt-cell .bc-l { font-size: 11.5px; color: var(--txt-3); }
.bt-cell .bc-v { font-family: var(--num); font-size: 21px; font-weight: 700; margin-top: 5px; }

/* 甯冨眬宸ュ叿 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-23 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.grid-32 { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }
.muted { color: var(--txt-3); }
.flex { display: flex; } .flex-1 { flex: 1; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.right { text-align: right; } .center { text-align: center; }
.hidden { display: none !important; }
.up-txt { color: var(--up); } .down-txt { color: var(--down); }

/* 绉诲姩绔?*/
.mobile-mask {
  position: fixed; inset: 0; background: rgba(9, 15, 28, 0.62); z-index: 35;
  display: none; backdrop-filter: blur(3px);
}
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-23, .grid-32 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body { overflow: hidden; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); width: 240px; }
  .sidebar.open { transform: translateX(0); box-shadow: 30px 0 80px rgba(0, 0, 0, 0.6); }
  .mobile-mask.show { display: block; }
  .topbar { padding: 0 12px; }
  .market-status span, .clock { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .content { padding: 16px 14px 60px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .hero-price { font-size: 30px; }
  .chat-box { height: calc(100vh - 220px); }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 鍥捐〃瀹瑰櫒 */
.chart { width: 100%; height: 100%; }

/* ---------------- AI 棰勬祴閫夎偂 ---------------- */
.prob-cell { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.prob-bar { width: 56px; height: 5px; border-radius: 5px; background: rgba(160, 190, 255, 0.14); overflow: hidden; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.prob-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--gold), var(--brand)); box-shadow: 0 0 6px rgba(245, 34, 45, 0.35); transition: width 0.5s ease; }
.pred-snap { border: 1px solid rgba(255, 211, 77, 0.22); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: rgba(10, 17, 30, 0.5); }
.pred-snap .ps-meta { margin-top: 7px; }
.rev-table { margin-top: 10px; }
.rev-table td, .rev-table th { padding: 8px 10px; font-size: 12.5px; }
