/* ==========================================================
   base.css — 全局重置、CSS 变量、移动端 safe-area、容器
   所有页面必须第一个引入
   ========================================================== */

/* ===== 基础重置 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Roboto, sans-serif;
  color: #1a2b3c;
  line-height: 1.6;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ===== 移动端全局优化 ===== */
html,
body {
  overflow-x: hidden;
}

body {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* 防止 iOS 聚焦输入框时缩放（iOS <16px 会自动 zoom） */
input,
select,
textarea {
  font-size: 16px !important;
}

/* 消除点击延迟和高亮 */
button,
.btn,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ===== 设计变量（全站统一） ===== */
:root {
  --primary: #0f4c75;
  --primary-light: #3282b8;
  --accent: #00b4d8;
  --bg-dark: #0d1b2a;
  --bg-soft: #f5f8fc;
  --text-dark: #1a2b3c;
  --text-muted: #5c6b7a;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(15, 76, 117, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 76, 117, 0.1);
  --shadow-lg: 0 20px 48px rgba(15, 76, 117, 0.15);
}

/* ===== 容器 ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 通用板块（每个 section 的骨架） ===== */
section {
  padding: 96px 0;
}

/* ===== 减弱动效（全局用户偏好） ===== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
