/* ============================================================
   薪领航集团 · 共享设计令牌
   Sino Talent Resources · Shared Design Tokens
   ============================================================ */

:root {
  /* —— 品牌主色 —— */
  --brand-red: #AF272F;
  --brand-red-deep: #7A1521;
  --brand-red-soft: #FBEBED;
  --brand-red-hot: #D63B4E;
  --brand-black: #2F241D;

  /* —— 中性色阶 —— */
  --neutral-0: #FFFFFF;
  --neutral-50: #FAF8F6;
  --neutral-100: #F1EDE8;
  --neutral-200: #E4DDD2;
  --neutral-400: #9A9088;
  --neutral-600: #5C5347;
  --neutral-800: #3A3329;
  --neutral-900: #2F241D;

  /* —— 海外延伸 (Out2China 对齐) —— */
  --x-red: #B22732;
  --x-purple: #5C3A8F;
  --x-deep-blue: #1F4FA0;
  --x-blue: #3B82F6;
  --x-gradient-h: linear-gradient(90deg, #B22732 0%, #5C3A8F 50%, #1F4FA0 100%);
  --x-gradient-rev: linear-gradient(90deg, #1F4FA0 0%, #5C3A8F 50%, #B22732 100%);

  /* —— 字族 —— */
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Lato", -apple-system, system-ui, sans-serif;
  --font-en: "Lato", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* —— 阴影 —— */
  --shadow-sm: 0 1px 2px rgba(47, 36, 29, 0.06);
  --shadow-md: 0 4px 12px rgba(47, 36, 29, 0.08);
  --shadow-lg: 0 12px 32px rgba(47, 36, 29, 0.12);
  --shadow-glow-red: 0 0 0 4px rgba(175, 39, 47, 0.12);

  /* —— 圆角 —— */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
  --r-full: 9999px;

  /* —— 容器 —— */
  --container: 1280px;
  --container-narrow: 720px;
  --gutter: 80px;
}

/* —— 基础重置 —— */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--brand-black);
  background: var(--neutral-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { line-height: 1.7; font-size: 16px; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.25; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* —— 通用排版工具 —— */
.font-serif { font-family: var(--font-serif); }
.font-en { font-family: var(--font-en); letter-spacing: 0.02em; }
.font-mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2px;
  background: currentColor;
}

/* —— 按钮基础 —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--r-md);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: var(--brand-red-deep); box-shadow: var(--shadow-glow-red); }
.btn-secondary { background: transparent; color: var(--brand-red); border: 1px solid var(--brand-red); }
.btn-secondary:hover { background: var(--brand-red-soft); }
.btn-ghost { color: var(--brand-black); }
.btn-ghost:hover { color: var(--brand-red); }
.btn-xl { padding: 16px 32px; font-size: 17px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* —— 工具 —— */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 1023px) { .container { padding: 0 40px; } }
@media (max-width: 767px)  { .container { padding: 0 20px; } }

/* —— scroll reveal —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* —— count-up —— */
.count { display: inline-block; font-variant-numeric: tabular-nums; }


/* —— Unified hero gradient (About / Services / Contact) —— */
.hero.ab-hero {
  background: linear-gradient(135deg, rgba(31,79,160,0.08) 0%, rgba(59,130,246,0.06) 50%, rgba(59,130,246,0.04) 75%, rgba(175,39,47,0.04) 100%) !important;
  position: relative;
  overflow: hidden;
}
.hero.ab-hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.11), transparent 65%);
  pointer-events: none;
  filter: blur(24px);
  z-index: 0;
}
.hero.ab-hero::after {
  content: "";
  position: absolute;
  bottom: -120px; left: -120px;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(31,79,160,0.085), transparent 65%);
  pointer-events: none;
  filter: blur(24px);
  z-index: 0;
}
.hero.ab-hero > * { position: relative; z-index: 1; }
