/* ============================================================
   美股情绪气象站 · 设计系统（第八种风格：情绪天气预报）
   色彩：渐变天空(暮蓝紫→夕阳橙) + 理性蓝/恐惧紫/贪婪橙
   签名：情绪气压表指针插画 + 圆润气泡卡片
   ============================================================ */

:root {
  --bg: #f6f6fb;
  --card: #ffffff;
  --ink: #2b2d42;
  --ink-soft: #454764;
  --line: rgba(43, 45, 66, 0.12);
  --line-strong: rgba(43, 45, 66, 0.22);

  --sky-top: #6b7fd7;
  --sky-mid: #9b7fc7;
  --sky-bottom: #e8935a;

  --calm: #4a7fb5;
  --fear: #6c5b9e;
  --greed: #e0a23a;
  --panic: #c15b6b;

  --muted: #6a6c86;
  --faint: #9fa0b8;

  --font-display: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "DIN Alternate", "Consolas", monospace;

  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部条 ---------- */
.top-bar { background: var(--card); border-bottom: 1px solid var(--line); }
.top-bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 18px; color: var(--ink); }
.brand .badge { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--sky-top), var(--sky-bottom)); }
nav.top-nav { display: flex; gap: 22px; }
nav.top-nav a { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
nav.top-nav a:hover { color: var(--fear); }
.btn-cs { background: var(--ink); color: #fff; border: none; padding: 9px 20px; font-weight: 700; font-size: 13.5px; cursor: pointer; border-radius: 22px; }
.btn-cs:hover { background: var(--fear); }

/* ---------- Hero：渐变天空 ---------- */
.sky-hero { padding: 64px 0 56px; background: linear-gradient(160deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-bottom) 100%); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12.5px; color: #fff; background: rgba(255,255,255,0.18); padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; backdrop-filter: blur(4px); }
.sky-hero h1 { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1.38; margin: 0 0 20px; color: #fff; }
.sky-hero h1 mark { background: rgba(255,255,255,0.28); color: #fff; padding: 0 6px; border-radius: 6px; }
.sky-hero p.lead { font-size: 15.5px; color: rgba(255,255,255,0.88); max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 34px; }
.btn-primary { background: #fff; color: var(--ink); border: none; padding: 13px 26px; font-weight: 800; font-size: 14.5px; cursor: pointer; border-radius: 24px; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost { border: 1.5px solid #fff; color: #fff; padding: 12px 24px; font-weight: 800; font-size: 14.5px; background: transparent; cursor: pointer; border-radius: 24px; }

/* 情绪标签条 */
.mood-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mood-chip { background: rgba(255,255,255,0.2); color: #fff; padding: 7px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 700; backdrop-filter: blur(4px); }

/* 气压表面板 */
.gauge-panel { background: #fff; border-radius: 18px; padding: 26px; box-shadow: 0 16px 40px rgba(43,45,66,0.18); }
.gauge-panel .cap { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.gauge-legend { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); margin-top: 6px; }

/* ---------- 通用 section ---------- */
section { padding: 58px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 { font-family: var(--font-display); font-weight: 900; font-size: 24px; margin: 0; color: var(--ink); }
.section-head .tag { display: inline-block; background: var(--ink); color: #fff; font-size: 11px; padding: 2px 10px; border-radius: 10px; margin-right: 8px; font-family: var(--font-mono); }
.section-head a.more { font-weight: 700; font-size: 13.5px; color: var(--calm); white-space: nowrap; }

/* 五模块气泡卡片 */
.pillar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pillar-card { background: var(--card); border: 1px solid var(--line); padding: 22px 18px; border-radius: 16px; box-shadow: 0 4px 14px rgba(43,45,66,0.05); }
.pillar-card .n { display: inline-block; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); color: var(--fear); font-family: var(--font-mono); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pillar-card h3 { font-family: var(--font-display); font-size: 15.5px; margin: 12px 0 8px; font-weight: 800; color: var(--ink); }
.pillar-card p { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; line-height: 1.6; }
.pillar-card .go { font-size: 11.5px; color: var(--calm); font-weight: 700; }

/* 偏误卡片 */
.bias-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bias-card { background: var(--card); border: 1px solid var(--line); padding: 18px; border-radius: 14px; }
.bias-card .icon { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--fear), var(--panic)); margin-bottom: 12px; }
.bias-card h4 { font-family: var(--font-display); font-size: 14.5px; margin: 0 0 6px; font-weight: 800; color: var(--ink); }
.bias-card p { font-size: 12px; color: var(--muted); margin: 0; }

/* 记录列表 */
.entry-list { display: flex; flex-direction: column; }
.entry-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.entry-row .cat { font-family: var(--font-mono); font-size: 10.5px; color: var(--fear); width: 64px; flex-shrink: 0; font-weight: 700; }
.entry-row h4 { font-family: var(--font-display); font-size: 15px; margin: 0; font-weight: 700; color: var(--ink); flex: 1; }
.entry-row .arrow { color: var(--faint); font-size: 15px; }

/* FAQ */
.qa-card { background: var(--card); border: 1px solid var(--line); padding: 18px 22px; margin-bottom: 12px; border-radius: 14px; border-left: 4px solid var(--fear); }
.qa-card h4 { font-family: var(--font-display); font-size: 15px; margin: 0 0 8px; color: var(--ink); font-weight: 800; }
.qa-card p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------- footer ---------- */
.disclaimer { background: var(--ink); color: #d8d9ea; padding: 20px 0; font-size: 12.5px; }
footer { background: var(--card); border-top: 1px solid var(--line); padding: 44px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-grid h5 { font-family: var(--font-display); font-size: 12.5px; color: var(--ink); margin: 0 0 12px; font-weight: 800; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { font-size: 13px; color: var(--muted); }
.footer-grid a:hover { color: var(--fear); }
.footer-bottom { border-top: 1px solid var(--line-strong); padding-top: 16px; font-size: 12px; color: var(--faint); }

/* ---------- 内页 ---------- */
.page-head { padding: 46px 0 36px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--fear); }
.page-head .tag { display: inline-block; font-size: 12px; background: var(--ink); color: #fff; padding: 4px 12px; margin-bottom: 14px; border-radius: 12px; }
.page-head h1 { font-family: var(--font-display); font-weight: 900; font-size: 29px; margin: 0 0 12px; line-height: 1.4; color: var(--ink); }
.page-head p { color: var(--muted); max-width: 60ch; }
.article-body h2 { font-family: var(--font-display); font-weight: 800; font-size: 18px; margin-top: 30px; color: var(--ink); }
.article-body h2::before { content: "◆ "; color: var(--fear); font-size: 13px; }
.article-body p { color: var(--ink-soft); font-size: 15.5px; }
.note-box { border: 1px solid var(--line-strong); background: var(--card); padding: 18px 20px; font-size: 13.5px; color: var(--muted); margin: 28px 0; border-radius: 14px; }
.related-box { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.related-box h5 { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.related-box ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.related-box a { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--calm); }
.related-box a:hover { color: var(--fear); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  nav.top-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .sky-hero h1 { font-size: 30px; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .bias-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
