/* ============================================================
   人言科技官网 · 设计系统基础层 base.css
   教育科技蓝 · 主色 #2d8cf0 · 容器 1200px · 断点 1024/768
   版本约定：改本文件后请在引用处递增 ?v= 版本号
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --brand: #2d8cf0;
  --brand-dark: #1a6fd0;
  --brand-deep: #0d4f9e;
  --brand-light: #e8f3ff;
  --brand-soft: #f0f7ff;

  /* 文字 */
  --ink: #1f2d3d;
  --ink-2: #5a6b7d;
  --ink-3: #8b99aa;

  /* 线与背景 */
  --line: #e4eaf1;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;

  /* 功能色 */
  --success: #19be6b;
  --warning: #ff9900;
  --danger: #ed4014;

  /* 圆角与阴影 */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(20, 60, 120, .06);
  --shadow: 0 4px 20px rgba(20, 60, 120, .10);
  --shadow-lg: 0 12px 40px rgba(20, 60, 120, .16);

  /* 布局 */
  --container: 1200px;
  --header-h: 64px;
  --topbar-h: 38px;

  /* 动效 */
  --ease: cubic-bezier(.25, .8, .35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-dark); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.35; color: var(--ink); }
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin-bottom: 1em; }
strong { font-weight: 600; }

::selection { background: var(--brand); color: #fff; }

/* ---------- 布局容器 ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--brand { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; }
.section--brand h2, .section--brand h3 { color: #fff; }

/* ---------- 区块标题 ---------- */
.section-title { text-align: center; margin-bottom: 44px; }
.section-title .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid rgba(45, 140, 240, .25);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.section-title h2 { margin-bottom: 10px; }
.section-title .sub {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
}
.section--brand .section-title .eyebrow { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.35); color: #fff; }
.section--brand .section-title .sub { color: rgba(255,255,255,.85); }

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------- 内容排版（新闻/文章正文） ---------- */
.prose { max-width: 820px; margin: 0 auto; font-size: 16px; color: var(--ink); }
.prose h2 { font-size: 22px; margin: 28px 0 14px; }
.prose h3 { font-size: 18px; margin: 24px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose ul li { margin-bottom: 6px; }
.prose img { border-radius: var(--radius); margin: 16px auto; }

/* ---------- 响应式断点 ---------- */
@media (max-width: 1024px) {
  .section { padding: 56px 0; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }
  .section { padding: 44px 0; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  .section-title { margin-bottom: 30px; }
  .section-title .sub { font-size: 14px; }
  .prose { font-size: 15px; }
}

/* ---------- 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
