/* ==========================================================================
   码迹官网 · 样式表
   设计口径：
   · 品牌色取自 App 主题（primary #4F46E5 / tertiary #0891B2），不是随手挑的渐变；
   · 正文中文优先（PingFang / HarmonyOS / 思源黑体），拉丁字母与数字走自托管 Outfit，
     数字与备案号走 JetBrains Mono —— 站点不引用任何外部字体 CDN，
     Google Fonts 在中国大陆直连不了，外链等于让访客等超时；
   · 密度按中文排版收紧：正文 15px/1.65，段间距 8–12px，区块间距 64px。
   ========================================================================== */

/* ---------- 变量 ---------- */
:root {
  --brand: #4f46e5;
  --brand-deep: #3730a3;
  --brand-soft: #eef0ff;
  --cyan: #0891b2;
  --cyan-soft: #e0f6fb;

  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f1f1f7;
  --ink: #14161f;
  --ink-2: #4a4b57;
  --ink-3: #7a7b87;
  --line: #e6e7ee;
  --line-soft: #efeff5;

  --hero-bg: #101333;
  --hero-ink: #eef0fb;
  --hero-ink-2: #a6abc9;
  --hero-line: rgba(255, 255, 255, 0.1);

  --font-sans: 'Outfit', 'PingFang SC', 'HarmonyOS Sans SC', 'Source Han Sans SC',
    'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --wrap: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(20, 22, 31, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(20, 22, 31, 0.06);
  --shadow-lg: 0 18px 48px -12px rgba(20, 22, 31, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.28;
  letter-spacing: -0.01em;
  font-weight: 600;
}

p {
  margin: 0 0 10px;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  left: 16px;
}

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

@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }
}

/* ---------- 通用零件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.eyebrow--on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #cfd3f5;
}

.eyebrow--on-dark .dot {
  background: #7dd3fc;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(79, 70, 229, 0.65);
}

.btn--primary:hover {
  background: var(--brand-deep);
  box-shadow: 0 10px 24px -8px rgba(79, 70, 229, 0.7);
}

.btn--ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: #cdd0e0;
  box-shadow: var(--shadow-md);
}

.btn--ghost-dark {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--hero-ink);
}

.btn--ghost-dark:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.btn[disabled],
.btn--soon {
  cursor: default;
  color: var(--ink-3);
  background: var(--surface-2);
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.btn--soon:hover {
  transform: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #d8dae8;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 14px;
}

.card__icon--cyan {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.card p {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0;
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding: 44px 0;
}

.section__head {
  max-width: 660px;
  margin-bottom: 36px;
}

.section__head h2 {
  font-size: 26px;
  margin: 14px 0 10px;
}

.section__head p {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- 顶栏 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 251, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav a:hover {
  color: var(--ink);
  background: rgba(20, 22, 31, 0.04);
  text-decoration: none;
}

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

.lang {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.lang a {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-3);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.lang a:hover {
  text-decoration: none;
  color: var(--ink);
}

.lang a[aria-current='true'] {
  background: var(--brand);
  color: #fff;
}

.header .btn {
  padding: 9px 18px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 11px 12px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header__actions .btn {
    display: none;
  }
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 76px 0 84px;
}

/* 品牌辉光 + 网格，取景框的暗示，不是随手的紫蓝渐变 */
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(46% 42% at 22% 18%, rgba(79, 70, 229, 0.5), transparent 70%),
    radial-gradient(38% 36% at 82% 8%, rgba(8, 145, 178, 0.36), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  margin: 18px 0 14px;
  color: #fff;
}

.hero__sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--hero-ink-2);
  max-width: 34em;
  margin-bottom: 26px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.hero .btn--primary {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.5);
}

.hero .btn--primary:hover {
  background: #f1f2ff;
}

/* 数字条 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--hero-line);
}

/* dd 的浏览器默认 margin-inline-start: 40px 会把数字条挤到换行，
   这里显式清掉 —— 中文标签一换行就断在词中间，很难看 */
.stats dt,
.stats dd {
  margin: 0;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat__label {
  font-size: 12.5px;
  color: var(--hero-ink-2);
  margin-top: 4px;
}

/* 手机模型 */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 268px;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(160deg, #262a52, #171a36);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone__screen {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
}

.phone__screen img {
  width: 100%;
}

.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 18px;
  border-radius: 999px;
  background: #12142c;
  z-index: 2;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: 12.5px;
  line-height: 1.35;
  max-width: 230px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.float-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.float-card span {
  color: var(--ink-3);
}

.float-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
}

.float-card--top {
  top: 9%;
  left: -70px;
}

.float-card--bottom {
  bottom: 9%;
  right: -58px;
}

@media (max-width: 980px) {
  .hero {
    padding: 52px 0 60px;
  }

  .hero__grid {
    /* minmax(0, 1fr) 而不是 1fr：1fr 的最小尺寸是 auto（内容最小宽度），
       窄屏上内容撑不下的元素会把这一列顶宽，整页横向溢出。
       12 栏布局的列间距也一样：11 条 40px 的间距在小屏上比容器还宽，
       所以下面这些网格在窄屏要整体塌成单列，而不是继续用 12 栏。 */
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .hero__visual {
    order: -1;
  }

  .float-card--top {
    left: 0;
  }

  .float-card--bottom {
    right: 0;
  }
}

@media (max-width: 520px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .float-card {
    display: none;
  }
}

/* ---------- 特性网格 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
}

.feature--wide {
  grid-column: span 7;
}

.feature--narrow {
  grid-column: span 5;
}

/* 收尾的那张卡横着占满一行：六张卡排完 7+5 / 4+4+4 之后，
   剩下一张 4 格会让最后一行右侧空一大块，横过来反而像个结论条。 */
.feature--banner {
  grid-column: span 12;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}

.feature--banner .card__icon {
  margin-bottom: 0;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.feature--banner h3 {
  margin-bottom: 4px;
}

@media (max-width: 980px) {
  .feature,
  .feature--wide,
  .feature--narrow {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .feature,
  .feature--wide,
  .feature--narrow {
    grid-column: auto;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .feature--banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.feature__list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.feature__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink-2);
}

.feature__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.5;
}

.tag--mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: -0.01em;
}

.tag--brand {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.tag--cyan {
  background: var(--cyan-soft);
  color: #0b6d84;
}

/* ---------- 码制 ---------- */
.engine {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.engine__chart {
  grid-column: span 5;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.engine__list {
  grid-column: span 7;
}

.bench {
  display: grid;
  grid-template-columns: 132px 1fr 46px;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
}

.bench__label {
  font-size: 13px;
  color: var(--ink-2);
}

.bench__track {
  height: 18px;
  border-radius: 6px;
  background: var(--surface-2);
  overflow: hidden;
}

.bench__fill {
  height: 100%;
  border-radius: 6px;
  background: var(--brand);
}

.bench__fill--cyan {
  background: var(--cyan);
}

.bench__val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  text-align: right;
}

.engine__note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-3);
}

.formats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.format {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.format--extra {
  border-color: #c9e9f2;
  background: #f2fbfd;
  color: #0b6d84;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--brand);
}

.legend i.alt {
  background: var(--cyan);
}

@media (max-width: 900px) {
  .engine__chart,
  .engine__list {
    grid-column: auto;
  }

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

/* ---------- 隐私 ---------- */
.privacy {
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.privacy::before {
  content: '';
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 90%;
  background: radial-gradient(45% 60% at 20% 70%, rgba(8, 145, 178, 0.28), transparent 70%);
  pointer-events: none;
}

.privacy .wrap {
  position: relative;
  z-index: 1;
}

.privacy__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.privacy__text {
  grid-column: span 5;
}

.privacy__text h2 {
  font-size: 26px;
  margin: 14px 0 12px;
  color: #fff;
}

.privacy__text > p {
  color: var(--hero-ink-2);
  font-size: 15px;
}

.privacy__points {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.privacy__points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #d6daf2;
}

.privacy__points svg {
  flex: none;
  margin-top: 3px;
  color: #7dd3fc;
}

.privacy__figure {
  grid-column: span 7;
}

.privacy__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(6px);
}

.privacy__card h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 16px;
}

.privacy__card svg {
  width: 100%;
  height: auto;
}

.privacy__disclaimer {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--hero-ink-2);
}

.privacy__disclaimer strong {
  color: #fff;
  font-weight: 500;
}

@media (max-width: 900px) {
  .privacy__text,
  .privacy__figure {
    grid-column: auto;
  }

  .privacy__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* ---------- 截图 ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 10px 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.shot:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.shot img {
  border-radius: 10px;
  background: var(--surface-2);
}

.shot figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
}

@media (max-width: 980px) {
  .shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* ---------- 下载 ---------- */
.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dl {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
}

.dl h3 {
  font-size: 16px;
}

.dl p {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
}

.dl .btn {
  width: 100%;
}

.dl__soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 12px;
}

@media (max-width: 860px) {
  .downloads {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 常见问题 ---------- */
.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.faq details[open] {
  border-color: #cfd2e6;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid var(--ink-3);
  border-bottom: 1.8px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq__body {
  padding: 0 18px 16px;
  color: var(--ink-2);
  font-size: 14px;
}

/* ---------- 主体信息 + 页脚 ---------- */
.footer {
  background: #0d1030;
  color: #a9aecb;
  padding: 56px 0 28px;
  font-size: 13.5px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .brand {
  color: #fff;
}

.footer .brand small {
  color: #8389ad;
}

.footer__about p {
  margin: 14px 0 0;
  max-width: 30em;
  color: #8f95b8;
}

.footer h4 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 500;
}

.footer__links {
  display: grid;
  gap: 9px;
}

.footer__links a {
  color: #a9aecb;
  width: fit-content;
}

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

.footer__contact {
  display: grid;
  gap: 9px;
}

.footer__contact code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #d7daf0;
  word-break: break-all;
}

/* 主体与备案：工信部要求「显著位置展示」，这里放在页脚独立区块 */
.legal {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px 32px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal__block {
  grid-column: span 4;
}

.legal__block--wide {
  grid-column: span 8;
}

.legal dt {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f7699;
  margin-bottom: 4px;
}

.legal dd {
  margin: 0 0 12px;
  color: #d7daf0;
}

.legal dd code {
  font-family: var(--font-mono);
  font-size: 13px;
}

.legal a {
  color: #a9aecb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.beian-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

.beian-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #d7daf0;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.beian-pill:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.beian-pill--pending {
  border-style: dashed;
  color: #8f95b8;
}

.beian-pill svg {
  opacity: 0.7;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  color: #6f7699;
  font-size: 12.5px;
}

.footer__bottom a {
  color: #8f95b8;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }

  .legal__block,
  .legal__block--wide {
    grid-column: auto;
  }

  /* 12 栏塌成单列：11 条 32px 的列间距在窄屏上比容器还宽，
     不塌的话整块会被撑出容器再被裁掉。 */
  .legal {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 入场动画（渐进增强：JS 不跑也不影响阅读） ----------
   入场前是透明的，所以必须由 JS 先在 <html> 上打一个 .js 标记，
   没有这个标记就一律不透明 —— 否则脚本被拦、加载失败或被爬虫跳过时，
   整页内容会是一片空白。 */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card:hover,
  .shot:hover {
    transform: none;
  }
}
