/* ============================================================
   自托管字体（原 Google Fonts 在大陆不可达，会导致真机字体回退、
   等宽数字变宽撑破布局）。Manrope 为可变字体，一个文件覆盖全部字重。
   中文不加载 webfont，直接用系统字体（苹方/鸿蒙/微软雅黑），更快更稳。
   ============================================================ */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ============================================================
   兴策科技 · 基础层
   白底 / 大留白 / 绿色关键词 / 柔和阴影 / 入场动效
   ============================================================ */

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

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

html, body { overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

/* --- 排版 --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--color-fg);
}

p { max-width: 62ch; }
/* 公司介绍页左栏正文需填满栅格轨道，不受全局 62ch 限宽影响 */
.about-prose p { max-width: 88ch; }
/* FAQ 答案填满卡片宽度 */
.faq .faq-a { max-width: 96%; }
/* 新闻列表摘要填满容器宽度 */
.news-list .excerpt { max-width: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) ease-out, opacity var(--dur-fast) ease-out;
}

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

::selection { background: var(--color-brand); color: #fff; }

.nowrap { white-space: nowrap; }

/* --- 容器：宽屏全幅，左右留白 80px（≥1280），中屏 40px，移动端 20px --- */
.container {
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--page-pad);
}
@media (max-width: 1279px) {
  :root { --page-pad: 40px; }
}
@media (max-width: 640px) {
  :root { --page-pad: 20px; }
}

/* --- 区段节奏 --- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section.soft { background: var(--color-bg-soft); }

/* --- 无障碍 --- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 200;
  padding: 10px 18px;
  background: var(--color-brand);
  color: #fff;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) ease-out;
}
.skip-link:focus { top: var(--space-3); }

/* --- 标签（区块小眉题，绿色） --- */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-brand-deep);
  font-weight: 500;
}

/* --- 标题中的绿色强调词（增长超人式高亮） --- */
.brandc { color: var(--color-brand-deep); }

/* ============================================================
   动效：入场（fade + 上浮，轻快不过度）
   ============================================================ */
/* 入场动画仅在 JS 可用时启用（html.js 由 head 内联脚本添加，main.js onerror 时移除）。
   这样即使 JS/CSS 加载失败或版本错位，内容也永远可见。 */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
html.js .reveal.in:nth-child(2) { transition-delay: 70ms; }
html.js .reveal.in:nth-child(3) { transition-delay: 140ms; }
html.js .reveal.in:nth-child(4) { transition-delay: 210ms; }
html.js .reveal.in:nth-child(5) { transition-delay: 280ms; }
html.js .reveal.in:nth-child(6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none !important; }
  .hero-visual { animation: none !important; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
