/* =============================================================
 * base.css — 全局基础样式（变量 / reset / 排版 / 容器 / 栅格）
 * 主题：佳径青藤（AI 蓝 + 青）
 * 依赖：无（原生 CSS，零构建）
 * ============================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ai-blue: #2563EB;
  --cyan: #06B6D4;
  --cyan-light: #22D3EE;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --text: #1E293B;
  --text-sub: #64748B;
  --border: #E2E8F0;
  --container: 1200px;
  --radius: 12px;
  --radius-lg: 16px;
  --gradient: linear-gradient(135deg, var(--ai-blue), var(--cyan));
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 10px 30px rgba(37, 99, 235, 0.18);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --transition: 0.25s ease;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, ul, ol, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 18px; }

p { color: var(--text-sub); }

/* ---------- 4. 容器 ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* ---------- 5. 链接与图片 ---------- */
a {
  transition: color var(--transition);
}

img {
  object-fit: cover;
}

/* ---------- 6. 公共区块间距 ---------- */
.section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient);
}

.section-title p {
  margin-top: 12px;
  color: var(--text-sub);
}

/* ---------- 7. 通用栅格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.grid--3 > * { grid-column: span 4; }
.grid--4 > * { grid-column: span 3; }
.grid--2 > * { grid-column: span 6; }

/* 无 JS 时也保证可读的可见性兜底 */
.is-hidden { display: none !important; }
