/* ============================================================================
   home.css — 首页中段信息架构（2026-11-18）

   为什么单独一个文件：blackhole.css（首屏黑洞 + 顶栏状态机 + 页脚骨架）、
   company.css、extra.css 都还有并行任务在改，不在里面叠规则。本文件在
   index.html 的 <head> 里排在 blackhole.css 之后加载，需要压过它的两条
   （页脚装饰字标）用同名选择器即可，不必 !important 堆叠。

   页面顺序（数字与 <section data-ia> 一一对应，验收脚本按它取值）：
     ① #compute  算力        权重最大：计量 / 结算 / 密钥 / 日志 / 牌价入口
     ② #city     这座城      地籍·市政·议事会·罚则·市民组
     ③ #social   社交        动态流·社区论坛·群聊·消息
     ④ #dev      开发者     网关·密钥额度·模型广场·用量账本 API·子域·文档
     ⑤ #ledger   同一套账    五环账链（首页的说服核心）
     ⑥ #firms    市民企业    一小段，低权重

   排版沿用站内已有手感：细线分隔、1180px 栏宽、绿点小标（.nl-eyebrow）、
   标题走 .nl-section-title。颜色一律走 --nl-* 派生令牌（tokens.css 真值源），
   所以深浅两套主题自动跟随，只有品牌收束区那一处写死两个色值：
   浅底 #20252b / 深底 #edf1f5 —— 与 --ld-text 同值，但这两个数字是
   对比度验收点，写成字面值便于核对。
   ========================================================================== */

/* ── 1. 段落骨架 ─────────────────────────────────────────────────────────── */
.nl-sec {
  position: relative;
  padding-block: clamp(56px, 8.5vh, 100px);
  padding-inline: clamp(20px, 6vw, 96px);
  background: var(--nl-bg);
  border-top: 1px solid var(--nl-line-soft);
}
/* ① 是全场最大的一块：给它更多的上下留白，第一屏之后立刻看到它 */
.nl-sec--lead {
  padding-block: clamp(72px, 11vh, 132px) clamp(64px, 10vh, 116px);
}
/* ⑥ 只占一小段，视觉权重压到最低 */
.nl-sec--quiet {
  padding-block: clamp(40px, 6vh, 68px);
}
.nl-sec__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* 段头：窄栏时纵向排，宽栏时「标题 | 导语」两栏对齐基线 */
.nl-sec__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vh, 22px);
  align-items: baseline;
}
@media (min-width: 900px) {
  .nl-sec__head {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    column-gap: clamp(32px, 5vw, 80px);
  }
}
.nl-sec__head-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.nl-sec__lead {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(0.96rem, 1.05vw, 1.06rem);
  line-height: 1.8;
  color: var(--nl-fg-soft);
}
.nl-sec__lead--sm {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--nl-fg-faint);
}
/* ⑥ 用的收低一档的大标题（同一套字体与字重，只压字号） */
.nl-title--sm {
  font-size: clamp(1.28rem, 2.1vw, 1.7rem);
  letter-spacing: -0.008em;
}
/* 段内小标题：三档都比 .nl-section-title 低一档 */
.nl-sec__sub {
  margin: clamp(36px, 5vh, 56px) 0 0;
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--nl-fg);
}
.nl-sec__note {
  margin: clamp(18px, 2.4vh, 26px) 0 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--nl-fg-faint);
}
.nl-sec__note a,
.nl-sec__lead a {
  color: var(--nl-accent-strong);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--nl-accent) 40%, transparent);
}
.nl-sec__note a:hover,
.nl-sec__lead a:hover {
  border-bottom-color: var(--nl-accent);
}

/* ── 2. 数字带（① 的四个量级）──────────────────────────────────────────── */
.nl-nums {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(30px, 4.5vh, 48px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--nl-line-soft);
  border-block: 1px solid var(--nl-line);
}
@media (min-width: 900px) {
  .nl-nums {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.nl-num {
  padding: clamp(16px, 2.2vw, 26px) clamp(14px, 1.8vw, 22px);
  background: var(--nl-bg);
}
.nl-num__v {
  margin: 0;
  font-size: clamp(1.5rem, 2.9vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--nl-fg);
}
.nl-num__k {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--nl-fg-faint);
}

/* ── 3. 条目表：左关键短语、右解释，只有横线 ─────────────────────────────── */
.nl-list {
  margin: clamp(18px, 2.6vh, 30px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--nl-line);
}
.nl-list__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: clamp(16px, 2vw, 22px) 0;
  border-bottom: 1px solid var(--nl-line-soft);
}
@media (min-width: 820px) {
  .nl-list__item {
    grid-template-columns: 12.5rem minmax(0, 1fr);
    column-gap: clamp(24px, 4vw, 56px);
    align-items: baseline;
  }
}
.nl-list__k {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--nl-fg);
}
.nl-list__v {
  margin: 0;
  max-width: 66ch;
  font-size: clamp(0.93rem, 1vw, 1rem);
  line-height: 1.78;
  color: var(--nl-fg-soft);
}
.nl-list__v b,
.nl-list__v strong {
  font-weight: 600;
  color: var(--nl-fg);
}
.nl-list__v code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--nl-line-soft);
  border-radius: var(--nl-radius);
  background: var(--nl-card);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.88em;
  color: var(--nl-fg);
}
.nl-list__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 2px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nl-accent-strong);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid color-mix(in srgb, var(--nl-accent) 34%, transparent);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nl-list__link:hover {
  color: var(--nl-accent-hover);
  border-bottom-color: var(--nl-accent);
}

/* ── 4. 账单示意：左「花掉的」右「剩下的」，一格一句，不给假价格 ──────────── */
.nl-bill {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: clamp(22px, 3vh, 32px) 0 0;
  background: var(--nl-line);
  border: 1px solid var(--nl-line);
}
@media (min-width: 760px) {
  .nl-bill {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.nl-bill__cell {
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--nl-card);
}
.nl-bill__h {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--nl-fg-faint);
}
.nl-bill__v {
  margin: 0.7rem 0 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--nl-fg-soft);
}
/* 两行账的示意：等宽数字，右对齐，只有一条基线 */
.nl-bill__rows {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--nl-line-soft);
}
.nl-bill__rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--nl-line-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.84rem;
  color: var(--nl-fg-faint);
}
.nl-bill__rows li span:last-child {
  color: var(--nl-fg);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── 5. 账链（⑤）：五步一条，序号做大，靠缩进读成一条链 ─────────────────── */
.nl-chainlist {
  margin: clamp(30px, 4.5vh, 46px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: nlchain;
}
.nl-chainlist__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-left: 2.6rem;
  padding: clamp(16px, 2vw, 22px) 0 clamp(16px, 2vw, 22px) 0;
  border-bottom: 1px solid var(--nl-line-soft);
  counter-increment: nlchain;
}
.nl-chainlist__item::before {
  content: counter(nlchain, decimal-leading-zero);
  position: absolute;
  left: -2.6rem;
  top: clamp(18px, 2.1vw, 24px);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--nl-accent);
}
.nl-chainlist__item:first-child {
  border-top: 1px solid var(--nl-line);
}
/* 一条细竖线把五步连起来，只到最后一个条目的顶部为止 */
.nl-chainlist {
  position: relative;
}
.nl-chainlist::before {
  content: "";
  position: absolute;
  left: -1.94rem;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 1px;
  background: var(--nl-line-soft);
}
.nl-chainlist__k {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--nl-fg);
}
.nl-chainlist__v {
  margin: 0;
  max-width: 66ch;
  font-size: clamp(0.93rem, 1vw, 1rem);
  line-height: 1.78;
  color: var(--nl-fg-soft);
}
/* ⑤ 的收尾：把五步压成一句，字号抬一档，不加框 */
.nl-wrap {
  margin: clamp(26px, 4vh, 40px) 0 0;
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: -0.005em;
  color: var(--nl-fg);
}
.nl-wrap b {
  font-weight: 600;
  color: var(--nl-fg);
  border-bottom: 1px solid var(--nl-accent);
}

/* ── 6. 段尾入口 ─────────────────────────────────────────────────────────── */
.nl-sec__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: clamp(30px, 4.5vh, 46px) 0 0;
}

/* ── 7. 品牌收束区（页面最底部，接在 footer 之后）─────────────────────────
   要求只有两条：小写 wl.ax、字号 ≥ 40px、对比度 ≥ 4.5:1。
   实测（WCAG 相对亮度）：#20252b on #f5f7f8 = 14.36:1；#edf1f5 on #101116 = 16.61:1。
   页脚里那块自描边的渐变字标（.nl-foot__big）是装饰、不承担可读性，这里关掉，
   避免页面上出现两个截然不同的 wl.ax。 */
.nl-end {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: clamp(56px, 9vh, 104px) clamp(20px, 6vw, 96px) clamp(48px, 8vh, 88px);
  background: var(--nl-bg);
  border-top: 1px solid var(--nl-line-soft);
  text-align: center;
}
.nl-end__word {
  margin: 0;
  /* 兜底写死 64px（≥40px 的下限），再用 clamp 放大到桌面尺寸 */
  font-size: 64px;
  font-size: clamp(56px, 12.5vw, 152px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: #20252b;
}
.nl-end__line {
  margin: clamp(12px, 2vh, 20px) 0 0;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--nl-fg-faint);
}
html.light .nl-end__word,
html[data-theme="light"] .nl-end__word {
  color: #20252b;
}
html.dark .nl-end__word,
html[data-theme="dark"] .nl-end__word {
  color: #edf1f5;
}
/* 页脚装饰字标让位给上面那块真实文字 */
.nl-foot__big {
  display: none;
}

/* ── 8. 窄屏收口 ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nl-num__v {
    font-size: 1.35rem;
  }
  .nl-list__v,
  .nl-chainlist__v {
    font-size: 0.92rem;
    line-height: 1.72;
  }
  .nl-chainlist__item {
    margin-left: 1.9rem;
  }
  .nl-chainlist__item::before {
    left: -1.9rem;
  }
  .nl-chainlist::before {
    left: -1.24rem;
  }
  .nl-end__line {
    letter-spacing: 0.14em;
  }
}

/* 减少动效偏好下本文件没有动画，唯一需要照顾的是 transition */
@media (prefers-reduced-motion: reduce) {
  .nl-list__link {
    transition: none;
  }
}

/* 2026-11-18 底部品牌：恢复字标观感（小写 wl.ax 的 SVG 字标，两侧渐隐），并挪到页脚之上那个区块里。 */
.nl-end { text-align: center; padding: var(--sp-16, 64px) 0 var(--sp-8, 32px); }
.nl-end__mark { display: flex; justify-content: center; margin: 0 auto var(--sp-6, 24px); }
.nl-end__mark img {
  width: clamp(260px, 42vw, 600px); height: auto; display: block;
  -webkit-mask-image: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,1) 7%, rgba(255,255,255,1) 93%, rgba(255,255,255,0) 100%);
  mask-image: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,1) 7%, rgba(255,255,255,1) 93%, rgba(255,255,255,0) 100%);
}
html[data-theme="dark"] .nl-end__mark img { filter: invert(1) brightness(1.06); }
html[data-theme="light"] .nl-end__mark img { filter: none; }
.nl-end__word { display: none; }

/* 段间桥句：交代「这一段给下一段提供了什么」，让四段读起来是一条论证而不是四块并列。 */
.nl-link {
  max-width: 62ch; margin: var(--sp-8, 32px) auto 0;
  padding-left: var(--sp-4, 16px);
  border-left: 2px solid currentColor;
  font-size: var(--fs-15, 15px); line-height: 1.75; opacity: 0.72;
}

/* 字标改成内联 SVG（fill=currentColor）：颜色随主题，不依赖 filter/mask。 */
.nl-end__mark { display: flex; justify-content: center; margin: 0 auto var(--sp-6, 24px); color: #edf1f5; }
.nl-end__mark svg { width: clamp(240px, 40vw, 560px); height: auto; display: block; }
.nl-end__mark img { display: none; }
html[data-theme="light"] .nl-end__mark,
html.light .nl-end__mark { color: #20252b; }
.nl-end__line { color: #8a8f98; letter-spacing: 0.08em; }
html[data-theme="light"] .nl-end__line,
html.light .nl-end__line { color: #5a646d; }

/* FIX-WL-WORDMARK (2026-11-18)：按 newapi 页脚的做法 —— 只描边不填色的巨型字标，文本小写 wl.ax。
   第一层细描边打底，第二层渐变描边靠径向 mask 做「滚到位才亮」的揭示效果。 */
.nl-end { padding-bottom: clamp(24px, 6vh, 72px); }
.nl-end__mark { display: flex; justify-content: center; align-items: center; margin: 0 auto clamp(10px, 2vh, 20px); color: inherit; }
.nl-end__mark svg { width: clamp(300px, 64vw, 1080px); height: auto; display: block; overflow: visible; }
.nl-end__mark text {
  font-family: Helvetica, Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 62px;
  font-weight: 700;
  letter-spacing: -1.5px;
  font-kerning: normal;
  fill: transparent;
}
.nl-end__mark .nl-wm__base { stroke: currentColor; opacity: .40; }
.nl-end__mark .nl-wm__lit  { stroke-width: 0.7; opacity: 1; }
html[data-theme="dark"] .nl-end__mark { color: #edf1f5; }
html[data-theme="light"] .nl-end__mark,
html.light .nl-end__mark { color: #20252b; }
@media (max-width: 640px) {
  .nl-end__mark text { font-size: 58px; letter-spacing: -1px; }
  .nl-end__mark svg { width: min(88vw, 460px); }
}
