/* =========================================================
   首页 / 落地页样式（英文根站与 /zh/ 中文站共用）
   设计：极光渐变 + 3D 轨道主视觉 + 编辑式分区排版
   站点 CSP 为 style-src 'self'，全部样式放在本文件，禁止内联
   ========================================================= */

:root {
  --ink: #0b1220;
  --ink-2: #1b2a44;
  --muted: #5b6c86;
  --line: rgba(15, 35, 80, 0.10);
  --line-strong: rgba(15, 35, 80, 0.16);
  --ac: #6366f1;
  --ac2: #2563eb;
  --wrap: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: #f5f7ff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
@supports (overflow: clip) {
  html { overflow-x: clip; }
}

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- 背景：缓慢漂移的极光 + 渐隐细网格 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -18% -12%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 18% 8%, rgba(99, 102, 241, 0.34), transparent 66%),
    radial-gradient(38% 34% at 82% 4%, rgba(34, 211, 238, 0.30), transparent 68%),
    radial-gradient(46% 40% at 72% 82%, rgba(236, 72, 153, 0.16), transparent 70%),
    radial-gradient(38% 36% at 8% 88%, rgba(16, 185, 129, 0.16), transparent 70%);
  filter: blur(44px) saturate(125%);
  animation: aurora-drift 28s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 35, 80, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 35, 80, 0.05) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(78% 58% at 50% 0%, #000 12%, transparent 76%);
  mask-image: radial-gradient(78% 58% at 50% 0%, #000 12%, transparent 76%);
  opacity: 0.9;
}

@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2.5%, 2%, 0) scale(1.08); }
}

a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.78));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px -24px rgba(18, 42, 96, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 34px;
  height: 34px;
  padding: 2px;
  border-radius: 11px;
  object-fit: contain;
  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.7);
}

.brand-text span { color: #2563eb; font-weight: 700; }

.jump {
  display: flex;
  gap: 5px 6px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-left: auto;
}
.jump a {
  color: #47597a;
  border: 1px solid rgba(15, 35, 80, 0.08);
  border-radius: 999px;
  padding: 3px 11px;
  background: rgba(255, 255, 255, 0.6);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background 0.18s var(--ease), transform 0.18s var(--ease);
}
.jump a:hover {
  color: #1d4ed8;
  border-color: rgba(99, 102, 241, 0.32);
  background: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* 宽屏下品牌与分区导航同排，导航在右侧换行，页头保持紧凑 */
@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; }
  .jump { min-width: 0; justify-content: flex-end; }
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  grid-template-areas:
    "copy art"
    "stats stats";
  gap: 8px 36px;
  align-items: center;
  margin: 30px 0 0;
  padding: 64px 56px 44px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.4) 46%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(135deg, rgba(228, 233, 255, 0.96) 0%, rgba(207, 236, 255, 0.92) 48%, rgba(213, 250, 240, 0.9) 100%);
  box-shadow:
    0 50px 100px -70px rgba(30, 58, 138, 0.75),
    inset 0 1px 0 #fff;
}

/* 首屏内的两团动态光晕 */
.hero::before {
  content: "";
  position: absolute;
  right: -12%;
  top: -34%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: conic-gradient(from 210deg,
    rgba(99, 102, 241, 0.35), rgba(34, 211, 238, 0.32),
    rgba(236, 72, 153, 0.24), rgba(99, 102, 241, 0.35));
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  animation: hero-halo 24s linear infinite;
}
.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -46%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.32), transparent 66%);
  filter: blur(50px);
  pointer-events: none;
}

@keyframes hero-halo {
  to { transform: rotate(360deg); }
}

.hero-copy {
  grid-area: copy;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4f46e5;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(99, 102, 241, 0.20);
  box-shadow: 0 8px 20px -16px rgba(79, 70, 229, 0.9);
}
.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 4.8vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 850;
  color: var(--ink);
  text-wrap: balance;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero h1 {
    background: linear-gradient(112deg, #0a1020 6%, #2f3fbf 52%, #0d7d92 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero .lede {
  margin: 0 0 26px;
  max-width: 54ch;
  font-size: 16.5px;
  line-height: 1.75;
  color: #43546e;
}

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

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 55%, #0ea5e9 100%);
  color: #fff;
  font-weight: 750;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow:
    0 18px 34px -18px rgba(37, 99, 235, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}
.hero-btn:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  filter: saturate(115%);
  box-shadow:
    0 24px 42px -18px rgba(37, 99, 235, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-btn--ghost {
  background: rgba(255, 255, 255, 0.78);
  color: #0b5f49;
  border: 1px solid rgba(15, 123, 95, 0.22);
  box-shadow: 0 14px 30px -24px rgba(15, 123, 95, 0.9), inset 0 1px 0 #fff;
  backdrop-filter: blur(8px);
}
.hero-btn--ghost:hover {
  color: #084a39;
  border-color: rgba(15, 123, 95, 0.38);
  box-shadow: 0 20px 34px -24px rgba(15, 123, 95, 1), inset 0 1px 0 #fff;
}

/* ---------- 首屏右侧：3D 轨道图标 ---------- */
.hero-art {
  grid-area: art;
  justify-self: center;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin-top: 10px;
}

.hero-icon {
  position: relative;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px -18px rgba(30, 60, 120, 0.9);
  transition: box-shadow 0.2s var(--ease);
}
.hero-icon img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  transition: transform 0.25s var(--ease);
}
.hero-icon:hover { text-decoration: none; }
.hero-icon:hover img { transform: scale(1.14); }

/* 悬停显示工具名：名称取自各链接的 aria-label，随语言自动切换 */
.hero-icon::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 6;
  width: max-content;
  max-width: 210px;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 14, 30, 0.94);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.hero-icon:hover::after,
.hero-icon:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (hover: none) {
  .hero-icon::after { display: none; }
}

/* ---------- 首屏数据条 ---------- */
.hero-stats {
  grid-area: stats;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 44px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(15, 35, 80, 0.10);
  list-style: none;
}
.hero-stats li {
  position: relative;
  padding: 0 22px;
}
.hero-stats li:first-child { padding-left: 0; }
.hero-stats li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(15, 35, 80, 0.16), transparent);
}
.hero-stats b {
  display: block;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #1e40af 0%, #6d28d9 48%, #0e7490 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #1e40af;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-stats b { color: transparent; }
}
.hero-stats span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- 工具分区：无卡片，编辑式左右分栏 ---------- */
main { counter-reset: tool; }

.cluster {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  column-gap: 64px;
  align-items: start;
  padding: 56px 0 58px;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  counter-increment: tool;
  scroll-margin-top: 104px;
}
.cluster:hover { box-shadow: none; transform: none; }

/* 顶部一小段彩色发丝线 + 分区色雾 */
.cluster::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 132px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ac), transparent);
  opacity: 0.95;
}
.cluster::after {
  content: "";
  position: absolute;
  left: -150px;
  top: -90px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ac), transparent 68%);
  opacity: 0.07;
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}
.cluster > * { position: relative; z-index: 1; }

.cluster-head {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.cluster-head::before {
  content: counter(tool, decimal-leading-zero);
  flex: 0 0 100%;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.32em;
  color: var(--ac);
}
.cluster-head::after {
  content: "";
  flex: 0 0 100%;
  height: 1px;
  margin-top: 4px;
  background: linear-gradient(90deg, var(--line-strong), transparent 72%);
}

.cluster-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 14px 26px -20px rgba(30, 60, 120, 0.95), 0 0 0 1px rgba(15, 35, 80, 0.05);
}

.cluster-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cluster h2 {
  margin: 0;
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.028em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}

.count {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 999px;
  padding: 2px 9px;
  background: rgba(99, 102, 241, 0.08);
  white-space: nowrap;
}

.cluster-desc {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
.cluster-desc.is-en { font-size: 14.5px; }

.group { grid-column: 2; margin-top: 30px; }
.cluster-desc + .group { margin-top: 24px; }

.group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7c95;
}
.group h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--ac), var(--ac2));
}

.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 0 22px;
}
.links li { margin: 0; }
.links a {
  position: relative;
  display: block;
  padding: 6px 8px 6px 17px;
  border-radius: 9px;
  font-size: 15px;
  line-height: 1.55;
  color: #263a56;
  transition: color 0.16s var(--ease), background 0.16s var(--ease),
              transform 0.16s var(--ease);
}
.links a::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--ac);
  opacity: 0.35;
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}
.links a:hover {
  color: var(--ac2);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.75);
  transform: translateX(3px);
}
.links a:hover::before { opacity: 1; transform: scale(1.3); }

.more { grid-column: 2; margin: 30px 0 0; font-size: 15px; font-weight: 700; }
.more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-2);
  box-shadow: 0 14px 28px -26px rgba(15, 35, 80, 1);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.more a:hover {
  color: var(--ac);
  border-color: var(--ac);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -24px rgba(79, 70, 229, 0.95);
}

/* ---------- 中药材：整幅渐光横幅 ---------- */
.is-herb {
  display: block;
  margin: 56px 0 6px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  overflow: hidden;
  color: #eafff6;
  --ac: #4fbf94;
  --ac2: #7ef0c4;
  background:
    radial-gradient(85% 130% at 4% 0%, rgba(79, 191, 148, 0.42), transparent 58%),
    radial-gradient(70% 120% at 100% 100%, rgba(20, 184, 166, 0.38), transparent 60%),
    linear-gradient(135deg, #052019 0%, #0a3b2f 52%, #0f7b5f 100%);
  box-shadow: 0 60px 90px -70px rgba(2, 44, 33, 1);
}
.is-herb::before {
  left: 56px;
  top: 0;
  width: 180px;
  background: linear-gradient(90deg, rgba(126, 240, 196, 0.9), transparent);
}
.is-herb::after {
  left: auto;
  right: -120px;
  top: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(126, 240, 196, 0.55), transparent 66%);
  opacity: 0.28;
}
.is-herb:hover { transform: none; }

.herb-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 30px;
  align-items: center;
  padding: 52px 56px;
}

.is-herb .cluster-head::before { content: none; }
.is-herb .cluster-head::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 72%); }
.is-herb h2 { color: #fff; }
.is-herb .count {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #d7fff0;
}
.is-herb .cluster-desc { color: rgba(233, 255, 246, 0.88); max-width: 46ch; }
.is-herb .cluster-icon { box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.9); }
.is-herb .more { margin-top: 26px; }

.herb-art {
  justify-self: end;
  width: 100%;
  max-width: 370px;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 30, 24, 0.55));
  animation: herb-float 7s ease-in-out infinite alternate;
}

@keyframes herb-float {
  from { transform: translateY(2px); }
  to   { transform: translateY(-8px); }
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: #fff;
  color: #075242;
  font-weight: 800;
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.85);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.cta:hover {
  color: #043a2f;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.9);
}

/* ---------- 页脚：深空星野与银河 ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: 72px;
  padding: 58px 0 168px;
  overflow: hidden;
  font-size: 13px;
  color: #9fb0ce;
  background:
    radial-gradient(85% 130% at 84% -20%, rgba(76, 29, 149, 0.55), transparent 62%),
    radial-gradient(70% 120% at 8% 120%, rgba(8, 47, 73, 0.72), transparent 64%),
    linear-gradient(180deg, #04060e 0%, #070b1a 52%, #03050c 100%);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.85) 35%, rgba(196, 181, 253, 0.75) 62%, transparent);
}
.site-footer > .wrap { position: relative; z-index: 2; }

.footer-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 120%, rgba(30, 27, 75, 0.55), transparent 70%);
}
.footer-sky > span {
  position: absolute;
  display: block;
}

/* 远景细星 */
.sky-stars {
  inset: -26%;
  opacity: 0.85;
  background-image:
    radial-gradient(1px 1px at 24px 36px, rgba(255, 255, 255, 0.9), transparent 62%),
    radial-gradient(1px 1px at 108px 164px, rgba(255, 255, 255, 0.7), transparent 62%),
    radial-gradient(1.4px 1.4px at 186px 72px, rgba(226, 232, 255, 0.95), transparent 62%),
    radial-gradient(1px 1px at 254px 208px, rgba(255, 255, 255, 0.6), transparent 62%),
    radial-gradient(1.2px 1.2px at 62px 222px, rgba(191, 219, 254, 0.85), transparent 62%),
    radial-gradient(1px 1px at 300px 118px, rgba(255, 255, 255, 0.72), transparent 62%),
    radial-gradient(1px 1px at 150px 18px, rgba(255, 255, 255, 0.65), transparent 62%),
    radial-gradient(1.1px 1.1px at 330px 266px, rgba(221, 214, 254, 0.8), transparent 62%),
    radial-gradient(1px 1px at 88px 96px, rgba(255, 255, 255, 0.55), transparent 62%),
    radial-gradient(1.3px 1.3px at 214px 148px, rgba(255, 244, 214, 0.8), transparent 62%);
  background-size: 240px 240px, 300px 300px, 260px 260px, 340px 340px, 280px 280px,
                   320px 320px, 360px 360px, 300px 300px, 220px 220px, 380px 380px;
  background-position: 0 0, 70px 30px, 20px 90px, 130px 10px, 210px 150px,
                       40px 210px, 180px 60px, 100px 170px, 260px 120px, 150px 250px;
  animation: star-drift 240s linear infinite;
}

/* 近景亮星，缓慢闪烁 */
.sky-stars--twinkle {
  inset: -26%;
  background-image:
    radial-gradient(1.8px 1.8px at 46px 62px, #fff 20%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(2.2px 2.2px at 208px 132px, rgba(255, 244, 214, 0.95) 20%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(1.6px 1.6px at 118px 244px, rgba(219, 234, 254, 0.95) 20%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(2px 2px at 296px 318px, #fff 20%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(1.6px 1.6px at 356px 48px, rgba(196, 181, 253, 0.9) 20%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(2px 2px at 74px 356px, rgba(255, 255, 255, 0.9) 20%, rgba(255, 255, 255, 0) 70%);
  background-size: 460px 460px, 560px 560px, 500px 500px, 620px 620px, 540px 540px, 580px 580px;
  background-position: 40px 10px, 190px 100px, 0 260px, 280px 0, 120px 180px, 320px 140px;
  opacity: 0.75;
  animation: star-twinkle 6.5s ease-in-out infinite alternate,
             star-drift 320s linear infinite reverse;
}

/* 星云 */
.sky-nebula {
  inset: -35%;
  opacity: 0.55;
  background:
    radial-gradient(closest-side at 72% 74%, rgba(129, 140, 248, 0.55), transparent 72%),
    radial-gradient(closest-side at 32% 86%, rgba(217, 70, 239, 0.28), transparent 72%),
    radial-gradient(closest-side at 58% 58%, rgba(34, 211, 238, 0.3), transparent 72%);
  filter: blur(46px);
  animation: nebula-breathe 46s ease-in-out infinite alternate;
}

/* 仙女座式椭圆星系 */
.sky-galaxy {
  left: 50%;
  top: 74%;
  width: 118%;
  height: 210px;
  transform: translate(-50%, -50%) rotate(-16deg);
  opacity: 0.92;
  background:
    radial-gradient(closest-side at 50% 50%,
      rgba(255, 250, 240, 0.96) 0%, rgba(255, 228, 196, 0.62) 8%,
      rgba(196, 181, 253, 0.34) 24%, rgba(99, 102, 241, 0.16) 46%, rgba(6, 10, 30, 0) 72%),
    radial-gradient(closest-side at 30% 50%, rgba(34, 211, 238, 0.22), transparent 62%),
    radial-gradient(closest-side at 68% 50%, rgba(236, 72, 153, 0.18), transparent 62%);
  filter: blur(12px);
  animation: galaxy-sway 90s ease-in-out infinite alternate;
}
.sky-galaxy::after {
  content: "";
  position: absolute;
  right: 6%;
  top: -34%;
  width: 260px;
  height: 110px;
  border-radius: 50%;
  transform: rotate(22deg);
  background: radial-gradient(closest-side,
    rgba(255, 236, 210, 0.6) 0%, rgba(147, 197, 253, 0.28) 40%, transparent 72%);
  filter: blur(7px);
}

@keyframes star-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-90px, -70px, 0); }
}
@keyframes star-twinkle {
  from { opacity: 0.3; }
  to   { opacity: 0.95; }
}
@keyframes nebula-breathe {
  from { transform: scale(1) translate3d(-1%, 0, 0); opacity: 0.45; }
  to   { transform: scale(1.08) translate3d(1%, -2%, 0); opacity: 0.66; }
}
@keyframes galaxy-sway {
  from { transform: translate(-50%, -50%) rotate(-18deg) scale(1); }
  to   { transform: translate(-51%, -48%) rotate(-12deg) scale(1.04); }
}

.site-footer p { margin: 6px 0; color: rgba(203, 213, 225, 0.8); text-shadow: 0 1px 3px rgba(2, 6, 18, 0.9); }
.site-footer p + p { margin-top: 12px; }
.site-footer a { color: #dbeafe; }
.site-footer a:hover { color: #fff; }
.footer-links {
  line-height: 2;
  max-width: none;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}
.footer-links a { color: #e2e8f0; }
.footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(203, 213, 225, 0.66);
}
.site-footer p.footer-legal { margin-top: 20px; }
.site-footer p.footer-note { margin-top: 8px; font-size: 12px; color: rgba(148, 163, 184, 0.62); }
.privacy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  font-size: 12.5px;
  font-weight: 700;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.18s var(--ease);
}
.privacy-btn::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a5b4fc, #22d3ee);
  box-shadow: 0 0 8px rgba(165, 180, 252, 0.8);
}
.privacy-btn:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(147, 197, 253, 0.6);
  transform: translateY(-1px);
}

/* ---------- 桌面端：3D 轨道 ---------- */
@media (min-width: 961px) {
  .hero-art {
    justify-self: end;
    align-self: center;
    display: block;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    margin: 0;
    perspective: 1200px;
  }

  .hero-art::before {
    content: "";
    position: absolute;
    inset: 29%;
    border-radius: 50%;
    background:
      radial-gradient(circle at 38% 32%, #fff 0%, rgba(199, 210, 254, 0.9) 24%, rgba(129, 140, 248, 0.55) 48%, rgba(34, 211, 238, 0.26) 66%, transparent 76%);
    filter: blur(14px);
    box-shadow: 0 0 90px rgba(99, 102, 241, 0.32);
    z-index: 0;
  }
  .hero-art::after {
    content: "";
    position: absolute;
    inset: 7%;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
      rgba(99, 102, 241, 0) 0deg, rgba(99, 102, 241, 0.34) 70deg,
      rgba(34, 211, 238, 0.34) 160deg, rgba(236, 72, 153, 0.24) 240deg,
      rgba(99, 102, 241, 0) 340deg);
    filter: blur(24px);
    opacity: 0.6;
    z-index: 0;
    animation: hero-halo 30s linear infinite reverse;
  }

  .hero-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    padding: 0;
    border-radius: 17px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(237, 244, 255, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
      0 18px 30px -20px rgba(30, 58, 138, 0.95),
      inset 0 1px 0 #fff;
    z-index: 2;
    --r: clamp(140px, 14.5vw, 176px);
    transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a)));
    animation: orbit 96s linear infinite;
    will-change: transform;
  }
  .hero-icon img { width: 32px; height: 32px; }
  .hero-icon:hover { z-index: 12; box-shadow: 0 26px 40px -20px rgba(79, 70, 229, 0.95), inset 0 1px 0 #fff; }
  .hero-art:hover .hero-icon { animation-play-state: paused; }

  .hero-icon:nth-child(1)  { --a: 0deg;    }
  .hero-icon:nth-child(2)  { --a: 24deg;   }
  .hero-icon:nth-child(3)  { --a: 48deg;   }
  .hero-icon:nth-child(4)  { --a: 72deg;   }
  .hero-icon:nth-child(5)  { --a: 96deg;   }
  .hero-icon:nth-child(6)  { --a: 120deg;  }
  .hero-icon:nth-child(7)  { --a: 144deg;  }
  .hero-icon:nth-child(8)  { --a: 168deg;  }
  .hero-icon:nth-child(9)  { --a: 192deg;  }
  .hero-icon:nth-child(10) { --a: 216deg;  }
  .hero-icon:nth-child(11) { --a: 240deg;  }
  .hero-icon:nth-child(12) { --a: 264deg;  }
  .hero-icon:nth-child(13) { --a: 288deg;  }
  .hero-icon:nth-child(14) { --a: 312deg;  }
  .hero-icon:nth-child(15) { --a: 336deg;  }

  /* 分区标题在长列表旁随滚动停靠，避免左栏出现大段空白 */
  .cluster > .cluster-head {
    grid-row: 1 / span 12;
    position: sticky;
    top: 112px;
    align-self: start;
  }

  @keyframes orbit {
    from {
      transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a)));
    }
    to {
      transform: rotate(calc(var(--a) + 360deg)) translate(var(--r))
                 rotate(calc(-1 * var(--a) - 360deg));
    }
  }
}

@media (max-width: 1180px) {
  .hero { padding: 54px 44px 40px; }
  .cluster { column-gap: 44px; }
}

/* ---------- 平板 / 手机 ---------- */
@media (max-width: 899px) {
  /* 窄屏分区导航行数多，页头不吸顶，滚过首屏后让出屏幕；
     relative 同时作为页眉小虫的定位参照 */
  .site-header { position: relative; }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "art"
      "stats";
    gap: 26px;
    padding: 40px 30px 32px;
    border-radius: 26px;
  }
  .hero::before { right: -30%; top: -40%; width: 420px; height: 420px; }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .hero-stats { margin-top: 30px; }
  .cluster { grid-template-columns: 1fr; column-gap: 0; padding: 44px 0 46px; }
  .cluster-head { grid-column: 1; grid-row: 1; }
  .cluster-desc { grid-column: 1; grid-row: auto; margin-top: 18px; }
  .group { grid-column: 1; margin-top: 26px; }
  .more { grid-column: 1; margin-top: 26px; }
  .cluster::after { display: none; }
  .herb-inner { grid-template-columns: 1fr; padding: 36px 30px; }
  .herb-art { justify-self: center; max-width: 300px; }
  .is-herb .more { margin-top: 20px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { margin-top: 18px; padding: 30px 22px 26px; border-radius: 22px; }
  .hero h1 { font-size: 34px; }
  .hero .lede { font-size: 15.5px; }
  .hero-actions .hero-btn { flex: 1 1 100%; justify-content: center; }
  .hero-art { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .hero-icon { padding: 6px; border-radius: 12px; }
  .hero-icon img { width: 28px; height: 28px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .hero-stats li { padding: 0 14px; }
  .hero-stats li:nth-child(odd) { padding-left: 0; }
  .hero-stats li:nth-child(odd)::before { display: none; }
  .hero-stats li:nth-child(n + 3) { padding-top: 14px; border-top: 1px solid rgba(15, 35, 80, 0.08); }
  .cluster { padding: 36px 0 38px; }
  .cluster h2 { font-size: 21px; }
  .cluster-head::before { margin-bottom: 10px; }
  .cluster-icon { width: 40px; height: 40px; border-radius: 11px; }
  .links { grid-template-columns: 1fr; }
  .jump { font-size: 12px; }
  .herb-inner { padding: 30px 22px; }
  .site-footer { margin-top: 46px; padding: 46px 0 118px; }
  .sky-galaxy { height: 165px; top: 72%; }
  .sky-nebula { filter: blur(28px); }
  body::before { filter: blur(30px) saturate(112%); }
}

/* ---------- 页眉：渐变底边 + 小虫（保持原动效） ---------- */
.header-inner { max-width: var(--wrap); }
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, #6366f1 0%, #0ea5e9 42%, #10b981 68%, #f59e0b 100%);
  opacity: 0.55;
}

.header-bug {
  position: absolute;
  bottom: 1px;
  left: 100%;
  width: 44px;
  height: 24px;
  pointer-events: none;
  animation: header-bug-crawl 72s linear infinite,
             header-bug-bob 0.62s ease-in-out infinite alternate;
}
@keyframes header-bug-crawl {
  from { left: 100%; }
  to { left: -48px; }
}
@keyframes header-bug-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-0.7px); }
}
.header-bug .bug-leg {
  transform-box: view-box;
  animation: header-bug-step 0.62s ease-in-out infinite alternate;
}
.bug-leg--a { transform-origin: 17px 16.5px; }
.bug-leg--b { transform-origin: 25px 18px; animation-delay: -0.21s; }
.bug-leg--c { transform-origin: 34px 17.5px; animation-delay: -0.42s; }
@keyframes header-bug-step {
  from { transform: rotate(-16deg); }
  to { transform: rotate(16deg); }
}

/* ---------- 无障碍：减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before,
  .hero::before,
  .hero-art::after,
  .hero-icon,
  .herb-art,
  .sky-stars,
  .sky-stars--twinkle,
  .sky-nebula,
  .sky-galaxy { animation: none !important; }
  .header-bug { animation: none; left: auto; right: 14px; }
  .header-bug .bug-leg { animation: none; }
  .hero-icon { will-change: auto; }
}
