/* ============================================================
   AI 交易竞技场 — design system
   ============================================================ */
:root {
  --bg: #060910;
  --bg-2: #080d17;
  --panel: #0d1421;
  --panel-2: #111a2b;
  --panel-3: #162135;
  --line: rgba(148, 163, 184, .12);
  --line-2: rgba(148, 163, 184, .22);
  --text: #e9eff9;
  --muted: #93a3ba;
  --dim: #5d6d85;
  --cyan: #22d3ee;
  --cyan-2: #06b6d4;
  --violet: #a78bfa;
  --amber: #f5b544;
  --green: #34d399;
  --red: #fb7185;
  --blue: #60a5fa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(34, 211, 238, .09), transparent 60%),
    radial-gradient(800px 480px at 92% 4%, rgba(167, 139, 250, .08), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(52, 211, 153, .05), transparent 60%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 78%);
  pointer-events: none; z-index: 0;
}
::selection { background: rgba(34, 211, 238, .25); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }

/* layout */
.shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.sidebar {
  width: 224px; flex: 0 0 224px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 20, 33, .92), rgba(6, 9, 16, .85));
  backdrop-filter: blur(16px);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 22px 14px 16px;
  z-index: 20;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 0 8px 22px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), #2dd4bf 60%, var(--violet));
  display: grid; place-items: center;
  box-shadow: 0 0 24px rgba(34, 211, 238, .35);
  color: #04121a; font-weight: 900; font-size: 15px;
}
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .5px; line-height: 1.2; }
.brand-sub { font-size: 10px; color: var(--dim); letter-spacing: 2px; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  transition: background .18s, color .18s;
  border: 1px solid transparent;
}
.nav-link svg { width: 17px; height: 17px; opacity: .8; }
.nav-link:hover { background: rgba(148, 163, 184, .07); color: var(--text); }
.nav-link.active {
  background: linear-gradient(90deg, rgba(34, 211, 238, .13), rgba(34, 211, 238, .03));
  border-color: rgba(34, 211, 238, .22); color: #d9fbff;
}
.nav-link.active svg { opacity: 1; color: var(--cyan); }
.nav-label { padding: 18px 12px 7px; font-size: 10px; letter-spacing: 2px; color: var(--dim); text-transform: uppercase; }
.sidebar-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.auth-box { display: flex; align-items: center; justify-content: flex-end; min-height: 32px; }
.top-auth-actions { display: flex; gap: 8px; align-items: center; }
.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(15, 22, 36, .85); color: var(--text); border-radius: 999px; padding: 4px 10px 4px 4px; cursor: pointer; font: inherit; }
.user-chip:hover { border-color: var(--cyan); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, rgba(34,211,238,.2), rgba(167,139,250,.2)); border: 1px solid rgba(34,211,238,.35); font-size: 15px; line-height: 1; }
.user-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; max-width: 110px; }
.user-meta b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.user-meta small { font-size: 9.5px; color: var(--dim); }
.user-caret { width: 14px; height: 14px; color: var(--muted); }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px; background: #0e1625; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 45px rgba(0,0,0,.5); z-index: 80; }
.user-dropdown[hidden] { display: none; }
.user-dropdown button { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--text); font: inherit; font-size: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.user-dropdown button:hover { background: rgba(34,211,238,.1); color: var(--cyan); }
.user-dropdown button.danger:hover { background: rgba(248,113,113,.1); color: var(--red); }
.user-drop-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, rgba(34,211,238,.2), rgba(167,139,250,.2)); border: 1px solid rgba(34,211,238,.35); }
.profile-name { font-size: 18px; font-weight: 700; }
.my-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.my-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); }
.my-item:hover { border-color: var(--cyan); }
.my-item span:first-child { display: flex; flex-direction: column; gap: 2px; }
.my-item small { color: var(--dim); font-size: 11px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cyan); cursor: pointer; font: inherit; }
.link-btn:hover { text-decoration: underline; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); display: inline-block; animation: pulse 2s infinite; }
.live-dot.off { background: var(--red); box-shadow: 0 0 10px var(--red); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.foot-status { font-size: 11px; color: var(--dim); display: flex; gap: 7px; align-items: center; }
.foot-time { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 5px; }

.main { flex: 1; min-width: 0; padding: 0 30px 60px; }
.topbar {
  position: sticky; top: 0; z-index: 15;
  display: flex; align-items: center; gap: 18px;
  padding: 16px 0 14px; margin-bottom: 6px;
  background: linear-gradient(180deg, rgba(6, 9, 16, .95) 60%, rgba(6, 9, 16, 0));
  backdrop-filter: blur(8px);
}
.ticker { display: flex; gap: 18px; flex: 1; overflow: hidden; }
.tick-item { display: flex; gap: 7px; align-items: baseline; font-size: 12px; white-space: nowrap; }
.tick-name { color: var(--dim); }
.tick-val { font-family: var(--mono); color: var(--muted); }
.tick-chg { font-family: var(--mono); font-size: 11.5px; }
.top-right { display: flex; gap: 10px; align-items: center; }
.clock { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; line-height: 1.35; }
.clock b { display: block; color: var(--text); font-weight: 600; letter-spacing: .5px; }
.page { max-width: 1500px; margin: 0 auto; }

/* typography */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.2px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 10px 0 22px; flex-wrap: wrap; }
.eyebrow { font-size: 10.5px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--cyan); font-weight: 700; margin-bottom: 7px; }
.page-title { font-size: 28px; line-height: 1.2; }
.page-desc { color: var(--muted); font-size: 13px; margin-top: 7px; max-width: 760px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 30px 0 14px; }
.section-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.section-title::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 12px rgba(34,211,238,.6); }
.section-sub { font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.mono { font-family: var(--mono); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 11.5px; }
.up { color: var(--red); }     /* A股习惯：红涨 */
.down { color: var(--green); }
.flat { color: var(--muted); }
.gold { color: var(--amber); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--panel-2);
  color: var(--text); font-size: 12.5px; font-weight: 600;
  transition: transform .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--panel-3); border-color: rgba(148, 163, 184, .35); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 14px; height: 14px; }
.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #0ea5b7);
  border-color: transparent; color: #03171d;
  box-shadow: 0 6px 20px rgba(34, 211, 238, .22);
}
.btn-primary:hover { background: linear-gradient(135deg, #4ae3f7, #13b6ca); }
.btn-violet { background: linear-gradient(135deg, #a78bfa, #7c5cf0); border-color: transparent; color: #100a24; }
.btn-danger { color: #ffd7de; border-color: rgba(251, 113, 133, .35); background: rgba(251, 113, 133, .09); }
.btn-danger:hover { background: rgba(251, 113, 133, .18); }
.btn-ghost { background: transparent; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 11.5px; border-radius: 7px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 13.5px; border-radius: 11px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* cards */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0) 40%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.card-pad { padding: 20px; }
.card-hover { transition: border-color .2s, transform .2s, box-shadow .2s; }
.card-hover:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-accent::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent, var(--cyan)); opacity: .9;
}
.grid { display: grid; gap: 14px; }
.grid > * { min-width: 0; }
.grid-seasons { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.lobby-split { grid-template-columns: 1.55fr 1fr; gap: 16px; }
.system-split { grid-template-columns: 1.2fr 1fr; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }

/* hero */
.hero {
  position: relative; overflow: hidden;
  border-radius: 22px; border: 1px solid rgba(34, 211, 238, .16);
  background:
    radial-gradient(700px 300px at 88% 0%, rgba(167, 139, 250, .13), transparent 60%),
    radial-gradient(600px 300px at 8% 100%, rgba(34, 211, 238, .12), transparent 60%),
    linear-gradient(135deg, #0b1220, #0a101c 55%, #0d1524);
  padding: 30px 32px;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -100px; width: 340px; height: 340px;
  border-radius: 50%; border: 1px solid rgba(34, 211, 238, .12);
  box-shadow: 0 0 0 40px rgba(34, 211, 238, .025), 0 0 0 90px rgba(34, 211, 238, .018);
  pointer-events: none;
}
.hero h1 { font-size: 34px; letter-spacing: -.8px; line-height: 1.15; }
.hero h1 span { background: linear-gradient(100deg, #67e8f9, #a78bfa 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 13.5px; max-width: 640px; margin-top: 10px; }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; font-size: 11.5px;
  border: 1px solid var(--line); background: rgba(6, 9, 16, .45);
  color: var(--muted);
}
.hero-chip b { color: var(--text); font-family: var(--mono); font-weight: 600; }

/* stats */
.stat { padding: 16px 18px; }
.stat-label { font-size: 11px; color: var(--dim); letter-spacing: .4px; display: flex; align-items: center; gap: 6px; }
.stat-value { font-family: var(--mono); font-size: 24px; font-weight: 700; margin-top: 6px; letter-spacing: -.5px; }
.stat-foot { font-size: 11px; color: var(--muted); margin-top: 4px; }
.stat-icon { position: absolute; right: 16px; top: 14px; opacity: .14; }
.stat-icon svg { width: 30px; height: 30px; }

/* pills/tags */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .2px;
  border: 1px solid var(--line-2); color: var(--muted); background: rgba(148,163,184,.06);
  white-space: nowrap;
}
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-live { color: #6ee7d3; border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.09); }
.pill-live .dot { background: #34d399; box-shadow: 0 0 7px #34d399; animation: pulse 1.6s infinite; }
.pill-up { color: #fcd34d; border-color: rgba(245,181,68,.3); background: rgba(245,181,68,.08); }
.pill-done { color: #9fb0c8; }
.pill-pause { color: #c4b5fd; border-color: rgba(167,139,250,.3); background: rgba(167,139,250,.08); }
.pill-danger { color: #fda4af; border-color: rgba(251,113,133,.3); background: rgba(251,113,133,.08); }
.tag {
  display: inline-block; padding: 2px 7px; border-radius: 5px;
  font-size: 10px; background: rgba(148,163,184,.09); color: var(--muted);
  border: 1px solid var(--line); white-space: nowrap;
}

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.table { width: 100%; border-collapse: collapse; min-width: 700px; }
.table th {
  text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .7px;
  color: var(--dim); text-transform: uppercase;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 16, .35); position: sticky; top: 0; z-index: 2;
  white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid rgba(148,163,184,.06); font-size: 12.5px; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(34, 211, 238, .035); }
.table-link { color: inherit; border-bottom: 1px dashed rgba(148, 163, 184, .25); transition: color .15s, border-color .15s; }
.table-link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.stock-link { color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; gap: 4px; transition: color .15s; }
.stock-link:hover { color: var(--cyan); }
.stock-link b { font-weight: 600; }
.stock-link-block { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.stock-link-block span { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.stock-link-block:hover span { color: var(--cyan); }
.table tbody tr.clickable { cursor: pointer; }
.table .right { text-align: right; }
.table .center { text-align: center; }
.table-compact td { padding: 9px 12px; font-size: 12px; }
.table-compact th { padding: 9px 12px; }

/* avatar / identity */
.identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 800;
  border: 1px solid color-mix(in srgb, var(--c, #22d3ee) 45%, transparent);
  background: color-mix(in srgb, var(--c, #22d3ee) 15%, transparent);
  color: var(--c, #22d3ee);
  letter-spacing: .5px;
}
.avatar-lg { width: 62px; height: 62px; flex-basis: 62px; font-size: 20px; }
.avatar-sm { width: 26px; height: 26px; flex-basis: 26px; font-size: 10px; }
.avatar-xl { width: 86px; height: 86px; flex-basis: 86px; font-size: 28px; }
.identity-main { min-width: 0; }
.identity-name { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.identity-sub { font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.identity-btn { cursor: pointer; }
.identity-btn:hover .identity-name { color: var(--cyan); }

/* rank */
.rank-badge {
  width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center;
  font-family: var(--mono); font-size: 11.5px; font-weight: 800;
  background: rgba(148,163,184,.08); color: var(--muted); border: 1px solid var(--line);
}
.rank-1 { background: linear-gradient(135deg, #fbbf24, #d97706); color: #231303; border: none; box-shadow: 0 0 16px rgba(245,181,68,.35); }
.rank-2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #101820; border: none; }
.rank-3 { background: linear-gradient(135deg, #f0a97a, #b45309); color: #201004; border: none; }

/* charts */
.chart-wrap { width: 100%; position: relative; }
.chart-wrap svg { width: 100%; height: auto; overflow: visible; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); cursor: pointer; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; }
.chart-empty { height: 220px; display: grid; place-items: center; color: var(--dim); font-size: 12px; }

/* season cards */
.season-card { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 196px; }
.season-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.season-top > div:first-child { min-width: 0; flex: 1 1 auto; }
.season-top > .pill { flex: 0 0 auto; white-space: nowrap; }
.season-league { font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent, var(--cyan)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.season-name { font-size: 15.5px; font-weight: 700; margin-top: 4px; line-height: 1.35; }
.season-dates { font-size: 11px; color: var(--dim); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.season-mid { display: flex; justify-content: space-between; gap: 10px; align-items: flex-end; }
.season-money { font-family: var(--mono); font-size: 19px; font-weight: 700; }
.season-money small { font-size: 10px; color: var(--dim); font-weight: 400; margin-left: 3px; }
.season-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
.progress { height: 4px; border-radius: 99px; background: rgba(148,163,184,.13); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.countdown { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* podium */
.podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 12px; align-items: end; }
.podium-card { text-align: center; padding: 20px 14px; }
.podium-card.first { padding-top: 26px; padding-bottom: 26px; border-color: rgba(245,181,68,.28); background: linear-gradient(180deg, rgba(245,181,68,.08), var(--panel) 55%); }
.podium-place { font-size: 10px; letter-spacing: 2px; color: var(--dim); font-weight: 700; }
.podium-name { font-size: 14px; font-weight: 700; margin-top: 7px; }
.podium-points { font-family: var(--mono); font-size: 22px; font-weight: 800; margin-top: 4px; }
.podium-card .avatar { margin: 0 auto 10px; }

/* timeline */
.timeline { display: flex; flex-direction: column; gap: 10px; }
.tl-item { display: grid; grid-template-columns: 46px 12px 1fr; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.tl-time { font-family: var(--mono); font-size: 10.5px; color: var(--dim); padding-top: 2px; }
.tl-line { position: relative; }
.tl-line::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: -14px; width: 1px; background: var(--line); }
.tl-item:last-child .tl-line::before { display: none; }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--cyan)); margin-top: 5px; box-shadow: 0 0 8px var(--accent, var(--cyan)); }
.tl-main { min-width: 0; }
.tl-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl-persona { font-size: 12px; font-weight: 650; }
.tl-text { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.tl-text.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tl-more { font-size: 11px; color: var(--cyan); margin-top: 4px; cursor: pointer; }

/* strategy */
.strategy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.strategy-block { padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(6,9,16,.28); }
.strategy-label { font-size: 10px; letter-spacing: 1px; color: var(--dim); text-transform: uppercase; margin-bottom: 5px; }
.strategy-text { font-size: 12px; color: var(--muted); line-height: 1.65; white-space: pre-wrap; word-break: break-word; }

/* persona panel */
.persona-hero { display: flex; gap: 20px; align-items: flex-start; padding: 24px; flex-wrap: wrap; }
.persona-main { flex: 1; min-width: 260px; }
.persona-name { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.persona-title { font-size: 12px; color: var(--cyan); margin-top: 3px; }
.persona-bio { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.7; max-width: 860px; }
.persona-phil { margin-top: 10px; padding-left: 11px; border-left: 2px solid rgba(167,139,250,.5); font-size: 12px; color: #cbbdf5; font-style: italic; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0 18px; overflow-x: auto; }
.tab {
  padding: 9px 14px; font-size: 12.5px; color: var(--muted); border: none; background: none;
  border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 600;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(6,9,16,.35); gap: 2px; }
.seg button { border: none; background: none; color: var(--muted); padding: 5px 11px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.seg button.active { background: var(--panel-3); color: var(--text); }
.toolbar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.req { color: #f87171; margin-left: 2px; font-weight: 700; }
.input, .select, .textarea {
  width: 100%; background: rgba(6,9,16,.5); border: 1px solid var(--line-2);
  border-radius: 9px; padding: 9px 11px; font-size: 13px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: rgba(34,211,238,.55); box-shadow: 0 0 0 3px rgba(34,211,238,.09); }
.textarea { min-height: 80px; resize: vertical; }
.select option { background: #0d1421; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.check-item { display: flex; align-items: center; gap: 7px; font-size: 12px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.check-item input { accent-color: var(--cyan); }
.hint { font-size: 11px; color: var(--dim); }

/* modal */
.modal-mask {
  position: fixed; inset: 0; background: rgba(3, 6, 12, .72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100;
  animation: fade .18s ease;
}
.modal {
  width: min(620px, 100%); max-height: 88vh; overflow-y: auto;
  background: linear-gradient(180deg, #101827, #0b111c);
  border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow);
  animation: rise .2s ease;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #101827; z-index: 1; }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-body { padding: 18px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px 18px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #0c1320; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.99); } }

/* toast */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast {
  min-width: 220px; max-width: 380px; padding: 11px 14px; border-radius: 10px;
  background: #121b2b; border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font-size: 12.5px; color: var(--text); animation: rise .2s ease;
}
.toast.ok { border-color: rgba(52,211,153,.35); }
.toast.err { border-color: rgba(251,113,133,.4); }

/* empty / loading */
.empty { padding: 46px 20px; text-align: center; color: var(--dim); font-size: 12.5px; }
.empty-icon { font-size: 30px; opacity: .35; margin-bottom: 10px; }
.skeleton { background: linear-gradient(90deg, rgba(148,163,184,.06) 25%, rgba(148,163,184,.12) 37%, rgba(148,163,184,.06) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* lobby */
.lobby-head { padding-top: 6px; }
.lobby-market { padding: 12px 16px; }
.lobby-market-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lobby-market-title { min-width: 56px; }
.market-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.market-chip { display: inline-flex; gap: 6px; align-items: baseline; font-size: 11px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(6, 9, 16, .35); }
.market-chip span { color: var(--dim); }
.market-chip b { font-family: var(--mono); font-weight: 600; }
.market-chip em { font-style: normal; font-family: var(--mono); font-size: 10px; }
.lobby-stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.lobby-stats-inline { margin: 0 0 0 auto; padding: 0; border: 0; gap: 22px; }
.lobby-stats-inline .lobby-stat b { font-size: 18px; }
.lobby-stats-inline .lobby-stat span { font-size: 9.5px; }
.lobby-stats-inline .lobby-stat small { font-size: 9.5px; }
.lobby-stat { display: flex; flex-direction: column; gap: 1px; }
.lobby-stat span { font-size: 10px; color: var(--dim); letter-spacing: .5px; }
.lobby-stat b { font-family: var(--mono); font-size: 20px; line-height: 1.2; }
.lobby-stat small { font-size: 10px; color: var(--dim); }
.lobby-breadth { display: flex; align-items: baseline; gap: 8px; }
.lobby-breadth span { font-family: var(--mono); font-size: 24px; font-weight: 800; }
.market-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.market-breadth-block { grid-column: 1 / -1; }
.market-sectors-block { border-top: 1px solid var(--line); padding-top: 8px; }
.market-weak-block { border-left: 1px solid var(--line); border-top: 1px solid var(--line); padding-left: 20px; padding-top: 8px; }
.breadth-main { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.breadth-right { min-width: 0; }
.breadth-split { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: rgba(148, 163, 184, .12); }
.breadth-split i { display: block; height: 100%; }
.breadth-split .b-up { background: #fb7185; }
.breadth-split .b-down { background: #34d399; }
.breadth-split .b-flat { background: rgba(148, 163, 184, .35); }
.index-trends { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.index-trends-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.index-trends .g3 { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.index-trend { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(6, 9, 16, .25); }
.chart-pane[hidden] { display: none; }
.spark-wrap { position: relative; margin-top: 2px; }
.spark-tip { position: absolute; top: -2px; transform: translate(-50%, -100%); display: none; z-index: 5; padding: 3px 7px; border-radius: 6px; background: #101827; border: 1px solid var(--line-2); color: var(--text); font-family: var(--mono); font-size: 10px; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.spark-x { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; color: var(--dim); margin-top: 2px; }
.trade-feed-card { overflow: hidden; }
.trade-list { display: flex; flex-direction: column; }
.trade-row { display: grid; grid-template-columns: 52px 44px minmax(120px, 1fr) minmax(130px, 1fr) 92px 90px 64px; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(148, 163, 184, .06); transition: background .15s; }
.trade-row:last-child { border-bottom: none; }
.trade-row:hover { background: rgba(34, 211, 238, .035); }
.trade-time { display: flex; flex-direction: column; line-height: 1.25; }
.trade-time b { font-family: var(--mono); font-size: 11.5px; font-weight: 600; }
.trade-time span { font-size: 9.5px; color: var(--dim); }
.trade-act { font-size: 10.5px; font-weight: 800; text-align: center; border-radius: 6px; padding: 3px 0; border: 1px solid; }
.trade-act.buy { color: #fda4af; border-color: rgba(251, 113, 133, .3); background: rgba(251, 113, 133, .08); }
.trade-act.sell { color: #6ee7b7; border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .08); }
.trade-who { min-width: 0; }
.trade-stock { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.trade-stock b { font-size: 12.5px; }
.trade-stock span { font-size: 10px; color: var(--dim); font-family: var(--mono); }
.trade-qty, .trade-amt { display: flex; flex-direction: column; line-height: 1.3; text-align: right; }
.trade-qty b, .trade-amt b { font-family: var(--mono); font-size: 11.5px; font-weight: 600; }
.trade-qty span, .trade-amt span { font-size: 9.5px; color: var(--dim); }
.trade-season { text-align: right; }
.trade-reason { grid-column: 3 / -1; font-size: 10.5px; color: var(--dim); line-height: 1.4; margin-top: -4px; padding-left: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trade-empty { padding: 40px 20px; text-align: center; color: var(--dim); font-size: 12px; }
.trade-pager { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; }
.trade-pager .btn[disabled] { opacity: .35; cursor: not-allowed; }

/* misc */
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap14 { gap: 14px; }
.wrap { flex-wrap: wrap; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.note { font-size: 11.5px; color: var(--dim); line-height: 1.6; padding: 11px 13px; border: 1px dashed var(--line-2); border-radius: 10px; background: rgba(6,9,16,.25); }
.big-number { font-family: var(--mono); font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(148,163,184,.06); font-size: 12px; }
.kv:last-child { border-bottom: none; }
.kv span:first-child { color: var(--dim); }
.kv span:last-child { font-family: var(--mono); text-align: right; }
.bar-list { display: flex; flex-direction: column; gap: 3px; }
.bar-row { display: grid; grid-template-columns: 68px 1fr 44px; gap: 7px; align-items: center; font-size: 10.5px; line-height: 1.2; }
.bar-track { height: 5px; border-radius: 99px; background: rgba(148,163,184,.1); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; }
.marquee { position: relative; overflow: hidden; }
.model-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); }
.model-dot { width: 6px; height: 6px; border-radius: 50%; }

@media (max-width: 1200px) {
  .g5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .sidebar { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: 62px; width: 100%; flex: none; flex-direction: row; padding: 6px 8px; border-right: none; border-top: 1px solid var(--line-2); overflow-x: auto; }
  .brand, .nav-label, .sidebar-foot { display: none; }
  .nav { flex-direction: row; gap: 2px; width: 100%; justify-content: space-around; }
  .nav-link { flex-direction: column; gap: 2px; font-size: 9.5px; padding: 5px 8px; flex: 1; align-items: center; border-radius: 8px; }
  .nav-link svg { width: 18px; height: 18px; }
  .main { padding: 0 14px 90px; }
  .topbar { padding-top: 10px; }
  .ticker { display: none; }
  .top-right { margin-left: auto; }
  .g3, .g4, .g5, .g2 { grid-template-columns: 1fr 1fr; }
  .hero { padding: 22px; }
  .hero h1 { font-size: 26px; }
  .page-title { font-size: 23px; }
  .podium { grid-template-columns: 1fr; }
  .strategy-grid { grid-template-columns: 1fr; }
  .lobby-split, .system-split { grid-template-columns: 1fr; }
  .market-body { grid-template-columns: 1fr; gap: 16px; }
  .market-sectors-block, .market-weak-block { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .breadth-main { grid-template-columns: 1fr; gap: 12px; }
  .lobby-stats-inline { margin-left: 0; width: 100%; border-top: 1px solid var(--line); padding-top: 10px; }
  .trade-row { grid-template-columns: 44px 40px 1fr 1fr; }
  .trade-qty, .trade-amt, .trade-season { display: none; }
  .trade-reason { grid-column: 3 / -1; }
}
@media (max-width: 620px) {
  .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
  .page-head { align-items: flex-start; }
  .table { min-width: 640px; }
  .hero-meta { gap: 6px; }
  .lobby-stats { gap: 18px; }
  .lobby-stat b { font-size: 18px; }
  .lobby-market-top { align-items: flex-start; }
  .market-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 3px; }
  .market-chip { flex: 0 0 auto; }
  .trade-row { grid-template-columns: 42px 38px 1fr; }
  .trade-who, .trade-stock, .trade-reason { grid-column: 3; }
  .trade-season { display: block; grid-column: 3; text-align: left; }
  .trade-reason { white-space: normal; }
  .index-trends .g3 { grid-template-columns: 1fr; }
}

/* ---------- 意见建议留言板 ---------- */
.fb-list { display: flex; flex-direction: column; gap: 12px; }
.fb-post { display: flex; flex-direction: column; gap: 10px; }
.fb-head { display: flex; align-items: center; gap: 10px; }
.fb-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(34, 211, 238, .12); border: 1px solid rgba(34, 211, 238, .25);
  color: var(--cyan); font-weight: 700; font-size: 14px; flex: 0 0 auto;
}
.fb-meta { flex: 1; min-width: 0; }
.fb-name { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.fb-body { font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.fb-actions { display: flex; align-items: center; gap: 10px; }
.fb-actions .btn { display: inline-flex; align-items: center; gap: 5px; }
.fb-actions .btn svg { width: 14px; height: 14px; }
.fb-replies {
  display: flex; flex-direction: column; gap: 8px; margin-top: 2px;
  border-left: 2px solid var(--line-2); padding-left: 12px;
}
.fb-reply { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; }
.fb-reply-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; font-size: 12.5px; }
.fb-reply-head b { font-weight: 600; color: var(--muted); }
.fb-reply-head .btn { margin-left: auto; }
.fb-reply-body { font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.fb-reply-form { display: flex; gap: 8px; margin-top: 2px; }
.fb-reply-form .input { flex: 1; height: 34px; }

.foot-note {
  margin-top: 8px; font-size: 10.5px; line-height: 1.5; color: var(--dim);
  border-top: 1px dashed var(--line); padding-top: 7px;
}

/* ---------- 访问统计 ---------- */
.an-cols { display: flex; align-items: flex-end; gap: 3px; overflow-x: auto; padding-bottom: 2px; }
.an-col { flex: 1 0 auto; min-width: 14px; max-width: 42px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.an-col-bar { width: 100%; display: flex; align-items: flex-end; }
.an-col-bar span { display: block; width: 100%; border-radius: 3px 3px 1px 1px; opacity: .82; transition: opacity .15s; }
.an-col:hover .an-col-bar span { opacity: 1; }
.an-col-x { font-family: var(--mono); font-size: 9px; color: var(--dim); white-space: nowrap; }

.an-bar-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--mono); color: var(--muted); text-align: left;
}
.bar-row { grid-template-columns: 132px 1fr 46px; }
.an-bar-num { font-family: var(--mono); font-size: 10px; color: var(--dim); text-align: right; }

.an-list { display: flex; flex-direction: column; gap: 8px; }
.an-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2);
  border-left-width: 3px;
}
.an-item.an-error { border-left-color: #fb7185; }
.an-item.an-warn { border-left-color: #f5b544; }
.an-item.an-info { border-left-color: #38bdf8; }
.an-item .pill { flex: 0 0 auto; }
.an-item .small { color: var(--muted); line-height: 1.5; }

.an-ua { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  .bar-row { grid-template-columns: 96px 1fr 42px; }
}

.foot-links {
  display: flex; align-items: center; gap: 6px; margin-top: 7px;
  font-size: 11px; color: var(--dim);
}
.foot-links a { color: var(--dim); text-decoration: none; }
.foot-links a:hover { color: var(--cyan); }
