/* ==========================================================================
   ctdxz.com — 吃土的小智 / Rikka_6
   视觉体系参照 DeepSeek Harness（deepseek.com/harness）设计语言重构
   纯静态：仅需要 index.html + style.css + main.js + assets/
   ========================================================================== */

/* 字体通过 index.html 中的 <link rel="stylesheet" href="./assets/fonts/fonts.css"> 引入 */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* 字体 */
  --ds-font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ds-font-display: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "PingFang SC", sans-serif;
  --ds-font-mono: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", monospace;
  --ds-font-sans: var(--ds-font-body);

  /* 圆角 */
  --ds-radius-pill: 100px;
  --ds-radius-card: 24px;
  --ds-radius-panel: 16px;
  --ds-radius-media: 10px;
  --ds-radius-input: 10px;
  --ds-radius-sm: 8px;

  /* 间距 */
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 24px;
  --ds-space-6: 32px;
  --ds-space-7: 40px;
  --ds-space-8: 56px;
  --ds-space-9: 80px;
  --ds-space-10: 120px;
  --ds-space-11: 160px;

  /* 玻璃与阴影 */
  --ds-blur-glass: 12px;
  --ds-shadow-card: hsla(0, 0%, 100%, .10) 0 1px 0 0 inset;
  --ds-shadow-pop: 0 12px 32px rgba(0, 0, 0, .35);

  /* 深色主题（默认 —— Harness 站点使用深色） */
  --ds-color-brand: #6799fe;
  --ds-color-brand-deep: #fff;
  --ds-color-brand-medium-reverse: #fff;
  --ds-color-text-primary: #fff;
  --ds-color-text-primary-bluish: #fff;
  --ds-color-text-secondary: hsla(0, 0%, 100%, .8);
  --ds-color-text-description: hsla(0, 0%, 100%, .5);
  --ds-color-text-placeholder: hsla(0, 0%, 100%, .3);
  --ds-color-text-inverse: #0a0a0a;

  --ds-color-bg-page: #0a0a0a;
  --ds-color-bg-surface-1: hsla(0, 0%, 100%, .06);
  --ds-color-bg-surface-2: hsla(0, 0%, 100%, .04);
  --ds-color-bg-surface-3: hsla(0, 0%, 100%, .02);
  --ds-color-bg-surface-4: hsla(0, 0%, 100%, .015);
  --ds-color-bg-surface-5: hsla(0, 0%, 100%, .12);
  --ds-color-bg-overlay: #262626;
  --ds-color-bg-surface-raised: hsla(0, 0%, 100%, .25);
  --ds-color-bg-hero-cta: hsla(0, 0%, 100%, .12);
  --ds-color-bg-code: rgba(0, 0, 0, .35);
  --ds-color-bg-hover: hsla(0, 0%, 100%, .06);
  --ds-color-scrollbar: hsla(0, 0%, 100%, .2);
  --ds-color-static-white: #fff;
  --ds-color-static-black: #0f0f0f;

  --ds-color-border-subtle: hsla(0, 0%, 100%, .08);
  --ds-color-border-default: hsla(0, 0%, 100%, .06);
  --ds-color-border-divider: hsla(0, 0%, 100%, .25);
  --ds-color-border-hover: hsla(0, 0%, 100%, .2);
  --ds-color-border-strong: hsla(0, 0%, 100%, .24);
  --ds-color-border-secondary: hsla(0, 0%, 100%, .2);

  /* 按钮 */
  --ds-btn-primary-bg: #fff;
  --ds-btn-primary-text: #0a0a0a;
  --ds-btn-primary-border: transparent;
  --ds-btn-primary-hover-bg: rgba(0, 0, 0, .2);
  --ds-btn-secondary-bg: var(--ds-color-bg-surface-1);
  --ds-btn-secondary-text: #fff;
  --ds-btn-secondary-border: hsla(0, 0%, 100%, .15);
  --ds-btn-secondary-hover-bg: hsla(0, 0%, 100%, .2);
  --ds-btn-secondary-hover-border: hsla(0, 0%, 100%, .6);

  /* 容器 */
  --ds-container: 1140px;
}

/* 浅色主题（可选，右上角不暴露开关，仅保留 data-theme="light" 能力） */
[data-theme="light"] {
  --ds-color-text-primary: #1e232c;
  --ds-color-text-secondary: rgba(0, 0, 0, .7);
  --ds-color-text-description: rgba(0, 0, 0, .65);
  --ds-color-text-placeholder: #8691a1;
  --ds-color-brand: #4d6bfe;
  --ds-color-brand-deep: #3a65c2;
  --ds-color-bg-page: #f9f8f8;
  --ds-color-bg-surface-1: hsla(0, 0%, 100%, .6);
  --ds-color-bg-surface-2: hsla(0, 0%, 100%, .4);
  --ds-color-bg-surface-3: rgba(0, 0, 0, .03);
  --ds-color-bg-surface-4: rgba(0, 0, 0, .02);
  --ds-color-bg-surface-5: rgba(0, 0, 0, .05);
  --ds-color-bg-overlay: #fff;
  --ds-color-bg-surface-raised: hsla(0, 0%, 100%, .84);
  --ds-color-bg-hero-cta: hsla(0, 0%, 100%, .38);
  --ds-color-bg-hover: rgba(0, 0, 0, .04);
  --ds-color-scrollbar: rgba(0, 0, 0, .15);
  --ds-shadow-card: 0 0 0 1px #f1f5f9, 0 2px 4px rgba(0, 0, 0, .05), 0 12px 24px rgba(0, 0, 0, .05);
  --ds-color-border-subtle: rgba(0, 0, 0, .06);
  --ds-color-border-default: rgba(0, 0, 0, .1);
  --ds-color-border-divider: rgba(0, 0, 0, .08);
  --ds-color-border-hover: hsla(20, 1%, 45%, .2);
  --ds-color-border-strong: rgba(0, 0, 0, .2);
  --ds-color-border-secondary: rgba(9, 45, 78, .14);
  --ds-btn-primary-bg: #1a1615;
  --ds-btn-primary-text: #fff;
  --ds-btn-primary-hover-bg: hsla(0, 0%, 100%, .3);
  --ds-btn-secondary-bg: hsla(0, 0%, 100%, .55);
  --ds-btn-secondary-text: #1e232c;
  --ds-btn-secondary-border: rgba(9, 45, 78, .18);
  --ds-btn-secondary-hover-bg: rgba(0, 0, 0, .05);
  --ds-btn-secondary-hover-border: rgba(9, 45, 78, .36);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  width: 100%;
  background: var(--ds-color-bg-page);
  color: var(--ds-color-text-primary);
  font-family: var(--ds-font-sans);
  font-size: 16px;
  line-height: 160%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* clip 不会创建滚动容器，避免影响 position: fixed 导航 */
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(103, 153, 254, .35); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ds-color-scrollbar); border-radius: 100px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: hsla(0, 0%, 100%, .35); background-clip: content-box; }

/* 容器 */
.ds-container { width: min(100% - 48px, var(--ds-container)); margin-inline: auto; }



/* --------------------------------------------------------------------------
   日文本地化：换用日文优先的字体栈。
   中日文的汉字字形不同（如「直」「骨」「今」），用中文字体渲染日文会显得别扭。
   -------------------------------------------------------------------------- */
html[lang^="ja"] {
  --ds-font-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic",
    "Noto Sans JP", "Meiryo", "DM Sans", system-ui, sans-serif;
  --ds-font-sans: var(--ds-font-body);
  --ds-font-mono: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Meiryo", monospace;
}
/* 日文在 monospace 里 CJK 会挤在一起，补一点字距 */
html[lang^="ja"] .ds-term-body { letter-spacing: .02em; }

/* 文本语义 */
.ds-text-body { font-size: 16px; line-height: 160%; text-wrap: pretty; }
.ds-text-caption { font-family: var(--ds-font-sans); font-weight: 400; font-size: 14px; line-height: 150%; }
.ds-text-title { font-family: var(--ds-font-sans); font-size: 18px; font-weight: 500; letter-spacing: -.01em; line-height: 150%; }
.ds-text-hero {
  font-family: var(--ds-font-display);
  font-size: 36px; font-weight: 500; letter-spacing: -.02em; line-height: 150%;
}
@media (min-width: 768px) { .ds-text-hero { font-size: 46px; } }

/* --------------------------------------------------------------------------
   3. 按钮
   -------------------------------------------------------------------------- */
.ds-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--ds-radius-pill);
  font-family: var(--ds-font-sans);
  font-weight: 500;
  line-height: 120%;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: border-color .35s ease, color .35s ease;
}
.ds-btn::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 150%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .36s ease-out, opacity .1s ease;
}
.ds-btn:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ds-btn:active { transform: translateY(1px); }

.ds-btn-primary { background: var(--ds-btn-primary-bg); color: var(--ds-btn-primary-text); border: 1px solid var(--ds-btn-primary-border); }
.ds-btn-primary::after { background: var(--ds-btn-primary-hover-bg); }

.ds-btn-secondary {
  background: var(--ds-btn-secondary-bg);
  color: var(--ds-btn-secondary-text);
  border: 1px solid var(--ds-btn-secondary-border);
  backdrop-filter: blur(var(--ds-blur-glass));
  -webkit-backdrop-filter: blur(var(--ds-blur-glass));
}
.ds-btn-secondary::after { background: var(--ds-btn-secondary-hover-bg); }
.ds-btn-secondary:hover { border-color: var(--ds-btn-secondary-hover-border); }

.ds-btn-m { font-size: 15px; padding: 11px 18px; }
.ds-btn-m svg { width: 16px; height: 16px; }
.ds-btn-s { font-size: 14px; padding: 8px 12px; }
.ds-ico { flex: 0 0 auto; width: 16px; height: 16px; display: block; }
.ds-btn-s .ds-ico { width: 14px; height: 14px; }
.ds-ico-img { object-fit: contain; }

/* --------------------------------------------------------------------------
   4. 顶部导航
   -------------------------------------------------------------------------- */
.ds-header-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  margin: 0 auto;
  z-index: 50;
  width: min(100% - 48px, var(--ds-container));
  padding: var(--ds-space-2) 0 0;
}
.ds-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  margin: 0 auto;
  padding: 6px 0;
  border-radius: var(--ds-radius-pill);
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  transition: padding .3s ease;
}
.ds-header-bar::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--ds-color-bg-surface-raised);
  backdrop-filter: blur(var(--ds-blur-glass));
  -webkit-backdrop-filter: blur(var(--ds-blur-glass));
  border: 1px solid var(--ds-color-border-default);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease-in-out, visibility 0s .4s;
  pointer-events: none;
  z-index: -1;
}
.ds-header-bar.is-scrolled { padding: 6px 14px; }
.ds-header-bar.is-scrolled::before { opacity: 1; visibility: visible; transition: opacity .4s ease-in-out, visibility 0s; }

.ds-brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ds-color-brand-medium-reverse); }
.ds-brand-logo { display: inline-flex; }
.ds-brand-logo svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.ds-brand-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px 3px;
  border-radius: 7px;
  font-family: var(--ds-font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  color: hsla(0, 0%, 100%, .95);
  background: rgba(0, 0, 0, .25);
  box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, .18), 0 0 16px rgba(255, 255, 255, .06);
  position: relative;
}

.ds-header-actions { display: flex; align-items: center; gap: var(--ds-space-4); }
.ds-header-nav { display: flex; align-items: center; gap: var(--ds-space-5); }
.ds-header-nav a {
  font-size: 14px;
  color: var(--ds-color-text-description);
  transition: color .2s ease;
}
.ds-header-nav a:hover { color: var(--ds-color-text-primary); }

.ds-locale-toggle {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 3px;
  border-radius: var(--ds-radius-pill);
  border: 1px solid var(--ds-color-border-default);
}
.ds-locale-toggle-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 var(--ds-space-3);
  border-radius: var(--ds-radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--ds-color-text-description);
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.ds-locale-toggle-item:hover { color: var(--ds-color-text-primary); }
.ds-locale-toggle-item.is-active {
  background: var(--ds-color-bg-surface-raised);
  color: var(--ds-color-text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.ds-menu-btn { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--ds-color-text-primary); }

.ds-mobile-menu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: var(--ds-space-2);
  border-radius: var(--ds-radius-panel);
  background: var(--ds-color-bg-surface-raised);
  backdrop-filter: blur(var(--ds-blur-glass));
  -webkit-backdrop-filter: blur(var(--ds-blur-glass));
  border: 1px solid var(--ds-color-border-default);
  transition: max-height .32s ease, opacity .25s ease, padding .32s ease;
  padding: 0 var(--ds-space-4);
}
.ds-mobile-menu.is-open { max-height: 320px; opacity: 1; padding: var(--ds-space-3) var(--ds-space-4); }
.ds-mobile-menu nav { display: flex; flex-direction: column; }
.ds-mobile-menu a {
  padding: 12px 4px;
  font-size: 15px;
  color: var(--ds-color-text-secondary);
  border-bottom: 1px solid var(--ds-color-border-subtle);
}
.ds-mobile-menu a:last-child { border-bottom: 0; }

@media (max-width: 767px) {
  .ds-header-actions { display: none; }
  .ds-menu-btn { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
/* Hero 外层：高度给足，内层用 sticky 钉住，滚动只驱动粒子状态 */
.ds-hero-sticky {
  position: relative;
  /* 只用 1.7 屏的滚动行程跑完"散开"：太短会显得突兀，太长会让新用户
     以为滚不动、到不了下面的内容。 */
  height: 170vh;
  height: 170svh;
}
.ds-hero-sticky > .ds-hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 0;
}
@media (max-width: 899px) {
  .ds-hero-sticky { height: 145vh; height: 145svh; }
}

.ds-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.ds-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease .2s;
  mask: linear-gradient(#000 0%, #000 72%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0%, #000 72%, transparent 100%);
}
.ds-hero-canvas.is-ready { opacity: 1; }
.ds-hero-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.ds-hero-glow {
  position: absolute;
  inset: -10% 0 auto;
  height: 120%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 42% at 62% 28%, rgba(103, 153, 254, .16), transparent 62%),
    radial-gradient(48% 36% at 22% 18%, rgba(255, 255, 255, .07), transparent 60%),
    radial-gradient(70% 50% at 50% 90%, rgba(10, 10, 10, .85), transparent 70%);
}

/* --------------------------------------------------------------------------
   超宽屏（≥1800px）补光
   ds-hero-aurora 是 width: min(1800px, 165%)。1440 宽时 165% = 2376 > 1800，
   所以 1800 以下视口 aurora 本来就盖满整宽、没有缝；
   一旦视口超过 1800，aurora 被上限锁在 1800，左右各露出一条暗带
   （2560 下最左 200px 亮度只有 15.6，而 1440 下是 39.5）。
   这里用「全宽 + 静态 + 无动画 + 无 filter」的一层径向光晕从左侧把光续上去。
   刻意不动 aurora 本身 —— 它的宽高比决定 a1~a6 的尺寸，一改就会连带改变粒子周围的观感。
   也用 min-width 门控，1800 以下完全不生效，1440 的观感逐像素不变。
   -------------------------------------------------------------------------- */
@media (min-width: 1800px) {
  .ds-hero-glow {
    background:
      radial-gradient(60% 42% at 62% 28%, rgba(103, 153, 254, .16), transparent 62%),
      radial-gradient(48% 36% at 22% 18%, rgba(255, 255, 255, .07), transparent 60%),
      radial-gradient(46% 54% at 5% 30%, rgba(103, 153, 254, .15), transparent 70%),
      radial-gradient(70% 50% at 50% 90%, rgba(10, 10, 10, .85), transparent 70%);
  }
}
/* Hero 剪影粒子层：落在光晕之上、文字之下 */
.ds-hero-figure {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease .5s;
  mask: linear-gradient(#000 0%, #000 84%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0%, #000 84%, transparent 100%);
}
.ds-hero-figure.is-ready { opacity: 1; }
.ds-hero-figure canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* --------------------------------------------------------------------------
   5b. Harness 官网式的流光填充
   -------------------------------------------------------------------------- */
.ds-hero-aurora {
  position: absolute;
  left: 50%;
  top: -12%;
  width: min(1800px, 165%);
  aspect-ratio: 16 / 10;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(38px) saturate(118%);
  animation: ds-aurora-in 2.2s ease .3s forwards;
  mask: linear-gradient(#000 0%, #000 46%, rgba(0, 0, 0, .35) 72%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0%, #000 46%, rgba(0, 0, 0, .35) 72%, transparent 100%);
}
@keyframes ds-aurora-in { from { opacity: 0; } to { opacity: .6; } }

.ds-hero-aurora .aurora {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  will-change: transform;
  transform: translate(-50%, -50%);
}
/* 主带：一条从左上流到右下的宽幅丝带 */
.ds-hero-aurora .a1 {
  width: 92%; height: 40%;
  background: conic-gradient(from 150deg at 50% 60%,
    rgba(255, 255, 255, 0) 0deg,
    rgba(214, 226, 255, .40) 46deg,
    rgba(255, 255, 255, .78) 96deg,
    rgba(168, 196, 255, .34) 168deg,
    rgba(255, 255, 255, 0) 250deg,
    rgba(255, 255, 255, 0) 360deg);
  transform: translate(-50%, -50%) rotate(-14deg);
  animation: ds-a1 26s ease-in-out infinite;
}
@keyframes ds-a1 {
  0%   { transform: translate(-50%, -50%) rotate(-14deg) scale(1, 1); }
  50%  { transform: translate(-47%, -54%) rotate(-7deg) scale(1.06, .86); }
  100% { transform: translate(-50%, -50%) rotate(-14deg) scale(1, 1); }
}
/* 次带：更宽更淡，慢速反相，制造厚度 */
.ds-hero-aurora .a2 {
  width: 128%; height: 34%;
  background: conic-gradient(from 210deg at 45% 55%,
    rgba(255, 255, 255, 0) 0deg,
    rgba(160, 200, 255, .26) 70deg,
    rgba(240, 246, 255, .52) 130deg,
    rgba(120, 160, 255, .18) 210deg,
    rgba(255, 255, 255, 0) 300deg);
  transform: translate(-50%, -50%) rotate(9deg);
  animation: ds-a2 34s ease-in-out infinite;
}
@keyframes ds-a2 {
  0%   { transform: translate(-50%, -50%) rotate(9deg) scale(1); }
  50%  { transform: translate(-54%, -46%) rotate(15deg) scale(1.08); }
  100% { transform: translate(-50%, -50%) rotate(9deg) scale(1); }
}
/* 两团冷光，负责底部与右侧的光晕 */
.ds-hero-aurora .a3 {
  width: 58%; height: 62%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(120, 168, 255, .40), rgba(120, 168, 255, 0) 72%);
  transform: translate(-50%, -50%) rotate(0deg) translate(24%, 16%);
  animation: ds-a3 22s ease-in-out infinite;
}
@keyframes ds-a3 {
  0%   { transform: translate(-50%, -50%) translate(24%, 16%) scale(1); }
  50%  { transform: translate(-50%, -50%) translate(16%, 22%) scale(1.14); }
  100% { transform: translate(-50%, -50%) translate(24%, 16%) scale(1); }
}
.ds-hero-aurora .a4 {
  width: 46%; height: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 70%);
  transform: translate(-50%, -50%) translate(-38%, 8%);
  animation: ds-a4 19s ease-in-out infinite;
}
@keyframes ds-a4 {
  0%   { transform: translate(-50%, -50%) translate(-38%, 8%) scale(1); }
  50%  { transform: translate(-50%, -50%) translate(-30%, -2%) scale(1.18); }
  100% { transform: translate(-50%, -50%) translate(-38%, 8%) scale(1); }
}
/* 两道很细的高光丝，增加"液态"的锐度 */
.ds-hero-aurora .a5,
.ds-hero-aurora .a6 {
  width: 108%; height: 5%;
  border-radius: 100px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 4%, rgba(255, 255, 255, .62) 42%, rgba(255, 255, 255, 0) 86%);
  filter: blur(9px);
}
.ds-hero-aurora .a5 { transform: translate(-50%, -50%) rotate(-11deg) translate(0, -9%); animation: ds-a5 21s ease-in-out infinite; }
.ds-hero-aurora .a6 { transform: translate(-50%, -50%) rotate(-6deg) translate(0, 13%) scale(.9); opacity: .6; animation: ds-a6 27s ease-in-out infinite; }
@keyframes ds-a5 {
  0%   { transform: translate(-50%, -50%) rotate(-11deg) translate(0, -9%) scaleX(1); }
  50%  { transform: translate(-50%, -50%) rotate(-8deg) translate(0, -13%) scaleX(1.06); }
  100% { transform: translate(-50%, -50%) rotate(-11deg) translate(0, -9%) scaleX(1); }
}
@keyframes ds-a6 {
  0%   { transform: translate(-50%, -50%) rotate(-6deg) translate(0, 13%) scaleX(.9); }
  50%  { transform: translate(-50%, -50%) rotate(-2deg) translate(0, 17%) scaleX(.97); }
  100% { transform: translate(-50%, -50%) rotate(-6deg) translate(0, 13%) scaleX(.9); }
}

@media (max-width: 767px) {
  .ds-hero-aurora { width: 210%; filter: blur(28px) saturate(112%); }
  .ds-hero-aurora .a5, .ds-hero-aurora .a6 { display: none; }
}

/* 极淡的网格，呼应 Harness 官网背景纹理 */
.ds-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(to right, hsla(0, 0%, 100%, .035) 1px, transparent 1px),
    linear-gradient(to bottom, hsla(0, 0%, 100%, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask: radial-gradient(80% 60% at 50% 40%, #000 20%, transparent 80%);
  -webkit-mask: radial-gradient(80% 60% at 50% 40%, #000 20%, transparent 80%);
}

.ds-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ds-space-9);
  align-items: center;
  padding-top: var(--ds-space-10);
  padding-bottom: var(--ds-space-8);
}
@media (min-width: 900px) {
  .ds-hero-grid { grid-template-columns: 60fr 40fr; gap: var(--ds-space-7); padding-bottom: var(--ds-space-9); }
}

.ds-hero-main { display: flex; flex-direction: column; gap: var(--ds-space-6); align-items: flex-start; }
.ds-hero-badge-row { display: flex; }
.ds-hero-badge {
  font-family: var(--ds-font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ds-color-text-secondary);
  padding-left: 3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 2px 10px rgba(0, 0, 0, .9);
}
@media (min-width: 768px) { .ds-hero-badge { font-size: 18px; } }

.ds-hero-title {
  font-family: var(--ds-font-display);
  font-size: clamp(32px, 5.2vw, 54px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: .2px;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 30%, hsla(0, 0%, 100%, .9) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ds-hero-lead { display: flex; flex-direction: column; gap: var(--ds-space-2); max-width: 580px; }
.ds-hero-lead p {
  /* 字号/行高/字重保持不变 */
  font-size: 16px;
  line-height: 160%;
  text-wrap: pretty;
  /* 与主标题同色（主标题用的是 #fff → 90% 白的渐变，上半部分就是纯白）。
     这里不用 background-clip: text —— 那样抗锯齿会把亮度从 255 压到 ~193，反而更暗。 */
  color: #fff;
  /* 粒子散开时靠投影保住可读性 */
  text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 2px 12px rgba(0, 0, 0, .9);
}

.ds-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: var(--ds-space-2); }

@media (max-width: 899px) {
  .ds-hero-grid { padding-top: 120px; padding-bottom: var(--ds-space-9); gap: var(--ds-space-8); }
}

/* Hero 右侧卡片 */
.ds-hero-card { position: relative; }
.ds-card-tabs { display: flex; align-items: flex-end; gap: 2px; padding-left: 6px; }
.ds-card-tab {
  font-size: 13px;
  line-height: 1;
  padding: 9px 16px 10px;
  border-radius: 10px 10px 0 0;
  color: var(--ds-color-text-description);
  background: transparent;
  transition: color .2s, background-color .2s;
}
.ds-card-tabs[data-tabs-ready] .ds-card-tab {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ds-card-tabs[data-tabs-ready] .ds-card-tab:hover { color: var(--ds-color-text-secondary); }
.ds-card-tab.is-active {
  color: var(--ds-color-text-primary);
  background: rgba(14, 16, 28, .78);
  box-shadow: inset 0 1px 0 0 hsla(0, 0%, 100%, .12);
}
/* 非当前标签的面板：隐藏且不参与无障碍树/键盘 Tab */
.ds-term-panel[hidden] { display: none; }

.ds-term {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 12, 22, .82), rgba(6, 8, 16, .72));
  border: 1px solid hsla(0, 0%, 100%, .12);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5), hsla(0, 0%, 100%, .1) 0 1px 0 0 inset;
  overflow: hidden;
}
.ds-term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 0;
}
.ds-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.ds-dot-r { background: #ff5f57; }
.ds-dot-y { background: #febc2e; }
.ds-dot-g { background: #28c840; }
.ds-copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ds-color-text-description);
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .2s, background-color .2s;
}
.ds-copy:hover { color: var(--ds-color-text-primary); background: var(--ds-color-bg-hover); }
.ds-copy.is-done { color: #6ee7a8; }

.ds-term-body {
  padding: 20px 22px 26px;
  font-family: var(--ds-font-mono);
  font-size: 13.5px;
  line-height: 185%;
  min-height: 232px;
}
.ds-term-body p { color: hsla(0, 0%, 100%, .58); }
.ds-term-body p.ds-cmd { color: hsla(0, 0%, 100%, .9); margin-top: 8px; }
.ds-term-body p:first-child { margin-top: 0; }
.ds-prompt { color: #6799fe; margin-right: 8px; }
.ds-caret {
  display: inline-block;
  width: 7px; height: 15px;
  margin-left: 4px;
  vertical-align: -2px;
  background: hsla(0, 0%, 100%, .7);
  animation: ds-blink 1.05s steps(1, end) infinite;
}
@keyframes ds-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* 滚动提示 */
.ds-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px; height: 34px;
  border: 1px solid hsla(0, 0%, 100%, .22);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.ds-scroll-hint span {
  width: 3px; height: 7px;
  border-radius: 100px;
  background: hsla(0, 0%, 100%, .6);
  animation: ds-scroll 1.8s ease-in-out infinite;
}
@keyframes ds-scroll {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(11px); opacity: 0; }
}
@media (max-width: 899px) { .ds-scroll-hint { display: none; } }

/* 入场动画 */
.ds-hero-enter {
  opacity: 0;
  animation: ds-hero-enter .9s cubic-bezier(.22, .61, .36, 1) forwards;
  animation-delay: var(--enter-delay, 0s);
}
@keyframes ds-hero-enter {
  0% { opacity: 0; transform: translateY(24px); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* --------------------------------------------------------------------------
   6. 通用 Section
   -------------------------------------------------------------------------- */
.page { position: relative; z-index: 1; }

.ds-section { position: relative; padding: var(--ds-space-10) 0; }
.ds-section-tight { padding: var(--ds-space-8) 0 var(--ds-space-8); }
@media (max-width: 767px) {
  .ds-section { padding: var(--ds-space-9) 0; }
  .ds-section-tight { padding: var(--ds-space-8) 0 var(--ds-space-7); }
}

.page::before {
  /* 页面中段的柔和蓝光，避免整页死黑 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(52% 22% at 84% 18%, rgba(103, 153, 254, .1), transparent 70%),
    radial-gradient(46% 20% at 8% 52%, rgba(103, 153, 254, .07), transparent 70%),
    radial-gradient(60% 24% at 50% 88%, rgba(103, 153, 254, .06), transparent 70%);
}

.ds-section-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ds-space-4); margin-bottom: var(--ds-space-8); }
.ds-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--ds-radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ds-color-text-secondary);
  background: var(--ds-color-bg-surface-1);
  border: 1px solid var(--ds-color-border-subtle);
  backdrop-filter: blur(var(--ds-blur-glass));
  -webkit-backdrop-filter: blur(var(--ds-blur-glass));
}
.ds-section-title {
  font-family: var(--ds-font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff 35%, hsla(0, 0%, 100%, .74) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ds-section-sub { max-width: 620px; font-size: 15.5px; line-height: 165%; color: var(--ds-color-text-description); }

/* --------------------------------------------------------------------------
   7. 三栏概览卡片
   -------------------------------------------------------------------------- */
.ds-tri { display: grid; grid-template-columns: 1fr; gap: var(--ds-space-5); }
@media (min-width: 768px) { .ds-tri { grid-template-columns: repeat(3, 1fr); } }

.ds-tri-card {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  padding: var(--ds-space-6) var(--ds-space-5);
  border-radius: var(--ds-radius-panel);
  background: linear-gradient(180deg, hsla(0, 0%, 100%, .05), hsla(0, 0%, 100%, .015));
  border: 1px solid var(--ds-color-border-subtle);
  box-shadow: var(--ds-shadow-card);
  transition: border-color .3s ease, transform .35s ease, background-color .3s ease;
}
.ds-tri-card:hover { border-color: var(--ds-color-border-hover); transform: translateY(-3px); }

.ds-eyebrow {
  font-family: var(--ds-font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ds-color-text-placeholder);
}
.ds-tri-title { font-size: 17px; font-weight: 500; line-height: 1.5; letter-spacing: -.01em; }
.ds-tri-body { font-size: 14.5px; line-height: 172%; color: var(--ds-color-text-description); }

/* --------------------------------------------------------------------------
   8. 技能
   -------------------------------------------------------------------------- */
.ds-skill-grid { display: grid; grid-template-columns: 1fr; gap: var(--ds-space-4); }
@media (min-width: 640px) { .ds-skill-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ds-skill-grid { grid-template-columns: repeat(4, 1fr); } }

.ds-skill-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  padding: var(--ds-space-5) var(--ds-space-5) var(--ds-space-6);
  border-radius: var(--ds-radius-panel);
  background: var(--ds-color-bg-surface-2);
  border: 1px solid var(--ds-color-border-subtle);
  overflow: hidden;
  transition: border-color .3s ease, transform .35s ease;
}
.ds-skill-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, .22), transparent);
  opacity: 0;
  transition: opacity .35s ease;
}
.ds-skill-card:hover { border-color: var(--ds-color-border-hover); transform: translateY(-3px); }
.ds-skill-card:hover::before { opacity: 1; }
.ds-skill-title { font-size: 16.5px; font-weight: 500; line-height: 1.45; letter-spacing: -.01em; }
.ds-skill-body { font-size: 14px; line-height: 165%; color: var(--ds-color-text-description); }

/* 液态金属熟练度条 */
.ds-meter {
  margin-top: auto;
  padding-top: var(--ds-space-5);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ds-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--ds-space-2);
}
.ds-meter-label {
  font-family: var(--ds-font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ds-color-text-placeholder);
}
.ds-meter-num {
  font-family: var(--ds-font-mono);
  font-size: 11.5px;
  color: var(--ds-color-text-description);
  transition: color .3s ease;
}
.ds-skill-card:hover .ds-meter-num { color: #dbe6ff; }

/* 水：深青蓝 → 青 → 浅青的水体渐变，上缘一条水面高光带，
   下面叠两层反向漂移的波浪（不是硬边），让水面有起伏。 */
.ds-meter-track {
  position: relative;
  height: 12px;
  border-radius: 100px;
  background: #04060c;
  /* 空槽内壁做一点湿润感 */
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(120, 200, 235, .07);
  overflow: hidden;
}
.ds-meter-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  border-radius: 100px;
  overflow: hidden;
  background-image:
    /* 涟漪层 1：柔和、位置不均，避免看出周期 */
    radial-gradient(ellipse 11px 8px at 11px 60%, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 8px 6px at 27px 34%, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 9px 7px at 44px 66%, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 100%),
    /* 涟漪层 2：反向漂移，错开相位 */
    radial-gradient(ellipse 7px 5px at 19px 72%, rgba(214, 244, 255, .3) 0%, rgba(214, 244, 255, 0) 100%),
    radial-gradient(ellipse 10px 6px at 38px 28%, rgba(214, 244, 255, .24) 0%, rgba(214, 244, 255, 0) 100%),
    /* 水体：上浅下深，上缘一条水面高光 */
    linear-gradient(180deg,
      rgba(255, 255, 255, .95) 0%,
      rgba(196, 238, 255, .92) 14%,
      rgba(104, 198, 238, .9) 34%,
      rgba(52, 154, 214, .92) 56%,
      rgba(26, 108, 172, .95) 78%,
      rgba(14, 72, 126, .98) 100%);
  background-size: 52px 100%, 52px 100%, 52px 100%, 52px 100%, 52px 100%, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-repeat: repeat-x, repeat-x, repeat-x, repeat-x, repeat-x, no-repeat;
  box-shadow:
    0 0 9px rgba(96, 202, 244, .45),
    0 0 20px rgba(50, 152, 220, .24),
    inset 0 1px 0 rgba(255, 255, 255, .7);
  animation: ds-water 11s linear infinite;
}
/* 水面流动：两层涟漪以不同速度漂移，形成缓慢起伏 */
@keyframes ds-water {
  0%   { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 52px 0, 52px 0, 52px 0, -52px 0, -52px 0, 0 0; }
}

/* 滚入视口后：从 0 逐渐灌注到目标数值 */
.ds-skill-card.is-in .ds-meter-fill {
  width: var(--lvl, 50%);
  transition: width 1.35s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--meter-delay, 0ms);
}

/* 右端：水面收口处的亮边（像水在管端被表面张力拉起的弯月面） */
.ds-meter-fill::after {
  content: "";
  position: absolute;
  right: 0; top: -10%; bottom: -10%;
  width: 16px;
  border-radius: 100px;
  background: radial-gradient(50% 54% at 100% 38%, rgba(255, 255, 255, .75) 0%, rgba(200, 238, 255, .3) 42%, rgba(120, 190, 240, 0) 100%);
}

/* --------------------------------------------------------------------------
   9. 常去的地方
   -------------------------------------------------------------------------- */
.ds-place-grid { display: grid; grid-template-columns: 1fr; gap: var(--ds-space-3); }
@media (min-width: 640px) { .ds-place-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ds-place-grid { grid-template-columns: repeat(4, 1fr); } }

.ds-place-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--ds-space-5);
  min-height: 116px;
  padding: var(--ds-space-5);
  border-radius: var(--ds-radius-panel);
  background: linear-gradient(180deg, hsla(0, 0%, 100%, .055), hsla(0, 0%, 100%, .02));
  border: 1px solid var(--ds-color-border-subtle);
  transition: background-color .3s ease, border-color .3s ease, transform .35s ease;
}
.ds-place-card:hover { background: hsla(0, 0%, 100%, .09); border-color: var(--ds-color-border-hover); transform: translateY(-3px); }
.ds-place-card.disabled { opacity: .45; cursor: not-allowed; }
.ds-place-card.disabled:hover { transform: none; background: linear-gradient(180deg, hsla(0, 0%, 100%, .055), hsla(0, 0%, 100%, .02)); border-color: var(--ds-color-border-subtle); }
@media (min-width: 1024px) { .ds-place-card.is-wide { grid-column: span 2; } }

.ds-place-name { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.ds-place-url { font-family: var(--ds-font-mono); font-size: 11.5px; color: var(--ds-color-text-placeholder); }

.ds-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  margin-top: var(--ds-space-5);
  padding-top: var(--ds-space-5);
  border-top: 1px solid var(--ds-color-border-subtle);
}
.ds-contact-item {
  font-size: 13px;
  padding: 6px 13px;
  border-radius: var(--ds-radius-pill);
  color: var(--ds-color-text-description);
  background: var(--ds-color-bg-surface-2);
  border: 1px solid var(--ds-color-border-subtle);
}
.ds-contact-item.disabled { opacity: .55; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   10. 舍友们
   -------------------------------------------------------------------------- */
.ds-friend-grid { display: grid; grid-template-columns: 1fr; gap: var(--ds-space-3); }
@media (min-width: 560px) { .ds-friend-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ds-friend-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .ds-friend-grid { grid-template-columns: repeat(4, 1fr); } }

.ds-friend, .ds-friend-slot {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3) var(--ds-space-4);
  border-radius: var(--ds-radius-media);
  background: var(--ds-color-bg-surface-3);
  border: 1px solid var(--ds-color-border-subtle);
  transition: background-color .25s ease, border-color .25s ease, transform .3s ease;
  min-height: 66px;
}
.ds-friend:hover, .ds-friend-slot:hover {
  background: hsla(0, 0%, 100%, .08);
  border-color: var(--ds-color-border-hover);
  transform: translateY(-2px);
}
.ds-friend img, .ds-friend-slot img {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ds-color-bg-surface-5);
  box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, .1);
}

.ds-friend-txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; flex: 1 1 auto; }
.ds-friend-txt b { font-size: 14px; font-weight: 500; line-height: 1.35; }
.ds-friend-txt i {
  font-style: normal;
  font-size: 12px;
  line-height: 1.42;
  color: var(--ds-color-text-placeholder);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 最后一个格子：与友链卡完全同构的"空房间" */
.ds-friend-slot {
  border-style: dashed;
  border-color: hsla(0, 0%, 100%, .18);
  background:
    linear-gradient(180deg, hsla(0, 0%, 100%, .035), hsla(0, 0%, 100%, .008));
}
.ds-friend-slot:hover {
  border-color: rgba(103, 153, 254, .6);
  background: linear-gradient(180deg, rgba(103, 153, 254, .1), rgba(103, 153, 254, .03));
}
.ds-slot-icon {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ds-color-text-description);
  background: hsla(0, 0%, 100%, .06);
  border: 1px dashed hsla(0, 0%, 100%, .22);
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .3s ease;
}
.ds-slot-icon svg { width: 18px; height: 18px; }
.ds-friend-slot:hover .ds-slot-icon {
  color: #fff;
  background: rgba(103, 153, 254, .22);
  border-color: rgba(103, 153, 254, .7);
  transform: rotate(90deg);
}
.ds-friend-slot .ds-friend-txt b { color: var(--ds-color-text-secondary); }
.ds-friend-slot:hover .ds-friend-txt b { color: var(--ds-color-text-primary); }

/* --------------------------------------------------------------------------
   11. CTA —— 对齐参考站（deepseek.com/harness）的 "加入 DSH 插件生态" 版块：
   没有卡片、没有边框、没有光晕，就是居中大标题 + 说明 + 一排胶囊按钮，
   直接落在页面背景上，靠大留白（上下 padding）撑出份量。
   -------------------------------------------------------------------------- */
.ds-cta {
  /* 对应参考站的 pt-ds-11 pb-ds-13（160 / 240），移动端收窄 */
  position: relative;
  overflow: hidden;
  padding: var(--ds-space-11) 0 var(--ds-space-10);
}
@media (min-width: 768px) {
  .ds-cta { padding: var(--ds-space-11) 0 240px; }
}
.ds-cta-inner {
  /* 参考站的文字层是 relative z-10，压在背景层之上 */
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --------------------------------------------------------------------------
   11b. CTA 背景层：飘落的樱花 + 三团高斯光斑
   结构与数值对齐参考站的 "加入 DSH 插件生态" 版块
   -------------------------------------------------------------------------- */
.ds-cta-bg {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: 500px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform: scale(.85);
  transition: opacity 1.4s ease, transform 1.6s cubic-bezier(.22, .61, .36, 1);
}
.ds-cta-bg.is-in { opacity: 1; transform: scale(1); }

/* 粒子画布：上下左右都做渐隐，避免出现硬边。
   mask-composite 必须用标准值 intersect（source-in 是 -webkit- 前缀专用的操作符，
   写在标准属性上会被按不规则值忽略，导致右侧渐隐失效）。 */
.ds-cta-particles {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-composite: source-in;
}
.ds-cta-particles canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: transparent;
  display: block;
}

/* 三团光斑：位置、尺寸、模糊、透明度都照参考站
   （参考站是蓝紫色 #1A3870 / #2D5F9E / #4A8AC4，这里换成同色的品牌蓝系） */
.ds-cta-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ds-cta-glow.g1 {
  bottom: -100px; left: 10%;
  width: 500px; height: 500px;
  opacity: .30;
  background: radial-gradient(circle, #17325f 0%, rgba(23, 50, 95, 0) 70%);
  filter: blur(80px);
}
.ds-cta-glow.g2 {
  bottom: -50px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  opacity: .40;
  background: radial-gradient(ellipse at center, #2b5691 0%, #17325f 40%, rgba(23, 50, 95, 0) 70%);
  filter: blur(100px);
}
.ds-cta-glow.g3 {
  bottom: -80px; right: 10%;
  width: 400px; height: 400px;
  opacity: .20;
  background: radial-gradient(circle, #437cb0 0%, #2b5691 30%, rgba(43, 86, 145, 0) 70%);
  filter: blur(60px);
}
/* 小屏上背景层收一点，避免光斑溢出得太厉害 */
@media (max-width: 767px) {
  .ds-cta-bg { top: 40px; height: 380px; }
  .ds-cta-glow.g2 { width: 460px; height: 300px; opacity: .34; }
}
/* 参考站是 h2 直接开始；这里保留一个很轻的 monospace 眉标，和站点其它版块一致 */
.ds-cta-eyebrow {
  font-family: var(--ds-font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ds-color-text-placeholder);
  margin-bottom: var(--ds-space-4);
}
.ds-cta-title {
  font-family: var(--ds-font-display);
  /* 参考站 ds-text-heading1：28px → 36px @768 */
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 150%;
  max-width: 820px;
  color: var(--ds-color-text-primary);
}
@media (min-width: 768px) { .ds-cta-title { font-size: 36px; } }
.ds-cta-sub {
  /* 参考站 ds-text-body + max-w-[652px] mt-ds-5 */
  max-width: 652px;
  margin-top: var(--ds-space-5);
  font-size: 16px;
  line-height: 160%;
  color: var(--ds-color-text-description);
  text-wrap: pretty;
}
.ds-cta-actions {
  /* 参考站 gap-ds-4 mt-ds-6 */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-4);
  margin-top: var(--ds-space-6);
}

/* --------------------------------------------------------------------------
   12. 页脚
   -------------------------------------------------------------------------- */
.ds-footer {
  padding: var(--ds-space-8) 0 var(--ds-space-7);
  border-top: 1px solid var(--ds-color-border-subtle);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35));
}
.ds-footer-inner { display: flex; flex-direction: column; gap: var(--ds-space-5); }
.ds-footer-main { display: flex; flex-direction: column; gap: var(--ds-space-3); align-items: flex-start; }
.ds-footer-note { font-size: 13.5px; color: var(--ds-color-text-description); }
.ds-footer-links { display: flex; flex-wrap: wrap; gap: var(--ds-space-5); }
.ds-footer-links a { font-size: 13.5px; color: var(--ds-color-text-description); transition: color .2s ease; }
.ds-footer-links a:hover { color: var(--ds-color-text-primary); }
.ds-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2) var(--ds-space-5);
  padding-top: var(--ds-space-5);
  border-top: 1px solid var(--ds-color-border-subtle);
}
.ds-footer-legal a { font-size: 12.5px; color: var(--ds-color-text-placeholder); transition: color .2s ease; }
.ds-footer-legal a:hover { color: var(--ds-color-text-secondary); }

@media (min-width: 900px) {
  .ds-footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--ds-space-5) var(--ds-space-8);
  }
  .ds-footer-legal { grid-column: 1 / -1; }
  .ds-footer-links { justify-content: flex-end; }
}

/* --------------------------------------------------------------------------
   13. 滚动进场 & 无障碍
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1), filter .8s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .ds-hero-enter, .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .ds-hero-canvas, .ds-hero-figure { opacity: 1 !important; }
  .ds-hero-aurora { opacity: .9 !important; }
  .ds-meter-fill { width: var(--lvl, 50%) !important; }
  .ds-hero-sticky { height: 100vh !important; }
}
