/* 永昼量化 · 策略中心 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f6f7f9; color: #222; padding-bottom: 30px;
}
a { color: inherit; text-decoration: none; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  background: #fff; padding: 12px 20px;
  border-bottom: 1px solid #e5e6ea;
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 17px; }
.back { margin-right: 6px; color: #2b6fe5; }
.strat-title { color: #2b6fe5; font-weight: 600; }
.pool-switch { display: flex; gap: 6px; }
.pool-btn {
  padding: 6px 14px; border: 1px solid #d5d7de; border-radius: 16px;
  background: #fff; cursor: pointer; font-size: 13px; color: #555;
}
.pool-btn.active { background: #2b6fe5; color: #fff; border-color: #2b6fe5; }

.meta-line {
  margin: 14px 20px 0; font-size: 12px; color: #777;
  background: #f0f2f5; padding: 8px 12px; border-radius: 6px;
}
.card {
  background: #fff; margin: 14px 20px 0; padding: 16px 20px;
  border-radius: 10px; border: 1px solid #e5e6ea;
}
.card h2 { font-size: 15px; margin-bottom: 12px; }
.hint { font-size: 12px; color: #999; font-weight: 400; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 10px; text-align: right; white-space: nowrap; }
th { background: #f8f9fb; color: #666; font-weight: 600; border-bottom: 2px solid #e5e6ea; }
td:first-child, th:first-child { text-align: left; }
td.name { text-align: left; font-weight: 600; }
tbody tr { border-bottom: 1px solid #f0f1f4; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: #f4f7ff; }
.up { color: #e5342b; }
.down { color: #1a9c5b; }
.dim { color: #999; font-size: 12px; }
.hold-names { text-align: left; white-space: normal; min-width: 300px; line-height: 1.7; color: #555; }

.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.metric { text-align: center; padding: 10px 6px; background: #f8f9fb; border-radius: 8px; }
.mk { font-size: 12px; color: #888; margin-bottom: 6px; }
.mv { font-size: 19px; font-weight: 700; }
.mv.small { font-size: 12px; font-weight: 500; }

.chart { width: 100%; height: 420px; }
.chart.tall { height: 340px; }

.disclaimer {
  margin: 20px 20px 0; font-size: 12px; color: #999; text-align: center;
}

/* 移动端 */
@media (max-width: 375px) {
  .card { margin: 10px 10px 0; padding: 12px; }
  .meta-line { margin: 10px 10px 0; }
  .chart { height: 320px; }
  th, td { padding: 6px; font-size: 12px; }
}

/* ===== TASK-013 决策台（本期操盘建议页） ===== */
/* 顶栏导航：策略库（返回箭头风格） */
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: #2b6fe5;
  border: 1px solid #d5e0fb; background: #f2f7ff;
  padding: 6px 12px; border-radius: 16px;
}
.nav-arrow { font-size: 14px; }

/* 本期建议卡 */
.advice-card .advice-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.advice-card .advice-title { font-size: 15px; margin-bottom: 0; }
.badge {
  display: inline-block; background: #eef3fe; color: #2b6fe5;
  border-radius: 12px; padding: 3px 10px; font-size: 12px; font-weight: 600;
}
.advice-lead { font-size: 24px; font-weight: 800; line-height: 1.4; margin: 6px 0 12px; }
.advice-lead .hl { color: #2b6fe5; }
.advice-reason {
  font-size: 14px; line-height: 1.9; color: #444;
  background: #f8f9fb; padding: 12px 14px; border-radius: 8px; margin-bottom: 14px;
}
.buy-hint {
  font-size: 12px; color: #777; line-height: 1.7;
  background: #f0f2f5; padding: 8px 12px; border-radius: 6px; margin: 14px 0;
}
.list-head { font-size: 15px; font-weight: 700; margin: 16px 0 8px; }
.list-head .hint { font-weight: 400; }

/* 买入清单表 */
.advice-table th, .advice-table td { text-align: left; }
.advice-table th:nth-child(1), .advice-table td:nth-child(1) { width: 40px; color: #999; }
.advice-table td.code { color: #555; font-variant-numeric: tabular-nums; }
.advice-table td.note { text-align: right; }
.warn-tag {
  display: inline-block; background: #fff6d6; color: #b7791f;
  border: 1px solid #ffe08a; border-radius: 10px;
  padding: 1px 8px; font-size: 12px; white-space: nowrap;
}
.fresh-foot { font-size: 12px; color: #999; margin-top: 12px; text-align: right; }

/* 策略可信度 */
.trust-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.trust-line { font-size: 13px; color: #555; line-height: 1.7; }
.trust-more { color: #2b6fe5; font-weight: 600; font-size: 13px; white-space: nowrap; }

/* 灰态占位 */
.empty-state { text-align: center; color: #999; font-size: 14px; padding: 36px 0; }

@media (max-width: 375px) {
  .advice-lead { font-size: 20px; }
  .advice-reason { font-size: 13px; padding: 10px 12px; }
  .trust-card { flex-direction: column; align-items: flex-start; }
}
