/* ============================================
   base.css — 变量 / 重置 / 基础排版
   ============================================ */

/* ---------- 设计变量 ---------- */
:root {
  /* 主题色 */
  --color-primary: #0e7fa8;
  --color-primary-dark: #0a5f7f;
  --color-primary-light: #e6f4f9;
  --color-accent: #14b8a6;
  --color-danger: #e11d48;

  /* 中性色 */
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-heading: #0f2c3d;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f9fb;
  --color-border: #e2e8f0;

  /* 字号 */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.5rem;

  /* 间距 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 5rem;

  /* 布局 */
  --container-width: 1200px;
  --header-height: 72px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(15, 44, 61, 0.08);
  --shadow-md: 0 6px 20px rgba(15, 44, 61, 0.1);
  --shadow-lg: 0 16px 40px rgba(15, 44, 61, 0.14);
  --transition: 0.3s ease;
}

/* ---------- 重置 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 确保 [hidden] 属性始终生效，不被 display:flex 等规则覆盖 */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: var(--fs-base);
}

/* ---------- 通用排版 ---------- */
h1, h2, h3, h4 {
  color: var(--color-heading);
  line-height: 1.3;
  font-weight: 700;
}

.section-title {
  font-size: var(--fs-xl);
  text-align: center;
  margin-bottom: var(--space-2);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: var(--space-7);
  font-size: var(--fs-md);
}

.section-subtitle::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: var(--space-3) auto 0;
  border-radius: 2px;
  background: var(--color-primary);
}
