/* ============================================
   改配色只需要动这一段变量
   ============================================ */
:root {
  --accent: #f6821f;
  --accent-2: #00b8d9;

  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --text: #16181d;
  --text-muted: #5c6370;
  --border: #e4e7ec;

  --radius: 12px;
  --max-width: 1080px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
}

html[data-theme="dark"] {
  --bg: #0d0f14;
  --bg-alt: #13161d;
  --surface: #171a22;
  --text: #e8eaf0;
  --text-muted: #9aa2b1;
  --border: #262b36;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.25s ease, color 0.25s ease;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.12em 0.38em;
}

a {
  color: inherit;
}

/* ============================================
   布局容器
   ============================================ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
  scroll-margin-top: 76px;
}

.section-alt {
  background: var(--bg-alt);
  max-width: none;
  padding-left: max(24px, calc((100% - var(--max-width)) / 2 + 24px));
  padding-right: max(24px, calc((100% - var(--max-width)) / 2 + 24px));
}

.section-title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

/* ============================================
   顶栏
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.brand-mark {
  color: var(--accent);
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.theme-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 92px 0 80px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 17ch;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 52px;
}

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  list-style: none;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   卡片网格
   ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ============================================
   正文区块
   ============================================ */
.prose {
  max-width: 68ch;
}

.prose p {
  margin-bottom: 14px;
  color: var(--text-muted);
}

.prose ol {
  margin: 0 0 16px 22px;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
}

.muted {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.cta-text + .cta-text {
  margin-top: 10px;
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 30px 24px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 640px) {
  .site-nav a {
    display: none;
  }

  .hero {
    padding: 60px 0 52px;
  }

  .hero-stats {
    gap: 26px;
  }

  .section {
    padding: 60px 0;
  }
}

/* 尊重系统的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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