/* ==========================================================================
   星澜 AI 官网 · 组件层（components.css）
   按钮 / 徽标 / 导航 / 玻璃卡片 / 应用窗口 / 数据条 / 时间轴 / 跑马灯 /
   下载卡 / FAQ / 步骤条 / 表格 / 页脚 — site-pages 可直接复用
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 按钮
   -------------------------------------------------------------------------- */
.btn {
  --btn-h: 46px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: var(--btn-h);
  padding-inline: 1.45em;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--text-1);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform var(--dur-2) var(--ease-spring), background-color var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-3) var(--ease-out),
    color var(--dur-2) var(--ease-out);
  isolation: isolate;
  overflow: hidden;
}

.btn .ico {
  width: 1.15em;
  height: 1.15em;
}

.btn:hover {
  background: var(--surface-3);
  border-color: var(--line-strong);
}

.btn:active {
  transform: scale(0.975);
}

/* 主按钮：品牌渐变 + 顶部高光 + hover 扫光 */
.btn--primary {
  color: var(--text-on-brand);
  background: var(--grad-brand-strong);
  border-color: transparent;
  box-shadow: 0 10px 30px -12px rgba(108, 92, 231, 0.85), var(--shadow-inset);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.38) 48%, transparent 66%);
  translate: -130% 0;
  transition: translate var(--dur-5) var(--ease-out);
}

.btn--primary:hover {
  background: var(--grad-brand-strong);
  border-color: transparent;
  box-shadow: 0 16px 44px -14px rgba(108, 92, 231, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.btn--primary:hover::after {
  translate: 130% 0;
}

/* 描边按钮 */
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-1);
}

.btn--ghost:hover {
  background: var(--surface-2);
  border-color: rgba(34, 211, 238, 0.45);
  color: #fff;
}

/* 柔和按钮 */
.btn--soft {
  background: var(--grad-soft);
  border-color: rgba(139, 92, 246, 0.3);
  color: #ddd9ff;
}

.btn--soft:hover {
  border-color: rgba(34, 211, 238, 0.42);
  color: #fff;
}

.btn--lg {
  --btn-h: 54px;
  padding-inline: 1.85em;
  font-size: 1.02rem;
}

.btn--sm {
  --btn-h: 38px;
  padding-inline: 1.1em;
  font-size: var(--fs-sm);
}

.btn--block {
  width: 100%;
}

.btn__play {
  display: inline-grid;
  place-items: center;
  width: 1.55em;
  height: 1.55em;
  margin-inline-start: -0.35em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.btn__play .ico {
  width: 0.8em;
  height: 0.8em;
  fill: currentColor;
  stroke: none;
  translate: 0.06em 0;
}

/* 磁吸包装（JS 驱动位移） */
.magnetic {
  display: inline-flex;
  will-change: transform;
}

/* 文字链接箭头 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--dur-2) var(--ease-out), gap var(--dur-2) var(--ease-out);
}

.link-arrow .ico {
  width: 1.05em;
  height: 1.05em;
  transition: translate var(--dur-2) var(--ease-out);
}

.link-arrow:hover {
  color: var(--c-cyan);
}

.link-arrow:hover .ico {
  translate: 3px 0;
}

/* --------------------------------------------------------------------------
   2. 徽标 / 标签 / 胶囊
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.36em 0.85em;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-1);
  font-size: var(--fs-xs);
  font-weight: 560;
  color: var(--text-2);
  white-space: nowrap;
}

.badge--brand {
  border-color: rgba(139, 92, 246, 0.36);
  background: rgba(108, 92, 231, 0.14);
  color: #d8d3ff;
}

.badge--cyan {
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
}

.badge--ok {
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
}

.badge--warn {
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
}

.dot {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: dot-pulse 2.4s var(--ease-out) infinite;
}

.dot--ok {
  color: var(--c-success);
}

.dot--brand {
  color: var(--c-purple-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.28em 0.7em;
  border-radius: var(--r-sm);
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-transform: uppercase;
}

.chip--brand {
  background: rgba(108, 92, 231, 0.14);
  border-color: rgba(139, 92, 246, 0.28);
  color: #cbc4ff;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18em 0.6em;
  border-radius: var(--r-xs);
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
}

/* --------------------------------------------------------------------------
   3. 顶部导航 + 移动抽屉
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out),
    box-shadow var(--dur-3) var(--ease-out), height var(--dur-3) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background-color var(--dur-3) var(--ease-out), backdrop-filter var(--dur-3) var(--ease-out);
}

.site-header.is-scrolled {
  height: 62px;
  border-bottom-color: var(--line-soft);
}

.site-header.is-scrolled::before {
  background: rgba(9, 10, 18, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  flex: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px -6px rgba(108, 92, 231, 0.8);
  transition: transform var(--dur-3) var(--ease-spring), box-shadow var(--dur-3) var(--ease-out);
}

.brand:hover .brand__mark {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 26px -6px rgba(34, 211, 238, 0.6);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.brand__sub {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--text-3);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-inline: auto;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding-inline: 0.85em;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text-2);
  transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  translate: -50% 0;
  transition: width var(--dur-3) var(--ease-out);
}

.nav__link:hover {
  color: var(--text-1);
  background: var(--surface-1);
}

.nav__link:hover::after {
  width: 42%;
}

.nav__link[aria-current="page"] {
  color: var(--text-1);
}

.nav__link[aria-current="page"]::after {
  width: 42%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
}

.nav__divider {
  width: 1px;
  height: 22px;
  background: var(--line);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-1);
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--text-1);
  translate: -50% 0;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease-out),
    top var(--dur-3) var(--ease-out);
}

.nav-toggle span:nth-child(1) {
  top: 14px;
}

.nav-toggle span:nth-child(2) {
  top: 20px;
}

.nav-toggle span:nth-child(3) {
  top: 26px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

/* 抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: none;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 12, 0.66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out);
}

.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(88vw, 380px);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 12px) var(--sp-6) var(--sp-8);
  background: linear-gradient(200deg, rgba(23, 24, 40, 0.97), rgba(10, 11, 20, 0.98));
  border-inline-start: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
  translate: 100% 0;
  transition: translate var(--dur-4) var(--ease-expo);
  overflow-y: auto;
}

.drawer.is-open {
  display: block;
}

.drawer.is-open .drawer__scrim {
  opacity: 1;
}

.drawer.is-open .drawer__panel {
  translate: 0 0;
}

.drawer__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--sp-4);
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0.95em 0.25em;
  font-size: 1.02rem;
  font-weight: 560;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-soft);
  transition: color var(--dur-2) var(--ease-out), padding-inline-start var(--dur-2) var(--ease-out);
}

.drawer__link:hover,
.drawer__link[aria-current="page"] {
  color: var(--text-1);
  padding-inline-start: 0.55em;
}

.drawer__link .ico {
  width: 1em;
  height: 1em;
  color: var(--text-3);
}

.drawer__foot {
  margin-top: auto;
  padding-top: var(--sp-8);
  display: grid;
  gap: var(--sp-3);
}

.drawer__meta {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   4. 玻璃面板 / 卡片
   -------------------------------------------------------------------------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: var(--shadow-lg), var(--shadow-inset);
}

/* 顶部一道柔光 */
.glass--lit::before {
  content: "";
  position: absolute;
  inset-inline: 12%;
  top: -1px;
  height: 1px;
  background: var(--grad-line);
  pointer-events: none;
}

.card {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  padding: var(--sp-6);
  overflow: hidden;
  transition: border-color var(--dur-3) var(--ease-out), background-color var(--dur-3) var(--ease-out),
    transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}

.card--pad-lg {
  padding: var(--sp-8);
}

.card--hover:hover {
  border-color: rgba(139, 92, 246, 0.34);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(139, 92, 246, 0.12);
}

/* 渐变描边卡片（hover 时点亮） */
.card--gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-stroke);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out);
  pointer-events: none;
}

.card--gradient:hover::before {
  opacity: 0.85;
}

/* 能力卡 */
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  min-height: 230px;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.016) 55%);
  border: 1px solid var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}

.feature-card::after {
  /* 悬停时的角落光晕 */
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.5), transparent 66%);
  filter: blur(18px);
  opacity: 0;
  transition: opacity var(--dur-4) var(--ease-out);
  pointer-events: none;
}

.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.34);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #e7e4ff;
  background: linear-gradient(150deg, rgba(108, 92, 231, 0.34), rgba(34, 211, 238, 0.16));
  border: 1px solid rgba(139, 92, 246, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform var(--dur-3) var(--ease-spring), color var(--dur-3) var(--ease-out);
}

.feature-card:hover .feature-card__icon {
  transform: translateY(-3px) scale(1.04);
  color: #fff;
}

.feature-card__icon .ico {
  width: 23px;
  height: 23px;
}

.feature-card__title {
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.006em;
}

.feature-card__desc {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-2);
}

.feature-card__meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: var(--sp-2);
}

/* --------------------------------------------------------------------------
   5. 应用窗口 Mock（真机截图 + 玻璃外框）
   -------------------------------------------------------------------------- */
.app-window {
  position: relative;
  border-radius: var(--r-xl);
  padding: 10px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045) 42%, rgba(255, 255, 255, 0.09));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-xl), 0 0 80px -24px rgba(108, 92, 231, 0.65), var(--shadow-inset);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform-style: preserve-3d;
}

.app-window__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 34px;
  padding-inline: 10px;
}

.app-window__dots {
  display: flex;
  gap: 6px;
}

.app-window__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.app-window__dots i:nth-child(1) {
  background: #f86d6d;
}

.app-window__dots i:nth-child(2) {
  background: #f7c548;
}

.app-window__dots i:nth-child(3) {
  background: #4bd37b;
}

.app-window__title {
  margin-inline: auto;
  font-size: var(--fs-2xs);
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.app-window__body {
  position: relative;
  border-radius: calc(var(--r-xl) - 10px);
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 1344 / 861;
  /* 让截图与浏览器里的真实观感一致 */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.app-window__body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.app-window__body::after {
  /* 顶部轻微压暗，增强层次 */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 14, 0.28), transparent 18%, transparent 82%, rgba(7, 7, 14, 0.34));
  pointer-events: none;
}

.app-window--glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, rgba(139, 92, 246, 0.75), transparent 34%, transparent 66%, rgba(34, 211, 238, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}

/* 边缘反光：白色镜面高光 + 右下青色反射，让玻璃框更精致 */
.app-window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    138deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.08) 16%,
    rgba(255, 255, 255, 0) 42%,
    rgba(255, 255, 255, 0) 66%,
    rgba(34, 211, 238, 0.42) 88%,
    rgba(255, 255, 255, 0.28) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.8;
}

/* 窗口旁浮动玻璃小卡 */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  background: rgba(16, 18, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-md), var(--shadow-inset);
  font-size: var(--fs-xs);
  font-weight: 560;
  color: var(--text-1);
  pointer-events: none;
  animation: float-y 7s var(--ease-in-out) infinite;
}

.float-card__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #d9d4ff;
  background: rgba(108, 92, 231, 0.26);
  border: 1px solid rgba(139, 92, 246, 0.34);
}

.float-card__icon .ico {
  width: 15px;
  height: 15px;
}

.float-card__sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.float-card--ok .float-card__icon {
  color: #9df5d0;
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.34);
}

.float-card--cyan .float-card__icon {
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.32);
}

@keyframes float-y {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

/* 普通截图框（教程/展示用） */
.shot {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  box-shadow: var(--shadow-lg);
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
}

.shot__caption {
  padding: 0.75rem 1rem;
  font-size: var(--fs-xs);
  color: var(--text-3);
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}

/* --------------------------------------------------------------------------
   6. 数据条
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line-soft);
}

.stat {
  padding: var(--sp-6) var(--sp-5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  text-align: center;
  transition: background-color var(--dur-3) var(--ease-out);
}

.stat:hover {
  background: rgba(255, 255, 255, 0.058);
}

.stat__num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.12em;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat__unit {
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0;
}

.stat__label {
  margin-top: 0.55rem;
  font-size: var(--fs-xs);
  color: var(--text-3);
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   7. 区块标题
   -------------------------------------------------------------------------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 760px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  align-items: center;
}

.section-head .lead {
  max-width: 60ch;
}

.section-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.section-head__aside {
  flex: none;
}

/* --------------------------------------------------------------------------
   8. 四阶段时间轴
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-12);
}

/* 横向连接线 */
.timeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--line);
}

.timeline__progress {
  position: absolute;
  top: 27px;
  left: 8%;
  height: 1px;
  width: 0;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
  transition: width 1.6s var(--ease-out);
}

.timeline.is-visible .timeline__progress {
  width: 84%;
}

.timeline__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: 62px;
  text-align: center;
  align-items: center;
}

.timeline__node {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8);
  transition: border-color var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out),
    transform var(--dur-3) var(--ease-out);
  z-index: 1;
}

.timeline__node .ico {
  width: 22px;
  height: 22px;
  color: var(--text-2);
  transition: color var(--dur-3) var(--ease-out);
}

.timeline__step:hover .timeline__node {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.08), var(--glow-soft);
  transform: translateY(-2px);
}

.timeline__step:hover .timeline__node .ico {
  color: #a5f3fc;
}

.timeline__no {
  position: absolute;
  right: -2px;
  top: -2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
  background: var(--grad-brand-strong);
  box-shadow: 0 0 0 3px var(--bg-1);
}

.timeline__title {
  font-size: 1.02rem;
  font-weight: 650;
}

.timeline__desc {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-3);
  max-width: 24ch;
}

/* --------------------------------------------------------------------------
   9. 跑马灯
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  padding-block: 1.05rem;
  background: linear-gradient(90deg, rgba(108, 92, 231, 0.06), rgba(34, 211, 238, 0.045));
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0;
  will-change: transform;
  animation: marquee-x 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  white-space: nowrap;
  margin-inline-end: 2.4rem;
  font-size: var(--fs-sm);
  font-weight: 560;
  letter-spacing: 0.05em;
  color: var(--text-3);
}

.marquee__item::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-inline-start: 2.4rem;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}

.marquee__item .ico {
  width: 15px;
  height: 15px;
  color: var(--c-purple-2);
  opacity: 0.85;
}

.marquee__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}

@keyframes marquee-x {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* --------------------------------------------------------------------------
   10. 下载卡（site-pages / index CTA 复用）
   -------------------------------------------------------------------------- */
.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.016));
  transition: border-color var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out),
    box-shadow var(--dur-3) var(--ease-out);
}

.download-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.download-card--recommended {
  border-color: rgba(34, 211, 238, 0.34);
  background: linear-gradient(165deg, rgba(34, 211, 238, 0.09), rgba(108, 92, 231, 0.06));
}

.download-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}

.download-card__os {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.download-card__os .ico {
  width: 22px;
  height: 22px;
  color: var(--text-2);
}

.download-card__meta {
  display: grid;
  gap: 0.35rem;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.download-card__meta code {
  color: var(--text-2);
  font-size: 0.72rem;
  word-break: break-all;
}

.download-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-2);
}

.file-size {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   11. FAQ 折叠
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: var(--sp-3);
}

.faq__item {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}

.faq__item:hover {
  border-color: var(--line-strong);
}

.faq__item[open] {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(108, 92, 231, 0.055);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 1.05rem 1.25rem;
  font-size: 0.98rem;
  font-weight: 580;
  cursor: pointer;
  list-style: none;
  color: var(--text-1);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-3);
  transition: transform var(--dur-3) var(--ease-out), color var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out);
}

.faq__icon .ico {
  width: 13px;
  height: 13px;
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  color: var(--c-cyan);
  border-color: rgba(34, 211, 238, 0.4);
}

.faq__a {
  padding: 0 1.25rem 1.2rem;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-2);
}

.faq__a p + p {
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------------------
   12. 步骤条（教程页用）
   -------------------------------------------------------------------------- */
.stepper {
  display: grid;
  gap: var(--sp-4);
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.stepper__item {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--sp-4);
  counter-increment: step;
}

.stepper__item::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #e4e0ff;
  background: linear-gradient(150deg, rgba(108, 92, 231, 0.32), rgba(34, 211, 238, 0.14));
  border: 1px solid rgba(139, 92, 246, 0.3);
  z-index: 1;
}

.stepper__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -1.1rem;
  width: 1px;
  background: var(--line);
}

.stepper__body {
  padding-bottom: var(--sp-2);
}

.stepper__title {
  font-size: 1rem;
  font-weight: 620;
  padding-top: 0.55rem;
}

.stepper__desc {
  margin-top: 0.45rem;
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   13. 提示框 / 表格 / 面包屑
   -------------------------------------------------------------------------- */
.callout {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-1);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-2);
}

.callout__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.26);
}

.callout__icon .ico {
  width: 15px;
  height: 15px;
}

.callout--warn {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
}

.callout--warn .callout__icon {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
}

.callout--danger {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.06);
}

.callout--danger .callout__icon {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.3);
}

.callout strong {
  color: var(--text-1);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.table caption {
  padding: 0.85rem 1rem;
  text-align: start;
  font-size: var(--fs-xs);
  color: var(--text-3);
  border-bottom: 1px solid var(--line-soft);
}

.table th,
.table td {
  padding: 0.8rem 1rem;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.table thead th {
  font-size: var(--fs-xs);
  font-weight: 620;
  letter-spacing: 0.05em;
  color: var(--text-3);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.022);
}

.table td code {
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  white-space: nowrap;
}

.kbd {
  display: inline-block;
  padding: 0.12em 0.45em;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--text-1);
  background: var(--surface-2);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.breadcrumb a {
  color: var(--text-2);
  transition: color var(--dur-2) var(--ease-out);
}

.breadcrumb a:hover {
  color: var(--c-cyan);
}

.breadcrumb__sep {
  color: var(--text-4);
}

.breadcrumb [aria-current="page"] {
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   14. CTA 大面板
   -------------------------------------------------------------------------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  padding: clamp(2.2rem, 5vw, 4.4rem);
  border: 1px solid rgba(139, 92, 246, 0.26);
  background: radial-gradient(1000px 400px at 50% -20%, rgba(108, 92, 231, 0.3), transparent 62%),
    linear-gradient(165deg, rgba(21, 22, 38, 0.9), rgba(12, 13, 23, 0.94));
  text-align: center;
  isolation: isolate;
}

.cta-panel::before,
.cta-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.cta-panel::before {
  width: 420px;
  height: 420px;
  left: -120px;
  bottom: -220px;
  background: rgba(108, 92, 231, 0.36);
}

.cta-panel::after {
  width: 380px;
  height: 380px;
  right: -100px;
  top: -200px;
  background: rgba(34, 211, 238, 0.24);
}

.cta-panel__glow {
  position: absolute;
  inset-inline: 15%;
  top: 0;
  height: 1px;
  background: var(--grad-line);
}

.cta-panel .lead {
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

/* --------------------------------------------------------------------------
   15. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: var(--section-y);
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(7, 8, 15, 0.4), rgba(7, 8, 15, 0.92));
  padding-block: var(--sp-16) var(--sp-8);
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
  gap: var(--sp-10) var(--sp-8);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 320px;
}

.footer__tagline {
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--text-3);
}

.footer__col h4 {
  font-size: var(--fs-xs);
  font-weight: 620;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--sp-3);
}

.footer__links {
  display: grid;
  gap: 0.6rem;
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--text-2);
  transition: color var(--dur-2) var(--ease-out), translate var(--dur-2) var(--ease-out);
  width: fit-content;
}

.footer__link:hover {
  color: var(--text-1);
  translate: 2px 0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}

.footer__social {
  display: flex;
  gap: 0.6rem;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text-2);
  transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out),
    background-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-spring);
}

.icon-btn:hover {
  color: var(--text-1);
  border-color: rgba(139, 92, 246, 0.4);
  background: var(--surface-2);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   16. 加载条 / 光标聚光 / 杂项
   -------------------------------------------------------------------------- */
.page-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 2px;
  z-index: calc(var(--z-header) + 1);
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--grad-brand-strong);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.65);
  pointer-events: none;
  transition: transform 0.28s var(--ease-out), opacity 0.4s var(--ease-out);
}

.page-progress.is-done {
  transform: scaleX(1);
  opacity: 0;
}

/* 光标聚光（cursor.js 控制 --cursor-x/--cursor-y） */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.13), rgba(34, 211, 238, 0.05) 42%, transparent 68%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform: translate3d(var(--cursor-x, 0px), var(--cursor-y, 0px), 0);
  transition: opacity 0.5s var(--ease-out);
  will-change: transform;
  mix-blend-mode: screen;
}

.cursor-glow.is-active {
  opacity: 1;
}

/* 文档正文页（教程/FAQ）头图 */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.6rem, 6vw, 5rem));
  padding-bottom: clamp(1.6rem, 3vw, 2.6rem);
  overflow: hidden;
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 780px;
}

.page-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: var(--fs-sm);
  color: var(--text-3);
  transition: color var(--dur-2) var(--ease-out);
}

.page-hero__back:hover {
  color: var(--c-cyan);
}

.page-hero__back .ico {
  width: 1em;
  height: 1em;
  rotate: 180deg;
}

/* 相邻页面导航 */
.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-12);
}

.pager__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-1);
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}

.pager__item:hover {
  border-color: rgba(139, 92, 246, 0.36);
  background: var(--surface-2);
}

.pager__item--next {
  text-align: end;
  align-items: flex-end;
}

.pager__label {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.pager__title {
  font-size: 0.98rem;
  font-weight: 600;
}

/* 响应式组件调整 */
@media (max-width: 1024px) {
  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav__actions .btn {
    display: none;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-8) var(--sp-5);
  }

  .timeline::before,
  .timeline__progress {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pager {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .footer {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer__brand {
    max-width: none;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .timeline__step {
    padding-top: 0;
    padding-left: 62px;
    text-align: start;
    align-items: flex-start;
  }

  .timeline__node {
    top: 0;
    left: 0;
    translate: 0 0;
    width: 46px;
    height: 46px;
  }

  .timeline__desc {
    max-width: none;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .btn--lg {
    --btn-h: 50px;
  }
}
