/* ========================================
   CSS VARIABLES & BASE
   ======================================== */
:root {
  --primary-red: #C41E3A;
  --primary-red-dark: #9B1830;
  --primary-red-light: #E63950;
  --light-bg: #FFFFFF;
  --light-bg-alt: #F8F9FC;
  --light-bg-card: #FFFFFF;
  --border-light: #E8EBF0;
  --text-dark: #1A1A2E;
  --text-body: #4A4A5A;
  --text-muted: #7A7A8A;
  --gradient-hero: linear-gradient(135deg, #F8F9FC 0%, #EEF1F6 50%, #E8EBF0 100%);
  --gradient-red: linear-gradient(135deg, #C41E3A 0%, #9B1830 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.08);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%; /* 防止iOS横屏字体放大 */
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; /* 字体平滑 */
  -moz-osx-font-smoothing: grayscale;
  /* iOS安全区域适配 */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* 触摸优化 */
a, button {
  -webkit-tap-highlight-color: transparent; /* 去除点击高亮 */
  touch-action: manipulation; /* 禁用双击缩放 */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  font-size: 1.1rem;
  color: var(--text-body);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
