/* ════════ 基础样式（reset + 排版 + 布局） ════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* 展示级标题 · 宋体系衬线，静气与书卷感 */
h1,
h2 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "Songti SC", "STSong", "SimSun", serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ════════ 容器 ════════ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* ════════ 排版 ════════ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 24px;
  letter-spacing: 0.5px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 768px) {
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 28px;
  }
}

/* ════════ 通用区块 ════════ */
.section {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 56px 0;
  }
}

.section-alt {
  background: var(--bg-section-alt);
}

/* ════════ 渐变文字 ════════ */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════ 滚动动画 ════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
}

.reveal.in {
  animation: fadeUp 0.6s ease forwards;
}

/* ════════ 工具类 ════════ */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-48 {
  margin-top: 48px;
}
