/* ==========================================================================
   OPENX 支付接口系统 — 主样式表
   ========================================================================== */

:root {
  --ink: #0A1020;
  --ink-2: #2C3648;
  --body: #4A5568;
  --muted: #7C8798;
  --line: #E5E9F0;
  --line-2: #EEF1F6;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;
  --bg-soft-2: #F1F4F9;

  --brand: #1652F0;
  --brand-deep: #0B3BC0;
  --brand-soft: #EAF0FF;
  --cyan: #0BA5EC;
  --pink: #FF276F;
  --orange: #FF7038;
  --green: #10A56B;
  --amber: #C77700;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;
  --radius-xl: 28px;

  --shadow-s: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow: 0 4px 12px -2px rgba(16, 24, 40, .06), 0 12px 32px -8px rgba(16, 24, 40, .10);
  --shadow-l: 0 24px 64px -24px rgba(11, 32, 84, .28), 0 8px 24px -12px rgba(16, 24, 40, .12);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas,
          "Liberation Mono", monospace;

  --nav-h: 68px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  color: var(--ink);
  margin: 0;
  line-height: 1.22;
  letter-spacing: -.02em;
  font-weight: 700;
}

p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(22, 82, 240, .14); }

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--line { border-top: 1px solid var(--line-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.028em; }
.h3 { font-size: 20px; }
.lead {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .22s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 16px; height: 16px; }

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #2A66FF, var(--brand));
  box-shadow: 0 6px 16px -6px rgba(22, 82, 240, .55), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px rgba(22, 82, 240, .62), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn--ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-s);
}
.btn--ghost:hover { border-color: #CBD4E2; color: var(--ink); transform: translateY(-1px); }

.btn--dark { color: #fff; background: var(--ink); }
.btn--dark:hover { color: #fff; background: #161F35; transform: translateY(-1px); }

.btn--light {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
}
.btn--light:hover { color: var(--ink); transform: translateY(-1px); }

.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14.5px;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line-2);
  box-shadow: 0 8px 24px -20px rgba(10, 16, 32, .5);
  background: rgba(255, 255, 255, .94);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--pink), var(--orange));
  box-shadow: 0 6px 14px -8px rgba(255, 39, 111, .9);
}
.brand__mark svg { width: 19px; height: 19px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--ink);
}
.brand__name em {
  font-style: normal;
  background: linear-gradient(92deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand__sub { font-size: 10.5px; letter-spacing: .16em; color: var(--muted); font-weight: 600; }

.nav__menu { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__link {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .18s ease, color .18s ease;
}
.nav__link:hover { color: var(--ink); background: var(--bg-soft-2); }
.nav__link.is-active { color: var(--brand); background: var(--brand-soft); }

.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  place-items: center;
  color: var(--ink);
}
.nav__toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 89;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 24px 20px;
  box-shadow: var(--shadow);
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 13px 4px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .btn { width: 100%; margin-top: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 88px;
  background:
    radial-gradient(1200px 480px at 12% -8%, rgba(22, 82, 240, .10), transparent 62%),
    radial-gradient(900px 420px at 92% 6%, rgba(255, 39, 111, .08), transparent 60%),
    linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 68%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10, 16, 32, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 16, 32, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  opacity: .55;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  font-size: 12.8px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .01em;
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 165, 107, .16);
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.14;
  letter-spacing: -.038em;
  font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(96deg, var(--brand) 8%, var(--cyan) 52%, var(--pink) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead {
  margin-top: 20px;
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--body);
  max-width: 560px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.hero__note svg { width: 15px; height: 15px; flex: none; color: var(--green); }

.rate-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 30px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFF7F4, #FFF1EC);
  border: 1px solid #FFE1D6;
  color: #9A3412;
  font-size: 13px;
  font-weight: 600;
}
.rate-badge__main { white-space: nowrap; }
.rate-badge strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #C2410C;
  font-variant-numeric: tabular-nums;
}
.rate-badge__note { color: #B45309; font-weight: 500; font-size: 12.8px; }

/* Hero 收银台示意 */
.hero__visual { position: relative; }
.cashier-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.cashier-card:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-4px); }

.cashier-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-soft);
}
.cashier-card__title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cashier-card__secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.cashier-card__secure svg { width: 12px; height: 12px; }

.cashier-card__body { padding: 22px 18px 18px; }
.cashier-amount { text-align: center; padding-bottom: 18px; }
.cashier-amount__label { font-size: 12px; color: var(--muted); }
.cashier-amount__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-top: 6px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.cashier-amount__value small { font-size: 18px; font-weight: 700; }
.cashier-amount__value b { font-size: 38px; }

.cashier-methods { display: grid; gap: 8px; }
.cashier-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  background: #fff;
}
.cashier-method.is-active {
  border-color: rgba(22, 82, 240, .45);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(22, 82, 240, .08);
}
.cashier-method__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}
.cashier-method__icon svg { width: 13px; height: 13px; }
.ic-wechat { background: #09BB07; }
.ic-alipay { background: #1677FF; }
.ic-union { background: #D8232A; }
.cashier-method__radio {
  margin-left: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #C9D2E0;
}
.cashier-method.is-active .cashier-method__radio {
  border: 4px solid var(--brand);
}

.cashier-pay {
  width: 100%;
  height: 44px;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #2A66FF, var(--brand));
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(22, 82, 240, .7);
}

.float-tag {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.float-tag svg { width: 15px; height: 15px; }
.float-tag--tl { top: -28px; left: -34px; animation: floaty 6s ease-in-out infinite; }
.float-tag--br { bottom: -26px; right: -8px; animation: floaty 7s ease-in-out infinite reverse; }
.float-tag--tl svg { color: var(--green); }
.float-tag--br svg { color: var(--brand); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- 渠道条 ---------- */
.channels {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: #fff;
  padding: 26px 0;
}
.channels__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.channels__label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .02em;
  flex: none;
}
.channels__list {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.channel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #55617A;
  filter: grayscale(1);
  opacity: .82;
  transition: filter .25s ease, opacity .25s ease;
}
.channel-item:hover { filter: none; opacity: 1; }
.channel-item i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.channel-item i svg { width: 13px; height: 13px; }
.c-wechat { background: #09BB07; }
.c-alipay { background: #1677FF; }
.c-union { background: #D8232A; }
.c-card { background: #0A1020; }
.c-ecny { background: #B4232C; }
.c-quick { background: #6B3FA0; }

/* ---------- 指标 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: #fff;
  padding: 26px 24px;
}
.stat__num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat__num span { font-size: 15px; font-weight: 700; margin-left: 2px; color: var(--ink-2); }
.stat__label { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- 能力卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  position: relative;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease, border-color .28s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #D8E0EE;
  box-shadow: var(--shadow);
}
.card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}
.card__icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 17px; margin-bottom: 10px; letter-spacing: -.015em; }
.card p { font-size: 14.3px; line-height: 1.72; color: var(--body); }
.card__meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: -.01em;
}

/* 卡片内的小代码标记 */
.card code, .feat code {
  font-family: var(--mono);
  font-size: .9em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-soft-2);
  color: #0B3BC0;
  word-break: break-word;
}
.feat code { background: rgba(255, 255, 255, .09); color: #9DC1FF; }

/* 卡片内的圆点列表 */
.card ul.dot li { position: relative; padding-left: 20px; }
.card ul.dot li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .5;
}

/* 表单控件 */
input.amount-input, select.amount-input, textarea {
  display: block;
  width: 100%;
  color: var(--ink);
  background: #fff;
}
input.amount-input:focus, select.amount-input:focus, textarea:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(22, 82, 240, .1);
}
input.amount-input::placeholder, textarea::placeholder { color: #AEB7C6; font-weight: 400; }

/* ---------- 深色技术区 ---------- */
.dark-section {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(22, 82, 240, .28), transparent 60%),
    radial-gradient(700px 360px at 88% 100%, rgba(255, 39, 111, .16), transparent 60%),
    #080D1A;
  color: rgba(255, 255, 255, .72);
  position: relative;
  overflow: hidden;
}
.dark-section .h2, .dark-section h3 { color: #fff; }
.dark-section .eyebrow { color: #7FA8FF; }
.dark-section .eyebrow::before { background: linear-gradient(90deg, #7FA8FF, #FF8AAE); }
.dark-section .lead { color: rgba(255, 255, 255, .66); }

.feat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.feat {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.feat__icon {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  color: #6EE7B7;
}
.feat__icon svg { width: 22px; height: 22px; }
.feat h4 { font-size: 14.6px; color: #fff; margin-bottom: 4px; font-weight: 600; }
.feat p { font-size: 13.4px; line-height: 1.66; color: rgba(255, 255, 255, .6); }

/* 代码块 */
.code-card {
  background: #0C1220;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
}
.code-card__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.code-card__dots { display: flex; gap: 5px; margin-right: 8px; }
.code-card__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.code-card__file { font-family: var(--mono); font-size: 11.5px; color: rgba(255, 255, 255, .45); }
.code-card__copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .7);
  font-size: 11.5px;
}
.code-card__copy:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.code-card__copy svg { width: 12px; height: 12px; }

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.75;
  color: #C8D3E8;
  tab-size: 2;
}
pre::-webkit-scrollbar { height: 8px; }
pre::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 4px; }

.tok-k { color: #FF8AAE; }
.tok-s { color: #8CE99A; }
.tok-n { color: #FFC078; }
.tok-c { color: #5D6B85; font-style: italic; }
.tok-f { color: #7FB3FF; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step {
  position: relative;
  padding: 0 22px 0 0;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brand);
  margin-bottom: 14px;
}
.step::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 34px;
  right: 10px;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14px; line-height: 1.7; color: var(--body); }

/* ---------- 费率表 ---------- */
.rate-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}
.rate-table th, .rate-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.rate-table thead th {
  background: var(--bg-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.rate-table tbody tr:last-child td { border-bottom: 0; }
.rate-table tbody tr:hover { background: #FBFCFE; }
.rate-table td strong { color: var(--ink); font-weight: 600; }
.rate-table .rate {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rate-table .rate em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green);
  background: rgba(16, 165, 107, .1);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 8px;
}
.table-note { margin-top: 14px; font-size: 12.8px; color: var(--muted); line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.012em;
}
.faq__q:hover { color: var(--brand); }
.faq__q i {
  margin-left: auto;
  width: 22px;
  height: 22px;
  flex: none;
  position: relative;
  border-radius: 50%;
  background: var(--bg-soft-2);
  transition: transform .28s ease, background .2s ease;
}
.faq__q i::before, .faq__q i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink-2);
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, transform .28s ease;
}
.faq__q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__q i { background: var(--brand); transform: rotate(180deg); }
.faq__item.is-open .faq__q i::before { background: #fff; }
.faq__item.is-open .faq__q i::after { opacity: 0; }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .34s cubic-bezier(.22, 1, .36, 1);
}
.faq__a > div {
  padding: 0 46px 24px 4px;
  font-size: 14.6px;
  line-height: 1.78;
  color: var(--body);
}
.faq__a strong { color: var(--ink); font-weight: 600; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  background:
    radial-gradient(700px 300px at 88% 0%, rgba(255, 39, 111, .34), transparent 62%),
    radial-gradient(600px 300px at 8% 100%, rgba(11, 165, 236, .3), transparent 62%),
    linear-gradient(120deg, #0A1020, #12224A);
  color: rgba(255, 255, 255, .74);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; }
.cta p { margin-top: 12px; font-size: 15.5px; max-width: 520px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 64px 0 30px;
  font-size: 14px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer__desc {
  margin-top: 16px;
  font-size: 13.4px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 320px;
}
.footer__col h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer__col li { margin-bottom: 11px; }
.footer__col a { color: var(--ink-2); font-size: 14px; }
.footer__col a:hover { color: var(--brand); }

.footer__legal {
  border-top: 1px solid var(--line-2);
  padding-top: 26px;
  font-size: 12.4px;
  line-height: 1.85;
  color: var(--muted);
}
.footer__legal p + p { margin-top: 8px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
  font-size: 12.6px;
  color: #9AA4B4;
}

/* ---------- 子页 Hero ---------- */
.page-hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 380px at 20% 0%, rgba(22, 82, 240, .09), transparent 62%),
    linear-gradient(180deg, #FAFBFE, #fff);
  border-bottom: 1px solid var(--line-2);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; margin-top: 14px; }
.page-hero .lead { max-width: 700px; }
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }
.crumb span { color: #C3CBD8; }

/* ---------- 文档页 ---------- */
.docs-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 56px;
  padding: 48px 0 96px;
}
.docs-nav { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.docs-nav h5 {
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
  padding-left: 10px;
}
.docs-nav ul { margin-bottom: 24px; }
.docs-nav a {
  display: block;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13.8px;
  color: var(--ink-2);
  border-left: 2px solid transparent;
}
.docs-nav a:hover { background: var(--bg-soft); color: var(--brand); }
.docs-nav a.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  border-left-color: var(--brand);
}

.docs-body { min-width: 0; }
.docs-body h2 {
  font-size: 25px;
  margin: 48px 0 16px;
  padding-top: 8px;
  letter-spacing: -.028em;
}
.docs-body h2:first-child { margin-top: 0; }
.docs-body h3 { font-size: 17px; margin: 30px 0 10px; }
.docs-body p { font-size: 15px; line-height: 1.8; margin: 12px 0; color: var(--body); }
.docs-body ul.dot { margin: 14px 0; }
.docs-body ul.dot li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 14.6px;
  line-height: 1.75;
}
.docs-body ul.dot li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .55;
}
.docs-body code {
  font-family: var(--mono);
  font-size: .88em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-soft-2);
  color: #0B3BC0;
  word-break: break-word;
}
.docs-body .code-card { margin: 18px 0 24px; }
.docs-body .code-card pre { font-size: 12.6px; }

.note {
  display: flex;
  gap: 12px;
  padding: 15px 18px;
  margin: 20px 0;
  border-radius: 10px;
  background: #F3F7FF;
  border: 1px solid #DCE7FF;
  font-size: 14px;
  line-height: 1.72;
  color: #24427E;
}
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--brand); }
.note--warn { background: #FFFBF2; border-color: #FBE7BF; color: #7A5310; }
.note--warn svg { color: #C77700; }

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.8px;
  margin: 18px 0 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.api-table th {
  background: var(--bg-soft);
  text-align: left;
  padding: 11px 14px;
  font-size: 12.3px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  border-bottom: 1px solid var(--line);
}
.api-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  line-height: 1.65;
}
.api-table tr:last-child td { border-bottom: 0; }
.api-table td code { background: none; padding: 0; font-size: 12.6px; color: #0B3BC0; }
.api-table td:first-child { white-space: nowrap; }

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft-2);
  border-radius: 9px;
  width: fit-content;
  margin-bottom: 14px;
}
.tab {
  padding: 7px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }

.endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  margin: 14px 0;
  overflow-x: auto;
  white-space: nowrap;
}
.endpoint b {
  color: #fff;
  background: var(--green);
  font-size: 10.5px;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* ---------- 收银台演示 ---------- */
.demo-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 40px;
  align-items: start;
}
.demo-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-panel__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-soft);
}
.demo-panel__head h3 { font-size: 15px; }
.demo-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: #FFF4E5;
  color: #B45309;
  border: 1px solid #FDE3BF;
}
.demo-panel__body { padding: 26px 22px 22px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.amount-input {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  height: 52px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.amount-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 82, 240, .1); }
.amount-input span { font-size: 18px; font-weight: 700; color: var(--muted); }
.amount-input input {
  flex: 1;
  border: 0;
  outline: 0;
  font-family: var(--font);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  min-width: 0;
  background: transparent;
}
.quick-amounts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.quick-amounts button {
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .18s ease;
}
.quick-amounts button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13.4px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .18s ease;
}
.pay-method:hover { border-color: #C7D3E8; }
.pay-method.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-deep);
  box-shadow: 0 0 0 3px rgba(22, 82, 240, .08);
}
.pay-method i {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}
.pay-method i svg { width: 14px; height: 14px; }

.demo-submit {
  width: 100%;
  height: 50px;
  margin-top: 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #2A66FF, var(--brand));
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  box-shadow: 0 10px 22px -10px rgba(22, 82, 240, .7);
}
.demo-submit:active { transform: translateY(1px); }

.demo-result {
  display: none;
  text-align: center;
  padding: 6px 0 4px;
}
.demo-result.is-visible { display: block; }
.qr-box {
  width: 196px;
  height: 196px;
  margin: 4px auto 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-s);
  position: relative;
}
.qr-box svg { display: block; width: 100%; height: 100%; }
.qr-scanline {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  border-radius: 2px;
  animation: scan 2.4s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 14px; opacity: .9; }
  50% { top: 178px; opacity: .35; }
}
.demo-result__title { font-size: 15px; font-weight: 700; color: var(--ink); }
.demo-result__desc { margin-top: 6px; font-size: 13px; color: var(--muted); }
.demo-result__amount {
  margin: 12px 0 4px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.demo-success {
  display: none;
  text-align: center;
  padding: 22px 0 10px;
}
.demo-success.is-visible { display: block; }
.success-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(16, 165, 107, .1);
  display: grid;
  place-items: center;
  color: var(--green);
  animation: pop .4s cubic-bezier(.22, 1.4, .4, 1);
}
.success-mark svg { width: 30px; height: 30px; }
@keyframes pop {
  from { transform: scale(.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.demo-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

.demo-log {
  margin-top: 18px;
  background: #0C1220;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.8;
  color: #8FA3C4;
  max-height: 150px;
  overflow-y: auto;
}
.demo-log b { color: #6EE7B7; font-weight: 500; }
.demo-log i { color: #5D6B85; font-style: normal; }

/* ---------- 内容型页面 ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 22px; margin: 40px 0 14px; }
.prose h3 { font-size: 17px; margin: 26px 0 10px; }
.prose p { font-size: 15.2px; line-height: 1.85; margin: 12px 0; }
.prose ul.dot li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.8;
}
.prose ul.dot li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .5;
}

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }
.info-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.info-box h4 { font-size: 14px; margin-bottom: 6px; }
.info-box p { font-size: 13.6px; line-height: 1.7; color: var(--body); margin: 0; }
.info-box .mono { font-family: var(--mono); font-size: 13.4px; color: var(--brand); }

/* ---------- 动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 420px; margin: 0 auto; }
  .cashier-card { transform: none; }
  .float-tag--tl { left: -8px; }
  .float-tag--br { right: -8px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .step:nth-child(2)::after { display: none; }
  .docs-layout { grid-template-columns: 1fr; gap: 32px; }
  .docs-nav { position: static; display: none; }
  .demo-wrap { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .feat-list { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__menu { display: none; }
  .nav__actions .btn--ghost { display: none; }
  .nav__toggle { display: grid; }
  .section { padding: 68px 0; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .info-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 48px 0 60px; }
  .hero h1 { font-size: 32px; }
  .hero__lead { font-size: 15.6px; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; }
  .stat__num { font-size: 24px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step::after { display: none; }
  .pay-methods { grid-template-columns: 1fr; }
  .channels__inner { gap: 18px; }
  .channels__list { gap: 18px; }
  .footer__top { grid-template-columns: 1fr; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1; }
  .rate-table { font-size: 13.2px; }
  .rate-table th, .rate-table td { padding: 12px 12px; }
  .float-tag { display: none; }
  .demo-panel__body { padding: 20px 16px; }
  .hero__cta .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
