/* ============================================================
   base.css — 变量 / 重置 / 通用元素 / 布局
   ============================================================ */

/* ============ 变量 ============ */
:root {
  --bg: #0b0d11;
  --text: #e8edf2;
  --gold: #d4b87a;
  --gold-light: #f5e6a3;
  --muted: #8892a8;
  --muted-2: #a0a8b8;
  --dim: #556070;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.06);
  --gold-border: rgba(212, 184, 122, 0.2);
  --gold-bg: rgba(212, 184, 122, 0.06);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============ 重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  line-height: 1.5;
}

/* ============ 布局 A：首页 ============ */
body.layout-home {
  display: block;
  padding-top: 70px;
}
body.layout-home .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

/* ============ 布局 B：侧边栏子页面 ============ */
body.layout-sidebar {
  display: flex;
}
body.layout-sidebar .main-content {
  flex: 1;
  margin-left: 240px;
  padding: 3rem;
  display: flex;
  justify-content: center;
}
body.layout-sidebar .container {
  max-width: 900px;
  width: 100%;
}

/* ============ 布局 C：窄栏单页（报告页 / 详情页） ============ */
body.layout-report {
  display: block;
  padding: 3rem 1.5rem;
}
body.layout-report .container {
  max-width: 900px;
  margin: 0 auto;
}

/* ============ 通用文字元素 ============ */
h1 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
  letter-spacing: 1px;
}
h1 span {
  color: var(--muted);
  font-weight: 300;
  font-size: 1rem;
  margin-left: 8px;
}
.subtitle {
  color: var(--dim);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 300;
}
.date {
  color: var(--dim);
  font-size: 0.8rem;
  margin-bottom: 2rem;
}

.section-block { margin-bottom: 2.5rem; }
.section-block h2 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.section-block p {
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.section-block p:last-child { margin-bottom: 0; }

.divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, rgba(212, 184, 122, 0.3), transparent);
  margin: 1.5rem 0;
}

/* ============ 滚动入场动画 ============ */
.scroll-anim {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scroll-anim.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 响应式：子页面移动端 ============ */
@media (max-width: 768px) {
  body.layout-sidebar { flex-direction: column; }
  body.layout-sidebar .main-content {
    margin-left: 0;
    padding: 2rem 1.5rem;
  }
}

/* ============ 返回链接（详情页 / 报告页共用） ============ */
.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  transition: 0.3s;
}
.back-link:hover { color: var(--gold); }