/* =========================================================================
   Luckora 官网 · 共享样式系统
   设计取向：对齐 App 现行「A 包」视觉 —— 浅灰底黑白极简
   - 扁平浅灰底 (#F7F7F7) + 纯黑白灰阶 + 4px 直角 + 白卡无描边
   - 字体：Gilroy（全站正文/标题，自托管，同 App 打包字体）
     + Gilda Display（仪式化衬线，仅点睛词/仪式标题）
   - 唯一彩色：① 作品图本身 ② 7 色彩虹渐变（App「生成中」描边），全站只用在
     Hero 幸运图卡的旋转描边与 CTA 带顶部细线两处
   色值与 lucky_flutter 的 home_page.dart / wish_ui.dart 局部令牌保持一致。
   ========================================================================= */

/* ── 字体（与 App 打包 TTF 同源）───────────────────────────────────────── */
@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Gilda Display";
  src: url("../fonts/GildaDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* ── 设计令牌（源自 App 代码）─────────────────────────────────────────── */
:root {
  /* 灰阶（home_page.dart / wish_ui.dart / me_page.dart 局部令牌） */
  --bg: #f7f7f7;          /* 页面底 */
  --surface: #ffffff;     /* 卡面 */
  --ink: #000000;         /* 主标题 */
  --ink-strong: #222222;  /* 按钮 / 选中态 / 重文本 */
  --ink-body: #666666;    /* 说明文字 */
  --ink-hint: #999999;    /* 弱提示 / 占位 */
  --ink-cat: #99a1af;     /* 品类灰（产品卡） */
  --line: #cccccc;        /* 未选中描边 */
  --hairline: #e5e5e5;    /* 分隔细线 */
  --fill: #f0f0f0;        /* 图标底圆 / 进度槽 */
  --cta: #0d1117;         /* 主按钮底 */

  /* 彩虹渐变（App 生成态描边，采样自设计稿 6313:20872） */
  --rainbow: linear-gradient(
    90deg,
    #ff2e2e 0%,
    #ffa600 15%,
    #ffe100 30%,
    #3fff19 50%,
    #00ddff 70%,
    #7259ff 85%,
    #ff2fa1 100%
  );

  /* 圆角（App 只有 4 / 8 两档） */
  --r-sm: 4px;
  --r-md: 8px;

  /* 投影（App 横幅：#F0F0F0 blur4 offset4；悬停给一点柔和抬升） */
  --shadow-flat: 0 4px 4px var(--fill);
  --shadow-lift: 0 10px 28px rgba(0, 0, 0, 0.07);

  /* 排版 */
  --font-body: "Gilroy", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ritual: "Gilda Display", Georgia, serif;
  --wrap: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-body);
  /* App 大标题为 Regular 400（编辑感来源），小级别标题 500 */
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

::selection {
  background: var(--ink);
  color: #fff;
}

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

/* ── 容器 ─────────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 28px;
}

/* ── 顶部导航 ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 247, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand .mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  /* 与 App 启动图标一致：左上品红 → 右下蓝（作品色，非 UI 色） */
  background: linear-gradient(135deg, #e624ff, #59a6ff);
  color: #fff;
}

.brand .mark svg {
  width: 23px;
  height: 23px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-body);
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
}

/* ── 按钮（App 主 CTA：近黑实色 + 4px 直角）──────────────────────────── */
.btn {
  --btn-bg: var(--cta);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 15px 28px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.2s ease;
}

.btn:hover {
  background: var(--ink-strong);
  transform: translateY(-1px);
}

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

.btn svg {
  width: 16px;
  height: 16px;
}

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

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

.btn-light {
  --btn-bg: #fff;
  --btn-fg: var(--cta);
}

.btn-light:hover {
  background: var(--fill);
}

.btn-sm {
  padding: 11px 20px;
  font-size: 14px;
}

/* ── 通用区块 ─────────────────────────────────────────────────────────── */
section {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-hint);
}

/* 眉题前缀：16px 细黑线（对齐 App 的细线稿语言） */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--ink);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

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

.section-head.center .eyebrow {
  justify-content: center;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 18px;
}

.section-sub {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-body);
  line-height: 1.7;
}

/* 点睛词：仪式化衬线（App 引动幸运屏的 Gilda Display） */
.grad-text {
  font-family: var(--font-ritual);
  font-weight: 400;
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding-top: 72px;
  padding-bottom: 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  margin-top: 24px;
}

.hero h1 em {
  font-family: var(--font-ritual);
  font-style: normal;
  font-weight: 400;
}

.hero-lede {
  margin-top: 24px;
  max-width: 500px;
  font-size: 17px;
  color: var(--ink-body);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-hint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-note .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

/* 评分小卡 */
.rating {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 14px;
  background: var(--surface);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-flat);
}

.rating .stars {
  color: var(--ink);
  letter-spacing: 3px;
  font-size: 13px;
}

.rating small {
  color: var(--ink-body);
  font-size: 13px;
  font-weight: 500;
}

/* Hero 视觉：彩虹描边中的幸运图卡（签名元素，源自 App「生成中」横幅） */
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}

/* 旋转彩虹描边（@property 兜底：不支持时为静态彩虹环） */
@property --rb-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.rainbow-frame {
  position: relative;
  z-index: 2;
  padding: 2px;
  border-radius: var(--r-md);
  background: conic-gradient(
    from var(--rb-angle),
    #ff2e2e,
    #ffa600,
    #ffe100,
    #3fff19,
    #00ddff,
    #7259ff,
    #ff2fa1,
    #ff2e2e
  );
  animation: rb-spin 1.8s linear infinite;
}

@keyframes rb-spin {
  to {
    --rb-angle: 360deg;
  }
}

/* 幸运图卡：白卡 + 12px 内衬样机图 + 名称/品类（对齐 App 产品卡结构） */
.lucky-card {
  width: min(320px, 74vw);
  background: var(--surface);
  border-radius: calc(var(--r-md) - 2px);
  overflow: hidden;
}

.lucky-card .lc-img {
  padding: 12px 12px 0;
}

.lucky-card .lc-img img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.lucky-card .lc-meta {
  padding: 12px 14px 14px;
}

.lucky-card .lc-meta h4 {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.lucky-card .lc-meta p {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-cat);
}

/* 浮层徽章（对齐 App 横幅：白底 + #F0F0F0 圆 + 线稿图标） */
.badge-float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 9px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-flat);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-strong);
}

.badge-float .ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--ink);
}

.badge-float .ico svg {
  width: 14px;
  height: 14px;
}

.badge-float.b1 {
  top: 44px;
  left: 4px;
  animation: float 6s ease-in-out infinite 0.6s;
}

.badge-float.b2 {
  bottom: 58px;
  right: 0;
  animation: float 6.5s ease-in-out infinite 1.2s;
}

/* ── 信任条 ───────────────────────────────────────────────────────────── */
.trust {
  margin-top: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.trust-item b {
  font-weight: 400;
  font-size: 28px;
  color: var(--ink);
}

.trust-item span {
  font-size: 13px;
  color: var(--ink-hint);
}

/* ═══════════════════════════════════════════════════════════════════════
   How it works
   ═══════════════════════════════════════════════════════════════════════ */
.steps {
  padding: 100px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 34px 30px;
  background: var(--surface);
  border-radius: var(--r-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.step .num {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 13px;
  color: var(--ink-hint);
}

/* 线稿圆徽章（对齐 App WishUI.focusBadge：细线圆 + 黑线稿图标） */
.disc {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  color: var(--ink);
  margin-bottom: 24px;
}

.disc svg {
  width: 26px;
  height: 26px;
}

.step h3 {
  font-size: 21px;
  font-weight: 500;
}

.step p {
  margin-top: 10px;
  color: var(--ink-body);
  font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Wishes（心愿场景）
   ═══════════════════════════════════════════════════════════════════════ */
.wishes {
  padding: 100px 0;
}

.wish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.wish {
  padding: 30px 28px;
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: transform 0.3s ease, box-shadow 0.3s;
}

.wish:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

/* 主题徽章：48px 细线圆 + 线稿图标（同 App 选主题列表） */
.wish .tag {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  color: var(--ink);
  margin-bottom: 20px;
}

.wish .tag svg {
  width: 22px;
  height: 22px;
}

.wish h4 {
  font-size: 19px;
  font-weight: 500;
}

.wish p {
  margin-top: 8px;
  color: var(--ink-body);
  font-size: 14.5px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Feature split（为什么是 Luckora）
   ═══════════════════════════════════════════════════════════════════════ */
.feature {
  padding: 100px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.feature-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-sm);
  background: var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.feature-visual .art-rings {
  width: 86%;
  height: 86%;
}

.feature-list {
  display: grid;
  gap: 26px;
  margin-top: 36px;
}

.f-item {
  display: flex;
  gap: 18px;
}

.f-item .f-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.f-item .f-ico svg {
  width: 20px;
  height: 20px;
}

.f-item h4 {
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
}

.f-item p {
  margin-top: 5px;
  color: var(--ink-body);
  font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════════════════
   CTA band（近黑带 + 顶部彩虹细线呼应）
   ═══════════════════════════════════════════════════════════════════════ */
.cta-band {
  padding: 30px 0 110px;
}

.cta-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  padding: 72px 56px;
  text-align: center;
  color: #fff;
  background: var(--cta);
}

/* 顶部 2px 彩虹细线：App 生成态描边的静态回声 */
.cta-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rainbow);
}

.cta-inner h2 {
  color: #fff;
  font-family: var(--font-ritual);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 46px);
}

.cta-inner p {
  margin: 18px auto 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.cta-inner .hero-actions {
  justify-content: center;
}

.cta-inner .btn-ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-inner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ═══════════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════════ */
.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--ink-body);
  font-size: 14.5px;
  max-width: 320px;
}

.footer-brand .slogan {
  margin-top: 18px;
  font-family: var(--font-ritual);
  font-size: 15px;
  color: var(--ink-hint);
}

.footer-col h5 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-hint);
  margin: 0 0 18px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  padding: 7px 0;
  color: var(--ink-body);
  font-size: 14.5px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-hint);
}

.footer-bottom .made {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ═══════════════════════════════════════════════════════════════════════
   入场动画
   ═══════════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* hero 内分级延迟 */
.r-d1 { transition-delay: 0.05s; }
.r-d2 { transition-delay: 0.15s; }
.r-d3 { transition-delay: 0.25s; }
.r-d4 { transition-delay: 0.35s; }
.r-d5 { transition-delay: 0.45s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ═══════════════════════════════════════════════════════════════════════
   法务文档页（privacy / terms / support / safety）
   ═══════════════════════════════════════════════════════════════════════ */
.doc-hero {
  padding: 72px 0 44px;
  text-align: center;
}

.doc-hero .eyebrow {
  justify-content: center;
}

.doc-hero h1 {
  margin-top: 16px;
  font-size: clamp(36px, 5vw, 56px);
}

.doc-hero .updated {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-hint);
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding-bottom: 110px;
  align-items: start;
}

/* 侧栏目录 */
.doc-toc {
  position: sticky;
  top: 100px;
  font-size: 14px;
}

.doc-toc h6 {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-hint);
  font-weight: 500;
}

.doc-toc a {
  display: block;
  padding: 7px 14px;
  margin-left: -14px;
  color: var(--ink-body);
  border-left: 2px solid transparent;
  transition: color 0.2s, background 0.2s;
}

.doc-toc a:hover,
.doc-toc a.active {
  color: var(--ink);
  background: var(--fill);
}

.doc-toc a.active {
  border-left-color: var(--ink);
  font-weight: 500;
}

/* 正文卡 */
.doc-body {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 52px 56px;
}

.doc-body .lead {
  font-size: 17.5px;
  color: var(--ink-body);
  line-height: 1.75;
  padding-bottom: 30px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.doc-section {
  padding-top: 38px;
  scroll-margin-top: 100px;
}

.doc-section:first-of-type {
  padding-top: 8px;
}

.doc-section h2 {
  font-size: 23px;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.doc-section h2 .idx {
  font-size: 14px;
  color: var(--ink-hint);
  font-weight: 400;
}

.doc-section p {
  margin-top: 14px;
  color: var(--ink-body);
  font-size: 15.5px;
  line-height: 1.78;
}

.doc-section ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--ink-body);
  font-size: 15.5px;
  line-height: 1.78;
}

.doc-section li {
  margin-bottom: 8px;
}

.doc-section a {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.doc-section a:hover {
  border-bottom-color: var(--ink);
}

/* 支持页：联系卡 */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.contact-card {
  padding: 26px 24px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  border-color: var(--ink);
}

.contact-card .disc {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}

.contact-card .disc svg {
  width: 22px;
  height: 22px;
}

.contact-card h4 {
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
}

.contact-card p {
  margin-top: 8px;
  color: var(--ink-body);
  font-size: 14.5px;
}

.contact-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--ink);
  font-weight: 500;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}

.contact-card a:hover {
  border-bottom-color: var(--ink);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-body);
}

.back-link:hover {
  color: var(--ink);
}

.back-link svg {
  width: 15px;
  height: 15px;
}

/* ═══════════════════════════════════════════════════════════════════════
   响应式
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-stage {
    min-height: 440px;
    order: -1;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-visual {
    max-width: 440px;
    margin-inline: auto;
  }

  .steps-grid,
  .wish-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .doc-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .doc-toc {
    display: none;
  }

  .doc-body {
    padding: 38px 26px;
  }

  /* 移动端导航：收起链接，仅留 CTA */
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding-inline: 20px;
  }

  .steps-grid,
  .wish-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .trust-row {
    justify-content: flex-start;
    gap: 28px 36px;
  }

  .cta-inner {
    padding: 48px 26px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto;
  }

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