/* ============================================================
 * 投后智伴 · 设计系统（明亮温馨版）
 * 暖米白底 + 琥珀金点缀 + 柔和阴影
 * ============================================================ */
:root {
  --bg: #faf6f0;
  --bg2: #f3ede3;
  --card: #ffffff;
  --card2: #fbf7f0;
  --line: #ece3d4;
  --text: #3a322a;
  --muted: #95876f;
  --amber: #d97706;
  --amber2: #b45309;
  --gold: #c99a3c;
  --up: #e03131;
  --down: #2f9e44;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(120, 90, 40, .07);
  --shadow-lg: 0 6px 24px rgba(120, 90, 40, .10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--amber2); text-decoration: none; }
a:hover { color: var(--amber); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,240,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: .5px; }
.logo-badge {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #f2b23e, #d97706);
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff;
  box-shadow: 0 2px 6px rgba(217,119,6,.35);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted); font-size: 14px; padding: 6px 12px; border-radius: 8px; transition: .15s;
}
.nav-links a:hover { color: var(--text); background: var(--card2); }
.nav-links a.active { color: #fff; background: var(--amber); }
.src-badge {
  font-size: 12px; color: var(--muted); border: 1px solid var(--line); background: var(--card);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.src-badge b { color: var(--amber2); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(640px 340px at 22% 0%, rgba(242,178,62,.16), transparent 60%),
    radial-gradient(640px 340px at 78% 12%, rgba(233,150,120,.12), transparent 60%);
  pointer-events: none;
}
.hero-kicker { color: var(--amber2); letter-spacing: 4px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.2; font-weight: 800; letter-spacing: 1px; }
.hero h1 .grad { background: linear-gradient(90deg, #e8930c, #c2701d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { margin-top: 20px; font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 640px; margin-left: auto; margin-right: auto; }
.hero .ask {
  margin: 36px auto 0; max-width: 680px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 14px 24px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px;
}
.hero .ask .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ---------- 市场条 ---------- */
.market-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 8px 0 0; }
.mkt-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.mkt-card .name { font-size: 13px; color: var(--muted); }
.mkt-card .val { font-size: 24px; font-weight: 700; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.mkt-card .chg { font-size: 13px; font-weight: 600; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }

/* ---------- 区块 ---------- */
.section { padding: 64px 0; }
.section-title { font-size: 28px; font-weight: 800; letter-spacing: 1px; margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 32px; font-size: 15px; }

/* ---------- 模块卡片 ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.mod-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative;
  transition: transform .18s, box-shadow .18s;
}
.mod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mod-num { font-size: 13px; color: var(--amber2); font-weight: 700; letter-spacing: 2px; }
.mod-card h3 { font-size: 20px; font-weight: 700; }
.mod-card p { color: var(--muted); font-size: 14px; flex: 1; }
.mod-go { font-size: 14px; font-weight: 600; color: var(--amber2); }
.mod-card .pain { font-size: 12px; color: #a99b82; border-top: 1px dashed var(--line); padding-top: 10px; }
.mod-card .pain b { color: #7d6f57; font-weight: 600; }

/* ---------- 面板 / 通用组件 ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.panel h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.panel h3::before { content: ""; width: 4px; height: 16px; background: var(--amber); border-radius: 2px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--amber); color: #fff; border: none; border-radius: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; transition: .15s; font-family: inherit;
  box-shadow: 0 2px 8px rgba(217,119,6,.28);
}
.btn:hover { background: var(--amber2); }
.btn.ghost { background: var(--card); border: 1px solid var(--line); color: var(--muted); box-shadow: none; }
.btn.ghost:hover { color: var(--text); border-color: #d8c9ac; }
.btn.gold { background: linear-gradient(135deg, #e9b949, #d97706); }

table.tb { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tb th, table.tb td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.tb th { color: var(--muted); font-weight: 600; font-size: 13px; }
table.tb tr:last-child td { border-bottom: none; }
table.tb td.num, table.tb th.num { text-align: right; font-variant-numeric: tabular-nums; }

.tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-right: 6px; background: var(--card2); }
.tag.red { color: #c92a2a; border-color: #f0cccc; background: rgba(224,49,49,.07); }
.tag.green { color: #2b8a3e; border-color: #cde8d3; background: rgba(47,158,68,.07); }
.tag.blue { color: #1971c2; border-color: #d0e3f5; background: rgba(25,113,194,.06); }

.chart { width: 100%; height: 360px; }
.chart-sm { width: 100%; height: 300px; }

/* ---------- 问答 ---------- */
.qa-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.qa-q { padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; }
.qa-q:hover { background: var(--card2); }
.qa-q .arrow { color: var(--muted); transition: .2s; }
.qa-item.open .qa-q .arrow { transform: rotate(90deg); }
.qa-a { display: none; padding: 0 20px 18px; color: #6b5f4f; font-size: 14px; border-top: 1px dashed var(--line); padding-top: 14px; margin: 0 0; }
.qa-item.open .qa-a { display: block; }

/* ---------- 持仓健诊 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpi .label { font-size: 13px; color: var(--muted); }
.kpi .value { font-size: 24px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .foot { font-size: 12px; color: var(--muted); margin-top: 2px; }

.fund-card { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.fund-card .head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.fund-card .fname { font-size: 16px; font-weight: 700; }
.fund-card .fcode { font-size: 12px; color: var(--muted); margin-left: 8px; }
.fund-card .fw { font-size: 20px; font-weight: 800; }
.fund-card .rets { display: flex; gap: 24px; margin: 12px 0; flex-wrap: wrap; }
.fund-card .rets .r { text-align: center; }
.fund-card .rets .r b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.fund-card .rets .r span { font-size: 12px; color: var(--muted); }
.fund-card .comment { font-size: 13px; color: #7d6f57; border-top: 1px dashed var(--line); padding-top: 10px; }

.advice-list { list-style: none; }
.advice-list li { padding: 12px 0 12px 30px; position: relative; border-bottom: 1px dashed var(--line); font-size: 14px; color: #6b5f4f; }
.advice-list li:last-child { border-bottom: none; }
.advice-list li::before { content: "◆"; position: absolute; left: 4px; color: var(--gold); font-size: 12px; top: 15px; }
.advice-list li.risk::before { color: var(--up); }
.advice-list li.good::before { color: var(--down); }

/* ---------- 组合模拟器 ---------- */
.pool-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer; transition: .15s;
  background: var(--card);
}
.pool-item:hover { border-color: #dcc9a4; }
.pool-item.checked { border-color: var(--amber); background: #fdf6ea; }
.pool-item .cb {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #d8c9ac; flex: none;
  display: flex; align-items: center; justify-content: center; color: transparent; font-size: 12px;
}
.pool-item.checked .cb { background: var(--amber); border-color: var(--amber); color: #fff; }
.pool-item .info { flex: 1; min-width: 0; }
.pool-item .info .n { font-weight: 600; font-size: 14px; }
.pool-item .info .m { font-size: 12px; color: var(--muted); }
.pool-item .r1y { font-weight: 700; font-variant-numeric: tabular-nums; }
.slider-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.slider-row .nm { width: 170px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slider-row input[type=range] { flex: 1; accent-color: var(--amber); }
.slider-row .wp { width: 64px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- 话术卡 ---------- */
.script-card {
  background: linear-gradient(160deg, #fffaf1, #fdf3e2);
  border: 1px solid #f0e3c8; border-radius: 16px; padding: 28px;
  box-shadow: var(--shadow);
}
.script-card h4 { font-size: 18px; margin-bottom: 14px; }
.script-card .body { font-size: 15px; color: #5c5240; line-height: 1.9; }
.script-card .body p { margin-bottom: 10px; }
.day-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 16px 0; }
.day-card { border-radius: 10px; padding: 12px 8px; text-align: center; }
.day-card.up { background: rgba(224,49,49,.10); border: 1px solid #f0cccc; }
.day-card.down { background: rgba(47,158,68,.10); border: 1px solid #cde8d3; }
.day-card b { display: block; font-size: 17px; }
.day-card.up b { color: var(--up); } .day-card.down b { color: var(--down); }
.day-card span { font-size: 12px; color: var(--muted); display: block; }
.news-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.news-item:last-child { border-bottom: none; }
.news-item .t { font-weight: 600; font-size: 14px; }
.news-item .meta { font-size: 12px; color: var(--muted); margin: 2px 0 4px; }
.news-item .b { font-size: 13px; color: #7d6f57; }

/* ---------- 培训材料 ---------- */
.toc-list { counter-reset: toc; list-style: none; }
.toc-list li { padding: 10px 0 10px 40px; position: relative; border-bottom: 1px dashed var(--line); font-size: 14px; }
.toc-list li:last-child { border-bottom: none; }
.toc-list li::before {
  counter-increment: toc; content: counter(toc);
  position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 8px;
  background: #fdf3e2; border: 1px solid #f0e3c8; color: var(--amber2);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.toc-list li b { color: var(--text); }
.toc-list li span { color: var(--muted); font-size: 13px; display: block; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 40px; background: var(--card2); }
.footer .disc { font-size: 12px; color: #a89a86; line-height: 1.8; max-width: 860px; }
.footer .src { margin-top: 10px; font-size: 12px; color: #a89a86; }

/* ---------- 通用工具 ---------- */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mb16 { margin-bottom: 16px; }
.muted { color: var(--muted); }
.note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.badge-src { font-size: 12px; color: var(--amber2); border: 1px solid #eed9b8; background: #fdf6ea; padding: 2px 10px; border-radius: 999px; }
