@charset "utf-8";
/* ===========================================================================
   成都红壶网络科技有限公司 · 官网样式
   设计体系：Swiss Modernism 2.0 × Trust & Authority
   约束：零外部依赖（不引用任何 CDN / 远程字体），保证国内与微信内置浏览器秒开
   =========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 深色层级 */
  --ink-980: #04070d;
  --ink-950: #070b14;
  --ink-900: #0a101d;
  --ink-850: #0d1526;
  --ink-800: #111b30;
  --ink-750: #16223b;
  --ink-700: #1d2c49;

  /* 浅色层级 */
  --paper: #f7f9fc;
  --paper-2: #eef2f8;
  --paper-3: #e4eaf3;

  /* 线条 */
  --line-dark: #1c2740;
  --line-dark-2: #253352;
  --line-light: #dde4ee;
  --line-light-2: #cbd5e3;

  /* 深底文字 */
  --on-dark-hi: #eef3fb;
  --on-dark: #c0cbdd;
  --on-dark-mid: #8b9ab2;
  --on-dark-lo: #62708a;

  /* 浅底文字 */
  --on-light-hi: #0a101d;
  --on-light: #3b4860;
  --on-light-mid: #5c6a82;
  --on-light-lo: #7c899f;

  /* 品牌色：朱砂（呼应「红壶」）+ 冷钢蓝 */
  --brand: #d23c30;
  --brand-lit: #ef5747;
  --brand-deep: #a52a20;
  --steel: #4a8cff;
  --steel-lit: #7fb0ff;

  /* 排版 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono",
    Menlo, Consolas, "Liberation Mono", monospace;

  /* 节奏 */
  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 68px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--on-dark);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--steel-lit);
  outline-offset: 3px;
  border-radius: 3px;
}

/* 备案号这类不该被拆开的标识 */
.nb {
  white-space: nowrap;
}

/* 数字等宽对齐，表格与统计不跳动 */
.num,
time,
.mono {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  letter-spacing: 0;
}

/* ---------- 3. 布局原子 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 132px);
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.section--paper {
  background: var(--paper);
  color: var(--on-light);
}

/* 浅底的第二档：让相邻的浅色章节之间有层次，不必强行插入深色带 */
.section--tint {
  background: var(--paper-2);
  color: var(--on-light);
}

.section--ink {
  background: var(--ink-900);
}

.section--ink-deep {
  background: var(--ink-980);
}

/* 同色相邻的两个章节：收紧接缝处的留白，读起来是一个区块的两小节 */
.section--tight-bottom {
  padding-bottom: clamp(40px, 5vw, 62px);
}

.section--tight-top {
  padding-top: clamp(40px, 5vw, 62px);
}

/* 章节标题组 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-lit);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section--paper .eyebrow,
.section--tint .eyebrow {
  color: var(--brand);
}

.h-lead {
  font-size: clamp(28px, 4.2vw, 46px);
  color: var(--on-dark-hi);
  max-width: 15em;
}

.section--paper .h-lead,
.section--tint .h-lead {
  color: var(--on-light-hi);
}

/* 行宽用 em 而不是 ch：ch 按西文 "0" 字宽计算，中文下会窄掉近一半 */
.p-lead {
  margin-top: 20px;
  max-width: 34em;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--on-dark-mid);
}

.section--paper .p-lead,
.section--tint .p-lead {
  color: var(--on-light-mid);
}

.head-row {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

@media (min-width: 900px) {
  .head-row--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn svg {
  flex: none;
  width: 17px;
  height: 17px;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset;
}

.btn--primary:hover {
  background: var(--brand-lit);
}

.btn--ghost {
  border-color: var(--line-dark-2);
  color: var(--on-dark-hi);
}

.btn--ghost:hover {
  border-color: var(--on-dark-mid);
  background: rgb(255 255 255 / 0.04);
}

.btn--onlight {
  border-color: var(--line-light-2);
  color: var(--on-light-hi);
}

.btn--onlight:hover {
  border-color: var(--on-light-lo);
  background: var(--paper-2);
}

/* ---------- 5. 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}

.nav.is-stuck {
  background: rgb(7 11 20 / 0.86);
  border-bottom-color: var(--line-dark);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

/* 品牌区可被压缩，语言键与汉堡键（.lang / .nav__burger 都是 flex:none）永不让位：
   窄屏下宁可品牌文字省略号，也不能把菜单按钮挤出视口 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 1 auto;
  min-width: 0;
  cursor: pointer;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand__txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand__cn,
.brand__en {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand__cn {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--on-dark-hi);
  letter-spacing: 0.02em;
}

.brand__en {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-lo);
}

.nav__links {
  display: none;
  margin-inline-start: auto;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  padding: 8px 11px;
  border-radius: 2px;
  font-size: 14.5px;
  color: var(--on-dark);
  cursor: pointer;
  transition: color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.nav__links a:hover {
  color: var(--on-dark-hi);
  background: rgb(255 255 255 / 0.05);
}

.nav__cta {
  display: none;
  flex: none;
  padding: 9px 18px;
  font-size: 14px;
}

/* 语言切换：纯链接跳转到另一语言的独立 URL。
   刻意不做基于 Accept-Language 的自动跳转——既保证爬虫能各自收录，
   也避免访问者遇到意料之外的跳转。 */
.lang {
  display: inline-flex;
  flex: none;
  align-items: stretch;
  margin-inline-start: auto;
  border: 1px solid var(--line-dark-2);
  border-radius: 2px;
  overflow: hidden;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.lang__now,
.lang__alt {
  padding: 5px 11px;
}

.lang__now {
  background: rgb(255 255 255 / 0.07);
  color: var(--on-dark-hi);
  font-weight: 600;
}

.lang__alt {
  border-inline-start: 1px solid var(--line-dark-2);
  color: var(--on-dark-mid);
  cursor: pointer;
  transition: color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.lang__alt:hover {
  background: rgb(255 255 255 / 0.05);
  color: #fff;
}

@media (min-width: 1200px) {
  .lang {
    margin-inline-start: 4px;
  }
}

/* 窄屏收成单键：当前语言不必再标一遍，页面本身就是答案 */
@media (max-width: 520px) {
  .nav__inner {
    gap: 12px;
  }

  .lang__now {
    display: none;
  }

  .lang__alt {
    border-inline-start: 0;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 9px;
  }

  .brand__en {
    display: none;
  }

  .brand__cn {
    font-size: 14px;
  }
}

.nav__burger {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark-2);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}

.nav__burger:hover {
  border-color: var(--on-dark-mid);
}

.nav__burger span {
  position: relative;
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--on-dark-hi);
  transition: transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  transition: transform var(--dur) var(--ease);
}

.nav__burger span::before {
  top: -5.5px;
}

.nav__burger span::after {
  top: 5.5px;
}

.nav__burger[aria-expanded="true"] span {
  background: transparent;
}

.nav__burger[aria-expanded="true"] span::before {
  background: var(--on-dark-hi);
  transform: translateY(5.5px) rotate(45deg);
}

.nav__burger[aria-expanded="true"] span::after {
  background: var(--on-dark-hi);
  transform: translateY(-5.5px) rotate(-45deg);
}

/* 0fr → 1fr 折叠：padding 必须放在更内层，否则收起时 padding 撑出一条可见色带 */
.drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto;
  z-index: 99;
  background: rgb(7 11 20 / 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  overflow: hidden;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 260ms var(--ease),
    visibility 260ms var(--ease);
}

.drawer[data-open="true"] {
  grid-template-rows: 1fr;
  visibility: visible;
}

.drawer__pad {
  min-height: 0;
  overflow: hidden;
}

.drawer__body {
  padding: 8px var(--gutter) 24px;
}

.drawer a {
  display: block;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 16px;
  color: var(--on-dark-hi);
  cursor: pointer;
}

.drawer a.drawer__lang {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--on-dark-mid);
}

.drawer a.drawer__lang svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--steel-lit);
}

/* 需要重申 display 与 padding：`.drawer a` 比 `.btn` 更具体，会把按钮压成 block */
.drawer a.btn {
  display: flex;
  width: 100%;
  margin-top: 20px;
  padding: 14px 24px;
  border-bottom: 0;
}

/* 断点定在 1200px：横向导航 + 语言键 + 主按钮在英文下约需 1000px，
   1024 这类宽度放不下，交给抽屉更稳（抽屉内也有语言入口） */
@media (min-width: 1200px) {
  .nav__links,
  .nav__cta {
    display: inline-flex;
  }

  .nav__burger,
  .drawer {
    display: none;
  }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 108px));
  padding-bottom: clamp(56px, 7vw, 96px);
  background: var(--ink-950);
  overflow: hidden;
  isolation: isolate;
}

/* 瑞士网格底纹 */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(
      to right,
      rgb(255 255 255 / 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 18% 0%, #000 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(
    120% 90% at 18% 0%,
    #000 5%,
    transparent 72%
  );
}

/* 冷暖双光晕 */
.hero__glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero__glow--warm {
  top: -180px;
  left: -80px;
  width: 560px;
  height: 460px;
  background: radial-gradient(circle, rgb(210 60 48 / 0.3), transparent 68%);
}

.hero__glow--cool {
  top: -60px;
  right: -160px;
  width: 620px;
  height: 520px;
  background: radial-gradient(circle, rgb(74 140 255 / 0.22), transparent 70%);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-dark-2);
  border-radius: 100px;
  background: rgb(255 255 255 / 0.03);
  font-size: 12.5px;
  color: var(--on-dark);
}

.hero__badge svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--brand-lit);
}

/* 文案整体作为一个 flex 项，否则文本节点与备案号会被当成两栏并排折行 */
@media (max-width: 560px) {
  .hero__badge {
    align-items: flex-start;
    border-radius: 7px;
  }

  .hero__badge svg {
    margin-top: 4px;
  }
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(36px, 6.6vw, 74px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 17em;
}

.hero h1 em {
  font-style: normal;
  position: relative;
  color: var(--brand-lit);
}

.hero__sub {
  margin-top: 26px;
  max-width: 30em;
  font-size: clamp(15.5px, 1.5vw, 18px);
  color: var(--on-dark-mid);
}

.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

/* Hero 统计条 */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(52px, 7vw, 84px);
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  overflow: hidden;
}

@media (min-width: 760px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat {
  padding: 26px 22px;
  background: var(--ink-900);
}

.stat__v {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}

.stat__v small {
  font-size: 0.44em;
  font-weight: 500;
  color: var(--on-dark-mid);
  font-family: var(--font);
}

/* 「20+」的加号跟数字同一视觉层级，不能压成脚注大小 */
.stat__plus {
  margin-inline-start: 1px;
  font-size: 0.62em;
  font-weight: 600;
  color: var(--brand-lit);
}

.stat__k {
  margin-top: 9px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--on-dark-lo);
}

/* ---------- 7. 主体资质带 ---------- */
.creds {
  border-block: 1px solid var(--line-dark);
  background: var(--ink-980);
  padding-block: 28px;
}

.creds__grid {
  display: grid;
  gap: 22px 32px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.cred__k {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-lo);
}

.cred__k svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.cred__v {
  margin-top: 7px;
  font-size: 15px;
  font-weight: 500;
  color: var(--on-dark-hi);
  word-break: break-word;
}

.cred__v a:hover {
  color: var(--brand-lit);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 8. 关于 ---------- */
.about {
  display: grid;
  gap: clamp(36px, 5vw, 68px);
}

@media (min-width: 940px) {
  .about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
    align-items: start;
  }
}

.prose > * + * {
  margin-top: 20px;
}

.prose p {
  font-size: 16px;
  color: var(--on-light);
}

.prose strong {
  font-weight: 600;
  color: var(--on-light-hi);
}

/* 事实清单 */
.facts {
  border: 1px solid var(--line-light);
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}

.facts__hd {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line-light);
  background: var(--paper-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-light-mid);
}

.facts__hd svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.facts dl {
  display: grid;
}

.facts dl > div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 14px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--paper-2);
  font-size: 14.5px;
}

.facts dl > div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--on-light-lo);
}

.facts dd {
  color: var(--on-light-hi);
  font-weight: 500;
  word-break: break-word;
}

.facts__ft {
  padding: 13px 22px;
  border-top: 1px solid var(--line-light);
  background: var(--paper-2);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--on-light-lo);
}

/* ---------- 9. 能力卡 ---------- */
.cards {
  display: grid;
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: 3px;
  overflow: hidden;
}

@media (min-width: 680px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  padding: clamp(26px, 3vw, 34px);
  background: #fff;
  transition: background-color var(--dur) var(--ease);
}

.card:hover {
  background: var(--paper);
}

.card__ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  background: var(--paper);
  color: var(--brand);
  transition: border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.card:hover .card__ico {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.card__ico svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  margin-top: 20px;
  font-size: 18.5px;
  color: var(--on-light-hi);
}

.card p {
  margin-top: 11px;
  font-size: 14.5px;
  color: var(--on-light-mid);
}

.card ul {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.card li {
  position: relative;
  padding-inline-start: 15px;
  font-size: 13.5px;
  color: var(--on-light);
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.65;
}

/* ---------- 9b. 实践领域 ---------- */
.fields {
  display: grid;
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: 3px;
  overflow: hidden;
}

@media (min-width: 760px) {
  .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1160px) {
  .fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.field {
  padding: clamp(24px, 2.6vw, 30px);
  background: #fff;
  transition: background-color var(--dur) var(--ease);
}

.field:hover {
  background: var(--paper);
}

/* 图标与标题同一行：三列布局下若图标独占一栏，正文只剩三十来个字符宽 */
.field__hd {
  display: flex;
  align-items: center;
  gap: 14px;
}

.field__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  background: var(--paper);
  color: var(--brand);
  transition: border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.field:hover .field__ico {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.field__ico svg {
  width: 20px;
  height: 20px;
}

.field h3 {
  font-size: 17px;
  color: var(--on-light-hi);
}

.field p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--on-light-mid);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.chips li {
  padding: 4px 10px;
  border: 1px solid var(--line-light-2);
  border-radius: 100px;
  background: var(--paper);
  font-size: 11.5px;
  color: var(--on-light-mid);
}

/* ---------- 9c. 技术栈（深色） ---------- */
.techs {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  overflow: hidden;
}

@media (min-width: 700px) {
  .techs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  .techs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tech {
  padding: 22px;
  background: var(--ink-850);
}

.tech__k {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-lo);
}

.tech__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.tech__list li {
  padding: 4px 10px;
  border: 1px solid var(--line-dark-2);
  border-radius: 2px;
  background: rgb(255 255 255 / 0.03);
  font-size: 12px;
  color: var(--on-dark);
}

/* ---------- 10. 内部环境（深色） ---------- */
.envs {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .envs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  .envs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.env {
  padding: 20px 22px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: var(--ink-850);
  transition: border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.env:hover {
  border-color: var(--line-dark-2);
  background: var(--ink-800);
}

.env__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.env__host {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--steel-lit);
  word-break: break-all;
}

.tag {
  flex: none;
  padding: 3px 9px;
  border: 1px solid var(--line-dark-2);
  border-radius: 100px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--on-dark-lo);
  white-space: nowrap;
}

.tag--internal {
  border-color: rgb(210 60 48 / 0.4);
  color: var(--brand-lit);
  background: rgb(210 60 48 / 0.08);
}

.env__desc {
  margin-top: 10px;
  font-size: 14px;
  color: var(--on-dark-mid);
}

.env__stack {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line-dark);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--on-dark-lo);
}

/* 声明块 */
.notice {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--brand);
  border-radius: 3px;
  background: linear-gradient(
    100deg,
    rgb(210 60 48 / 0.07),
    rgb(210 60 48 / 0) 62%
  );
}

@media (min-width: 820px) {
  .notice {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
}

.notice__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(210 60 48 / 0.4);
  border-radius: 3px;
  color: var(--brand-lit);
  flex: none;
}

.notice__ico svg {
  width: 21px;
  height: 21px;
}

.notice h3 {
  font-size: 18px;
  color: var(--on-dark-hi);
}

.notice ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.notice li {
  position: relative;
  padding-inline-start: 20px;
  font-size: 14.5px;
  color: var(--on-dark-mid);
}

.notice li svg {
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 13px;
  height: 13px;
  color: var(--brand-lit);
}

/* ---------- 11. 交付流程 ---------- */
.flow {
  display: grid;
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: 3px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.step {
  padding: 26px 22px 30px;
  background: #fff;
  transition: background-color var(--dur) var(--ease);
}

.step:hover {
  background: var(--paper);
}

.step__n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand);
}

.step h3 {
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--on-light-hi);
}

.step p {
  margin-top: 9px;
  font-size: 13.5px;
  color: var(--on-light-mid);
}

/* ---------- 12. 基础设施 ---------- */
.infra {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .infra {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  .infra {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.infra__item {
  padding: 24px 22px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: var(--ink-850);
  transition: border-color var(--dur) var(--ease);
}

.infra__item:hover {
  border-color: var(--line-dark-2);
}

.infra__item svg {
  width: 22px;
  height: 22px;
  color: var(--steel);
}

.infra__item h3 {
  margin-top: 18px;
  font-size: 16px;
  color: var(--on-dark-hi);
}

.infra__item p {
  margin-top: 9px;
  font-size: 13.5px;
  color: var(--on-dark-mid);
}

/* ---------- 13. 联系 ---------- */
.contact {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

.ways {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  overflow: hidden;
}

.way {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--ink-850);
  transition: background-color var(--dur) var(--ease);
}

.way:hover {
  background: var(--ink-800);
}

.way__ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line-dark-2);
  border-radius: 3px;
  color: var(--brand-lit);
}

.way__ico svg {
  width: 18px;
  height: 18px;
}

.way__k {
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-lo);
}

.way__v {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 500;
  color: var(--on-dark-hi);
  word-break: break-word;
}

.way__v a:hover {
  color: var(--brand-lit);
}

.way__note {
  margin-top: 4px;
  font-size: 13px;
  color: var(--on-dark-mid);
}

/* ---------- 14. 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line-dark);
  background: var(--ink-980);
  padding-block: clamp(44px, 6vw, 64px) 28px;
}

.foot__top {
  display: grid;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}

@media (min-width: 860px) {
  .foot__top {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.foot__blurb {
  margin-top: 18px;
  max-width: 25em;
  font-size: 14px;
  color: var(--on-dark-mid);
}

.foot h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-dark-lo);
}

.foot ul {
  margin-top: 16px;
  display: grid;
  gap: 11px;
}

.foot li a,
.foot li span {
  font-size: 14px;
  color: var(--on-dark);
}

.foot li a {
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.foot li a:hover {
  color: var(--brand-lit);
}

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--on-dark-lo);
}

.foot__bar a {
  color: var(--on-dark-mid);
  transition: color var(--dur) var(--ease);
}

.foot__bar a:hover {
  color: var(--brand-lit);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot__icp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.foot__icp svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.foot__lang {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-dark-2);
}

/* ---------- 15. 回到顶部 ---------- */
.totop {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark-2);
  border-radius: 3px;
  background: rgb(13 21 38 / 0.9);
  color: var(--on-dark-hi);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.totop.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.totop:hover {
  border-color: var(--brand);
  color: var(--brand-lit);
}

.totop svg {
  width: 18px;
  height: 18px;
}

/* ---------- 15b. 英文版排版 ----------
   行宽用 em 表达：1em 约等于 1 个汉字，但只装得下 2 个西文字符，
   所以中文下舒服的 max-width 到英文页会把每行压成半截，需要整体放宽。 */
html[lang="en"] .h-lead {
  max-width: 26em;
}

html[lang="en"] .p-lead {
  max-width: 46em;
}

html[lang="en"] .hero h1 {
  max-width: 19em;
  font-size: clamp(34px, 5.8vw, 64px);
}

html[lang="en"] .hero__sub {
  max-width: 44em;
}

html[lang="en"] .foot__blurb {
  max-width: 40em;
}

html[lang="en"] .facts dl > div {
  grid-template-columns: 12em minmax(0, 1fr);
}

/* 西文全大写小标题在大字距下会拖得过长，压一点更耐看 */
html[lang="en"] .cred__k,
html[lang="en"] .way__k,
html[lang="en"] .tech__k {
  letter-spacing: 0.1em;
}

html[lang="en"] .brand__en {
  letter-spacing: 0.14em;
}

/* ---------- 16. 进场动画 ----------
   仅在 <html class="js"> 时隐藏初始态：JS 不可用时内容必须完整可见 */
html.js .rise {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

html.js .rise.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html.js .rise {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 17. 无障碍与打印 ---------- */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -60px;
  left: var(--gutter);
  z-index: 200;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 3px 3px;
  font-size: 14px;
  transition: top var(--dur) var(--ease);
}

.skip:focus {
  top: 0;
}

@media print {
  .nav,
  .drawer,
  .totop,
  .hero__glow,
  .hero__grid {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
