/* ==========================================================================
   轻打包 · 礼轻昀科技
   1. 设计变量与基础样式
   2. 通用组件（按钮 / 标题 / 图标）
   3. 顶部导航
   4. 首屏 Hero
   5. 产品功能
   6. 打包流程
   7. 用户案例
   8. 下载入口
   9. 关于我们
   10. 联系我们
   11. 页脚 / 辅助控件
   12. 动效与响应式
   ========================================================================== */

/* 1. 设计变量与基础样式
   ========================================================================== */

:root {
  --font-sans: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;

  --ink: #0B1526;
  --ink-soft: #2C3D55;
  --muted: #50617A;
  --light: #F4F7FC;
  --white: #FFFFFF;
  --line: #DDE5F1;
  --line-strong: #C6D3E5;

  --dark: #070D18;
  --dark-2: #0A1424;
  --dark-3: #0F1D34;
  --text: #E9F0FB;
  --text-muted: #9DAEC7;
  --line-dark: rgba(255, 255, 255, 0.10);

  --blue: #1D4ED8;
  --blue-2: #2563EB;
  --blue-soft: #7FA8FF;
  --cyan: #4FD1C5;
  --warm: #F4BE72;
  --warm-ink: #6B4A17;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.05), 0 10px 30px rgba(10, 22, 40, 0.06);
  --shadow-lg: 0 24px 60px rgba(5, 15, 35, 0.18);

  --header-h: 74px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

::selection {
  color: #fff;
  background: rgba(37, 99, 235, 0.4);
}

:focus-visible {
  outline: 3px solid #7DD3FC;
  outline-offset: 3px;
}

.section--light :focus-visible {
  outline-color: var(--blue);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.section {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0;
}

.section--light {
  color: var(--ink);
  background: var(--light);
}

.section--dark {
  color: var(--text);
  background: var(--dark-2);
}

/* 2. 通用组件
   ========================================================================== */

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.section--dark .eyebrow {
  color: var(--blue-soft);
}

.eyebrow--warm {
  color: var(--warm);
}

.section--light .eyebrow--warm {
  color: #B45309;
}

.eyebrow--hero {
  gap: 0;
  color: #A9C0DF;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.eyebrow--hero::before {
  display: none;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(79, 209, 197, 0.12);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head h2 {
  margin: 16px 0 18px;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  letter-spacing: -0.02em;
}

.section-head p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.section--dark .section-head p {
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1rem;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #2F6BFF, #1D4ED8);
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.32);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(29, 78, 216, 0.42);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost .icon {
  transition: transform 0.25s var(--ease);
}

.btn--ghost:hover .icon {
  transform: translateX(3px);
}

/* 3. 顶部导航
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.is-scrolled {
  background: rgba(7, 13, 24, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  border-radius: 10px;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.28);
}

.brand__name {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.brand__sub {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #C3D0E4;
  font-size: 0.9375rem;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.site-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #E3ECF9;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.09);
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

/* 4. 首屏 Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 92px));
  background:
    radial-gradient(680px 480px at 78% 14%, rgba(59, 130, 246, 0.20), transparent 70%),
    radial-gradient(520px 420px at 16% 4%, rgba(45, 212, 191, 0.10), transparent 70%),
    linear-gradient(180deg, #070D18 0%, #0A1322 62%, #08101D 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.042) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 78%);
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(460px 460px at var(--mx, 72%) var(--my, 18%), rgba(96, 165, 250, 0.13), transparent 68%);
  transition: background 0.2s linear;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(52px, 7vw, 84px);
}

.hero__copy h1 {
  margin-top: 22px;
  font-size: clamp(2.35rem, 4.1vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.hero h1 .grad {
  color: #9DC0FF;
  background: linear-gradient(96deg, #A9C7FF 0%, #6FE3D4 72%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  max-width: 34em;
  margin-top: 24px;
  color: #B7C6DC;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__meta .icon {
  width: 15px;
  height: 15px;
  color: var(--cyan);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 28px 0 44px;
  border-top: 1px solid var(--line-dark);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: clamp(16px, 2.5vw, 32px);
}

.stat + .stat {
  border-left: 1px solid var(--line-dark);
}

.stat__num {
  color: #F2F7FF;
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat__num small {
  margin-left: 2px;
  font-size: 0.55em;
  font-weight: 600;
}

.stat__label {
  color: var(--text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

/* Hero 产品界面示意 */

.hero__visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 590px;
  perspective: 1400px;
}

.app-window {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  color: #122033;
  background: #F6F8FC;
  box-shadow:
    0 44px 100px rgba(2, 10, 26, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.09);
  transform: rotateY(-5deg) rotateX(2deg);
  transform-origin: center right;
  transition: transform 0.7s var(--ease);
}

.hero__visual:hover .app-window {
  transform: rotateY(0deg) rotateX(0deg);
}

.app-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 14px;
  background: #EDF2F9;
  border-bottom: 1px solid #DBE4F0;
}

.app-window__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.app-window__brand .icon {
  width: 17px;
  height: 17px;
  color: var(--blue);
  stroke-width: 1.9;
}

.app-window__brand em {
  padding: 2px 6px;
  border-radius: 999px;
  color: #64748B;
  background: #E2E8F4;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

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

.app-window__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #C7D3E3;
}

.app-window__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.app-panel {
  padding: 14px;
  border: 1px solid #E2E8F2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 35, 70, 0.04);
}

.app-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.app-panel__head span {
  color: #64748B;
  font-size: 0.66rem;
  font-weight: 500;
}

.app-field {
  margin-bottom: 10px;
}

.app-field > span {
  display: block;
  margin-bottom: 4px;
  color: #5B6B84;
  font-size: 0.66rem;
}

.app-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 30px;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid #DCE4F0;
  border-radius: 8px;
  background: #FBFCFE;
  color: #1B2A41;
  font-size: 0.7rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-browse {
  flex: none;
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--blue);
  background: #EAF0FF;
  font-size: 0.6rem;
}

.app-modes {
  display: flex;
  gap: 6px;
  margin: 12px 0;
}

.app-modes span {
  flex: 1;
  padding: 6px 4px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #5B6B84;
  background: #F1F5FB;
  font-size: 0.64rem;
  text-align: center;
}

.app-modes .is-active {
  border-color: #BBD2FF;
  color: #1746B8;
  background: #E8F0FF;
  font-weight: 600;
}

.app-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #5B6B84;
  font-size: 0.64rem;
}

.app-checks li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.app-checks i {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid #C9D5E6;
  border-radius: 4px;
}

.app-checks .is-checked i {
  border-color: var(--blue);
  background: var(--blue);
}

.app-checks .is-checked i::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 3px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.app-console {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #1E2C46;
  border-radius: 14px;
  background: #0B1526;
}

.app-console__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #8FA3C0;
  font-size: 0.7rem;
}

.app-status {
  padding: 2px 7px;
  border-radius: 999px;
  color: #6EE7B7;
  background: rgba(16, 185, 129, 0.12);
  font-size: 0.6rem;
}

.app-console__body {
  flex: 1;
  margin: 0;
  padding: 10px 12px;
  color: #93A7C4;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-all;
}

.log-line {
  display: block;
  opacity: 0;
  animation: line-in 0.5s var(--ease) forwards;
}

.log-line:nth-child(1) { animation-delay: 0.45s; }
.log-line:nth-child(2) { animation-delay: 0.8s; }
.log-line:nth-child(3) { animation-delay: 1.15s; }
.log-line:nth-child(4) { animation-delay: 1.5s; }

.log__time { color: #5F7392; }
.log__cmd { color: #8FB4FF; }
.log__ok { color: #6EE7B7; }

.app-progress {
  height: 4px;
  margin: 0 12px 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #16243C;
}

.app-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3B82F6, #4FD1C5);
  transform-origin: left;
  animation: progress-in 2.2s var(--ease) 0.4s both;
}

.app-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #D8E3F5;
  background: rgba(12, 23, 40, 0.9);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.75rem;
  animation: float 6s ease-in-out infinite alternate;
}

.app-chip .icon {
  width: 15px;
  height: 15px;
  color: #6EE7B7;
}

.app-chip--one {
  bottom: -18px;
  left: 24px;
}

.app-chip--two {
  right: 24px;
  bottom: -18px;
  animation-delay: -3s;
}

/* 5. 产品功能
   ========================================================================== */

.features {
  background:
    radial-gradient(560px 320px at 92% 0%, rgba(37, 99, 235, 0.06), transparent 70%),
    var(--light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 35, 70, 0.03);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #B9CFF1;
  box-shadow: 0 18px 42px rgba(15, 35, 70, 0.10);
}

.feature-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #DCE8FB;
  border-radius: 14px;
  color: var(--blue);
  background: linear-gradient(150deg, #EAF1FF, #F7FAFF);
}

.feature-card__icon .icon {
  width: 22px;
  height: 22px;
}

.feature-card__index {
  color: #9AAAC3;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.125rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.85;
}

.feature-card__tag {
  display: inline-flex;
  margin-top: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #EEF4FF;
  font-size: 0.75rem;
}

/* 6. 打包流程
   ========================================================================== */

.workflow {
  overflow: hidden;
  background:
    radial-gradient(640px 420px at 84% 18%, rgba(37, 99, 235, 0.14), transparent 70%),
    linear-gradient(180deg, #070D18, #0A1424);
}

.workflow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 10%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 10%, transparent 80%);
}

.workflow .container {
  position: relative;
}

.workflow__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.steps {
  display: grid;
  gap: 4px;
}

.step {
  position: relative;
  padding: 20px 0 20px 62px;
}

.step::before {
  content: "";
  position: absolute;
  top: 58px;
  bottom: -10px;
  left: 19px;
  width: 1px;
  background: linear-gradient(180deg, rgba(125, 168, 255, 0.4), rgba(125, 168, 255, 0.05));
}

.step:last-child::before {
  display: none;
}

.step__num {
  position: absolute;
  top: 18px;
  left: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(125, 168, 255, 0.35);
  border-radius: 50%;
  color: #9DC0FF;
  background: #0F1D34;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.step h3 {
  margin-bottom: 6px;
  font-size: 1.0625rem;
}

.step p {
  max-width: 34em;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.85;
}

.terminal {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: #0A1220;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #8FA3C0;
  background: #0E1A2C;
  font-size: 0.75rem;
}

.terminal__lights {
  display: flex;
  gap: 6px;
}

.terminal__lights span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2A3B56;
}

.terminal__lights span:first-child { background: #F87171; opacity: 0.75; }
.terminal__lights span:nth-child(2) { background: #FBBF24; opacity: 0.7; }
.terminal__lights span:last-child { background: #34D399; opacity: 0.7; }

.terminal__path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #C6D4E8;
  background: transparent;
  font-size: 0.72rem;
  transition: background-color 0.2s, border-color 0.2s;
}

.terminal__copy:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

.terminal__copy .icon {
  width: 14px;
  height: 14px;
}

.terminal pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #9CB0CB;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.95;
}

.t-line {
  display: block;
  white-space: pre;
}

.t-prompt { color: #6EE7B7; }
.t-time { color: #5B7092; }
.t-cmd { color: #93B4FF; }
.t-ok { color: #6EE7B7; }

.terminal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #8FA3C0;
  font-size: 0.75rem;
}

.terminal__ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6EE7B7;
}

.terminal__ok .icon {
  width: 14px;
  height: 14px;
}

/* 7. 用户案例
   ========================================================================== */

.cases {
  background:
    radial-gradient(520px 320px at 0% 30%, rgba(14, 165, 160, 0.05), transparent 70%),
    #F3F7FD;
}

.scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.scene-tags li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #41536E;
  background: #fff;
  font-size: 0.8125rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: #B9CFF1;
  box-shadow: var(--shadow-lg);
}

.case-card__metric {
  align-self: flex-start;
  padding: 5px 12px;
  border: 1px solid #C6F1E9;
  border-radius: 999px;
  color: #0F766E;
  background: #E9FBF7;
  font-size: 0.75rem;
  font-weight: 600;
}

.case-card blockquote {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.85;
}

.case-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #EDF2F9;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--blue);
  background: #E8F0FF;
  font-size: 0.9rem;
  font-weight: 700;
}

.case-card strong {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.case-card footer div > span {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* 8. 下载入口
   ========================================================================== */

.download {
  background:
    radial-gradient(760px 480px at 78% 20%, rgba(37, 99, 235, 0.18), transparent 68%),
    var(--dark);
}

.download__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(125, 168, 255, 0.22);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.20), rgba(9, 18, 33, 0.62) 58%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.38);
}

.download__card::before {
  content: "";
  position: absolute;
  top: -42%;
  right: -8%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(79, 209, 197, 0.18), transparent 66%);
}

.download__main {
  position: relative;
}

.download__main h2 {
  margin: 14px 0 18px;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  letter-spacing: -0.02em;
}

.download__main > p {
  max-width: 34em;
  color: #B9C8DE;
  font-size: 1rem;
  line-height: 1.85;
}

.download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 18px;
}

.download__note {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.release {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background: rgba(6, 13, 25, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.release__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9FB3CE;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.release__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.release__version {
  margin: 10px 0 20px;
  color: #F2F7FF;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.release dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
}

.release dt {
  color: var(--text-muted);
}

.release dd {
  margin: 0;
  color: #E3ECF9;
  text-align: right;
}

.release__hint {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  color: #9FB3CE;
  font-size: 0.75rem;
  line-height: 1.75;
}

.release__hint .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #6EE7B7;
}

/* 9. 关于我们
   ========================================================================== */

.about {
  background:
    radial-gradient(480px 360px at 100% 20%, rgba(244, 190, 114, 0.08), transparent 70%),
    var(--light);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.about__copy h2 {
  margin: 14px 0 22px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.02em;
}

.about__lead {
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.95;
}

.about__copy p + p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.9;
}

.about__brandline {
  margin-top: 30px;
  padding: 22px 24px;
  border-left: 3px solid #E8B263;
  border-radius: 0 14px 14px 0;
  color: var(--warm-ink);
  background: linear-gradient(90deg, #FFF9EE, #FBFCFE);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.values {
  display: grid;
  gap: 14px;
}

.value {
  display: flex;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.value:hover {
  transform: translateY(-3px);
  border-color: #D8C3A0;
  box-shadow: var(--shadow-sm);
}

.value > span {
  display: grid;
  place-items: center;
  flex: none;
  height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  color: #B45309;
  background: #FFF4E2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.value h3 {
  margin-bottom: 6px;
  font-size: 1.0625rem;
}

.value p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* 10. 联系我们
   ========================================================================== */

.contact {
  background:
    radial-gradient(640px 420px at 10% 30%, rgba(37, 99, 235, 0.12), transparent 70%),
    linear-gradient(180deg, #0A1424, #070D18);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.contact__info h2 {
  margin: 14px 0 18px;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  letter-spacing: -0.02em;
}

.contact__info > p {
  max-width: 32em;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.9;
}

.contact-list {
  display: grid;
  margin-top: 32px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(125, 168, 255, 0.18);
  border-radius: 12px;
  color: #9DC0FF;
  background: rgba(125, 168, 255, 0.10);
}

.contact-icon .icon {
  width: 18px;
  height: 18px;
}

.contact-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.contact-list a,
.contact-list div > span {
  color: #E3ECF9;
  font-size: 0.9375rem;
}

.contact-list a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.contact-list a:hover {
  color: #9DC0FF;
  text-decoration-color: currentColor;
}

.contact-form {
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.form__title {
  font-size: 1.375rem;
}

.form__lead {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 0.875rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  color: #2A3A52;
  font-size: 0.8125rem;
  font-weight: 600;
}

.req {
  color: #C2410C;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #D6E0EE;
  border-radius: 12px;
  color: var(--ink);
  background: #FAFCFF;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.form-field textarea {
  min-height: 128px;
  line-height: 1.7;
  resize: vertical;
}

.form-field select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #B9C8DD;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-2);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.form-field [aria-invalid="true"] {
  border-color: #DC2626;
  background-color: #FFF8F8;
}

.form-field [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}

.form-error {
  display: none;
  color: #B91C1C;
  font-size: 0.75rem;
  line-height: 1.6;
}

.form-error.is-visible {
  display: block;
}

.form-submit {
  width: 100%;
  margin-top: 20px;
}

.form-submit .icon {
  transition: transform 0.25s var(--ease);
}

.form-submit:hover .icon {
  transform: translateX(3px);
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  border: 1px solid #C6F1E9;
  color: #0F766E;
  background: #E9FBF7;
}

.form-status--error {
  border: 1px solid #FECACA;
  color: #B91C1C;
  background: #FEF2F2;
}

.form-note {
  margin-top: 12px;
  color: #64748B;
  font-size: 0.72rem;
  line-height: 1.7;
}

/* 11. 页脚 / 辅助控件
   ========================================================================== */

.site-footer {
  padding: clamp(56px, 7vw, 80px) 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #050A13;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer__brand p {
  max-width: 28em;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.9;
}

.footer__col h2 {
  margin-bottom: 16px;
  color: #8FA3C0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer__col ul {
  display: grid;
  gap: 10px;
}

.footer__col a {
  display: inline-block;
  padding: 2px 0;
  color: #C3D0E4;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 28px;
  color: #7C8EA8;
  font-size: 0.75rem;
  line-height: 1.7;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #DCE7F7;
  background: rgba(13, 26, 46, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.2s, transform 0.2s;
}

.to-top:hover {
  background: #16294A;
  transform: translateY(-2px);
}

.to-top .icon {
  width: 18px;
  height: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  padding: 12px 20px;
  border: 1px solid rgba(125, 168, 255, 0.3);
  border-radius: 999px;
  color: #E3ECF9;
  background: #0F1D34;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  font-size: 0.8125rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 12. 动效与响应式
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js .feature-grid > [data-reveal]:nth-child(2),
.js .case-grid > [data-reveal]:nth-child(2),
.js .values > [data-reveal]:nth-child(2) {
  transition-delay: 0.08s;
}

.js .feature-grid > [data-reveal]:nth-child(3),
.js .case-grid > [data-reveal]:nth-child(3),
.js .values > [data-reveal]:nth-child(3) {
  transition-delay: 0.16s;
}

.js .feature-grid > [data-reveal]:nth-child(5) {
  transition-delay: 0.06s;
}

.js .feature-grid > [data-reveal]:nth-child(6) {
  transition-delay: 0.12s;
}

@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes progress-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 40px;
  }

  .app-window {
    transform: none;
  }

  .site-nav a {
    padding: 0 10px;
    font-size: 0.875rem;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .container {
    width: min(var(--container), 100% - 40px);
  }

  .site-nav {
    margin-left: 0;
  }

  html.js .site-nav {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    right: 16px;
    left: 16px;
    display: none;
    max-height: calc(100vh - var(--header-h) - 32px);
    padding: 14px;
    overflow-y: auto;
    border: 1px solid var(--line-dark);
    border-radius: 20px;
    background: #0C1728;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  }

  html.js .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .site-nav a {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .header__inner {
    gap: 12px;
  }

  .header__actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: grid;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-bottom: 56px;
  }

  .hero__copy {
    max-width: 640px;
  }

  .hero__visual {
    justify-self: center;
    max-width: 640px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(odd) {
    padding-left: 0;
  }

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

  .workflow__grid,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .terminal {
    max-width: 720px;
  }

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

  .release {
    max-width: 520px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
}

@media (max-width: 700px) {
  .header__cta {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero__copy h1 {
    font-size: clamp(1.8rem, 8.6vw, 2.9rem);
  }

  .hero__lead {
    font-size: 0.9875rem;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero__visual {
    width: 100%;
  }

  .app-window__body {
    grid-template-columns: 1fr;
  }

  .app-console {
    min-height: 180px;
  }

  .app-chip {
    display: none;
  }

  .hero-stats {
    padding-bottom: 32px;
  }

  .feature-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .case-card {
    padding: 24px;
  }

  .workflow__grid {
    gap: 32px;
  }

  .terminal pre {
    padding: 18px;
    font-size: 0.75rem;
  }

  .terminal__path {
    display: none;
  }

  .download__card {
    border-radius: 24px;
  }

  .download__actions .btn {
    flex: 1 1 100%;
  }

  .about__brandline {
    padding: 18px 20px;
    font-size: 1rem;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }

  .toast {
    right: 16px;
    bottom: 20px;
    left: 16px;
    border-radius: 14px;
    text-align: center;
    transform: translateY(16px);
  }

  .toast.is-visible {
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .stat {
    padding-left: 0;
  }

  .stat + .stat {
    padding-top: 18px;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .release {
    padding: 22px;
  }

  .contact-form {
    padding: 22px;
  }

  .terminal__copy span {
    display: none;
  }

  .terminal__copy {
    width: 34px;
    justify-content: center;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .log-line {
    opacity: 1;
  }
}

/* ==========================================================================
   文档页 · 帮助文档 / 使用文档
   与官网共用设计变量：桌面侧栏目录 + 移动端单列
   ========================================================================== */

.doc-hero {
  position: relative;
  background: var(--dark);
  color: var(--text);
  padding: clamp(64px, 10vw, 112px) 0 clamp(40px, 6vw, 76px);
  overflow: hidden;
  isolation: isolate;
}
.doc-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 420px;
  background:
    radial-gradient(60% 100% at 18% 0%, rgba(37, 99, 235, 0.38), transparent 70%),
    radial-gradient(50% 90% at 82% 10%, rgba(79, 209, 197, 0.28), transparent 70%);
  z-index: -1;
  filter: blur(8px);
}
.doc-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-dark), transparent);
}
.doc-hero .container { position: relative; }

.doc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.doc-breadcrumb a {
  color: var(--blue-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.doc-breadcrumb a:hover { color: #fff; }
.doc-breadcrumb .sep { opacity: 0.6; }
.doc-breadcrumb [aria-current="page"] { color: var(--text); }

.doc-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  background: linear-gradient(96deg, #fff, #cfe0ff 55%, #9beae0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.doc-hero .doc-hero__sub {
  max-width: 720px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 26px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.doc-meta .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  color: var(--text);
}
.doc-meta .tag .icon { width: 14px; height: 14px; }
.doc-meta a { color: var(--blue-soft); text-decoration: none; }
.doc-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 文档主体布局 ---------- */
.doc-body { padding-top: 0 !important; padding-bottom: clamp(56px, 8vw, 96px) !important; }
.doc-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
}
.doc-toc__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.doc-toc nav > ol { list-style: none; padding: 0; margin: 0; }
.doc-toc nav > ol ol { list-style: none; padding-left: 14px; margin: 2px 0 0; }
.doc-toc li { margin: 2px 0; }
.doc-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.doc-toc a:hover { background: var(--light); color: var(--blue); }
.doc-toc a.is-active {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  border-left-color: var(--blue-2);
  font-weight: 600;
}

/* ---------- 正文排版 ---------- */
.doc-content {
  min-width: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.85;
}
.doc-content > *:first-child { margin-top: 0; }
.doc-content h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 1rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.doc-content h3 {
  font-size: 1.2rem;
  margin: 1.9rem 0 0.75rem;
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.doc-content h4 {
  font-size: 1.02rem;
  margin: 1.4rem 0 0.6rem;
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.doc-content p { margin: 0.9rem 0; }
.doc-content ul,
.doc-content ol { padding-left: 1.4rem; margin: 0.8rem 0; }
.doc-content li { margin: 0.35rem 0; }
.doc-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.18s var(--ease);
}
.doc-content a:hover { color: var(--blue-2); }
.doc-content strong { color: var(--ink); font-weight: 600; }
.doc-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

/* 代码块 */
.code-block {
  position: relative;
  margin: 1.1rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
}
.code-block__lang {
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
  z-index: 1;
}
.code-block pre {
  margin: 0;
  padding: 40px 16px 16px;
  overflow-x: auto;
  color: #E9F0FB;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.75;
  background: transparent;
}
.code-block code { font-family: inherit; background: none; padding: 0; color: inherit; }
.code-block__copy {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
  z-index: 1;
}
.code-block__copy:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.code-block__copy .icon { width: 13px; height: 13px; }

.doc-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  padding: 2px 6px;
  border-radius: 6px;
}

/* 表格 */
.doc-table-wrap { overflow-x: auto; margin: 1.1rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
}
.doc-table th,
.doc-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc-table th {
  background: var(--light);
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.doc-table tr:last-child td { border-bottom: none; }
.doc-table code { white-space: nowrap; }

/* 提示框 */
.callout {
  margin: 1.2rem 0;
  padding: 16px 18px 16px 48px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  position: relative;
  line-height: 1.8;
}
.callout::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}
.callout strong { display: block; margin-bottom: 2px; }
.callout--info { background: rgba(37, 99, 235, 0.05); border-color: rgba(37, 99, 235, 0.25); }
.callout--info::before { content: "i"; background: var(--blue-2); }
.callout--tip { background: rgba(79, 209, 197, 0.08); border-color: rgba(79, 209, 197, 0.35); }
.callout--tip::before { content: "✓"; background: #0EA5A0; }
.callout--warn { background: rgba(244, 190, 114, 0.1); border-color: rgba(244, 190, 114, 0.5); }
.callout--warn::before { content: "!"; background: #D98E2B; color: #fff; }
.callout--danger { background: rgba(220, 56, 72, 0.06); border-color: rgba(220, 56, 72, 0.3); }
.callout--danger::before { content: "×"; background: #DC3848; }

/* 分步骤 */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.2rem 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 44px;
  margin: 0;
}
.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 34px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2F6BFF, #1D4ED8);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.3);
}
.steps h4 { margin: 0 0 4px; font-size: 1.02rem; }
.steps p { margin: 0.25rem 0; }

/* 检查清单 / 状态标签 */
.chk-list { list-style: none; padding: 0; margin: 0.8rem 0; }
.chk-list li {
  position: relative;
  padding-left: 28px;
  margin: 0.5rem 0;
}
.chk-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0EA5A0;
  box-shadow: inset 0 0 0 3px #fff;
}
.chk-list li.is-err::before { background: #DC3848; }
.chk-list li.is-pending::before { background: #C6D3E5; }

.status-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.status-pill--ok { background: rgba(14, 165, 160, 0.12); color: #0A7A75; }
.status-pill--warn { background: rgba(217, 142, 43, 0.14); color: #9A6118; }
.status-pill--info { background: rgba(37, 99, 235, 0.1); color: var(--blue); }

/* FAQ 手风琴 */
.faq { margin: 1rem 0; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq details[open] {
  border-color: var(--blue-soft);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 18px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease), border-color 0.2s var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--blue);
}
.faq summary:hover { color: var(--blue); }
.faq .faq__body {
  padding: 0 18px 18px;
  color: var(--ink-soft);
  line-height: 1.85;
}
.faq .faq__body > *:first-child { margin-top: 0; }
.faq .faq__body > *:last-child { margin-bottom: 0; }

/* 界面说明卡片网格 */
.ui-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 1.2rem 0;
}
.ui-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.ui-card h4 {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.ui-card .ui-card__key {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 4px;
}
.ui-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* 文档底部返回 */
.doc-footer-cta {
  margin-top: 3rem;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; gap: 28px; }
  .doc-toc { position: static; order: -1; }
  .doc-toc nav > ol { columns: 2; column-gap: 20px; }
  .doc-toc nav > ol ol { display: none; }
}
@media (max-width: 560px) {
  .doc-toc nav > ol { columns: 1; }
  .doc-content h2 { font-size: 1.4rem; }
  .doc-content { font-size: 0.96rem; }
  .steps > li { padding-left: 40px; }
}
