/* ============================================================
   原点体育 · Web 设计 token 与基础组件
   对应《原点体育_技术方案_v0.1.md》§8 设计规范落地
   ============================================================ */

:root {
  /* 品牌色 */
  --orange: #ff6b35;
  --orange-2: #ff8c42;
  --orange-soft: #fff1ea;
  --navy: #1a5f7a;
  --navy-deep: #123d4f;
  --ink: #0b1f2a;
  --tactic: #1e3a8a;
  --tactic-2: #1e40af;
  --grass: #3da34d;
  --success: #16a34a;
  --amber: #d97706;
  --danger: #ff3b30;

  /* 中性 */
  --paper: #fbf9f5;
  --surface: #ffffff;
  --bg: #f5f7fa;
  --line: #e5e9ef;
  --line-soft: #eef1f5;
  --text: #16232c;
  --muted: #6b7a88;
  --muted-2: #96a3ae;

  /* 圆角 / 阴影 */
  --r-card: 16px;
  --r-chip: 11px;
  --r-pill: 24px;
  --r-sm: 8px;
  --shadow-1: 0 1px 2px rgba(11, 31, 42, 0.04), 0 8px 24px rgba(11, 31, 42, 0.06);
  --shadow-2: 0 2px 6px rgba(11, 31, 42, 0.06), 0 24px 60px rgba(11, 31, 42, 0.12);
  --shadow-inset: inset 0 0 0 1px rgba(255, 255, 255, 0.08);

  /* 字体 */
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-num: "Inter", "SF Pro Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;

  /* 间距（8px 基线） */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection {
  background: rgba(255, 107, 53, 0.22);
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 880px;
}

.section {
  padding: var(--s10) 0;
}

.section--tight {
  padding: var(--s9) 0;
}

/* ---------- 文字 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.62);
}

.h-display {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.h-section {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}

.mono-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

/* ---------- 按钮 ---------- */
.btn {
  --btn-h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
  background: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.28);
}

.btn--primary:hover {
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.36);
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #12303d;
}

.btn--ghost {
  border-color: rgba(22, 35, 44, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover {
  border-color: rgba(22, 35, 44, 0.3);
  background: #fff;
}

.btn--onDark {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn--onDark:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.46);
}

.btn--sm {
  --btn-h: 34px;
  font-size: 13px;
  padding: 0 14px;
}

.btn--block {
  width: 100%;
}

.btn--quiet {
  height: 32px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.btn--quiet:hover {
  background: var(--line-soft);
  color: var(--text);
}

.btn__arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn__arrow {
  transform: translate(2px, -2px);
}

/* ---------- 表单控件 ---------- */
.input,
.textarea,
.select {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: #a9b4be;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: rgba(255, 107, 53, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.7;
}

/* ---------- 标签 / 徽章 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-chip);
  background: var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.chip--orange {
  background: var(--orange-soft);
  color: #c2410c;
}

.chip--navy {
  background: #e8f1f5;
  color: var(--navy);
}

.chip--green {
  background: #e8f7ed;
  color: #15803d;
}

.chip--amber {
  background: #fdf2e2;
  color: var(--amber);
}

.chip--red {
  background: #ffeceb;
  color: #b91c1c;
}

.chip--tactic {
  background: #e8ecfb;
  color: var(--tactic);
}

.chip--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}

.hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- 滚动条 ---------- */
* {
  scrollbar-width: thin;
  scrollbar-color: #c9d3dc transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: #c9d3dc;
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #aebbc6;
  background-clip: content-box;
}

/* ---------- 动效 ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
}

.reveal.is-in {
  animation: rise 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-in { opacity: 1; animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- 工具类 ---------- */
.nowrap { white-space: nowrap; }
.only-mobile { display: none; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 打印 ---------- */
@media print {
  .reveal, .reveal.is-in { opacity: 1 !important; animation: none !important; }
  .site-header, .site-mobile, .toast, .skip-link { display: none !important; }
  .hero, .stories, .entry { background: #fff !important; color: #000 !important; }
}

[hidden] { display: none !important; }
