/* ==========================================================================
   haoxingwang.top — 设计系统 v3
   原则：视觉必须有体积感和层次；动效服务于氛围，不做纯装饰的裸动效。
   ========================================================================== */

/* ---------- 1. 令牌 ---------- */
:root {
  --bg:        #080b11;
  --bg-soft:   #0d121a;
  --panel:     #111823;
  --panel-hi:  #16202d;
  --panel-top: #1a2534;
  --line:      #1c2735;
  --line-hi:   #2b3c50;

  --fg:        #eaf1f8;
  --fg-dim:    #93a3b8;
  --fg-faint:  #5f6e82;

  --accent:      #2f81f7;
  --accent-2:    #22d3ee;
  --accent-warm: #f0a020;
  --accent-soft: rgba(47, 129, 247, .14);

  --grad: linear-gradient(100deg, #2f81f7 0%, #22d3ee 100%);
  --grad-text: linear-gradient(96deg, #eaf1f8 0%, #a8c8ff 38%, #22d3ee 72%, #7dd3fc 100%);

  --font-display: "Space Grotesk", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body:    "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", "Sarasa Mono SC", ui-monospace, Menlo, monospace;

  --fs-hero:  clamp(2.6rem, 6.4vw, 4.9rem);
  --fs-h2:    clamp(1.7rem, 3.4vw, 2.5rem);
  --fs-h3:    clamp(1.08rem, 1.7vw, 1.32rem);
  --fs-body:  1rem;
  --fs-lead:  clamp(1rem, 1.4vw, 1.13rem);
  --fs-sm:    .875rem;
  --fs-xs:    .78rem;

  --lh-body: 1.85;
  --lh-tight: 1.22;

  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem;
  --s5: 3rem; --s6: 4rem; --s7: 6rem;
  --section-y: clamp(2.5rem, 5vh, 4rem);
  --wrap: 1140px;
  --radius: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --mx: 50%; --my: 8%;
}

/* ---------- 2. 重置 ---------- */
*, *::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(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3, h4 { line-height: var(--lh-tight); margin: 0; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. 背景层（氛围骨架） ---------- */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* 网格：给页面一个"底面"，让它不像虚空 */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 129, 247, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 129, 247, .05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 95% 65% at 50% 0%, #000 0%, transparent 78%);
          mask-image: radial-gradient(ellipse 95% 65% at 50% 0%, #000 0%, transparent 78%);
}

/* 环境光：左上蓝 + 右上青，制造体积 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(900px circle at var(--mx) var(--my), rgba(47, 129, 247, .13), transparent 62%),
    radial-gradient(ellipse 800px 420px at 78% -6%, rgba(34, 211, 238, .10), transparent 68%),
    radial-gradient(ellipse 700px 380px at 10% 2%, rgba(47, 129, 247, .10), transparent 66%);
  transition: background .3s linear;
}
@media (pointer: coarse) {
  body::before { background: radial-gradient(ellipse 800px 420px at 78% -6%, rgba(34,211,238,.09), transparent 68%),
                             radial-gradient(ellipse 700px 380px at 10% 2%, rgba(47,129,247,.09), transparent 66%); }
}

/* ---------- 4. 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s3);
  position: relative;
  z-index: 2;
}
main { position: relative; z-index: 2; }

/* 区块间距统一在这里：只留一份，避免多处叠加 */
section { padding-block: 0 var(--section-y); }
#about  { padding-block: 0 var(--section-y); }

/* ---------- 5. 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 11, 17, .66);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(8, 11, 17, .9);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s3);
  height: 72px;
  transition: height .3s var(--ease);
}
.nav.is-stuck .nav__inner { height: 60px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .005em;
  white-space: nowrap;
}
.brand__mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--grad);
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; color: #04121f;
  box-shadow: 0 0 22px rgba(47, 129, 247, .55), inset 0 1px 0 rgba(255,255,255,.35);
  flex: none;
}
.brand__dot { color: var(--accent-2); }

.nav__links { display: flex; gap: .2rem; margin-left: auto; }
.nav__links a {
  padding: .45rem .82rem;
  border-radius: 8px;
  font-size: var(--fs-sm);
  color: var(--fg-dim);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .46rem .95rem;
  border: 1px solid var(--line-hi);
  border-radius: 9px;
  font-size: var(--fs-sm);
  color: var(--fg);
  background: rgba(255,255,255,.025);
  transition: border-color .2s, background .2s, transform .2s;
}
.nav__cta:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

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

/* ---------- 6. Hero（有体积、有重心、有焦点） ---------- */
.hero {
  /* 不再强制满屏：内容多高就多高，避免数据条下方拖出一大段空白 */
  min-height: min(86vh, 820px);
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 9vh, 5.5rem) 0;
  position: relative;
}

/* 首屏底部的渐隐过渡，避免切成硬边 */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* 徽章 */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .38rem .88rem .38rem .7rem;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: rgba(17, 24, 35, .72);
  font-size: var(--fs-xs);
  color: var(--fg-dim);
  font-family: var(--font-mono);
  letter-spacing: .02em;
  margin-bottom: var(--s4);
  backdrop-filter: blur(8px);
}
.hero__pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .7);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* 主标题：大面积、带光晕的渐变 */
.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: 1.06;
  margin-bottom: var(--s3);
  max-width: 17ch;
}
.hero__title .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  /* 发光：用 drop-shadow 让渐变字有体积 */
  filter: drop-shadow(0 0 26px rgba(34, 211, 238, .35));
}

/* 打字行 */
.hero__type {
  font-family: var(--font-mono);
  font-size: clamp(.95rem, 1.65vw, 1.15rem);
  color: var(--accent-2);
  min-height: 1.9em;
  margin-bottom: var(--s3);
  display: flex;
  align-items: center;
  gap: .1rem;
  opacity: .92;
}
.hero__type .caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  background: var(--accent-2);
  margin-left: 3px;
  animation: blink 1.05s steps(1) infinite;
  flex: none;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.hero__lead {
  font-size: var(--fs-lead);
  color: var(--fg-dim);
  max-width: 52ch;
  line-height: 1.9;
  margin-bottom: var(--s5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.45rem;
  border-radius: 11px;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: transform .2s var(--ease), box-shadow .28s var(--ease), border-color .2s, background .2s;
  will-change: transform;
}
.btn--primary {
  background: var(--grad);
  color: #031320;
  font-weight: 600;
  box-shadow: 0 8px 30px -8px rgba(47, 129, 247, .8), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(34, 211, 238, .85), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn--ghost {
  border: 1px solid var(--line-hi);
  color: var(--fg);
  background: rgba(17, 24, 35, .6);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* 数据条：卡片化，给首屏底部重量 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 37, 52, .78) 0%, rgba(17, 24, 35, .55) 100%);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.stat {
  padding: var(--s3);
  border-right: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.stat:last-child { border-right: 0; }
.stat:hover { background: rgba(47, 129, 247, .07); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat__num em {
  font-style: normal;
  font-size: .58em;
  color: var(--fg-faint);
  margin-left: 2px;
  font-weight: 500;
}
.stat__label {
  font-size: var(--fs-xs);
  color: var(--fg-faint);
  letter-spacing: .03em;
  margin-top: .3rem;
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- 7. 区块标题 ---------- */
.sec-head { margin-bottom: var(--s5); max-width: 62ch; }
.sec-head__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--s2);
}
.sec-head__kicker::before { content: "// "; color: var(--fg-faint); }
.sec-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  margin-bottom: var(--s2);
  letter-spacing: -.02em;
}
.sec-head p { color: var(--fg-dim); font-size: var(--fs-lead); }

/* ---------- 8. 思考流（卡片化，有体积） ---------- */
.thoughts-sec { position: relative; }

.thoughts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: var(--s3);
}

.thought {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--panel-top) 0%, var(--panel) 46%, rgba(17,24,35,.72) 100%);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .35s var(--ease);
}
/* 顶部高光边：让卡片"立"起来 */
.thought::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 180, 255, .45), transparent);
  opacity: .5;
  transition: opacity .35s var(--ease);
}
/* hover 光晕 */
.thought::after {
  content: "";
  position: absolute;
  top: -70px; right: -70px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 129, 247, .22), transparent 70%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.thought:hover {
  border-color: var(--line-hi);
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -26px rgba(0, 0, 0, .9), 0 0 0 1px rgba(47,129,247,.18);
}
.thought:hover::before { opacity: 1; }
.thought:hover::after { opacity: 1; }

.thought__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.thought__date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.thought__tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .05em;
  color: var(--accent-2);
  border: 1px solid rgba(34, 211, 238, .26);
  background: rgba(34, 211, 238, .08);
  border-radius: 5px;
  padding: .1rem .46rem;
  margin-left: auto;
}

.thought__body { min-width: 0; }
.thought__text {
  font-size: clamp(.95rem, 1.25vw, 1.04rem);
  line-height: 1.85;
  color: var(--fg-dim);
  transition: color .3s var(--ease);
}
.thought__text strong { color: var(--fg); font-weight: 600; }
.thought:hover .thought__text strong { color: var(--accent-2); }

.thought__note {
  margin-top: .8rem;
  padding-top: .7rem;
  border-top: 1px dashed rgba(43, 60, 80, .9);
  font-size: var(--fs-sm);
  color: var(--fg-faint);
  line-height: 1.75;
}

/* 最新一条占两列，制造节奏，不平铺 */
@media (min-width: 900px) {
  .thought:first-child {
    grid-column: span 2;
    background:
      radial-gradient(900px circle at 0% 0%, rgba(47, 129, 247, .15), transparent 58%),
      linear-gradient(170deg, var(--panel-hi) 0%, var(--panel) 55%, rgba(17,24,35,.75) 100%);
    border-color: rgba(47, 129, 247, .3);
  }
  .thought:first-child .thought__text {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.8;
  }
}

/* ---------- 9. 作品矩阵 ---------- */
.works {
  display: grid;
  /* 3 列固定：minipay 独占整行，下面 5 个排 3+2，最后一行两卡自动均分 */
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  align-items: stretch;
}
/* 5 个卡排 3+2，最后一行只剩 1 张会留空：
   让第 5 张（最后一张）跨 2 列补满第二行 */
@media (min-width: 1080px) {
  .works > .work:last-child {
    grid-column: span 2;
  }
}
@media (max-width: 1080px) {
  .works { grid-template-columns: repeat(2, 1fr); }
  .works > .work:last-child { grid-column: span 1; }
}
@media (max-width: 700px) {
  .works { grid-template-columns: 1fr; }
}

.work {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4) var(--s3) var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--panel-top) 0%, var(--panel) 50%, rgba(17,24,35,.7) 100%);
  position: relative;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .35s var(--ease);
}
.work::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 180, 255, .4), transparent);
  opacity: .45;
}
.work:hover {
  border-color: var(--line-hi);
  transform: translateY(-5px);
  box-shadow: 0 26px 54px -28px rgba(0, 0, 0, .95), 0 0 0 1px rgba(47,129,247,.16);
}
.work::after {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 210px; height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 129, 247, .25), transparent 70%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.work:hover::after { opacity: 1; }

/* 头号作品：独占整行，横向布局（左文右标签），不再跨列 */
.work--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: var(--s3);
  align-items: end;
  padding: var(--s4) var(--s4) var(--s3);
  background:
    radial-gradient(1200px circle at 0% 0%, rgba(47, 129, 247, .17), transparent 52%),
    radial-gradient(900px circle at 100% 100%, rgba(34, 211, 238, .08), transparent 55%),
    linear-gradient(170deg, var(--panel-hi) 0%, var(--panel) 58%, rgba(17,24,35,.8) 100%);
  border-color: rgba(47, 129, 247, .36);
}
.work--feature::before {
  background: var(--grad);
  opacity: .8;
  height: 2px;
}
/* 左侧内容区 */
.work--feature .work__top,
.work--feature h3,
.work--feature .work__quote,
.work--feature .work__desc { grid-column: 1; }
.work--feature .tags {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: end;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}
@media (max-width: 820px) {
  .work--feature {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    padding: var(--s4) var(--s3) var(--s3);
  }
  .work--feature .tags {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }
}

.work__top {
  display: flex;
  align-items: center;
  gap: .6rem;
  justify-content: space-between;
}
.work__badge {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  color: var(--fg-dim);
  white-space: nowrap;
}
.work__badge--hot {
  border-color: rgba(240, 160, 32, .5);
  color: var(--accent-warm);
  background: rgba(240, 160, 32, .1);
}
.work__badge--live {
  border-color: rgba(52, 211, 153, .38);
  color: #34d399;
  background: rgba(52, 211, 153, .09);
}
.work__badge--soon {
  border-color: var(--line-hi);
  color: var(--fg-faint);
}

.work h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  display: flex;
  align-items: center;
  gap: .45rem;
  letter-spacing: -.01em;
}
.work--feature h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  margin: .5rem 0 .4rem;
}
.work h3 .ext { color: var(--fg-faint); transition: color .25s, transform .25s; }
.work:hover h3 .ext { color: var(--accent-2); transform: translate(2px, -2px); }

.work__desc {
  color: var(--fg-dim);
  font-size: var(--fs-sm);
  line-height: 1.8;
  flex: 1;
}
.work--feature .work__desc {
  font-size: .92rem;
  line-height: 1.75;
  max-width: 62ch;
  margin-top: .55rem;
}

.work__quote {
  color: var(--fg);
  font-size: var(--fs-sm);
  border-left: 2px solid var(--accent);
  padding-left: .8rem;
}
.work--feature .work__quote {
  font-size: clamp(.94rem, 1.3vw, 1.02rem);
  color: var(--accent-2);
  border-left-color: var(--accent-2);
  margin: 0;
}

.tags { display: flex; flex-wrap: wrap; gap: .42rem; margin-top: auto; padding-top: var(--s2); }
.tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-faint);
  padding: .18rem .55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, .28);
  transition: color .25s, border-color .25s;
}
.work:hover .tag { color: var(--fg-dim); border-color: var(--line-hi); }

.work--pending { cursor: default; }
.work--pending:hover { transform: translateY(-3px); }

/* 作品数为奇数时，最后一张跨两列补满，避免右侧空洞 */
@media (min-width: 900px) {
  .work:last-child:nth-child(even) { grid-column: span 2; }
}

/* ---------- 10. 支付模块入口 ---------- */
.pay-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s5);
  padding: clamp(2rem, 4.5vw, 3.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(900px circle at 0% 0%, rgba(47, 129, 247, .11), transparent 55%),
    linear-gradient(170deg, var(--panel-top) 0%, var(--panel) 60%, rgba(17,24,35,.7) 100%);
  position: relative;
  overflow: hidden;
}
.pay-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240, 160, 32, .5), transparent);
  opacity: .7;
}
.pay-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 220px;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(240, 160, 32, .07) 0 6px,
    transparent 6px 15px
  );
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000, transparent 72%);
          mask-image: radial-gradient(circle at 100% 0%, #000, transparent 72%);
  pointer-events: none;
}

.pay-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  color: var(--accent-warm);
  border: 1px solid rgba(240, 160, 32, .4);
  background: rgba(240, 160, 32, .09);
  border-radius: 999px;
  padding: .18rem .65rem;
  margin-bottom: var(--s2);
}
.pay-card h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  margin-bottom: var(--s2);
  letter-spacing: -.02em;
}
.pay-card p {
  color: var(--fg-dim);
  font-size: var(--fs-sm);
  line-height: 1.85;
  max-width: 46ch;
}
.pay-card__meta {
  margin-top: var(--s2);
  color: var(--fg-faint) !important;
  font-family: var(--font-mono);
  font-size: var(--fs-xs) !important;
}

.pay-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem var(--s2);
  align-content: center;
}
.pay-list li {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-size: var(--fs-sm);
  color: var(--fg-dim);
  padding: .42rem 0;
  border-bottom: 1px dashed rgba(28, 39, 53, .95);
}
.pay-list span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  min-width: 1.7em;
}

@media (max-width: 820px) {
  .pay-card { grid-template-columns: 1fr; gap: var(--s3); }
}

/* ---------- 11. 关于 / 联系 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s5);
  align-items: start;
}
@media (max-width: 840px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--s4); }
}

.about p { color: var(--fg-dim); margin-bottom: var(--s2); }
.about p strong { color: var(--fg); font-weight: 600; }
.about .lead-in { color: var(--fg); font-size: var(--fs-lead); margin-bottom: var(--s3); }

.timeline { margin-top: var(--s4); border-left: 1px solid var(--line); padding-left: var(--s3); }
.timeline li { position: relative; padding-bottom: var(--s3); font-size: var(--fs-sm); color: var(--fg-dim); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--s3) - 4px);
  top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 129, 247, .18), 0 0 12px rgba(47,129,247,.7);
}
.timeline b { color: var(--fg); font-weight: 600; }

.qr-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--panel-top) 0%, var(--panel) 60%, rgba(17,24,35,.7) 100%);
  padding: var(--s4) var(--s3);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.qr-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,180,255,.4), transparent);
}
.qr-box > h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin-bottom: .3rem;
}
.qr-box > p { font-size: var(--fs-sm); color: var(--fg-faint); margin-bottom: var(--s3); }

.qr-list { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; }
.qr { flex: 1 1 0; min-width: 128px; max-width: 168px; }

.qr__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 11px;
  background: #fff;
  padding: 8px;
  overflow: hidden;
}
.qr__frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
/* 占位：不做深色实心块（在深底上像加载失败的图），
   改成白底 + 浅灰二维码轮廓，视觉上天然"这就是个二维码位置" */
.qr__frame.is-empty {
  background: #f7f9fb;
  border: 0;
  display: grid;
  place-items: center;
  position: relative;
}
.qr__frame.is-empty img { display: none; }
/* 用角标画出二维码的三个定位点 + 中心点，暗示"二维码" */
.qr__frame.is-empty::before {
  content: "";
  position: absolute;
  inset: 18%;
  background:
    linear-gradient(#c9d4e0, #c9d4e0) left top / 30% 30% no-repeat,
    linear-gradient(#c9d4e0, #c9d4e0) right top / 30% 30% no-repeat,
    linear-gradient(#c9d4e0, #c9d4e0) left bottom / 30% 30% no-repeat,
    linear-gradient(#c9d4e0, #c9d4e0) center / 16% 16% no-repeat;
  opacity: .55;
}
.qr__frame.is-empty::after {
  content: "待补";
  position: absolute;
  bottom: 10%;
  font-size: .7rem;
  color: #8fa3ba;
  font-family: var(--font-mono);
  letter-spacing: .08em;
}
.qr__cap { font-size: var(--fs-xs); color: var(--fg-dim); margin-top: .6rem; }

/* ---------- 12. 页脚 ---------- */
footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s5) var(--s4);
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(13, 18, 26, .7));
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
.foot-grid h4 {
  font-size: var(--fs-sm);
  font-family: var(--font-display);
  margin-bottom: var(--s2);
  color: var(--fg);
  letter-spacing: .01em;
}
.foot-grid li { margin-bottom: .5rem; }
.foot-grid li a, .foot-grid li span { font-size: var(--fs-sm); color: var(--fg-faint); transition: color .2s; }
.foot-grid li a:hover { color: var(--accent-2); }

.foot-brand p { font-size: var(--fs-sm); color: var(--fg-faint); max-width: 34ch; margin-top: var(--s2); }

.foot-btm {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
  padding-top: var(--s3);
  font-size: var(--fs-xs);
  color: var(--fg-faint);
  font-family: var(--font-mono);
}
.foot-btm a:hover { color: var(--accent-2); }

/* ---------- 13. 滚动揭示 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.reveal.in .stagger > * { animation: rise .65s var(--ease) backwards; }
.stagger > :nth-child(1) { animation-delay: .05s; }
.stagger > :nth-child(2) { animation-delay: .13s; }
.stagger > :nth-child(3) { animation-delay: .21s; }
.stagger > :nth-child(4) { animation-delay: .29s; }
.stagger > :nth-child(5) { animation-delay: .37s; }
.stagger > :nth-child(6) { animation-delay: .45s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 14. 无障碍 / 降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__pulse { animation: none; }
}

@media (max-width: 480px) {
  :root { --section-y: 3.5rem; }
  .backdrop { background-size: 44px 44px; }
}

/* ==========================================================================
   15. 区块标题：一行式（标题左，动作右）
   ========================================================================== */
.sec-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
  max-width: none;
  flex-wrap: wrap;
}
.sec-head--row > div { max-width: 62ch; }

.sec-head__more {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--line-hi);
  font-size: var(--fs-sm);
  color: var(--fg-dim);
  white-space: nowrap;
  transition: color .25s var(--ease), border-color .25s var(--ease), gap .25s var(--ease);
}
.sec-head__more svg { transition: transform .25s var(--ease); }
.sec-head__more:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
  gap: .75rem;
}

/* ==========================================================================
   16. 知识库：8 个分类磁贴
   ========================================================================== */

.lib-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s2);
}

.lib-tile {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(168deg, var(--panel-top) 0%, var(--panel) 55%, rgba(17,24,35,.7) 100%);
  position: relative;
  overflow: hidden;
  transition: border-color .28s var(--ease), transform .28s var(--ease), box-shadow .32s var(--ease);
}
.lib-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,180,255,.42), transparent);
  opacity: .45;
  transition: opacity .3s var(--ease);
}
.lib-tile::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,129,247,.2), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.lib-tile:hover {
  border-color: var(--line-hi);
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -26px rgba(0,0,0,.95), 0 0 0 1px rgba(47,129,247,.15);
}
.lib-tile:hover::before { opacity: 1; }
.lib-tile:hover::after { opacity: 1; }

.lib-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .2rem;
}
.lib-tile__icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(47,129,247,.12);
  border: 1px solid rgba(47,129,247,.24);
  color: var(--accent-2);
  flex: none;
}
.lib-tile__icon svg { width: 17px; height: 17px; }

.lib-tile__n {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: color .25s;
}
.lib-tile:hover .lib-tile__n { color: var(--accent-2); }

.lib-tile h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.lib-tile p {
  font-size: var(--fs-xs);
  color: var(--fg-faint);
  line-height: 1.6;
  transition: color .25s;
}
.lib-tile:hover p { color: var(--fg-dim); }

/* 8 块统一单格：4×2 正好排满，不跨列不留洞。
   第一块只加一层很淡的底光，不做尺寸差异，避免"大小混搭乱"。 */
.lib-tile--lead {
  background:
    radial-gradient(520px circle at 0% 0%, rgba(47,129,247,.1), transparent 62%),
    linear-gradient(168deg, var(--panel-top) 0%, var(--panel) 55%, rgba(17,24,35,.7) 100%);
}
.lib-tile--lead::before {
  background: linear-gradient(90deg, transparent, rgba(120,180,255,.55), transparent);
  opacity: .6;
}

@media (max-width: 1080px) {
  .lib-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .lib-tile { padding: var(--s2); }
  .lib-tile h3 { font-size: .92rem; }
  .lib-tile--lead { padding: var(--s3); }
  .lib-tile--lead .lib-tile__n { font-size: 1.8rem; }
}
@media (max-width: 520px) {
  /* 手机上也保持两列，避免单列被拉得又宽又低 */
  .lib-grid { grid-template-columns: repeat(2, 1fr); gap: .55rem; }
  .lib-tile { padding: .85rem; }
  .lib-tile h3 { font-size: .85rem; }
  .lib-tile p { font-size: .7rem; }
  .lib-tile__n { font-size: 1.1rem; }
}

/* ==========================================================================
   17. 支付模块：6 个系列条目
   ========================================================================== */
.pay-soon {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-warm);
  border: 1px solid rgba(240,160,32,.4);
  background: rgba(240,160,32,.08);
  border-radius: 999px;
  padding: .28rem .8rem;
  white-space: nowrap;
  align-self: flex-start;
}
.pay-soon::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 0 0 rgba(240,160,32,.6);
  animation: pulse 2.6s infinite;
}

.pay-series {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
}

.pay-item {
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(168deg, rgba(26,37,52,.6) 0%, rgba(17,24,35,.52) 100%);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  position: relative;
  overflow: hidden;
  transition: border-color .28s var(--ease), transform .28s var(--ease);
}
.pay-item:hover {
  border-color: rgba(240,160,32,.32);
  transform: translateY(-2px);
}

/* 已上线、可点进去的系列 */
.pay-item--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.pay-item--link:hover {
  border-color: rgba(240,160,32,.55);
}
.pay-item--link .pay-item__bar i {
  background: var(--accent-warm);
}

.pay-item__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: .3rem;
}
.pay-item__num::after {
  content: "篇";
  font-size: .42em;
  color: var(--fg-faint);
  font-weight: 500;
}

.pay-item__body h3 {
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.pay-item__body p {
  font-size: var(--fs-xs);
  color: var(--fg-faint);
  line-height: 1.6;
  margin-top: .2rem;
}

/* 进度条：已经成稿，只是待改写 */
.pay-item__bar {
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  margin-top: auto;
}
.pay-item__bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-warm), rgba(240,160,32,.35));
  opacity: .7;
}

.pay-foot {
  margin-top: var(--s3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-faint);
  text-align: right;
}

@media (max-width: 900px) {
  .pay-series { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pay-series { grid-template-columns: 1fr; }
  .pay-foot { text-align: left; }
}
