/* ==========================================================================
   蛋蛋不语 · 基础层
   设计 token + reset + 排版基座
   单页只加载自己需要的样式文件，base.css 是所有页面共享的地基
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计 token
   -------------------------------------------------------------------------- */
:root {
  /* 表面 */
  --bg: #08080c;
  --surface: #121118;
  --raised: #191820;
  --raised-2: #1e1d26;
  --line: #221f2b;
  --line-soft: #1b1922;

  /* 文本 */
  --text: #f7f5fa;
  --text-2: #f2eff7;
  --text-3: #a9a3b8;
  --text-4: #8a8597;
  --text-5: #6f6a7c;
  --text-6: #5a5566;

  /* 主色 */
  --accent: #b9a0ff;
  --accent-soft: #cbb9ff;
  --accent-ink: #1a1030;
  --accent-line: rgba(185, 160, 255, 0.28);
  --accent-glow: rgba(185, 160, 255, 0.14);

  /* 字体栈：中文走系统（零下载），拉丁走自托管 Inter / Outfit */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC",
    "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-display: "Outfit", var(--font-sans);

  /* 布局 */
  --container: 1200px;
  --gutter: 120px;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* 节奏 */
  --section-y: 112px;
  --header-h: 76px;

  /* 缓动 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 尊重系统的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. 布局基座
   -------------------------------------------------------------------------- */
/* 容器：最大宽度 1440（= 页面宽），左右内边距 120 → 内容区净宽 1200 */
.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: 72px;
}

.section--alt {
  background: var(--surface);
}

/* --------------------------------------------------------------------------
   4. 排版工具
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--cn {
  letter-spacing: 0.08em;
  text-transform: none;
}

.h-hero {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.28;
}

.h-section {
  font-size: clamp(26px, 2.9vw, 38px);
  line-height: 1.3;
}

.h-sub {
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.35;
}

.lede {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-3);
}

.muted {
  color: var(--text-4);
}

.num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* 区块标题组：eyebrow + h2 + 说明 */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.section-head__text {
  max-width: 720px;
}

.section-head__title {
  margin-top: 14px;
}

.section-head__sub {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-3);
}

.section-head__link {
  flex-shrink: 0;
  padding-bottom: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.18s var(--ease);
}

.section-head__link:hover {
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   5. 无障碍：仅供读屏
   -------------------------------------------------------------------------- */
.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;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   6. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root {
    --gutter: 48px;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
    --section-y: 72px;
    --header-h: 64px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
  }

  .section-head__link {
    padding-bottom: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
    --section-y: 56px;
  }

  body {
    font-size: 15px;
  }
}

/* ==========================================================================
   10. 关于 / 长文说明块（SEO 正文）
   每个页面底部补一段真实可读的产品说明，承载长尾关键词。
   排版按长文阅读优化：行宽 46em、行高 1.95、段间距 1.4em。
   ========================================================================== */
.seo-about {
  border-top: 1px solid var(--line-soft);
}

.seo-about__inner {
  max-width: 820px;
}

.seo-about__title {
  margin-top: 18px;
  font-size: 30px;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.seo-about__body {
  margin-top: 28px;
  color: var(--text-4);
  font-size: 15.5px;
  line-height: 1.95;
}

.seo-about__body p {
  margin: 0 0 1.35em;
}

.seo-about__body p:last-child {
  margin-bottom: 0;
}

.seo-about__body b {
  color: var(--text-2);
  /* 用 700 而不是 600：微软雅黑只有 Regular(400) 与 Bold(700) 两个真实字面，
     请求 600 只能靠浏览器合成加粗（faux bold），小字号下笔画会发糊。
     700 直接命中 YaHei Bold，长文里更耐看。 */
  font-weight: 700;
}

.seo-about__body a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.seo-about__body a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

@media (max-width: 860px) {
  .seo-about__title {
    font-size: 24px;
  }

  .seo-about__body {
    font-size: 15px;
    line-height: 1.9;
  }
}
