/*
 * 宣传页、服务条款、隐私政策的样式（2026-11-24 改版，设计稿"宣传页"）。和会员中心同一套颜色。
 * 页面的内容安全策略只放行这一个样式文件：这里不能引用图片、字体等任何别的文件。
 */

:root {
  --accent: #4f46e5;
  --deep: #3730a3;
  --soft: #eef2ff;
  --mid: #c7d2fe;
  --text: #0f172a;
  --text-2: #334155;
  --text-3: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --bg-soft: #f8fafc;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
}

main {
  flex: 1;
}

a {
  color: var(--deep);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 紫色行动区里的按钮：焦点框用白色，不然和底色分不出来。 */
.cta a:focus-visible {
  outline-color: #fff;
}

/* 品牌：标志加站点名称 */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand__logo {
  flex: none;
}

/* 标志（2026-11-24 定名"码上装"）：二维码的三个定位框加一个向下的箭头，和会员中心、后台用的是同一个图。 */
.brand__bg {
  fill: var(--accent);
}

.brand__lines {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__dots {
  fill: #fff;
}

.brand__name {
  overflow-wrap: anywhere;
}

/* 页头：往下翻时停在顶上 */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 44px;
  min-height: 68px;
}

.top__nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.top__nav a {
  color: var(--text-3);
  text-decoration: none;
  white-space: nowrap;
}

.top__nav a:hover {
  color: var(--text);
}

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

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.btn--primary:hover {
  background: #4338ca;
  color: #fff;
}

.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: #cbd5e1;
  background: var(--bg-soft);
  color: var(--text);
}

.btn--small {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: none;
}

.btn--link {
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-2);
}

.btn--link:hover {
  color: var(--text);
}

.btn--white {
  background: #fff;
  color: var(--deep);
}

.btn--white:hover {
  background: var(--soft);
  color: var(--deep);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* 打勾的列表 */

.tick {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 首屏 */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(700px 420px at 85% 20%, #e0e7ff 0%, rgba(224, 231, 255, 0) 70%),
    radial-gradient(520px 360px at 5% 90%, #f0fdfa 0%, rgba(240, 253, 250, 0) 70%),
    #fff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 14px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  color: var(--text-2);
  font-size: 13.5px;
}

.eyebrow b {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--deep);
  font-size: 12.5px;
  font-weight: 600;
}

.hero__title {
  margin-top: 22px;
  font-size: 54px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__intro {
  margin-top: 20px;
  max-width: 520px;
  font-size: 18px;
  color: var(--text-3);
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.ticks {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14.5px;
  color: var(--text-2);
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticks .tick {
  color: #16a34a;
}

/* 首屏右边的示意：手机里的下载页，旁边浮着几张小卡片 */

.stage {
  position: relative;
  height: 560px;
}

.stage span {
  display: block;
}

.phone {
  position: absolute;
  left: 50%;
  top: 0;
  width: 290px;
  height: 560px;
  margin-left: -145px;
  padding: 12px;
  border-radius: 44px;
  background: #0f172a;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
}

.stage .phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 110px;
  height: 26px;
  margin-left: -55px;
  border-radius: 0 0 16px 16px;
  background: #0f172a;
}

.phone__screen {
  height: 100%;
  border-radius: 34px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 42px 22px 22px;
  text-align: center;
}

.stage .app-ico {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 84px;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.3);
}

.phone__name {
  margin-top: 16px;
  font-size: 21px;
  font-weight: 700;
}

.phone__meta {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.stage .phone__btn {
  margin-top: 22px;
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  line-height: 46px;
}

.phone__hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.phone__desc {
  margin-top: 22px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  text-align: left;
  font-size: 12.5px;
  color: var(--text-3);
}

.phone__desc b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 13px;
}

.stage .shots {
  margin-top: 14px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.shots span {
  height: 110px;
  border-radius: 10px;
  background: linear-gradient(180deg, #eef2ff, #f8fafc);
}

.float {
  position: absolute;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.float--stat {
  right: 0;
  top: 58px;
  width: 200px;
}

.float__label {
  font-size: 12.5px;
  color: var(--muted);
}

.float__value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
}

.float__value small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.stage .spark {
  margin-top: 8px;
  height: 38px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.spark span {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: var(--mid);
}

.spark .s1 {
  height: 18px;
}

.spark .s2 {
  height: 23px;
}

.spark .s3 {
  height: 20px;
}

.spark .s4 {
  height: 27px;
}

.spark .s5 {
  height: 26px;
}

.spark .s6 {
  height: 31px;
}

.spark .s7 {
  height: 38px;
  background: var(--accent);
}

.float--link {
  right: 6px;
  bottom: 120px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;
  font-size: 13px;
}

.float--link b {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--deep);
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 12.5px;
}

.float--qr {
  left: 0;
  bottom: 46px;
  width: 170px;
  text-align: center;
}

.stage .qr {
  margin: 0 auto;
  width: 118px;
  height: 118px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 2px;
}

.qr span {
  border-radius: 1.5px;
}

.qr .on {
  background: #0f172a;
}

.float__caption {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
}

/* 每一段 */

.sec {
  padding: 96px 0;
}

.sec--alt {
  background: var(--bg-soft);
}

.sec__head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.sec__title {
  margin-top: 8px;
  font-size: 36px;
  line-height: 1.3;
  font-weight: 800;
}

.sec__desc {
  margin-top: 12px;
  font-size: 17px;
  color: var(--text-3);
}

/* 怎么用：三步 */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.step__no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.step__title {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 700;
}

.step__text {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-3);
}

/* 功能 */

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

.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: box-shadow 0.15s;
}

.feature:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.ico svg,
.route__dev svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t-indigo {
  background: var(--soft);
  color: var(--deep);
}

.t-teal {
  background: #f0fdfa;
  color: #0f766e;
}

.t-sky {
  background: #e0f2fe;
  color: #0369a1;
}

.t-amber {
  background: #fef3c7;
  color: #b45309;
}

.t-pink {
  background: #fdf2f8;
  color: #be185d;
}

.t-green {
  background: #dcfce7;
  color: #15803d;
}

.feature__title {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 700;
}

.feature__text {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-3);
}

/* 左右两栏：一边文字，一边示意 */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.split + .split {
  margin-top: 96px;
}

.split__title {
  margin-top: 8px;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 800;
}

.split__desc {
  margin-top: 12px;
  font-size: 17px;
  color: var(--text-3);
}

.checks {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-2);
}

.checks li {
  display: flex;
  gap: 12px;
}

.checks .tick {
  margin-top: 4px;
  color: var(--accent);
}

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.panel span {
  display: block;
}

.linkbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 12px 12px 16px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--deep);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;
  font-size: 14px;
}

.linkbar span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linkbar b {
  padding: 5px 12px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 13px;
  white-space: nowrap;
}

.route,
.domain {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
}

.route {
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.domain {
  border: 1px solid var(--line);
}

.route + .route,
.domain + .domain {
  margin-top: 10px;
}

.panel .route__dev {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.route__body,
.domain__body {
  min-width: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.route__body b,
.domain__body b {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.domain__body b {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;
  font-weight: 600;
}

.panel .route__tag,
.panel .pill {
  margin-left: auto;
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.route__tag {
  background: #f0fdf4;
  color: #15803d;
}

.panel .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pill--ok {
  background: #f0fdf4;
  color: #15803d;
}

.pill--wait {
  background: #fffbeb;
  color: #b45309;
}

.langs {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.langs__label {
  font-size: 13px;
  color: var(--muted);
}

.panel .langs__list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.langs__list span {
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-2);
  font-size: 13.5px;
}

/* 计费 */

.bill {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.bill__items {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.bill__item {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.bill__title {
  font-size: 16.5px;
  font-weight: 700;
}

.bill__text {
  font-size: 14.5px;
  color: var(--text-3);
}

.ledger__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.ledger__head b {
  font-size: 17px;
}

.panel .ledger__head span {
  display: inline;
  font-size: 13px;
  color: var(--muted);
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ledger th {
  padding: 10px 12px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
}

.ledger td {
  padding: 12px;
  border-top: 1px solid #f1f5f9;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger .num {
  text-align: right;
}

.ledger .plus {
  color: #15803d;
  font-weight: 700;
}

.ledger .minus {
  font-weight: 700;
}

/* 常见问题：浏览器自带的展开收起，不用脚本 */

.faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.faq__item[open] {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

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

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

.faq__item summary::after {
  /* 加减号只是图标：读屏软件不念（不认识 "/ ''" 写法的浏览器用上一行）。 */
  content: '+';
  content: '+' / '';
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-3);
  font-size: 18px;
  font-weight: 500;
}

.faq__item[open] summary::after {
  content: '\2212';
  content: '\2212' / '';
  background: var(--soft);
  color: var(--deep);
}

.faq__item p {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-3);
}

/* 行动区 */

.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 60px;
  border-radius: 28px;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 55%, #3730a3 100%);
  color: #fff;
}

.cta::before,
.cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cta::before {
  width: 360px;
  height: 360px;
  right: -90px;
  top: -140px;
}

.cta::after {
  width: 240px;
  height: 240px;
  right: 220px;
  bottom: -150px;
}

.cta__text,
.cta__act {
  position: relative;
}

.cta__title {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 800;
}

.cta__desc {
  margin-top: 10px;
  font-size: 17px;
  opacity: 0.9;
}

.cta__act {
  flex: none;
  display: flex;
  gap: 12px;
}

/* 服务条款、隐私政策 */

.doc {
  max-width: 880px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.doc__crumb {
  font-size: 13.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.doc__crumb a {
  text-decoration: none;
}

.doc__title {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1.3;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.doc__meta {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.doc__card {
  margin-top: 28px;
  padding: 40px 44px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.doc__empty {
  color: var(--muted);
}

.doc__body {
  color: var(--text-2);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.doc__body > :first-child {
  margin-top: 0;
}

.doc__body h1,
.doc__body h2,
.doc__body h3,
.doc__body h4,
.doc__body h5,
.doc__body h6 {
  margin: 1.6em 0 0.5em;
  line-height: 1.4;
  color: var(--text);
}

.doc__body h1 {
  font-size: 24px;
}

.doc__body h2 {
  font-size: 20px;
}

.doc__body h3 {
  font-size: 17px;
}

.doc__body h4,
.doc__body h5,
.doc__body h6 {
  font-size: 16px;
}

.doc__body p,
.doc__body ul,
.doc__body ol,
.doc__body blockquote,
.doc__body pre,
.doc__body table {
  margin: 0 0 1em;
}

.doc__body ul,
.doc__body ol {
  padding-left: 1.6em;
}

.doc__body blockquote {
  padding: 4px 16px;
  border-left: 3px solid var(--mid);
  color: var(--text-3);
}

.doc__body pre {
  padding: 12px 16px;
  border-radius: 10px;
  background: #f1f5f9;
  overflow-x: auto;
  font-size: 14px;
}

.doc__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.doc__body hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.doc__body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.doc__body th,
.doc__body td {
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc__body th {
  background: var(--bg-soft);
}

/* 服务条款、隐私政策页的背景是浅灰，正文卡片是白的 */

main:has(.doc) {
  background: var(--bg-soft);
}

/* 页脚 */

.foot {
  padding: 56px 0 calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  background: #fff;
}

.foot__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.foot__blurb {
  margin-top: 12px;
  max-width: 340px;
  font-size: 14px;
  color: var(--muted);
}

.foot__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}

.foot__head {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

.foot__col a {
  color: var(--text-3);
  text-decoration: none;
}

.foot__col a:hover {
  color: var(--accent);
}

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}

.foot__bottom span {
  overflow-wrap: anywhere;
}

/* 小笔记本、平板横屏：示意区变窄，浮着的小卡片挪到下面，不挡住应用名称 */

@media (max-width: 1140px) {
  .float--stat {
    top: auto;
    bottom: 120px;
  }
}

/* 窄屏：一栏排下来 */

@media (max-width: 960px) {
  .top__nav {
    display: none;
  }

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

  .hero__in {
    gap: 40px;
  }

  .split {
    gap: 32px;
  }

  .split--rev .split__text {
    order: -1;
  }

  .steps,
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .foot__about {
    grid-column: 1 / -1;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
    padding: 44px 36px;
  }

  .cta__act {
    flex-wrap: wrap;
  }
}

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

  .top__in {
    gap: 12px;
    min-height: 60px;
  }

  .top .btn--link {
    padding: 0 8px;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero__title {
    font-size: 34px;
  }

  .hero__intro {
    font-size: 16px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .stage {
    height: 480px;
  }

  .phone {
    transform: scale(0.85);
    transform-origin: top center;
  }

  /* 手机上小卡片挪到下面，不挡住示意里的应用名称和"安装"按钮。 */
  .float--stat {
    top: auto;
    bottom: 70px;
    right: -6px;
    width: 160px;
  }

  .float--link {
    display: none;
  }

  .float--qr {
    left: -6px;
    bottom: 20px;
    width: 140px;
  }

  .stage .qr {
    width: 96px;
    height: 96px;
  }

  .sec {
    padding: 60px 0;
  }

  .sec__head {
    margin-bottom: 32px;
  }

  .sec__title,
  .split__title {
    font-size: 27px;
  }

  .split + .split {
    margin-top: 60px;
  }

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

  .panel {
    padding: 18px;
  }

  /* 点数明细的示意表在很窄的手机上也不撑出页面 */
  .ledger {
    font-size: 13px;
  }

  .ledger th,
  .ledger td {
    padding: 8px 6px;
  }

  .domain__body b {
    overflow-wrap: anywhere;
  }

  .cta {
    padding: 36px 24px;
  }

  .cta__title {
    font-size: 26px;
  }

  .cta__act {
    flex-direction: column;
  }

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

  .doc {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .doc__title {
    font-size: 26px;
  }

  .doc__card {
    padding: 24px 20px;
  }
}

/* 特别窄的手机放不下"登录"了：登录还可以点首屏的"进入会员中心"。 */
@media (max-width: 340px) {
  .top .btn--link {
    display: none;
  }
}

/* 帮助中心（会员《使用帮助》/help/、后台《系统业务手册》/manual/）：左边章节目录，右边正文 */

main:has(.help) {
  background: var(--bg-soft);
}

.help {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 72px;
}

.help__side {
  position: sticky;
  top: 84px;
}

.help__book {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.help__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: chapter;
}

.help__toc li {
  counter-increment: chapter;
}

.help__toc a {
  display: flex;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
}

.help__toc a::before {
  content: counter(chapter);
  min-width: 1.2em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.help__toc a:hover {
  background: #fff;
  color: var(--accent);
}

.help__toc a[aria-current='page'] {
  background: var(--soft);
  color: var(--deep);
  font-weight: 700;
}

.help__toc a[aria-current='page']::before {
  color: var(--accent);
}

.help__main {
  min-width: 0;
}

.help__main .doc__card {
  margin-top: 20px;
}

.help__sections {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.help__sections-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.help__sections ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help__sections a {
  font-size: 14.5px;
  text-decoration: none;
}

.help__sections a:hover {
  text-decoration: underline;
}

.help__body h2 {
  padding-top: 0.6em;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 84px;
}

.help__body > h2:first-child {
  padding-top: 0;
  border-top: 0;
}

.help__body h3 {
  scroll-margin-top: 84px;
}

.help__pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.help__pager a {
  display: flex;
  flex-direction: column;
  max-width: 48%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.help__pager a:hover {
  border-color: var(--mid);
  color: var(--accent);
}

.help__pager span {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
}

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

.brand__tag {
  margin-left: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--deep);
  font-size: 12.5px;
  font-weight: 600;
}

.foot__bottom--only {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 960px) {
  .help {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 24px;
  }

  .help__side {
    position: static;
  }

  .help__toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .help__toc a {
    padding: 6px 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .help__main .doc__card {
    padding: 24px 18px;
  }

  .help__pager a {
    max-width: none;
    flex: 1;
  }
}
