:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #8a92a6;
  --line: #e7eaf2;
  --primary: #2f6bff;
  --up: #e03131;
  --down: #0ca678;
  --gold: #e8a33d;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(30, 42, 80, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.topbar {
  background: linear-gradient(120deg, #1a2456 0%, #2f6bff 100%);
  color: #fff;
  padding: 18px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { font-size: 30px; }
.brand h1 { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { font-size: 12px; opacity: .85; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.trade-date { font-size: 13px; opacity: .9; }

.btn {
  border: none; cursor: pointer; border-radius: 10px;
  padding: 8px 16px; font-size: 14px; font-weight: 600;
  transition: transform .08s, opacity .15s;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: #fff; color: #2f6bff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-danger { background: #fdecec; color: #e03131; }

.disclaimer {
  max-width: 1180px; margin: 14px auto 0; padding: 10px 14px;
  background: #fff8e6; color: #a9760a; border: 1px solid #ffe3a3;
  border-radius: 10px; font-size: 13px;
}

.container { max-width: 1180px; margin: 16px auto; padding: 0 16px; }

.zone { margin-bottom: 26px; }
.zone-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.zone-title { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-red { background: #e03131; }
.dot-blue { background: #2f6bff; }
.dot-gold { background: #e8a33d; }
.zone-note { font-size: 13px; color: var(--muted); }

.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.col-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: #3a4356; }
.col-title em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 6px; }

.card-list { display: flex; flex-direction: column; gap: 12px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-name { font-size: 16px; font-weight: 700; }
.card-code { font-size: 12px; color: var(--muted); }
.card-score {
  flex-shrink: 0; min-width: 44px; text-align: center;
  background: #eef3ff; color: #2f6bff; border-radius: 10px;
  padding: 4px 8px; font-weight: 800; font-size: 15px;
}
.card-price-row { display: flex; gap: 16px; margin: 10px 0; flex-wrap: wrap; }
.price-item { font-size: 13px; color: #4a5266; }
.price-item b { color: var(--text); }
.entry-box { background: #f7f9ff; border-radius: 10px; padding: 8px 12px; font-size: 14px; margin-bottom: 8px; }
.entry-box .lab { color: var(--muted); font-size: 12px; }
.entry-box .val { font-weight: 700; color: #2f6bff; }
.hold { font-size: 13px; color: #b06a00; background: #fff7e8; padding: 4px 10px; border-radius: 8px; display: inline-block; margin-bottom: 8px; }
.reason { font-size: 13px; color: #4a5266; border-top: 1px dashed var(--line); padding-top: 8px; }
.empty {
  color: var(--muted); font-size: 13px; text-align: center;
  padding: 24px 10px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
}

.pos-add { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.input {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-size: 14px; flex: 1; min-width: 110px; background: #fff;
}
.input:focus { outline: none; border-color: #2f6bff; }
.pos-table { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.pos-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; flex-wrap: wrap;
}
.pos-row .n { font-weight: 700; }
.pos-row .c { color: var(--muted); font-size: 12px; }
.profit.up { color: var(--up); }
.profit.down { color: var(--down); }

/* 荐股复盘 */
.dot-green { background: #0ca678; }
.track-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px;
}
.stat-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 12px; text-align: center; box-shadow: var(--shadow);
}
.stat-num { font-size: 22px; font-weight: 800; color: var(--text); }
.stat-num.up { color: var(--up); }
.stat-num.down { color: var(--down); }
.stat-lab { font-size: 12px; color: var(--muted); margin-top: 4px; }
.track-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.track-table { display: flex; flex-direction: column; gap: 10px; }
.track-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow);
}
.track-name { font-weight: 700; font-size: 15px; min-width: 150px; }
.track-name .c { color: var(--muted); font-size: 12px; font-weight: 400; }
.track-tag {
  font-size: 12px; color: #2f6bff; background: #eef3ff;
  padding: 3px 10px; border-radius: 8px; white-space: nowrap;
}
.track-meta { font-size: 13px; color: #4a5266; flex: 1; min-width: 220px; }
.track-meta b { color: var(--text); }
.track-chg { font-size: 18px; font-weight: 800; min-width: 70px; text-align: right; }
.track-chg.up { color: var(--up); }
.track-chg.down { color: var(--down); }

.footer {
  max-width: 1180px; margin: 10px auto 30px; padding: 16px;
  text-align: center; color: var(--muted); font-size: 12px;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

@media (max-width: 760px) {
  .zone-grid { grid-template-columns: 1fr; }
  .brand h1 { font-size: 17px; }
  .topbar-right .btn-ghost { display: none; }
  .pos-add .input { flex: 1 1 45%; }
  .track-stats { grid-template-columns: repeat(2, 1fr); }
  .track-name { min-width: 120px; }
  .track-meta { min-width: 100%; }
}
