:root {
  --bg: #f3f2f0;
  --side: #140e0d;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #a3a3a3;
  --red: #f0342c;
  --red-2: #ee3b32;
  --green: #2fbf6e;
  --orange: #ff8a1f;
  --gold: #f5b400;
  --line: #f0efed;
  --side-w: 176px;
  --shadow: 0 1px 2px rgba(28, 16, 12, 0.04);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font-family: inherit; }
button { cursor: pointer; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.app { display: flex; min-height: 100vh; min-width: 1180px; }

.sidebar {
  width: var(--side-w);
  flex: 0 0 var(--side-w);
  background: var(--side);
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.sidebar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 240px;
  background: radial-gradient(ellipse at 50% 115%, rgba(176, 36, 18, 0.55), rgba(90, 16, 10, 0.18) 46%, transparent 72%);
  pointer-events: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 16px 14px;
  position: relative;
  z-index: 1;
}
.brand svg { flex: 0 0 auto; }
.brand span {
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.4px;
}
.nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 10px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 13px;
}
.nav a svg { flex: 0 0 auto; opacity: 0.9; }
.nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav a.on {
  background: linear-gradient(90deg, #e23b30 0%, #7d2822 100%);
  color: #fff;
  font-weight: 600;
}
.nav a.on svg { opacity: 1; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.banner {
  height: 120px;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(42, 12, 8, 0.28) 0%, rgba(42, 12, 8, 0.05) 38%, rgba(0, 0, 0, 0) 62%),
    url("../assets/hero.jpg") 72% center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 36px;
  overflow: hidden;
}
.banner-copy { position: relative; z-index: 1; }
.banner h1 {
  margin: 0;
  color: #fff;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-weight: 900;
  font-style: italic;
  font-size: 28px;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  line-height: 1.25;
}
.swoosh {
  height: 4px;
  width: 210px;
  margin: 6px 0 8px 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff2a18 0%, #ff5a32 55%, rgba(255, 80, 40, 0) 100%);
  transform: skewX(-18deg);
}
.banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.banner-user {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #fff;
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
}
.dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  background: #ff3b30;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.who {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 13px;
  padding: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: #c9b8ae;
  overflow: hidden;
  display: block;
}
.pop {
  position: absolute;
  top: 46px;
  right: 18px;
  width: 280px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  z-index: 5;
  overflow: hidden;
}
.pop header {
  padding: 10px 14px;
  font-weight: 650;
  border-bottom: 1px solid var(--line);
}
.pop article {
  padding: 10px 14px;
  border-bottom: 1px solid #f6f6f6;
}
.pop article b { display: block; font-size: 13px; }
.pop article span { color: #888; font-size: 12px; }
.pop[hidden] { display: none; }

.content { padding: 8px; flex: 1; }
.page { display: none; }
.page.on { display: block; }

.home {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1.16fr) minmax(0, 0.96fr);
  gap: 8px;
  align-items: stretch;
}
.home > .card { display: flex; flex-direction: column; min-height: 0; }
.span { grid-column: 1 / -1; }

.kpis {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1.05fr 0.92fr 1.32fr;
  gap: 8px;
}
.card {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 10px 14px 8px;
}
.kpi { min-height: 0; }
.kpi-hd { display: flex; align-items: center; gap: 8px; color: #666; font-size: 13px; }
.ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}
.ic-red { background: #ff4d4a; }
.ic-orange { background: #ff8d1f; }
.ic-gold { background: #f6b423; }
.ic-green { background: #2fbf6e; }
.lg i.gold { background: #f5b400; }
.kpi-num {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #1a1a1a;
}
.kpi-sub { margin-top: 2px; color: #a0a0a0; font-size: 12px; }
.kpi-sub em, .up { color: var(--red); font-style: normal; font-weight: 650; }
.down { color: var(--green); font-style: normal; font-weight: 650; }

.kpi-index { display: block; }
.idx-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kpi-index .kpi-name { font-weight: 650; color: #222; font-size: 14px; white-space: nowrap; }
.spark { width: 112px; height: 46px; flex: 0 0 auto; }
.idx-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: #8d8d8d;
  white-space: nowrap;
}
.idx-line b { color: #222; font-weight: 700; font-size: 13px; }
.idx-line em { font-size: 12px; }

.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  min-height: 24px;
}
.card-hd h3 { margin: 0; font-size: 15px; font-weight: 650; }
.linkish {
  border: 0;
  background: transparent;
  color: #b5b5b5;
  font-size: 12px;
  padding: 0;
}
.linkish:hover { color: var(--red); }

.tabs { display: flex; gap: 16px; align-items: center; }
.tabs button {
  border: 0;
  background: transparent;
  color: #9a9a9a;
  font-size: 13px;
  padding: 0 0 4px;
  border-bottom: 2px solid transparent;
}
.tabs button.on { color: var(--red); font-weight: 650; border-bottom-color: var(--red); }

.hist-body { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 6px; align-items: stretch; flex: 1; min-height: 168px; }
.hist-side { padding: 4px 0 4px 8px; }
.hs-k { color: #9a9a9a; font-size: 12px; }
.hs-v { color: var(--red); font-size: 26px; font-weight: 750; margin: 4px 0 10px; letter-spacing: -0.4px; }
.hs-v.down { color: var(--green); }
.lhb-note { margin: -4px 2px 12px; color: #999; font-size: 12px; }
#lhbBoard { display: flex; flex-direction: column; gap: 12px; }
.lhb-card h3 { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lhb-card h3 .stk { display: flex; gap: 8px; align-items: baseline; }
.lhb-card h3 .stk small { display: inline; }
.lhb-meta { display: flex; gap: 14px; align-items: baseline; color: #888; font-size: 12px; white-space: nowrap; }
.lhb-mini { table-layout: fixed; }
.lhb-mini th, .lhb-mini td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lhb-mini td.r, .lhb-mini th.r { width: 108px; }
.lhb-mini td:last-child, .lhb-mini th:last-child { width: 32%; }
.home .lhb { table-layout: fixed; width: 100%; }
.page[data-page="lhb"] .lhb { table-layout: fixed; width: 100%; }
.home .lhb th:nth-child(1), .home .lhb td:nth-child(1) { width: 96px; }
.home .lhb th:nth-child(2), .home .lhb td:nth-child(2),
.home .lhb th:nth-child(3), .home .lhb td:nth-child(3) { width: 76px; }
.home .lhb td:nth-child(4), .home .lhb th:nth-child(4),
#lhbPageBody td:nth-child(4), #lhbPageBody td:nth-child(5),
#hmSeats td:first-child, #lhbSeatBody td:first-child, #lhbReasonBody td:first-child {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home .lhb td.r, .home .hold td.r, #hmSeats td.r, #lhbSeatBody td.r, #lhbReasonBody td.r, #lhbPageBody td.r {
  white-space: nowrap;
}
.hs-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #9a9a9a; margin-top: 8px; }
.hs-row b { color: #333; font-weight: 650; }
#hist, #retChart { width: 100%; height: 100%; min-height: 168px; display: block; }

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-weight: 400;
  color: #c2c2c2;
  font-size: 12px;
  padding: 4px 4px 8px;
}
td { padding: 3px 4px; font-size: 12.5px; vertical-align: middle; line-height: 1.25; }
.r { text-align: right; }
.stk b { display: block; font-weight: 650; font-size: 13px; color: #222; }
.stk small { display: block; color: #c8c8c8; font-size: 11px; margin-top: 1px; }
.lhb td, .hold td { border-top: 1px solid #f7f6f5; }

.buy-top { display: grid; grid-template-columns: 128px 1fr; gap: 6px; align-items: center; margin-bottom: 2px; }
.donut { position: relative; width: 128px; height: 128px; }
.donut svg { width: 128px; height: 128px; }
.donut-c {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.donut-c span { color: #9a9a9a; font-size: 11px; line-height: 1; white-space: nowrap; }
.donut-c b { font-size: 15px; margin-top: 3px; line-height: 1; white-space: nowrap; }
.legend { display: flex; flex-direction: column; gap: 10px; }
.lg { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: start; }
.lg i { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; }
.lg i.red { background: var(--red); }
.lg i.green { background: var(--green); }
.lg .t { font-size: 12px; color: #666; }
.lg .s { font-size: 12px; color: #222; font-weight: 650; margin-top: 2px; }
.lg em { font-style: normal; font-weight: 700; font-size: 13px; }
.subhead {
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 650;
}
#flow { width: 100%; height: 132px; display: block; }
.legend-inline { display: flex; gap: 12px; color: #888; font-size: 12px; align-items: center; }
.legend-inline i { width: 8px; height: 8px; display: inline-block; margin-right: 4px; border-radius: 1px; }
.legend-inline .m { background: #f0342c; }
.legend-inline .y { background: #f5a623; }
.legend-inline .s { background: #3cba6c; }

.promo {
  padding: 0;
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: url("../assets/promo.jpg") center 40% / cover no-repeat;
  color: #fff;
}
.promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 20%, rgba(40, 12, 4, 0.55) 100%);
}
.promo-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
}
.promo h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.promo button {
  border: 0;
  background: #e10600;
  color: #fff;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 650;
}
.promo button:hover { background: #c70500; }

.page-hd { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 12px; }
.page-hd h2 { margin: 0; font-size: 16px; font-weight: 700; }
.tools { display: flex; gap: 8px; align-items: center; }
.tools input, .tools select, .field input, .field select {
  height: 32px;
  border: 1px solid #eceae8;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: #333;
  outline: none;
}
.tools input:focus, .field input:focus, .field select:focus { border-color: #f0a8a2; }
.chip {
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid #eee;
  background: #fff;
  color: #666;
  font-size: 12px;
}
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }

.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.page[data-page="positions"] .statrow { grid-template-columns: repeat(5, 1fr); }
.statrow .card b { display: block; font-size: 20px; margin-top: 6px; }
.statrow .card span { color: #999; font-size: 12px; }
.statrow .card em { display: block; margin-top: 4px; color: #999; font-style: normal; font-size: 12px; }
.page[data-page="returns"] svg { width: 100%; height: 240px; display: block; }
#retSpan, #retCurveSub { color: #999; font-size: 12px; font-weight: 400; }

.wide { width: 100%; }
.ops { display: flex; gap: 8px; }
.ops button, .primary, .ghost {
  height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 12px;
}
.ops .sell, .primary { background: var(--red); color: #fff; border: 0; }
.ghost { background: #fff; border: 1px solid #eee; color: #666; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.rule { margin: 0; padding-left: 18px; color: #444; line-height: 1.75; }
.rule li { margin: 2px 0; }
.tag {
  display: inline-block;
  background: #fff1f0;
  color: var(--red);
  border-radius: 3px;
  font-size: 11px;
  padding: 1px 6px;
  margin-right: 6px;
}
.news { display: flex; flex-direction: column; gap: 10px; }
.news article { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; }
.news time { color: #aaa; font-size: 12px; }
.news h3 { margin: 0 0 4px; font-size: 14px; }
.news p { margin: 0; color: #888; font-size: 12px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.field label { display: block; color: #999; font-size: 12px; margin-bottom: 6px; }
.field input, .field select { width: 100%; }
.switch {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  border: 0;
  background: #e5e5e5;
  position: relative;
  padding: 0;
}
.switch i {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s ease;
}
.switch.on { background: var(--red); }
.switch.on i { left: 20px; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #1b1210;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 20;
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.toast[hidden] { display: none; }

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  z-index: 30;
}
.modal-mask[hidden] { display: none; }
.modal {
  width: 380px;
  background: #fff;
  border-radius: 10px;
  padding: 18px 18px 14px;
}
.modal h3 { margin: 0 0 8px; }
.modal p { margin: 0 0 14px; color: #666; line-height: 1.6; }
.modal .ops { justify-content: flex-end; }

.trade-wrap { display: flex; flex-direction: column; gap: 8px; }
.trade-top {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1.42fr) minmax(230px, 0.96fr);
  gap: 8px;
  align-items: stretch;
}
.trade-top > .card { display: flex; flex-direction: column; min-height: 228px; }
.tr-tag {
  margin-left: auto;
  background: #fff1f0;
  color: var(--red);
  border-radius: 3px;
  font-size: 11px;
  padding: 1px 6px;
}
.asset-num {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.5px;
  color: #1a1a1a;
}
.asset-sub { margin: 6px 0 14px; color: #9a9a9a; font-size: 12px; }
.asset-note { margin: -8px 0 12px; color: #b0b0b0; font-size: 11px; line-height: 1.5; }
.asset-sub em { font-style: normal; font-weight: 650; margin-right: 6px; }
.asset-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid #f4f3f2;
  padding-top: 10px;
}
.asset-split span { display: block; color: #aaa; font-size: 12px; }
.asset-split b { display: block; margin-top: 4px; font-size: 13px; font-weight: 650; color: #222; }
#trEquity, #trRet { width: 100%; flex: 1; min-height: 176px; display: block; }
.donut-c.stack b { font-size: 22px; color: #222; font-weight: 750; }
.donut-c.stack span { margin-top: 2px; }
.trade-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.trade-kpis .card { min-height: 92px; }
.trade-kpis .tk-num { margin-top: 8px; font-size: 22px; font-weight: 750; letter-spacing: -0.3px; }
.trade-kpis .tk-num small { font-size: 13px; font-weight: 500; color: #888; margin-left: 2px; }
.trade-kpis .tk-sub { margin-top: 4px; color: #9a9a9a; font-size: 12px; }
.trade-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.82fr);
  gap: 8px;
  align-items: start;
}
.trade-side { display: flex; flex-direction: column; gap: 8px; }
.tr-count { color: #999; font-size: 12px; }
.tr-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.tr-tools input, .tr-tools select {
  height: 30px;
  border: 1px solid #eceae8;
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  color: #333;
  outline: none;
}
.tr-tools input[type="date"] { width: 132px; }
.tr-tools input[type="text"], #trSearch { width: 140px; }
.tr-tools input:focus, .tr-tools select:focus { border-color: #f0a8a2; }
.tr-tilde { color: #bbb; }
.trade-table th, .trade-table td { white-space: nowrap; }
.trade-table small { display: block; color: #c8c8c8; font-size: 11px; margin-top: 1px; font-weight: 400; }
.trade-table td { border-top: 1px solid #f7f6f5; padding-top: 8px; padding-bottom: 8px; }
.trade-table tbody tr { cursor: pointer; }
.trade-table tbody tr:hover { background: #fafafa; }
.trade-table tbody tr.tr-on { background: #fff6f5; }
th.sortable { cursor: pointer; }
th.sortable.on { color: var(--red); }
.etag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  background: #fff1f0;
  color: var(--red);
}
.etag.e2 { background: #fff6e8; color: #e08600; }
.etag.e3 { background: #eef4ff; color: #1f6feb; }
.tr-link {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 12px;
  padding: 0;
}
.tr-empty { text-align: center; color: #aaa; padding: 28px 0 !important; }
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 2px 2px;
  color: #999;
  font-size: 12px;
}
.pager .ops { align-items: center; }
.pager .ops span { color: #666; min-width: 48px; text-align: center; }
.pager button:disabled, .dr-nav button:disabled { opacity: 0.4; cursor: default; }
.tr-ret-note { color: #999; font-size: 12px; padding: 2px 2px 6px; }
.tr-promo { min-height: 148px; }
.tr-promo .promo-copy p { margin: 0 0 10px; font-size: 13px; color: rgba(255, 255, 255, 0.92); }

.qa-asof { color: #888; font-size: 12px; }
.qa-kpis .card b { font-size: 22px; }
.qa-kpis .card b small { font-size: 13px; font-weight: 600; color: #666; }
.qa-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
  align-items: start;
}
.qa-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: rgba(20, 14, 13, 0.45);
}
.qa-mask[hidden] { display: none; }
.qa-modal {
  position: relative;
  width: min(820px, 100%);
  max-height: min(86vh, 780px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 22px 24px 20px;
  box-shadow: 0 18px 48px rgba(20, 14, 13, 0.22);
}
.qa-x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 26px;
  line-height: 1;
  padding: 2px 6px;
}
.qa-modal .qa-detail-hd { padding-right: 28px; }
.qa-card-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.qa-card-hd b { font-size: 14px; }
.qa-card-hd span { color: #999; font-size: 12px; }
.qa-table { width: 100%; border-collapse: collapse; }
.qa-table td:nth-child(2), .qa-table td:nth-child(2) b { white-space: nowrap; }
.qa-table th { white-space: nowrap; }
.qa-table th {
  text-align: left;
  color: #999;
  font-weight: 500;
  font-size: 12px;
  padding: 6px 6px;
  border-bottom: 1px solid var(--line);
}
.qa-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.qa-table td small, .qa-detail-hd small, .qa-act small { display: block; color: #999; font-weight: 400; font-size: 11px; }
.qa-table tr { cursor: pointer; }
.qa-table tr.on { background: #fff6f5; }
.qa-rank {
  display: inline-flex;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #f3f2f0;
  color: #888;
  font-style: normal;
  font-size: 11px;
  align-items: center;
  justify-content: center;
}
.qa-table tr:nth-child(-n+2) .qa-rank { background: #f0342c; color: #fff; }
.qa-reason { color: #888; font-size: 12px; max-width: 140px; }
.qa-op {
  display: inline-block;
  min-width: 40px;
  text-align: center;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  font-style: normal;
}
.qa-op.buy { color: #fff; background: #f0342c; }
.qa-op.sell { color: #fff; background: #2fbf6e; }
.qa-op.wait { color: #888; background: #f3f2f0; }
.qa-op.done { color: #fff; background: #f0342c; }
.qa-op.skip { color: #868e96; background: #e9ecef; }
.qa-op.sold { color: #fff; background: #2fbf6e; }
.qa-op.watch { color: #888; background: #f3f2f0; }
.qa-sub { display: block; font-size: 10px; color: #868e96; margin-top: 3px; white-space: nowrap; }
.qa-eng { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 11px; white-space: nowrap; background: #eef4ff; color: #1f6feb; }
.qa-eng.e2 { background: #fff6e8; color: #e08600; }
.qa-eng.e3 { background: #e8f7ef; color: #1f9d55; }
.qa-eng.none { background: #f3f2f0; color: #999; }
#qaBody tr.bought td { background: rgba(240, 52, 44, 0.06); }
#qaBody tr.skipped td { opacity: 0.62; }
.qa-detail-hd { display: flex; justify-content: space-between; gap: 12px; }
.qa-detail-hd h3 { margin: 0; font-size: 18px; }
.qa-px { text-align: right; }
.qa-px b { display: block; font-size: 26px; line-height: 1.1; }
.qa-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; color: #888; font-size: 12px; }
.qa-tag { font-style: normal; border-radius: 4px; padding: 1px 6px; font-size: 12px; }
.qa-tag.buy { color: #f0342c; background: #fff0ef; }
.qa-tag.wait { color: #888; background: #f3f2f0; }
.qa-tag.seal { color: #b86e00; background: #fff6e8; }
.qa-ma { color: #999; font-size: 12px; margin: 8px 0 4px; }
.qa-svg { width: 100%; height: auto; display: block; }
.qa-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.qa-sig { border-radius: 8px; padding: 10px 12px; background: #fafafa; }
.qa-sig b { display: block; margin-bottom: 4px; }
.qa-sig p { margin: 0 0 6px; color: #555; line-height: 1.45; }
.qa-sig.buy { background: #fff6f5; }
.qa-sig.buy b { color: #f0342c; }
.qa-sig.sell { background: #f3fbf6; }
.qa-sig.sell b { color: #1f9d55; }
.qa-side { display: flex; flex-direction: column; gap: 12px; }
.qa-act { padding: 8px 0; border-bottom: 1px solid var(--line); }
.qa-act:last-child { border-bottom: 0; }
.qa-act div { display: flex; justify-content: space-between; align-items: center; }
.qa-act p { margin: 4px 0 0; color: #777; font-size: 12px; line-height: 1.4; }
.qa-bar { display: grid; grid-template-columns: 1fr 72px 64px; gap: 6px; align-items: center; margin: 7px 0; font-size: 12px; color: #666; }
.qa-bar i { display: block; height: 8px; background: #f3f2f0; border-radius: 4px; overflow: hidden; }
.qa-bar b { display: block; height: 100%; border-radius: 4px; }
.qa-bar b.up { background: #f0342c; }
.qa-bar b.down { background: #2fbf6e; }
.qa-bar em { font-style: normal; text-align: right; }

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 40;
  display: flex;
  justify-content: flex-end;
}
.drawer-mask[hidden] { display: none; }
.drawer {
  width: min(760px, 100%);
  height: 100%;
  background: #fff;
  overflow: auto;
  padding: 20px 22px 28px;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
}
.dr-hd { display: flex; align-items: flex-start; gap: 12px; }
.dr-hd h3 { margin: 0; font-size: 18px; }
.dr-sub { margin-top: 6px; display: flex; gap: 6px; align-items: center; color: #888; font-size: 12px; }
.dr-ret { margin-left: auto; font-size: 26px; font-weight: 750; }
.dr-x { border: 0; background: transparent; font-size: 24px; line-height: 1; color: #999; padding: 0 2px; }
.dr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.dr-grid div { background: #fafafa; border-radius: 6px; padding: 8px 10px; }
.dr-grid span { display: block; color: #999; font-size: 12px; }
.dr-grid b { display: block; margin-top: 4px; font-size: 14px; font-weight: 650; }
.dr-thesis { background: #fff8e8; border-radius: 8px; padding: 10px 12px; line-height: 1.65; color: #444; }
.dr-thesis .tt { font-weight: 700; color: #b8860b; margin-bottom: 4px; }
.dr-thesis .inv { color: #c0392b; margin-top: 6px; font-size: 12px; }
#trDrImg { width: 100%; margin-top: 12px; border-radius: 8px; border: 1px solid #f0efed; background: #fafafa; }
.dr-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: #666; }

/* ---- 游资龙虎榜矩阵 ---- */
.mx-wrap { padding: 0; overflow: hidden; }
.mx-title { background: #8b1a1a; color: #fff; text-align: center; font-weight: 700; padding: 10px; font-size: 15px; letter-spacing: 1px; }
.mx-legend { display: flex; gap: 16px; padding: 8px 14px; color: #888; font-size: 12px; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; }
.mx-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.mx-legend .dot.up { background: #f0342c; }
.mx-legend .dot.dn { background: #2fbf6e; }
.mx-scroll { overflow-x: auto; }
.mx-table { border-collapse: collapse; font-size: 12px; width: 100%; }
.mx-table th, .mx-table td { border: 1px solid #eee; padding: 6px 9px; vertical-align: top; }
.mx-table thead th { background: #8b1a1a; color: #fff; font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
.mx-table .mx-seat { background: #fafafa; font-weight: 600; white-space: nowrap; position: sticky; left: 0; z-index: 2; text-align: left; }
.mx-stk { white-space: nowrap; line-height: 1.8; color: #333; }
.mx-stk b { font-weight: 600; }
.mx-stk.up b { color: #f0342c; }
.mx-stk.dn b { color: #2fbf6e; }
.mx-empty { color: #bbb; display: inline-block; width: 100%; text-align: center; }

.mx-stk.more { color: #bbb; }

/* ---- 交易记录: 实盘/持有徽章 ---- */
.tl-chip { display: inline-block; font-style: normal; font-size: 10px; line-height: 1; padding: 2px 5px; border-radius: 3px; margin-left: 6px; vertical-align: 1px; }
.tl-chip.live { background: #f0342c; color: #fff; }
.tl-chip.hold { background: #f0ad4e; color: #fff; }
.tl-rt { display: block; font-size: 10px; color: #f0ad4e; }

/* ===================== 移动端 H5 适配 ===================== */
@media (max-width: 820px) {
  html, body { overflow-x: hidden; }
  .app { min-width: 0; flex-direction: column; }
  .sidebar {
    width: 100%;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    position: sticky;
    top: 0;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
  }
  .sidebar::after { display: none; }
  .brand { padding: 8px 10px; flex: 0 0 auto; }
  .brand span { font-size: 13px; }
  .nav { flex-direction: row; flex: 1 1 auto; overflow-x: auto; padding: 6px 8px; -webkit-overflow-scrolling: touch; }
  .nav a { padding: 7px 9px; font-size: 12px; white-space: nowrap; flex: 0 0 auto; }
  .nav a svg { width: 14px; height: 14px; }
  .content { padding: 6px; }
  .page-hd { flex-wrap: wrap; gap: 6px; }
  .page-hd h2 { font-size: 15px; }
  .home { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .statrow { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .page[data-page="positions"] .statrow { grid-template-columns: repeat(2, 1fr); }
  .statrow .card b { font-size: 16px; }
  .qa-grid { grid-template-columns: 1fr; }
  .page table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .page .card { padding: 10px; }
  .drawer { padding: 14px 12px 24px; }
  .qa-modal { width: 96vw; }
  .qa-act { flex-wrap: wrap; }
  .mx-table { font-size: 11px; }
  .mx-table th, .mx-table td { padding: 4px 6px; }
  .home .card .tabs button { padding: 4px 8px; font-size: 11px; }
  .qa-asof { font-size: 11px; }
  .tr-pager, .tools { flex-wrap: wrap; }
  input[type="date"], select, input[type="text"].tr-search { max-width: 130px; }
}

.pos-closed td { color: #999; }
.pos-closed td.stk b { color: #666; }

.recon-ok { background: #1f9d55; color: #fff; }
.recon-warn { background: #f5a623; color: #fff; }
.recon-bad { background: #e74c3c; color: #fff; animation: blink 1s infinite; }
.recon-wait { background: #eee; color: #999; }
#reconBadge { cursor: pointer; }
.recon-detail { margin: 0 0 12px; padding: 10px 12px; background: #fff; border: 1px solid #f0efec; border-radius: 6px; }
.recon-detail h4 { margin: 0 0 6px; font-size: 13px; color: #333; font-weight: 600; }
.recon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid #f6f5f3; font-size: 12px; color: #555; }
.recon-row:first-of-type { border-top: 0; }
.recon-row b { color: #222; }
.recon-row span { flex: 1 1 220px; color: #777; }
.recon-row small { flex: 1 0 100%; color: #999; line-height: 1.5; }
.recon-level { font-style: normal; font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 3px; background: #e8f5ec; color: #1f9d55; }
.recon-row.fail .recon-level { background: #fdecea; color: #c0392b; }
.recon-row.warn .recon-level { background: #fef4e5; color: #b45309; }
.recon-note { margin: 8px 0 0; color: #999; font-size: 11px; }
@keyframes blink { 50% { opacity: 0.5; } }

.qa-eng { display: inline-block; font-style: normal; font-size: 10px; line-height: 1; padding: 2px 5px; border-radius: 3px; margin-left: 5px; vertical-align: 1px; font-weight: 600; }
.qa-eng.e1 { background: #e8f0fe; color: #1a56db; }
.qa-eng.e2 { background: #fef3e8; color: #b45309; }

/* ---- 板块温度看板 ---- */
.qa-sector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sec-col h4 { font-size: 12px; color: #999; margin: 2px 0 6px; font-weight: 600; }
.sec-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 8px; border-radius: 6px; margin-bottom: 4px;
  background: #fafafa; font-size: 13px; flex-wrap: wrap;
}
.sec-row .sec-tag { font-weight: 600; }
.sec-row .sec-meta { color: #999; font-size: 11px; }
.sec-row .sec-lead { margin-left: auto; font-size: 12px; color: #555; white-space: nowrap; }
.sec-row.hot { background: #fff1f0; }
.sec-row.hot .sec-tag { color: #c0392b; }
.sec-row.ign { background: #fff8eb; }
.sec-row.ign .sec-tag { color: #b45309; }
.sec-row.cool { background: #f0f6ff; }
.sec-row.cool .sec-tag { color: #1a56db; }
.sec-row.s3 { background: #f6effd; outline: 1px dashed #8b5cf6; }
.sec-row.s3 .sec-tag { color: #6d28d9; }
.sec-row.sec-empty { color: #ccc; justify-content: center; }
.sec-s3 { margin-top: 8px; padding: 8px 10px; border-radius: 6px; background: #f6effd; color: #6d28d9; font-size: 13px; }
@media (max-width: 820px) { .qa-sector { grid-template-columns: 1fr; } }

/* ============================================================
   对标增强版新增样式（高级分析 / 风控中心 / 策略实验室 / 矩阵 / 合规）
   ============================================================ */
.nav-new { margin-left: 6px; font-size: 9px; font-weight: 700; letter-spacing: .5px; background: #f0342c; color: #fff; padding: 1px 4px; border-radius: 3px; vertical-align: 1px; }
.side-foot { margin-top: auto; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.06); color: #7a6f6b; font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.side-foot small { color: #5a514e; font-size: 10px; }
.tag-enhanced { background: #fff1f0 !important; color: #c0392b !important; border: 1px solid #ffd9d5; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 1000px) { .grid2 { grid-template-columns: 1fr; } }

/* 高级分析 */
.heatmap { overflow-x: auto; padding: 4px 0; }
.hm-grid { display: grid; grid-template-columns: 52px repeat(12, minmax(46px, 1fr)) 62px; gap: 3px; min-width: 700px; }
.hm-cell { padding: 6px 2px; border-radius: 4px; text-align: center; font-size: 10px; font-weight: 600; white-space: nowrap; }
.hm-head { background: #fafafa; color: #888; font-weight: 500; }
.hm-year { background: #f3f2f0; color: #555; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hm-empty { color: #ddd; background: #fcfcfc; }
.hm-flat { background: #f0efed; color: #999; }
.hm-up-1 { background: #ffe9e7; color: #c0392b; }
.hm-up-2 { background: #ffc9c4; color: #a93226; }
.hm-up-3 { background: #f0342c; color: #fff; }
.hm-dn-1 { background: #e3f6ec; color: #1f9d55; }
.hm-dn-2 { background: #b9ebd0; color: #1e8449; }
.hm-dn-3 { background: #2fbf6e; color: #fff; }
.hm-total { background: #fafafa; font-weight: 700; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #f0efed; }
@media (max-width: 900px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
.metric { background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.metric span { color: #999; font-size: 12px; }
.metric b { font-size: 16px; color: #222; }

/* 风控中心 */
.risk-checks { display: flex; flex-direction: column; gap: 7px; }
.risk-check { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border-radius: 6px; font-size: 13px; }
.risk-check.ok { background: #f2fbf6; }
.risk-check.bad { background: #fff1f0; }
.risk-check i { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 18px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-style: normal; color: #fff; background: #2fbf6e; }
.risk-check.bad i { background: #f0342c; }
.risk-check b { display: block; color: #333; font-weight: 600; }
.risk-check small { color: #999; font-size: 11px; }
.dd-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #f5f4f2; }
.dd-row:last-child { border-bottom: 0; }
.dd-row > i { width: 22px; height: 22px; border-radius: 4px; background: #f3f2f0; color: #999; font-style: normal; font-size: 11px; display: flex; align-items: center; justify-content: center; flex: 0 0 22px; }
.dd-row > div { flex: 1; }
.dd-row b { display: block; font-size: 13px; color: #333; }
.dd-row b small { color: #aaa; font-weight: 400; }
.dd-row > div > small { color: #aaa; font-size: 11px; }
.dd-row em { font-style: normal; font-size: 14px; font-weight: 600; }

/* 策略实验室 */
.lab-layout { display: grid; grid-template-columns: 300px 1fr; gap: 12px; align-items: start; }
@media (max-width: 1000px) { .lab-layout { grid-template-columns: 1fr; } }
.lab-controls { position: sticky; top: 12px; }
.lab-field { margin: 16px 0 20px; }
.lab-field-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.lab-field-hd label { color: #555; font-size: 13px; }
.lab-field-hd b { color: #f0342c; font-size: 15px; }
.lab-field input[type=range] { width: 100%; accent-color: #f0342c; }
.lab-range { display: flex; justify-content: space-between; color: #bbb; font-size: 10px; margin-top: 3px; }
.lab-note { color: #999; font-size: 12px; line-height: 1.6; border-top: 1px solid #f0efed; padding-top: 12px; }
.lab-run { width: 100%; margin-top: 14px; }
.lab-result .statrow { margin-top: 0; }
.cmp-row { display: flex; justify-content: space-between; padding: 9px 4px; border-bottom: 1px solid #f5f4f2; font-size: 13px; }
.cmp-row span { color: #888; }
.cmp-note { margin-top: 10px; padding: 10px 12px; background: #fff8e6; color: #8a6d1f; border-radius: 6px; font-size: 12px; line-height: 1.6; }

/* 龙虎榜矩阵 */
.mx-scroll { overflow-x: auto; }
.mx-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mx-table th { background: #fafafa; color: #888; font-weight: 500; padding: 10px 8px; border-bottom: 1px solid #eee; white-space: nowrap; }
.mx-table td { padding: 10px 8px; border-bottom: 1px solid #f5f4f2; vertical-align: top; }
.mx-table .stk { min-width: 120px; }
.mx-td { min-width: 150px; }
.mx-cell { display: block; padding: 2px 5px; margin: 2px 0; border-radius: 3px; background: #fafafa; color: #666; font-size: 11px; text-align: right; }
.mx-cell.up { background: #fff1f0; color: #c0392b; }
.mx-cell.dn { background: #eefaf3; color: #1f9d55; }
.mx-empty { color: #ddd; }

/* K线弹窗补充 */
.qa-detail-note { padding: 12px 16px; border-top: 1px solid #f0efed; }
.qa-detail-note b { font-size: 13px; color: #333; }
.qa-detail-note p { color: #666; font-size: 13px; line-height: 1.6; margin: 6px 0 0; }
.invalid { color: #c0392b !important; }

/* 合规声明 */
.card.compliance { margin-top: 12px; border-left: 3px solid #f5b400; }
.card.compliance h3 { font-size: 14px; margin: 0 0 8px; }
.card.compliance p { color: #888; font-size: 12px; line-height: 1.7; margin: 0; }

/* ============================================================
   环境择时中枢（独立新模块·行情差就减仓/空仓观察）
   ============================================================ */
.rg-directive { display:flex; align-items:center; gap:14px; padding:16px 18px; border-radius:8px; margin-top:12px; border-left:4px solid #999; }
.rg-directive.ok { background:#eefaf3; border-color:#2fbf6e; }
.rg-directive.warn { background:#fff8e8; border-color:#e0a52a; }
.rg-directive.bad { background:#fff0ee; border-color:#f0342c; }
.rg-dir-icon { width:44px; height:44px; flex:0 0 44px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:700; color:#fff; background:#999; }
.rg-directive.ok .rg-dir-icon { background:#2fbf6e; }
.rg-directive.warn .rg-dir-icon { background:#e0a52a; }
.rg-directive.bad .rg-dir-icon { background:#f0342c; }
.rg-dir-main { flex:1; }
.rg-dir-main b { font-size:16px; color:#222; }
.rg-dir-main p { color:#777; font-size:12px; margin:4px 0 0; }
.rg-dir-meta { display:flex; flex-direction:column; gap:5px; text-align:right; color:#999; font-size:11px; white-space:nowrap; }
.rg-dir-meta b { color:#c0392b; }
.rg-signals { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:12px; }
@media (max-width:900px){ .rg-signals { grid-template-columns:repeat(2,1fr); } }
.rg-sig { background:#fff; border:1px solid #f0efed; border-radius:6px; padding:12px 14px; display:flex; flex-direction:column; gap:6px; }
.rg-sig span { color:#999; font-size:12px; }
.rg-sig b { font-size:17px; }
.rg-badge { display:inline-block; color:#fff; padding:2px 8px; border-radius:3px; font-size:11px; font-weight:600; }
.rg-table { width:100%; border-collapse:collapse; font-size:12px; }
.rg-table th { text-align:left; background:#fafafa; color:#888; font-weight:500; padding:9px 8px; border-bottom:1px solid #eee; }
.rg-table td { padding:10px 8px; border-bottom:1px solid #f5f4f2; color:#555; vertical-align:middle; }
.rg-table .r { text-align:right; }
.rg-win { display:flex; justify-content:space-between; align-items:center; padding:9px 4px; border-bottom:1px solid #f5f4f2; }
.rg-win:last-child { border-bottom:0; }
.rg-win b { font-size:12px; color:#444; }
.rg-win small { display:block; color:#aaa; font-size:11px; margin-top:2px; }
.rg-win em { font-style:normal; font-size:13px; font-weight:600; }

/* ============================================================
   分析引擎（逆向复刻原站服务端信号捕捉逻辑）
   ============================================================ */
.eng-banner { display:flex; align-items:center; gap:16px; padding:18px 20px; border-radius:8px; margin-top:12px; border-left:5px solid #999; background:#fafafa; }
.eng-banner.eng-ok { background:#eefaf3; border-color:#2fbf6e; }
.eng-banner.eng-bad { background:#fff1ef; border-color:#f0342c; }
.eng-dir-icon { width:48px; height:48px; flex:0 0 48px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:700; color:#fff; background:#999; }
.eng-dir-icon.eng-ok { background:#2fbf6e; }
.eng-dir-icon.eng-bad { background:#f0342c; }
.eng-banner-main { flex:1; }
.eng-banner-main b { font-size:17px; color:#222; }
.eng-banner-main p { color:#777; font-size:12px; margin:5px 0 0; line-height:1.5; }
.eng-banner-meta { display:flex; flex-direction:column; gap:5px; text-align:right; color:#999; font-size:11px; white-space:nowrap; }
.eng-pipeline { display:flex; flex-wrap:wrap; align-items:stretch; gap:6px; padding:6px 0; }
.eng-step { flex:1 1 130px; min-width:120px; display:flex; gap:8px; align-items:center; background:#fafafa; border:1px solid #f0efed; border-radius:6px; padding:10px; }
.eng-step-n { width:24px; height:24px; flex:0 0 24px; border-radius:50%; background:#c0392b; color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.eng-step-body { flex:1; min-width:0; }
.eng-step-body b { display:block; font-size:12px; color:#333; }
.eng-step-body small { display:block; color:#aaa; font-size:10px; line-height:1.4; margin-top:2px; }
.eng-step-c { color:#c0392b; font-weight:700; font-size:15px; }
.eng-arrow { align-self:center; color:#ccc; font-weight:700; }
.eng-gauge { margin:4px 0 14px; }
.eng-gauge-bar { position:relative; height:12px; background:linear-gradient(90deg,#2fbf6e,#e0a52a,#f0342c); border-radius:6px; }
.eng-gauge-bar i { position:absolute; left:0; top:-3px; height:18px; width:3px; background:#333; border-radius:2px; }
.eng-gauge-mark { position:absolute; top:-5px; width:2px; height:22px; background:#fff; border:1px solid #999; }
.eng-gauge-lb { display:flex; justify-content:space-between; color:#aaa; font-size:10px; margin-top:6px; }
.eng-gauge-lb b { color:#c0392b; }
.eng-kv { display:flex; justify-content:space-between; padding:8px 2px; border-bottom:1px solid #f5f4f2; font-size:13px; }
.eng-kv span { color:#999; }
.eng-kv b { color:#333; }
.eng-note { color:#888; font-size:12px; line-height:1.6; margin:10px 0 0; }
.eng-note.dim { color:#aaa; font-size:11px; }
.eng-e3row { display:flex; align-items:center; gap:10px; padding:9px 4px; border-bottom:1px solid #f5f4f2; font-size:12px; }
.eng-e3row.eng-target { background:#f2fbf6; }
.eng-e3rank { width:20px; height:20px; flex:0 0 20px; border-radius:4px; background:#f3f2f0; color:#999; display:flex; align-items:center; justify-content:center; font-weight:700; }
.eng-e3name { flex:1; color:#333; font-weight:600; }
.eng-e3name small { color:#aaa; font-weight:400; margin-left:5px; }
.eng-e3score { color:#c0392b; font-weight:600; }
.eng-e3tr { color:#999; }
.eng-tag { display:inline-block; padding:2px 8px; border-radius:3px; font-size:11px; background:#f3f2f0; color:#999; font-weight:600; }
.eng-tag.on { background:#e3f6ec; color:#1f9d55; }
.eng-tag.skip { background:#fff1f0; color:#c0392b; }
.eng-table { width:100%; border-collapse:collapse; font-size:12px; }
.eng-table th { text-align:left; background:#fafafa; color:#888; font-weight:500; padding:9px 8px; border-bottom:1px solid #eee; }
.eng-table td { padding:9px 8px; border-bottom:1px solid #f5f4f2; color:#555; }
.eng-table .r { text-align:right; }
.eng-table b { color:#333; }
.eng-table small { color:#aaa; display:block; }
.eng-steps { color:#999 !important; font-size:10px; }
.eng-dec { display:flex; align-items:center; gap:12px; padding:10px 4px; border-bottom:1px solid #f5f4f2; font-size:12px; }
.eng-dec:last-child { border-bottom:0; }
.eng-dec > div { flex:0 0 160px; }
.eng-dec > div b { color:#333; }
.eng-dec > div small { color:#aaa; margin-left:5px; }
.eng-dec-ret { flex:1; font-size:13px; font-weight:600; }
.eng-dec p { flex:1; color:#999; margin:0; }
.eng-dec.flat { color:#aaa; }

/* ============================================================
   模拟实盘（AI引擎驱动）
   ============================================================ */
.pp-ctrl { display:flex; align-items:center; gap:14px; padding:14px 18px; margin-top:12px; background:linear-gradient(90deg,#fff5f4,#fff); border:1px solid #ffe0dc; border-radius:8px; }
.pp-ctrl-main { flex:1; }
.pp-ctrl-main b { display:block; font-size:16px; color:#222; }
.pp-ctrl-main span { display:block; color:#999; font-size:12px; margin-top:4px; }
.pp-ctrl button.primary { background:#f0342c; color:#fff; border:0; border-radius:5px; padding:9px 18px; font-size:13px; font-weight:600; cursor:pointer; white-space:nowrap; }
.pp-ctrl button.primary:disabled { background:#e0a9a4; cursor:wait; }
.pp-ctrl button.linkish { background:none; border:0; color:#999; font-size:12px; cursor:pointer; text-decoration:underline; }
.pp-pos { padding:10px 4px; border-bottom:1px solid #f5f4f2; }
.pp-pos:last-child { border-bottom:0; }
.pp-pos-hd { display:flex; align-items:baseline; gap:8px; }
.pp-pos-hd b { font-size:14px; color:#333; }
.pp-pos-hd small { color:#aaa; }
.pp-pos-hd span { margin-left:auto; font-weight:600; font-size:14px; }
.pp-pos-meta { display:flex; justify-content:space-between; margin-top:5px; font-size:12px; color:#999; }
.pp-pos-meta b { color:#333; }
.pp-pos-why { color:#c0392b; font-size:11px; margin-top:4px; }
.pp-ai-sum { padding:12px 14px; background:#fff8e6; border-radius:6px; margin-bottom:10px; }
.pp-ai-sum b { font-size:14px; color:#7a5c10; }
.pp-ai-sum p { color:#8a6d1f; font-size:12px; margin:4px 0 0; }
.pp-ai-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:6px; }
@media(max-width:900px){ .pp-ai-grid { grid-template-columns:1fr; } }
.pp-ai-row { display:flex; align-items:center; gap:8px; padding:8px 10px; background:#fafafa; border-radius:5px; font-size:12px; }
.pp-ai-row b { color:#333; }
.pp-ai-row small { color:#999; flex:1; }
.pp-conf { color:#c0392b; font-weight:600; }
.pp-final { margin-top:12px; border-top:1px solid #f0efed; padding-top:10px; }
.pp-final h4 { font-size:12px; color:#888; margin:0 0 6px; font-weight:500; }
.pp-act-final { padding:5px 8px; background:#f2fbf6; border-radius:4px; font-size:12px; color:#444; margin-bottom:4px; }
.pp-log { padding:9px 2px; border-bottom:1px solid #f5f4f2; }
.pp-log-hd { display:flex; align-items:center; gap:6px; }
.pp-log-hd b { font-size:12px; color:#555; }
.pp-log p { color:#999; font-size:11px; margin:4px 0; }
.pp-act { display:flex; align-items:center; gap:6px; font-size:11px; padding:3px 0; }
.pp-act b { color:#444; }
.pp-act small { color:#aaa; flex:1; }

/* ===== 系统设置（独立新增） ===== */
.set-root{padding:0 2px}
.set-hd{display:flex;align-items:baseline;gap:14px;margin-bottom:14px}
.set-hd h2{margin:0;font-size:20px}
.set-hd span{color:#999;font-size:12px}
.set-tabs{display:flex;gap:6px;border-bottom:1px solid #eee;margin-bottom:16px;flex-wrap:wrap}
.set-tabs button{border:0;background:none;padding:10px 16px;color:#666;font-size:13px;cursor:pointer;border-bottom:2px solid transparent}
.set-tabs button.on{color:#f0342c;font-weight:650;border-bottom-color:#f0342c}
.set-card{padding:20px 24px}
.set-card-hd{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}
.set-card-hd h3,.set-card>h3{margin:0 0 4px;font-size:16px}
.set-card-hd p,.set-note{color:#999;font-size:12px;margin:0;line-height:1.7}
.set-sliders{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px 28px}
.set-slider-hd{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.set-slider-hd label{font-size:13px;color:#555}
.set-slider-hd b{color:#f0342c;font-size:15px;font-weight:700}
.set-slider input[type=range]{width:100%;accent-color:#f0342c;cursor:pointer}
.set-slider-scale{display:flex;justify-content:space-between;color:#bbb;font-size:10px;margin-top:2px}
.set-more{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px 20px;margin-top:22px;padding-top:18px;border-top:1px dashed #eee}
.set-check{display:flex;align-items:center;gap:6px;font-size:13px;color:#555;align-self:end;padding-bottom:8px}
.set-actions{display:flex;align-items:center;gap:12px;margin-top:20px}
.set-hint{color:#999;font-size:12px}
.set-table{width:100%;border-collapse:collapse;font-size:13px;margin-bottom:16px}
.set-table th{text-align:left;color:#999;font-weight:500;padding:10px 8px;border-bottom:1px solid #eee}
.set-table td{padding:10px 8px;border-bottom:1px solid #f5f5f5}
.set-ok{color:#16a34a}.set-off{color:#aaa}
.set-mini{padding:4px 10px;font-size:12px;margin-right:6px}
.set-empty{color:#aaa;text-align:center;padding:22px}
.set-add{display:flex;gap:8px;flex-wrap:wrap}
.set-add input,.set-add select{padding:8px 10px;border:1px solid #e5e5e5;border-radius:5px;font-size:13px;min-width:130px}
.set-form{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;max-width:640px;margin:14px 0}
.set-note-cell{color:#999;font-size:11px;max-width:240px}
