/* ============================================================
   DESIGN TOKENS (OKLCH — 感知均匀的色彩空间)
   ============================================================ */
:root {
  /* 品牌主色 · 深靛蓝 */
  --brand-50:  oklch(96% 0.02 255);
  --brand-100: oklch(90% 0.04 255);
  --brand-500: oklch(48% 0.12 255);
  --brand-600: oklch(40% 0.11 255);
  --brand-700: oklch(32% 0.10 255);

  /* 强调色 · 青蓝（类终端高亮） */
  --accent:      oklch(72% 0.18 190);
  --accent-deep: oklch(55% 0.15 190);

  /* 暖色点缀（用于数字、关键数据） */
  --warm: oklch(78% 0.14 75);

  /* 深色表面层 · 带品牌色调 */
  --bg:         oklch(13% 0.012 255);
  --bg-elev-1:  oklch(17% 0.012 255);
  --bg-elev-2:  oklch(21% 0.012 255);
  --bg-elev-3:  oklch(26% 0.012 255);

  /* 文字层级 */
  --text-1: oklch(94% 0.005 255);
  --text-2: oklch(72% 0.008 255);
  --text-3: oklch(52% 0.008 255);

  /* 分割线 · 比纯色灰更有温度 */
  --border:     oklch(29% 0.01 255);
  --border-strong: oklch(40% 0.012 255);

  /* 语义色 */
  --success: oklch(66% 0.16 140);

  /* 字体 */
  --f-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* 间距（8px 网格，无遗漏） */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem;  --s-7: 1.75rem; --s-8: 2rem;
  --s-9: 2.25rem; --s-10: 2.5rem; --s-11: 2.75rem; --s-12: 3rem;
  --s-16: 4rem;   --s-20: 5rem;   --s-24: 6rem;   --s-32: 8rem; --s-48: 12rem;

  /* 圆角 */
  --r-sm: 4px;   --r: 8px;       --r-lg: 14px;
  --r-xl: 20px;  --r-full: 999px;

  /* 动效曲线 */
  --ease-out-expo: cubic-bezier(.165,.84,.44,1);
  --ease-out-quart: cubic-bezier(.25,.1,.25,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-block-start: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  font-weight: 350;
  font-kerning: normal;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* 滚动条（仅 WebKit 可见） */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-elev-3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* 选中色 */
::selection { background: var(--accent); color: var(--bg); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.h-display {
  font-size: clamp(2.75rem, 6vw + 1rem, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.h-1 { font-size: clamp(2rem, 3vw + 1rem, 3.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.h-2 { font-size: clamp(1.5rem, 2vw + .75rem, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.h-3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }

.text-lead { font-size: 1.125rem; color: var(--text-2); font-weight: 400; }
.text-mono { font-family: var(--f-mono); font-size: .875rem; color: var(--text-3); letter-spacing: 0; }

/* 被强调的 accent 词 */
.accent-word { color: var(--accent); font-weight: 600; }
/* 品牌签名 */
.brand-mark { font-family: var(--f-mono); color: var(--accent); font-weight: 500; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--s-6);
}
.section { padding-block: var(--s-24); }

/* 滚动动画基类 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out-quart), transform .8s var(--ease-out-quart); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset-block-start: 0; inset-inline: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: color-mix(in oklch, var(--bg) 72%, transparent);
  border-block-end: 1px solid transparent;
  transition: border-color .3s var(--ease-out-quart), background .3s var(--ease-out-quart);
}
.nav.is-scrolled { border-block-end-color: var(--border); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
/* Logo */
.logo {
  display: flex; align-items: center; gap: var(--s-3);
  font-weight: 700; font-size: 1.05rem;
}
.logo__mark {
  width: 34px; height: 34px;
  position: relative;
}
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { line-height: 1; }
.logo__text-cn { display: block; }
.logo__text-en { display: block; font-family: var(--f-mono); font-size: .65rem; color: var(--text-3); margin-top: 2px; font-weight: 400; letter-spacing: .1em; }

/* Nav links */
.nav__links {
  display: flex; gap: var(--s-8);
  list-style: none;
  font-size: .9rem;
}
.nav__links a {
  position: relative;
  color: var(--text-2);
  padding-block: var(--s-2);
  transition: color .2s var(--ease-out);
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset-block-end: -4px; inset-inline: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width .3s var(--ease-out-quart);
}
.nav__links a:hover { color: var(--text-1); }
.nav__links a:hover::after { width: 100%; }

/* Nav CTA */
.nav__cta {
  font-size: .875rem;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-full);
  background: var(--bg-elev-3);
  color: var(--text-1);
  border: 1px solid var(--border-strong);
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.nav__cta:hover { background: var(--brand-600); border-color: var(--brand-500); }

/* Mobile nav toggle */
.nav__toggle { display: none; width: 40px; height: 40px; border-radius: var(--r); }
.nav__toggle span {
  display: block; width: 22px; height: 2px; background: var(--text-1); margin: 4px auto;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav.is-open .nav__mobile { display: flex; }
}
.nav__mobile {
  display: none; flex-direction: column;
  position: absolute; inset-block-start: 64px; inset-inline: 0;
  background: color-mix(in oklch, var(--bg) 96%, black 4%);
  border-block-end: 1px solid var(--border);
  padding: var(--s-6); gap: var(--s-4);
}
.nav__mobile a { padding: var(--s-3) 0; color: var(--text-2); border-bottom: 1px solid var(--border); }
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile .nav__cta { display: inline-block; align-self: flex-start; margin-top: var(--s-2); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 120px var(--s-24);
  overflow: hidden;
}
/* 背景装饰 · 非 generic 紫蓝渐变 */
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero__bg::before {
  content: "";
  position: absolute; inset-block-start: 20%; inset-inline-start: 50%;
  width: 700px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, oklch(35% 0.12 255 / .35) 0%, transparent 70%);
  filter: blur(40px);
}
.hero__bg::after {
  content: "";
  position: absolute; inset-block-end: 0; inset-inline: -10%;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, oklch(60% 0.18 190 / .15) 0%, transparent 70%);
  filter: blur(60px);
}
/* 网格底纹 */
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 75%);
  opacity: .5;
}

.hero__inner { position: relative; z-index: 1; max-width: 960px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-mono); font-size: .75rem;
  padding: var(--s-2) var(--s-3);
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-2);
  margin-block-end: var(--s-6);
}
.hero__eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }

.hero__title { margin-block-end: var(--s-6); }
.hero__subtitle {
  font-size: clamp(1rem, 1.5vw + .5rem, 1.25rem);
  color: var(--text-2);
  max-width: 64ch;
  margin-block-end: var(--s-10, 2.5rem);
}

.hero__actions {
  display: flex; gap: var(--s-4); flex-wrap: wrap;
  margin-block-end: var(--s-12);
}
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 500;
  padding: var(--s-3) var(--s-6);
  border-radius: var(--r-full);
  font-size: .95rem;
  transition: transform .2s var(--ease-out-quart), background .2s var(--ease-out), border-color .2s var(--ease-out);
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--brand-500);
  color: var(--text-1);
  border-color: var(--brand-500);
}
.btn--primary:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn svg { width: 16px; height: 16px; }

/* Hero 下方的统计条 */
.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-8);
  padding-block-start: var(--s-8);
  border-block-start: 1px solid var(--border);
}
.stat__num {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-1);
}
.stat__num .unit { font-family: var(--f-mono); font-size: 1rem; color: var(--accent); margin-inline-start: 2px; }
.stat__label { font-size: .85rem; color: var(--text-3); margin-block-start: 4px; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { margin-block-end: var(--s-12); }
.section-header__eyebrow {
  display: inline-block; font-family: var(--f-mono); font-size: .75rem;
  color: var(--accent); text-transform: uppercase; letter-spacing: .15em;
  margin-block-end: var(--s-3);
}
.section-header__title { margin-block-end: var(--s-3); }
.section-header__desc { color: var(--text-2); max-width: 60ch; }

/* ============================================================
   SERVICES — 差异化两大服务板块
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
@media (max-width: 768px) { .services__grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  padding: var(--s-10);
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color .3s var(--ease-out-quart), transform .3s var(--ease-out-quart);
}
.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.service-card__accent {
  position: absolute; inset-block-start: 0; inset-inline: 0;
  height: 3px;
}
.service-card--a .service-card__accent { background: linear-gradient(90deg, var(--brand-500), var(--accent)); }
.service-card--b .service-card__accent { background: linear-gradient(90deg, var(--accent), var(--warm)); }

.service-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-lg);
  background: var(--bg-elev-3);
  display: flex; align-items: center; justify-content: center;
  margin-block-end: var(--s-6);
  border: 1px solid var(--border);
}
.service-card__icon svg { width: 22px; height: 22px; color: var(--accent); }

.service-card__title { margin-block-end: var(--s-3); }
.service-card__desc { color: var(--text-2); margin-block-end: var(--s-6); }
.service-card__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.service-card__tag {
  font-family: var(--f-mono); font-size: .72rem;
  padding: 4px var(--s-2);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-2);
}

/* ============================================================
   TECH STACK
   ============================================================ */
.tech {
  background: var(--bg-elev-1);
  border-block: 1px solid var(--border);
  padding-block: var(--s-6);
  padding-inline: 0;
}
.tech__row {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  padding-block: var(--s-4);
}
.tech__track {
  display: flex; gap: var(--s-8);
  padding-block: var(--s-8);
  animation: tech-scroll 40s linear infinite;
  flex-shrink: 0;
}
.tech__row:hover .tech__track { animation-play-state: paused; }
@keyframes tech-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tech__item {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  flex-shrink: 0;
}
.tech__item-logo { font-family: var(--f-mono); font-size: 1.25rem; font-weight: 600; color: var(--accent); }
.tech__item-name { font-size: .9rem; color: var(--text-1); font-weight: 500; }
.tech__item-cat { font-family: var(--f-mono); font-size: .7rem; color: var(--text-3); }
/* ============================================================
   PROCESS
   ============================================================ */
.process__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  counter-reset: step;
}
@media (max-width: 900px) { .process__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process__list { grid-template-columns: 1fr; } }

.process__item {
  padding: var(--s-8);
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.process__item::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  inset-block-start: var(--s-4); inset-inline-end: var(--s-5);
  font-family: var(--f-mono);
  font-size: 3rem;
  font-weight: 600;
  color: oklch(28% 0.01 255);
  line-height: 1;
  z-index: 0;
}
.process__item h3 {
  margin-block-start: 2.25rem; /* 避开右上角数字水印 */
  margin-block-end: var(--s-3);
  position: relative; z-index: 1;
}
.process__item p { color: var(--text-2); font-size: .92rem; position: relative; z-index: 1; }

/* ============================================================
   ABOUT — 数字 + 简介
   ============================================================ */
.about {
  position: relative;
}
.about__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-12);
  align-items: start;
}
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; gap: var(--s-8); } }

.about__numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.about__num {
  padding: var(--s-6);
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.about__num-value {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.about__num-label { font-size: .82rem; color: var(--text-2); margin-block-start: var(--s-2); }

.about__content p { color: var(--text-2); margin-block-end: var(--s-4); }
.about__content p strong { color: var(--text-1); }

/* ============================================================
   CTA — 转化行动区
   ============================================================ */
.cta {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-16);
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute; inset: -1px;
  background: radial-gradient(ellipse at center, oklch(40% 0.12 255 / .4), transparent 60%);
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta__title { margin-block-end: var(--s-4); }
.cta__desc { color: var(--text-2); margin-block-end: var(--s-8); max-width: 50ch; margin-inline: auto; }
.cta__actions { display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding-block: var(--s-12) var(--s-8);
  border-block-start: 1px solid var(--border);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--s-12);
  margin-block-end: var(--s-12);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand .logo { margin-bottom: var(--s-4); }
.footer__brand p { color: var(--text-2); font-size: .9rem; margin-block-end: var(--s-4); max-width: 40ch; }

.footer h4 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-3); margin-block-end: var(--s-4); font-weight: 600;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.footer a { color: var(--text-2); font-size: .9rem; transition: color .2s var(--ease-out); }
.footer a:hover { color: var(--accent); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-block-start: var(--s-8);
  border-block-start: 1px solid var(--border);
  font-size: .82rem; color: var(--text-3);
  flex-wrap: wrap; gap: var(--s-4);
}

/* ============================================================
   FLOATING "BACK TO TOP" (subtle)
   ============================================================ */
.back-to-top {
  position: fixed;
  inset-block-end: var(--s-6); inset-inline-end: var(--s-6);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-elev-3);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; transform: none; }
.back-to-top:hover { color: var(--accent); border-color: var(--accent); }
