/* ==========================================================
   X财觅实验室 · X FINANCE LAB
   暗色科研 / 霓虹实验室视觉系统
   ========================================================== */

:root {
  --bg: #04060d;
  --bg-2: #070c17;
  --panel: rgba(13, 20, 34, 0.72);
  --panel-solid: #0b1220;
  --line: rgba(110, 160, 210, 0.14);
  --line-strong: rgba(46, 230, 208, 0.34);
  --cyan: #2ee6d0;
  --cyan-soft: rgba(46, 230, 208, 0.14);
  --violet: #8b5cf6;
  --violet-soft: rgba(139, 92, 246, 0.14);
  --amber: #f5c451;
  --text: #e9f0fb;
  --muted: #7d8ba4;
  --muted-2: #55637c;
  --up: #ff4d6a;
  --down: #12c98b;
  --radius: 14px;
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(46, 230, 208, 0.28); color: #fff; }

/* ---------------- 背景层 ---------------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(90, 140, 190, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 140, 190, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

.bg-orbit {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-orbit span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(46, 230, 208, 0.10);
  left: 50%;
  top: -22vmax;
  width: 52vmax;
  height: 52vmax;
  transform: translateX(-50%);
  animation: orbitPulse 14s ease-in-out infinite;
}
.bg-orbit span:nth-child(2) { width: 76vmax; height: 76vmax; top: -34vmax; border-color: rgba(139, 92, 246, 0.09); animation-delay: -4s; }
.bg-orbit span:nth-child(3) { width: 104vmax; height: 104vmax; top: -48vmax; border-color: rgba(46, 230, 208, 0.05); animation-delay: -8s; }
@keyframes orbitPulse {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 26px;
  height: 66px;
  background: rgba(4, 6, 13, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .5;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  position: relative;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(46, 230, 208, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 22px rgba(46, 230, 208, 0.18), inset 0 0 14px rgba(46, 230, 208, 0.08);
}
.brand-mark i {
  font-style: normal;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 19px;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(46, 230, 208, 0.9);
}
.brand-mark.sm { width: 22px; height: 22px; border-radius: 6px; }
.brand-mark.sm i { font-size: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 15px; letter-spacing: .5px; }
.brand-text small {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 2.4px;
  color: var(--muted-2);
}

.nav { display: flex; gap: 4px; margin-left: 6px; }
.nav a {
  position: relative;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--muted);
  border-radius: 8px;
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.nav a.active { color: var(--cyan); background: var(--cyan-soft); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 1.5px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.live-dot {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.6px;
  color: var(--muted-2);
}
.live-dot i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--down);
  box-shadow: 0 0 10px var(--down);
  animation: blink 1.8s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13px;
  transition: all .18s;
}
.btn:hover { border-color: var(--line-strong); background: rgba(46, 230, 208, 0.08); }
.btn .ico { width: 14px; height: 14px; }
.btn-primary {
  background: linear-gradient(135deg, rgba(46, 230, 208, 0.92), rgba(24, 178, 165, 0.92));
  color: #04120f;
  border: none;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(46, 230, 208, 0.22);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 8px 30px rgba(46, 230, 208, 0.34); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------- 头部账号区 ---------------- */
.user-slot { position: relative; }
#btnLogin { cursor: pointer; }
#btnLogin .btn-label { display: inline-block; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
#btnLogin .caret { width: 12px; height: 12px; opacity: .6; transition: transform .18s; }
.user-slot.open #btnLogin .caret { transform: rotate(180deg); }
.user-slot.open #btnLogin,
.user-slot.on #btnLogin { border-color: rgba(46, 230, 208, .3); background: rgba(46, 230, 208, .07); color: var(--text); }
.user-slot.on #btnLogin .avatar { width: 20px; height: 20px; font-size: 10px; }

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 226px;
  padding: 8px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0b1220, #060b15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .04);
  z-index: 120;
  animation: umDrop .16s ease-out;
}
.user-menu[hidden] { display: none; }
@keyframes umDrop {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.um-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 11px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.um-head .avatar.lg {
  width: 32px; height: 32px; font-size: 13px;
  box-shadow: 0 0 16px rgba(46, 230, 208, .28);
}
.um-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.um-id b {
  font-size: 13px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.um-id small {
  font-family: var(--mono); font-size: 10px; letter-spacing: .4px;
  color: var(--muted-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.um-item {
  display: block; width: 100%;
  padding: 9px 10px;
  border: none; border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color .16s, background .16s;
}
.um-item:hover { background: rgba(46, 230, 208, .09); color: var(--cyan); }
.um-item[hidden] { display: none; }
.um-item.danger { color: #ff9b9b; }
.um-item.danger:hover { background: rgba(255, 96, 96, .12); color: #ff6f6f; }
.um-sep { height: 1px; margin: 6px 4px; background: var(--line); }

/* ---------------- 跑马灯 ---------------- */
.ticker {
  position: relative;
  z-index: 40;
  height: 34px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(6, 10, 19, .9), rgba(8, 13, 24, .6), rgba(6, 10, 19, .9));
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  height: 34px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.tick-item b { color: var(--text); font-weight: 500; }
.tick-item .up { color: var(--up); }
.tick-item .down { color: var(--down); }

/* ---------------- 布局 ---------------- */
.view {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 26px 70px;
  min-height: 60vh;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}
.section-title {
  display: flex; align-items: center; gap: 11px;
  font-size: 17px; font-weight: 600; letter-spacing: .4px;
  margin: 0;
  white-space: nowrap;
}
.section-title::before {
  content: "";
  width: 3px; height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(46, 230, 208, 0.7);
}
.section-sub { font-size: 12px; color: var(--muted-2); font-family: var(--mono); }

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 11px; height: 11px;
  border: 1px solid rgba(46, 230, 208, 0.42);
  pointer-events: none;
}
.panel::before { left: -1px; top: -1px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.panel::after { right: -1px; bottom: -1px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.hero-head { margin-bottom: 16px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 2.2px;
  color: var(--cyan);
  padding: 4px 10px;
  border: 1px solid rgba(46, 230, 208, 0.28);
  border-radius: 999px;
  background: rgba(46, 230, 208, 0.06);
  margin-bottom: 14px;
}
.hero-title {
  font-size: 30px;
  line-height: 1.28;
  margin: 0 0 10px;
  font-weight: 650;
  letter-spacing: .6px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc { color: var(--muted); font-size: 13.5px; margin: 0; max-width: 560px; }

/* 指数网格（首页一次只显示 4 个，分 3 组轮换） */
.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.index-grid.idx-swap .idx-card { animation: idxIn .34s cubic-bezier(.2, .7, .3, 1) both; }
.index-grid.idx-swap .idx-card:nth-child(2) { animation-delay: .05s; }
.index-grid.idx-swap .idx-card:nth-child(3) { animation-delay: .1s; }
.index-grid.idx-swap .idx-card:nth-child(4) { animation-delay: .15s; }
@keyframes idxIn {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}
.idx-dots { display: flex; align-items: center; gap: 5px; margin-top: 10px; }
.idx-dots[hidden] { display: none; }
.idx-dot {
  width: 16px; height: 3px; padding: 0;
  border: none; border-radius: 2px;
  background: rgba(255, 255, 255, .14);
  cursor: pointer;
  transition: width .25s, background .25s;
}
.idx-dot:hover { background: rgba(255, 255, 255, .3); }
.idx-dot.on { width: 24px; background: var(--cyan); }
.idx-card {
  position: relative;
  padding: 14px 15px 12px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(18, 26, 42, 0.9), rgba(10, 15, 26, 0.86));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.idx-card:hover { border-color: rgba(46, 230, 208, 0.3); transform: translateY(-2px); }
.idx-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.idx-name { font-size: 12.5px; color: var(--muted); }
.idx-region {
  font-family: var(--mono); font-size: 9px; letter-spacing: 1px;
  padding: 1.5px 6px; border-radius: 4px;
  color: var(--muted-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.idx-price {
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .5px;
  line-height: 1.2;
  transition: color .3s;
}
.idx-price.up { color: var(--up); }
.idx-price.down { color: var(--down); }
.idx-change { font-family: var(--mono); font-size: 11.5px; margin-top: 2px; }
.idx-change.up { color: var(--up); }
.idx-change.down { color: var(--down); }
.idx-spark { position: absolute; right: 10px; bottom: 8px; width: 62px; height: 26px; opacity: .8; }

/* ---------------- 榜单 ---------------- */
.board { margin-top: 26px; }
.board-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}
.seg button {
  border: none; background: transparent; color: var(--muted);
  font-size: 12px; padding: 5px 12px; border-radius: 6px;
  transition: all .16s;
}
.seg button.on { background: rgba(46, 230, 208, 0.14); color: var(--cyan); }

.pick-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.pick {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 16px 16px 15px 14px;
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(16, 23, 38, 0.86), rgba(9, 13, 23, 0.9));
  border: 1px solid var(--line);
  transition: border-color .2s, background .2s, transform .2s;
  animation: rise .38s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pick:hover { border-color: rgba(46, 230, 208, 0.26); background: linear-gradient(150deg, rgba(19, 28, 46, 0.92), rgba(10, 15, 26, 0.92)); }
.pick.rank-1 {
  border-color: rgba(245, 196, 81, 0.5);
  background: linear-gradient(145deg, rgba(40, 33, 16, 0.72), rgba(12, 15, 24, 0.92));
  box-shadow: 0 0 34px rgba(245, 196, 81, 0.10), inset 0 0 40px rgba(245, 196, 81, 0.04);
}
.pick.rank-1::after {
  content: "今日之星";
  position: absolute; top: -9px; right: 14px;
  font-size: 10px; letter-spacing: 1px;
  padding: 2.5px 9px;
  border-radius: 999px;
  background: linear-gradient(100deg, #f5c451, #d99b1f);
  color: #241a02;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(245, 196, 81, 0.34);
}
.pick.rank-2 { border-color: rgba(200, 215, 235, 0.28); }
.pick.rank-3 { border-color: rgba(200, 150, 100, 0.28); }

.pick-rank {
  flex-shrink: 0;
  width: 34px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.3;
  padding-top: 2px;
}
.pick.rank-1 .pick-rank { color: var(--amber); text-shadow: 0 0 18px rgba(245, 196, 81, .6); }
.pick.rank-2 .pick-rank { color: #c8d7eb; }
.pick.rank-3 .pick-rank { color: #d09a6a; }

.pick-main { flex: 1; min-width: 0; }
.pick-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
.pick-name { font-size: 15.5px; font-weight: 600; letter-spacing: .3px; }
.pick-code { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.market-tag {
  font-size: 10px; padding: 1.5px 6px; border-radius: 4px;
  font-family: var(--mono); letter-spacing: .5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}
.market-tag.A { color: #ff9f6a; border-color: rgba(255, 159, 106, .3); }
.market-tag.HK { color: #6aa8ff; border-color: rgba(106, 168, 255, .3); }
.market-tag.US { color: #a98bff; border-color: rgba(169, 139, 255, .3); }
.pick-quote { margin-left: auto; font-family: var(--mono); font-size: 12.5px; }
.pick-quote.up { color: var(--up); }
.pick-quote.down { color: var(--down); }

.pick-reason {
  color: #b8c6dc;
  font-size: 13px;
  line-height: 1.72;
  margin: 6px 0 9px;
  word-break: break-word;
}
.pick-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted-2); }
.tag {
  font-size: 11px;
  padding: 1.5px 8px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(46, 230, 208, 0.09);
  border: 1px solid rgba(46, 230, 208, 0.2);
}
.tag.violet { color: #b79bff; background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.24); }
.meta-author { display: inline-flex; align-items: center; gap: 6px; color: #93a3bb; }
.avatar {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 9px; font-weight: 700;
  color: #06110f;
  background: linear-gradient(140deg, var(--cyan), #7de8dc);
  flex-shrink: 0;
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }

.like-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  font-family: var(--mono);
  transition: all .18s;
  flex-shrink: 0;
  align-self: center;
}
.like-btn:hover { border-color: rgba(255, 77, 106, 0.4); color: var(--up); background: rgba(255, 77, 106, 0.07); }
.like-btn.liked {
  border-color: rgba(255, 77, 106, 0.55);
  color: var(--up);
  background: rgba(255, 77, 106, 0.1);
}
.like-btn svg { width: 13px; height: 13px; }
.like-btn.pop { animation: pop .34s ease; }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.16); } 100% { transform: scale(1); } }

/* ---------------- 侧栏 ---------------- */
.side { display: flex; flex-direction: column; gap: 14px; }
.side-card { padding: 16px; }
.side-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--muted); margin-bottom: 12px;
  font-family: var(--mono); letter-spacing: 1px;
}
.mine-box { text-align: center; padding: 8px 0 4px; }
.mine-none { color: var(--muted-2); font-size: 12.5px; padding: 10px 0 14px; }
.mine-stock { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.mine-stock small { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin-left: 6px; }
.mine-like {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; color: var(--up);
  margin: 6px 0 12px;
}
.mine-actions { display: flex; gap: 8px; justify-content: center; }

.stat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: var(--muted);
}
.stat-row:last-child { border-bottom: none; }
.stat-row b { font-family: var(--mono); font-size: 14px; color: var(--text); font-weight: 600; }

.heat-bar { margin-top: 4px; }
.heat-item { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; font-size: 12px; color: var(--muted); }
.heat-label { width: 42px; flex-shrink: 0; font-family: var(--mono); }
.heat-track { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; display: block; }
.heat-fill { display: block; height: 100%; min-height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.heat-val { width: 30px; text-align: right; font-family: var(--mono); font-size: 11px; }

/* ---------------- 新闻页 ---------------- */
.news-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  transition: all .16s;
}
.chip:hover { color: var(--text); border-color: rgba(46, 230, 208, .28); }
.chip.on { color: var(--cyan); border-color: rgba(46, 230, 208, .45); background: rgba(46, 230, 208, .1); }

.news-list { display: flex; flex-direction: column; gap: 2px; }
.news-item {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 15px 16px 15px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background .18s, border-color .18s;
  animation: rise .3s ease both;
}
.news-item:hover { background: rgba(255, 255, 255, 0.025); border-color: var(--line); }
.news-time {
  flex-shrink: 0; width: 52px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--muted-2);
  padding-top: 2px;
}
.news-time b { display: block; color: var(--muted); font-weight: 500; }
.news-body { flex: 1; min-width: 0; }
.news-title { font-size: 14px; font-weight: 550; line-height: 1.55; margin-bottom: 4px; }
.news-title:hover { color: var(--cyan); }
.news-summary {
  font-size: 12.5px; color: #93a3bb; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-foot { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 11px; color: var(--muted-2); }
.news-foot .src { font-family: var(--mono); }

/* ---------------- 策略页 ---------------- */
.strategy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.st-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(17, 24, 40, 0.9), rgba(8, 12, 21, 0.92));
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
  overflow: hidden;
  animation: rise .34s ease both;
}
.st-card:hover { border-color: rgba(139, 92, 246, 0.4); transform: translateY(-3px); }
.st-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent);
  opacity: .7;
}
.st-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.st-badge {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.2px;
  padding: 2px 8px; border-radius: 4px;
  color: var(--violet);
  background: var(--violet-soft);
  border: 1px solid rgba(139, 92, 246, .3);
}
.st-date { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }
.st-title { font-size: 16px; font-weight: 600; line-height: 1.45; margin: 0 0 10px; }
.st-stock {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(46, 230, 208, 0.05);
  border: 1px solid rgba(46, 230, 208, 0.14);
  margin-bottom: 12px;
}
.st-stock .n { font-weight: 600; font-size: 13.5px; }
.st-stock .c { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.st-stock .s { margin-left: auto; font-size: 11px; color: var(--cyan); }
.st-block { margin-bottom: 11px; }
.st-block h4 {
  margin: 0 0 4px; font-size: 11px; letter-spacing: 1.5px;
  color: var(--muted-2); font-weight: 500; font-family: var(--mono);
  display: flex; align-items: center; gap: 6px;
}
.st-block h4::before { content: ""; width: 3px; height: 10px; background: var(--cyan); border-radius: 2px; }
.st-block p { margin: 0; font-size: 12.8px; color: #a9b8cf; line-height: 1.72; }
.st-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* ---------------- 后台 ---------------- */
.admin-login {
  max-width: 380px; margin: 8vh auto;
  padding: 30px 28px;
}
.admin-login h2 { margin: 0 0 6px; font-size: 19px; }
.admin-login p { margin: 0 0 20px; color: var(--muted); font-size: 12.5px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.admin-stat {
  padding: 15px 16px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(18, 26, 42, .9), rgba(9, 13, 23, .9));
  border: 1px solid var(--line);
}
.admin-stat span { font-size: 11.5px; color: var(--muted); display: block; margin-bottom: 5px; }
.admin-stat b { font-family: var(--mono); font-size: 24px; font-weight: 600; }
.admin-stat b.cyan { color: var(--cyan); }
.admin-stat b.amber { color: var(--amber); }
.admin-stat b.violet { color: #b79bff; }

.admin-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin-tabs button {
  border: none; background: transparent; color: var(--muted);
  padding: 9px 16px; font-size: 13px; border-bottom: 2px solid transparent;
  transition: all .16s;
}
.admin-tabs button.on { color: var(--cyan); border-bottom-color: var(--cyan); }

.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th {
  text-align: left; padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted); font-weight: 500; font-size: 11.5px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); color: #b8c6dc; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }
td .mono { font-family: var(--mono); }
.seed-flag {
  display: inline-flex; align-items: center; vertical-align: middle;
  font-size: 10px; padding: 1px 6px; border-radius: 4px;
  background: rgba(245, 196, 81, .12); color: var(--amber);
  border: 1px solid rgba(245, 196, 81, .28);
  letter-spacing: .2px; line-height: 1.6;
}
/* 管理员视角提示条：只有管理员登录后才会渲染出来 */
.admin-note {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 18px 0 -6px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12px; color: #c9b98a;
  background: linear-gradient(90deg, rgba(245, 196, 81, .09), rgba(245, 196, 81, .02));
  border: 1px solid rgba(245, 196, 81, .22);
  border-left: 2px solid var(--amber);
}
.admin-note-key {
  font-family: var(--mono); font-size: 10px; letter-spacing: .6px;
  padding: 2px 7px; border-radius: 4px; white-space: nowrap;
  color: var(--amber); background: rgba(245, 196, 81, .14);
  border: 1px solid rgba(245, 196, 81, .3);
}
.admin-note a { color: var(--amber); text-decoration: none; border-bottom: 1px dashed rgba(245, 196, 81, .45); }
.admin-note a:hover { color: #ffd97a; }

/* ---------------- 表单 ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; flex: 1; min-width: 0; }
.field[hidden] { display: none; }
.field > span { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.field > span em { font-style: normal; font-family: var(--mono); color: var(--cyan); }
.field > span small { color: var(--muted-2); font-size: 10.5px; }
.field-row { display: flex; gap: 12px; }
.field.grow { flex: 2; }

input[type=text], input[type=password], input[type=email], input[type=tel], input[type=url], input:not([type]), select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.8);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(46, 230, 208, 0.5);
  box-shadow: 0 0 0 3px rgba(46, 230, 208, 0.1);
}
textarea { resize: vertical; line-height: 1.7; }
select { appearance: none; cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }

.suggest {
  position: relative;
  z-index: 20;
}
.suggest-pop {
  position: absolute; left: 0; right: 0; top: 4px;
  max-height: 210px; overflow-y: auto;
  background: #0b1220;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .6);
  padding: 4px;
}
.suggest-item {
  padding: 8px 10px; border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
}
.suggest-item:hover, .suggest-item.on { background: rgba(46, 230, 208, 0.1); }
.suggest-item .c { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.suggest-item .m { margin-left: auto; font-size: 10px; color: var(--muted-2); }

.tag-picker { display: flex; gap: 7px; flex-wrap: wrap; }
.tag-picker button {
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  color: var(--muted); transition: all .16s;
}
.tag-picker button.on { color: var(--cyan); border-color: rgba(46, 230, 208, .45); background: rgba(46, 230, 208, .1); }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.form-hint { font-size: 12px; color: var(--up); min-height: 18px; }

/* ---------------- 弹窗 ---------------- */
.modal {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(160deg, #0c1424, #070b14);
  color: var(--text);
  padding: 26px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .75), 0 0 0 1px rgba(46, 230, 208, .08);
}
.modal.wide { width: min(680px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(2, 4, 9, 0.78); backdrop-filter: blur(6px); }
.modal-close {
  position: absolute; right: 14px; top: 12px;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 18px; line-height: 1;
  transition: all .16s;
}
.modal-close:hover { color: var(--text); border-color: rgba(255, 77, 106, .4); }
.modal-head { margin-bottom: 18px; }
.modal-head h2 { margin: 0 0 5px; font-size: 19px; letter-spacing: .4px; }
.modal-head p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ---------------- 登录弹窗：邮箱验证码 ---------------- */
.mail-form { display: block; }
.code-row { display: flex; gap: 10px; align-items: flex-end; }
.code-row .field { margin-bottom: 14px; }
.code-send {
  margin-bottom: 14px;
  white-space: nowrap;
  min-width: 104px;
  justify-content: center;
}
.code-send:disabled { opacity: .55; }
.mail-submit { width: 100%; justify-content: center; margin-top: 2px; }
.mail-foot {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted-2);
}

/* 后台：邮件服务 */
.mail-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .6px;
  padding: 3px 9px; border-radius: 999px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}
.mail-badge.on {
  color: var(--cyan);
  border-color: rgba(46, 230, 208, .32);
  background: rgba(46, 230, 208, .1);
}
.mail-intro { font-size: 12.5px; color: var(--muted); line-height: 1.75; margin: 0 0 16px; }
.mail-intro b { color: var(--amber); font-weight: 600; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 2px 0 10px; cursor: pointer; }
.check-row input { width: 14px; height: 14px; accent-color: #2ee6d0; }
.mail-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 8px; }
.mail-uptime { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }
.mail-help { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); }
.mail-help p { font-size: 11.5px; color: var(--muted-2); line-height: 1.75; margin: 10px 0 0; }
.mail-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.mail-table td {
  padding: 7px 8px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.mail-table td:first-child { width: 118px; color: var(--text); }
.mail-table code { font-family: var(--mono); font-size: 11px; color: var(--cyan); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%; bottom: 40px;
  transform: translate(-50%, 20px);
  z-index: 200;
  padding: 11px 20px;
  border-radius: 10px;
  background: rgba(12, 20, 34, .96);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6);
  opacity: 0;
  pointer-events: none;
  transition: all .26s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(255, 77, 106, .5); color: #ffb3c1; }

/* ---------------- 空态 / 加载 ---------------- */
.empty {
  text-align: center;
  padding: 52px 20px;
  color: var(--muted-2);
  font-size: 13px;
}
.empty .big { font-size: 32px; margin-bottom: 10px; opacity: .5; font-family: var(--mono); }
.skeleton {
  height: 88px; border-radius: 13px;
  background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-bottom: 10px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------------- 页脚 ---------------- */
.footer {
  position: relative; z-index: 10;
  border-top: 1px solid var(--line);
  background: rgba(4, 6, 13, .8);
  padding: 22px 26px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted-2);
}
.footer-brand { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.footer-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.footer-links { margin-left: auto; display: flex; gap: 16px; }
.footer-links a:hover { color: var(--cyan); }

/* ---------------- 动效降级（无障碍 + 防动画中断导致内容不可见） ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker-track { animation: none !important; }
  .pick, .st-card, .news-item, .idx-card { opacity: 1 !important; transform: none !important; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .side { flex-direction: row; flex-wrap: wrap; }
  .side-card { flex: 1; min-width: 260px; }
}

@media (max-width: 760px) {
  .topbar { height: auto; min-height: 58px; padding: 8px 14px 0; gap: 10px; flex-wrap: wrap; }
  .brand-text b { font-size: 13.5px; }
  .brand-text small { display: none; }
  /* 窄屏：导航换到第二行，避免把「登录/注册」挤出屏幕 */
  .nav { order: 3; width: 100%; margin: 0; gap: 2px; padding-bottom: 5px; justify-content: center; }
  .nav a { padding: 6px 12px; font-size: 12.5px; }
  .live-dot { display: none; }
  .topbar-right .btn { padding: 7px 11px; font-size: 12px; }
  #btnLogin .btn-label { max-width: 66px; }
  .user-menu { width: 208px; right: -4px; }
  .view { padding: 20px 14px 60px; }
  .section-head { flex-wrap: wrap; align-items: center; gap: 10px; }
  .hero-title { font-size: 22px; }
  .index-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .idx-price { font-size: 17px; }
  .idx-spark { display: none; }
  .pick { padding: 13px 12px; gap: 9px; flex-wrap: wrap; }
  .pick-rank { width: 24px; font-size: 17px; }
  .pick-reason { font-size: 12.5px; }
  .like-btn { margin-left: 0; order: 3; }
  .pick-quote { font-size: 11.5px; }
  .side { flex-direction: column; }
  .side-card { min-width: 0; }
  .strategy-grid { grid-template-columns: 1fr; }
  .code-row { flex-direction: column; align-items: stretch; gap: 0; }
  .code-send { margin: -6px 0 14px; }
  .field-row { flex-direction: column; gap: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-links { margin-left: 0; }
  .news-time { width: 44px; font-size: 10.5px; }
  .modal { padding: 22px 18px; }
  .admin-tabs { overflow-x: auto; }
}
