/* ==========================================================================
   ctdxs.com — 吃土的小神 / xiaoshen
   视觉体系：深色科技风 + 星空 / 流光 / 玻璃拟态
   纯静态：index.html + style.css + main.js + avatar-points.js
   ========================================================================== */

/* --------------------------------------------------------------------------
   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", "Microsoft YaHei", sans-serif;
  --ds-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    "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-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);

  /* 深色主题（默认） */
  --ds-color-brand: #6799fe;
  --ds-color-text-primary: #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-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-5: hsla(0, 0%, 100%, .12);
  --ds-color-bg-surface-raised: hsla(0, 0%, 100%, .25);
  --ds-color-bg-hover: hsla(0, 0%, 100%, .06);
  --ds-color-scrollbar: hsla(0, 0%, 100%, .2);

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

  /* 按钮 */
  --ds-btn-primary-bg: #fff;
  --ds-btn-primary-text: #0a0a0a;
  --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;
}

/* --------------------------------------------------------------------------
   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;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h5, 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; }

/* --------------------------------------------------------------------------
   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 transparent; }
.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-ico { flex: 0 0 auto; width: 16px; height: 16px; display: block; }

/* --------------------------------------------------------------------------
   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: #fff; }
.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
   -------------------------------------------------------------------------- */
.ds-hero-sticky {
  position: relative;
  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;
  /* 后两层柔光原本由星野 canvas 每帧新建径向渐变绘制，改为静态 CSS 渐变，
     省掉每帧两次全屏渐变填充（渐变属于一次性光栅化，之后只做合成） */
  background:
    radial-gradient(58% 44% at 76% 30%, rgba(103, 153, 254, .15), transparent 64%),
    linear-gradient(to bottom, rgba(10, 10, 10, 0) 42%, rgba(10, 10, 10, .88) 92%),
    radial-gradient(42% 50% at 62% 33%, rgba(103, 153, 254, .075), rgba(103, 153, 254, .026) 55%, transparent 100%),
    radial-gradient(36% 44% at 22% 65%, rgba(255, 255, 255, .022), transparent 100%);
}
@media (min-width: 1800px) {
  .ds-hero-glow {
    background:
      radial-gradient(58% 44% at 76% 30%, rgba(103, 153, 254, .15), transparent 64%),
      radial-gradient(40% 44% at 2% 26%, rgba(103, 153, 254, .1), transparent 72%),
      linear-gradient(to bottom, rgba(10, 10, 10, 0) 42%, rgba(10, 10, 10, .88) 92%),
      radial-gradient(42% 50% at 62% 33%, rgba(103, 153, 254, .075), rgba(103, 153, 254, .026) 55%, transparent 100%),
      radial-gradient(36% 44% at 22% 65%, rgba(255, 255, 255, .022), transparent 100%);
  }
}

/* 剪影粒子层：落在光晕之上、文字之下 */
.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. 流光填充（aurora）
   -------------------------------------------------------------------------- */
.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(30px) saturate(120%);
  animation: ds-aurora-in 2.2s ease .3s forwards;
  mask: linear-gradient(#000 0%, #000 40%, rgba(0, 0, 0, .3) 66%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0%, #000 40%, rgba(0, 0, 0, .3) 66%, transparent 88%);
}
@keyframes ds-aurora-in { from { opacity: 0; } to { opacity: .68; } }

.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, .30) 46deg,
    rgba(255, 255, 255, .58) 96deg,
    rgba(168, 196, 255, .26) 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, .18) 70deg,
    rgba(240, 246, 255, .36) 130deg,
    rgba(120, 160, 255, .12) 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: 42%; height: 46%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 70%);
  transform: translate(-50%, -50%) translate(-6%, 4%);
  animation: ds-a4 19s ease-in-out infinite;
}
@keyframes ds-a4 {
  0%   { transform: translate(-50%, -50%) translate(-6%, 4%) scale(1); }
  50%  { transform: translate(-50%, -50%) translate(2%, -4%) scale(1.14); }
  100% { transform: translate(-50%, -50%) translate(-6%, 4%) 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; }
}

/* 极淡的网格背景纹理 */
.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;
  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) {
  /* 移动端内容高于一屏：放开固定高度，让 hero 随内容生长，避免顶部溢出被导航遮挡 */
  .ds-hero-sticky { height: auto; }
  .ds-hero-sticky > .ds-hero {
    position: relative;
    top: auto;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: var(--ds-space-8);
  }
  .ds-hero-grid { padding-top: 150px; 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);
}
.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:
    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%),
    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; }
}

.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);
  transition: color .2s, background-color .2s, border-color .2s;
}
a.ds-contact-item:hover { color: #fff; background: hsla(0, 0%, 100%, .12); border-color: var(--ds-color-border-hover); }
.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 {
  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
   -------------------------------------------------------------------------- */
.ds-cta {
  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 {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* CTA 背景层：飘落的樱花 + 三团高斯光斑 */
.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); }

.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;
}

.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; }
}

.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);
  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 {
  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 {
  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; }
}

/* --------------------------------------------------------------------------
   14. 精简模式（perf-lite）
   面向 360 安全浏览器等「软件渲染 / 老内核」环境。只砍掉逐帧重算的合成开销，
   构图与配色保持不变。类名由 perf.js 在首帧之前挂到 <html> 上。
   -------------------------------------------------------------------------- */

/* 平滑滚动在重页面 + 软件渲染下掉帧非常明显 */
.perf-lite { scroll-behavior: auto; }

/* backdrop-filter 需要每帧重新采样背后内容：固定导航与终端卡片正压在动画 canvas 上，
   是最贵的一项。改用不透明底色，观感几乎一致。 */
.perf-lite .ds-header-bar::before,
.perf-lite .ds-mobile-menu,
.perf-lite .ds-btn-secondary,
.perf-lite .ds-pill,
.perf-lite .ds-term {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.perf-lite .ds-header-bar::before { background: rgba(18, 20, 28, .78); }
.perf-lite .ds-mobile-menu { background: rgba(18, 20, 28, .94); }
.perf-lite .ds-term { background: linear-gradient(180deg, rgba(12, 14, 24, .96), rgba(7, 9, 17, .94)); }
.perf-lite .ds-btn-secondary { background: rgba(24, 27, 38, .72); }
.perf-lite .ds-pill { background: rgba(24, 27, 38, .8); }

/* 混合模式要抓取背景做混合，等于一笔额外的全屏读取 */
.perf-lite .ds-hero-aurora,
.perf-lite .ds-cta-particles { mix-blend-mode: normal; }

/* 极光真正的开销不是 filter 本身，而是「带 filter 的容器里还有 6 个持续 transform 的
   子元素」——那会让整块大模糊面每帧重新光栅化。冻结子动画 + 收窄面积即可化解。 */
.perf-lite .ds-hero-aurora {
  width: min(1500px, 150%);
  filter: blur(16px) saturate(112%);
  animation: ds-aurora-in 1.4s ease .2s forwards;
}
.perf-lite .ds-hero-aurora .aurora { animation: none !important; will-change: auto; }

/* 遮罩会让图层多一次离屏合成，视觉差异很小 */
.perf-lite .ds-hero-canvas,
.perf-lite .ds-hero-figure,
.perf-lite .ds-cta-particles {
  mask: none;
  -webkit-mask: none;
  mask-image: none;
  -webkit-mask-image: none;
}

/* 熟练度条的水流在动 background-position，会持续触发整块重绘 */
.perf-lite .ds-meter-fill { animation: none; }
.perf-lite .ds-skill-card.is-in .ds-meter-fill { transition-duration: .85s; }

/* 进场动画里的 blur 过渡同样昂贵 */
.perf-lite .ds-hero-enter { animation-name: ds-hero-enter-lite; }
@keyframes ds-hero-enter-lite {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.perf-lite .reveal,
.perf-lite .reveal.is-in { filter: none; }
.perf-lite .reveal.is-in { transition: opacity .6s ease, transform .6s ease; }

/* CTA 光斑本身就是柔和径向渐变，再叠 60~100px 高斯模糊收益极低 */
.perf-lite .ds-cta-glow { filter: none; }
.perf-lite .ds-cta-glow.g1 { opacity: .26; }
.perf-lite .ds-cta-glow.g2 { opacity: .34; }
.perf-lite .ds-cta-glow.g3 { opacity: .18; }

/* 品牌 logo 的投影每帧不便宜，精简模式去掉 */
.perf-lite .ds-brand-logo svg { filter: none; }

