/* ============================================================
   深空极光 Deep-space Aurora — 设计系统
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: dark;
  /* 色板 */
  --bg: #060913;
  --bg-deep: #04060d;
  --panel: rgba(151, 168, 255, 0.05);
  --panel-hi: rgba(151, 168, 255, 0.09);
  --line: rgba(151, 168, 255, 0.14);
  --line-strong: rgba(163, 178, 255, 0.30);
  --ink: #f0f4fd;
  --ink-body: #aab6d3;
  --ink-dim: #8b9ab8;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --green: #34d399;
  --grad: linear-gradient(115deg, #22d3ee, #3b82f6 46%, #8b5cf6);
  --grad-soft: linear-gradient(115deg, rgba(34,211,238,.6), rgba(59,130,246,.6) 46%, rgba(139,92,246,.6));
  /* 形状与层次 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-card: 0 24px 60px -28px rgba(2, 6, 22, 0.9);
  --shadow-glow: 0 16px 44px -12px rgba(79, 70, 229, 0.55), 0 4px 18px -4px rgba(34, 211, 238, 0.25);
  /* 字体 */
  --font-sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- 深空氛围:极光 + 细网格 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -25% -10%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(640px 460px at 16% 6%, rgba(59, 130, 246, 0.30), transparent 62%),
    radial-gradient(760px 520px at 82% 0%, rgba(139, 92, 246, 0.26), transparent 62%),
    radial-gradient(560px 420px at 55% 26%, rgba(34, 211, 238, 0.13), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(37, 99, 235, 0.14), transparent 65%),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 40%);
  filter: blur(56px);
  transform: translateZ(0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(163, 178, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 178, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(1100px 640px at 50% -5%, #000 30%, transparent 78%);
  mask-image: radial-gradient(1100px 640px at 50% -5%, #000 30%, transparent 78%);
}

::selection { background: rgba(59, 130, 246, 0.45); color: #fff; }

a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  color: var(--ink);
  letter-spacing: 0;
  text-wrap: balance;
  line-height: 1.3;
}

/* ---------- 页面容器 ---------- */
.page {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px clamp(18px, 4.5vw, 36px) 0;
}

/* ============================================================
   顶栏:悬浮玻璃条
   ============================================================ */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(8, 12, 24, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 14px 44px -22px rgba(0, 0, 0, 0.85);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 18px -4px rgba(79, 70, 229, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
  min-width: 0;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.brand-copy span {
  color: var(--ink-dim);
  font-size: 11.5px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-body);
  font-size: 13.5px;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(163, 178, 255, 0.09);
}

.nav .lang-switch {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  padding: 5px 11px;
}

.nav .lang-switch:hover { border-color: var(--line-strong); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: clamp(56px, 9vw, 104px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(52, 211, 153, 0.30);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
  color: #9ceec9;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: dot-pulse 2.4s ease-out infinite;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 0 72px rgba(99, 102, 241, 0.4);
}

.hero-lead {
  max-width: 34em;
  color: var(--ink-body);
  font-size: clamp(15px, 1.4vw, 16.5px);
  line-height: 1.85;
}

/* ---------- 按钮 ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, filter 0.22s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(115deg, #0ea5e9, #2563eb 45%, #7c3aed);
  background-size: 200% 200%;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 22px 54px -12px rgba(79, 70, 229, 0.7), 0 6px 22px -4px rgba(34, 211, 238, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  color: #dde5f8;
  background: rgba(151, 168, 255, 0.07);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(163, 178, 255, 0.55);
  background: rgba(151, 168, 255, 0.12);
}

/* ---------- Hero 数据面板 ---------- */
.hero-side {
  position: relative;
  display: grid;
  gap: 16px;
}

.hero-side::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 40%, rgba(59, 130, 246, 0.22), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(151, 168, 255, 0.09), rgba(151, 168, 255, 0.035));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-soft);
  opacity: 0.8;
}

.hero-panel .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.hero-panel strong {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-panel p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-dim);
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hero-panel.hero-mini { padding: 20px 20px 18px; }

.hero-panel.hero-mini strong { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }

.hero-panel.hero-mini p { font-size: 12.5px; }

/* ---------- 信任锚点条(非卡片,刻度节奏) ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px 34px;
  margin-top: clamp(60px, 9vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stat::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  margin-bottom: 14px;
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 7px;
}

.stat span {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-dim);
}

/* ============================================================
   区块公共
   ============================================================ */
.stack {
  display: grid;
  gap: clamp(84px, 11vw, 136px);
  margin-top: clamp(84px, 11vw, 136px);
}

.section-head {
  max-width: 560px;
  margin-bottom: clamp(32px, 4.5vw, 48px);
}

.section-head h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- points 列表(渐变菱形符号) ---------- */
.points {
  list-style: none;
  display: grid;
  gap: 9px;
}

.points li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #c2cce2;
}

.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--grad);
  transform: rotate(45deg);
}

/* ============================================================
   服务内容:2×2 玻璃卡
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.service {
  position: relative;
  overflow: hidden;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at 18% -8%, rgba(59, 130, 246, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--panel-hi);
  box-shadow: 0 28px 64px -26px rgba(37, 99, 235, 0.45);
}

.service:hover::before { opacity: 1; }

.service-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.38);
  background: rgba(59, 130, 246, 0.10);
  color: #9ec5fd;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.service h3 {
  position: relative;
  margin: 16px 0 9px;
  font-size: 1.15rem;
  font-weight: 600;
}

.service > p {
  position: relative;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-dim);
}

.service .points {
  position: relative;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(151, 168, 255, 0.16);
}

/* ============================================================
   产品与实践:3 联卡,指标沉底
   ============================================================ */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.product {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(151, 168, 255, 0.08), rgba(151, 168, 255, 0.03));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.75;
}

.product:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 70px -26px rgba(37, 99, 235, 0.5);
}

.product-top { flex: 1; }

.product-top h3 {
  margin: 15px 0 9px;
  font-size: 1.2rem;
  font-weight: 600;
}

.product-top p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-dim);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  border: 1px solid transparent;
}

.pill-teal {
  color: #7ce8f8;
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(34, 211, 238, 0.09);
}

.pill-gold {
  color: #fcd47f;
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.10);
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(151, 168, 255, 0.16);
}

.metric strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.metric span {
  display: block;
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

/* ============================================================
   合作流程:无卡片编号栏(01–04 为真实顺序)
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px 26px;
}

.process-item {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.process-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 46px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.step {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0.92;
}

.process-item h3 {
  margin: 12px 0 7px;
  font-size: 1.05rem;
  font-weight: 600;
}

.process-item p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-dim);
}

/* ============================================================
   CTA:内发光大面板
   ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 44px);
  padding: clamp(36px, 6vw, 64px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(24, 32, 64, 0.55), rgba(8, 12, 26, 0.85));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(163, 178, 255, 0.18);
}

.cta::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 0;
  background:
    radial-gradient(46% 52% at 22% 18%, rgba(59, 130, 246, 0.30), transparent 68%),
    radial-gradient(42% 48% at 84% 24%, rgba(139, 92, 246, 0.26), transparent 68%),
    radial-gradient(36% 42% at 58% 96%, rgba(34, 211, 238, 0.14), transparent 65%);
  filter: blur(46px);
  pointer-events: none;
}

.cta > * { position: relative; z-index: 1; }

.cta-copy h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 14px;
  text-shadow: 0 0 56px rgba(99, 102, 241, 0.45);
}

.cta-copy p {
  max-width: 34em;
  color: #bcc7e2;
  font-size: 15px;
  line-height: 1.85;
}

.cta-copy .actions { margin-top: 28px; }

.cta-note {
  align-self: center;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(5, 8, 17, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cta-note strong {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 14px;
}

.cta-note p {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-dim);
}

/* ============================================================
   页脚
   ============================================================ */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 32px;
  margin-top: clamp(84px, 11vw, 136px);
  padding: 34px 0 52px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.footer-copy span {
  font-size: 12.5px;
  color: var(--ink-dim);
}

.footer-links .icp {
  font-size: 12.5px;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links .icp:hover {
  color: var(--ink-body);
  border-bottom-color: var(--line-strong);
}

/* ============================================================
   动效
   ============================================================ */
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ============================================================
   响应式
   ============================================================ */
@media (min-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 700px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .products .product:last-child { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; }
  .cta { grid-template-columns: 1.45fr 1fr; align-items: center; }
}

@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .process { grid-template-columns: repeat(4, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .products .product:last-child { grid-column: auto; }
}

@media (max-width: 640px) {
  .brand-copy span { display: none; }
  .brand-copy strong { font-size: 13px; white-space: normal; line-height: 1.35; }
  .nav a { padding: 6px 8px; font-size: 13px; }
}

@media (max-width: 420px) {
  .hero-mini-grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== 英文页字体栈 ===== */
body:lang(en) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", sans-serif;
}

/* ===== 产品矩阵页(/products/) ===== */
.section-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-head h1::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  margin-bottom: 20px;
}
.section-more { margin-top: 28px; }
.product-access {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font: 500 13px/1.6 var(--font-mono);
  color: var(--ink-dim);
}
.product-access a { color: var(--cyan); transition: color .2s ease; }
.product-access a:hover { color: var(--ink); }
@media (min-width: 700px) {
  .products--all .product:last-child { grid-column: auto; }
}
@media (min-width: 1024px) {
  .products--all { grid-template-columns: repeat(2, 1fr); }
}
