/* ==========================================================================
   云绑卡 yunbangka.com — 全局样式
   设计令牌 / 布局 / 组件 / 响应式
   ========================================================================== */

:root {
  /* 品牌色 */
  --brand: #2b5cff;
  --brand-600: #1f4ae0;
  --brand-700: #1739b3;
  --mint: #00c2a8;
  --mint-600: #0aa892;
  --ink: #0b1220;
  --ink-2: #1a2438;
  --body: #3d4a63;
  --muted: #6b7791;
  --line: #e5e9f2;
  --line-strong: #d5dced;
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --bg-ink: #0b1220;

  /* 排版 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* 尺寸 */
  --container: 1160px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 72px;
  --section-y: clamp(64px, 8vw, 112px);

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04), 0 4px 12px rgba(11, 18, 32, 0.04);
  --shadow: 0 8px 24px rgba(11, 18, 32, 0.06), 0 2px 6px rgba(11, 18, 32, 0.04);
  --shadow-lg: 0 24px 60px rgba(17, 34, 79, 0.12), 0 8px 20px rgba(17, 34, 79, 0.06);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
}
h2 {
  font-size: clamp(27px, 3.4vw, 40px);
}
h3 {
  font-size: clamp(18px, 1.6vw, 21px);
}
p {
  margin: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--brand-600);
}

img,
svg {
  max-width: 100%;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  font-size: 100%;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(43, 92, 255, 0.16);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}

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

.section--ink {
  background: var(--bg-ink);
  color: #b9c4da;
}

.section-head {
  margin: 0 auto clamp(36px, 4vw, 56px);
  text-align: center;
}

.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
}

.section--ink .section-head h2 {
  color: #fff;
}
.section--ink .section-head p {
  color: #93a1bd;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(43, 92, 255, 0.08);
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.section--ink .eyebrow {
  color: #8fb0ff;
  background: rgba(143, 176, 255, 0.12);
}
.section--ink .eyebrow::before {
  background: #8fb0ff;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 12px;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(43, 92, 255, 0.24);
}
.btn--primary:hover {
  color: #fff;
  background: var(--brand-600);
  box-shadow: 0 10px 26px rgba(43, 92, 255, 0.3);
}

.btn--ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: #b9c5e0;
  box-shadow: var(--shadow-sm);
}

.btn--light {
  color: var(--ink);
  background: #fff;
}
.btn--light:hover {
  color: var(--ink);
  background: #eef2ff;
}

.btn--outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--outline-light:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.06);
}

.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 10px;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
}
.link-arrow svg {
  transition: transform 0.2s ease;
}
.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(11, 18, 32, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
}
.brand:hover {
  color: var(--ink);
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand-name span {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  border-radius: 8px;
}
.site-nav a:hover {
  color: var(--brand);
  background: rgba(43, 92, 255, 0.06);
}
.site-nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-actions .btn--ghost {
  height: 40px;
  background: transparent;
  border-color: transparent;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 62%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(43, 92, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 92, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 60% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(0, 194, 168, 0.16), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  margin: 18px 0 20px;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--brand) 10%, var(--mint) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 540px;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-note svg {
  flex-shrink: 0;
  color: var(--mint-600);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats b {
  display: block;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero-stats span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 仪表盘模拟 ---------- */
.hero-visual {
  position: relative;
}

.dash {
  position: relative;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.dash-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 14px;
  border-bottom: 1px solid var(--line);
}
.dash-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8dfef;
}
.dash-bar i:first-child {
  background: #ff6b6b;
}
.dash-bar i:nth-child(2) {
  background: #ffc542;
}
.dash-bar i:nth-child(3) {
  background: #3ddc97;
}
.dash-bar span {
  margin-left: 6px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.dash-body {
  padding: 16px 4px 4px;
}
.dash-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.dash-title strong {
  font-size: 15px;
  color: var(--ink);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mint-600);
  background: rgba(0, 194, 168, 0.1);
  border-radius: 999px;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.82);
  }
}

.kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.kpi {
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid #eaf0ff;
  border-radius: 12px;
}
.kpi span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.kpi b {
  font-size: 20px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.kpi em {
  margin-left: 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  color: #e5334f;
}
.kpi em.up {
  color: var(--mint-600);
}

.task-list {
  display: grid;
  gap: 12px;
}
.task {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
}
.task .chip {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border-radius: 9px;
}
.task .meta {
  min-width: 0;
}
.task .meta b {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.task .meta b span {
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bar {
  height: 6px;
  margin-top: 6px;
  background: #eef1f8;
  border-radius: 99px;
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), #6d8cff);
  width: var(--w, 60%);
  transform-origin: left;
  animation: grow 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bar > i.mint {
  background: linear-gradient(90deg, var(--mint), #66e0cf);
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
}
.task .ok {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--mint-600);
  background: rgba(0, 194, 168, 0.12);
  border-radius: 50%;
  font-size: 12px;
}

.float-card {
  position: absolute;
  left: -26px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}
.float-card .tick {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--mint);
  border-radius: 9px;
}
.float-card b {
  display: block;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.3;
}
.float-card span {
  font-size: 11.5px;
  color: var(--muted);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- 信任条 ---------- */
.trustbar {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.trustbar-inner {
  display: flex;
  align-items: center;
  gap: 18px 34px;
  flex-wrap: wrap;
  justify-content: center;
}
.trustbar p {
  font-size: 13px;
  color: var(--muted);
}
.trustbar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.trustbar li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--body);
}
.trustbar li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--line-strong);
  border-radius: 50%;
}

/* ---------- 特性卡 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #cfdaf3;
  box-shadow: var(--shadow);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--brand);
  background: rgba(43, 92, 255, 0.08);
  border-radius: 12px;
}
.icon-box.mint {
  color: var(--mint-600);
  background: rgba(0, 194, 168, 0.1);
}
.icon-box.gold {
  color: #b77900;
  background: rgba(255, 176, 32, 0.14);
}
.icon-box.violet {
  color: #6b4dff;
  background: rgba(107, 77, 255, 0.1);
}

.card h3 {
  margin-bottom: 10px;
}
.card p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- 卡种 ---------- */
.cardtypes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ct {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ct:hover {
  transform: translateY(-3px);
  border-color: #cfdaf3;
  box-shadow: var(--shadow-sm);
}
.ct-chip {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  border-radius: 12px;
  background: var(--c, #2b5cff);
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.12);
}
.ct-body {
  min-width: 0;
  flex: 1;
}
.ct-body b {
  display: block;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.4;
}
.ct-body span {
  font-size: 12.5px;
  color: var(--muted);
}
.ct-tag {
  flex-shrink: 0;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mint-600);
  background: rgba(0, 194, 168, 0.09);
  border-radius: 999px;
}
.ct-tag.hot {
  color: #d9640a;
  background: rgba(255, 176, 32, 0.16);
}

.cardtypes-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 流程 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
}
.step h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.step p {
  font-size: 14.5px;
  color: var(--muted);
}
.step code {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand-700);
  background: var(--bg-soft);
  border-radius: 6px;
}

/* ---------- API 区块 ---------- */
.api-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.api-copy h2 {
  color: #fff;
  margin-bottom: 18px;
}
.api-copy p {
  font-size: 16px;
  color: #93a1bd;
}
.api-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 30px;
}
.api-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: #c3cde2;
}
.api-list svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--mint);
}
.api-list b {
  color: #fff;
  font-weight: 600;
}

.code-window {
  overflow: hidden;
  background: #0e1729;
  border: 1px solid #1e2c47;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #111c31;
  border-bottom: 1px solid #1e2c47;
}
.code-head span {
  font-family: var(--mono);
  font-size: 12px;
  color: #7d8cab;
  margin-left: 6px;
}
.code-tabs {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.code-tabs button {
  padding: 4px 10px;
  font-size: 12px;
  color: #8b9ab8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
}
.code-tabs button[aria-selected="true"] {
  color: #dfe7f8;
  background: #1a2740;
  border-color: #2a3a5a;
}
.code-body {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: #cdd8ee;
  tab-size: 2;
}
.code-body .k {
  color: #8fb0ff;
}
.code-body .s {
  color: #7ee2c8;
}
.code-body .c {
  color: #63718c;
}
.code-body[hidden] {
  display: none;
}

/* ---------- 数据带 ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.metric {
  padding: 30px 24px;
  background: #fff;
  text-align: center;
}
.metric b {
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.metric b small {
  font-size: 0.5em;
  font-weight: 600;
  color: var(--brand);
  margin-left: 2px;
}
.metric span {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- 价格 ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.price {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.price:hover {
  box-shadow: var(--shadow);
}
.price--featured {
  border-color: var(--brand);
  box-shadow: 0 20px 46px rgba(43, 92, 255, 0.14);
  position: relative;
}
.price--featured::after {
  content: "推荐";
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
}
.price h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.price .desc {
  font-size: 13.5px;
  color: var(--muted);
  min-height: 44px;
}
.price .amount {
  margin: 18px 0 4px;
  color: var(--ink);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price .amount small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.price .amount em {
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  vertical-align: top;
  margin-right: 2px;
}
.price .unit-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 22px;
}
.price ul {
  display: grid;
  gap: 11px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--body);
}
.price li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.price li svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--mint-600);
}
.price .btn {
  margin-top: auto;
}
.price-note {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 22px;
  transition: border-color 0.2s ease;
}
.faq details[open] {
  border-color: #cfdaf3;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
  transition: transform 0.22s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .answer {
  padding: 0 0 20px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 72px) 0;
  background: linear-gradient(120deg, #16307a 0%, #2b5cff 52%, #00a99a 100%);
  color: #fff;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.cta h2 {
  color: #fff;
  margin-bottom: 14px;
}
.cta .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.cta .eyebrow::before {
  background: #fff;
}
.cta p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}
.cta .contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 26px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.cta .contact-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- 表单 ---------- */
.form-card {
  padding: 28px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(6, 20, 60, 0.22);
  color: var(--body);
}
.form-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.form-card > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fbfcff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea {
  min-height: 88px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 92, 255, 0.12);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.form-status {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 8px;
  display: none;
}
.form-status.is-ok {
  display: block;
  color: #06695d;
  background: rgba(0, 194, 168, 0.12);
}
.form-status.is-error {
  display: block;
  color: #a12337;
  background: rgba(229, 51, 79, 0.1);
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 60px 0 28px;
  background: #070d1a;
  color: #8b99b6;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1a2438;
}
.footer-brand .brand {
  color: #fff;
}
.footer-brand .brand-name span {
  color: #7f8daa;
}
.footer-brand p {
  max-width: 320px;
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #7f8daa;
}
.footer-col h4 {
  margin-bottom: 16px;
  font-size: 14px;
  color: #e6ecf9;
  letter-spacing: 0.02em;
}
.footer-col ul {
  display: grid;
  gap: 10px;
}
.footer-col a {
  color: #8b99b6;
  font-size: 13.5px;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 12.5px;
  color: #6c7a97;
}
.footer-bottom a {
  color: #8b99b6;
}
.footer-bottom a:hover {
  color: #fff;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* ---------- 内页 ---------- */
.page-hero {
  position: relative;
  padding: clamp(44px, 6vw, 76px) 0 clamp(36px, 4vw, 56px);
  background: linear-gradient(180deg, #f7faff, #fff);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(43, 92, 255, 0.1), transparent 65%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 14px 0 16px;
}
.page-hero p {
  max-width: 660px;
  font-size: 16.5px;
  color: var(--muted);
}
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--brand);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}
table.data caption {
  padding: 16px 18px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
table.data th,
table.data td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data thead th {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-soft);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
table.data tbody tr:last-child td {
  border-bottom: 0;
}
table.data tbody tr:hover {
  background: #fbfcff;
}
table.data td b {
  color: var(--ink);
  font-weight: 600;
}
.tag {
  display: inline-block;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}
.tag--green {
  color: var(--mint-600);
  background: rgba(0, 194, 168, 0.1);
}
.tag--blue {
  color: var(--brand-700);
  background: rgba(43, 92, 255, 0.09);
}
.tag--gray {
  color: var(--muted);
  background: #f0f3f9;
}
.tag--orange {
  color: #b45d00;
  background: rgba(255, 176, 32, 0.16);
}

/* 文档页 */
.doc-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: var(--section-y) 0;
}
.doc-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
}
.doc-nav strong {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc-nav ul {
  display: grid;
  gap: 2px;
}
.doc-nav a {
  display: block;
  padding: 7px 9px;
  color: var(--body);
  border-radius: 7px;
  font-size: 13.5px;
}
.doc-nav a:hover {
  color: var(--brand);
  background: #fff;
}
.doc-nav li + li {
  margin-top: 2px;
}

.doc-body > section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.doc-body > section:last-child {
  border-bottom: 0;
}
.doc-body h2 {
  font-size: clamp(23px, 2.4vw, 28px);
  margin-bottom: 14px;
}
.doc-body h3 {
  font-size: 17px;
  margin: 26px 0 10px;
}
.doc-body p {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 12px;
}
.doc-body ul.bullets {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
  font-size: 14.5px;
  color: var(--body);
}
.doc-body ul.bullets li {
  position: relative;
  padding-left: 18px;
}
.doc-body ul.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.55;
}
.doc-body code {
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brand-700);
  background: rgba(43, 92, 255, 0.07);
  border-radius: 5px;
}
.doc-body pre {
  position: relative;
  margin: 14px 0 18px;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: #cdd8ee;
  background: #0e1729;
  border-radius: 12px;
  border: 1px solid #1e2c47;
}
.doc-body pre code {
  padding: 0;
  color: inherit;
  background: none;
  font-size: inherit;
}
.doc-body .table-wrap {
  margin: 14px 0 20px;
}
.doc-body table.data {
  min-width: 0;
  font-size: 13.5px;
}
.doc-body table.data th,
.doc-body table.data td {
  padding: 12px 14px;
}
.doc-body table.data code {
  white-space: nowrap;
  font-size: 12.5px;
}
.doc-body > section > p code,
.doc-body > section > ul code {
  white-space: nowrap;
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: #9fb0cf;
  background: #1a2740;
  border: 1px solid #2a3a5a;
  border-radius: 6px;
}
.copy-btn:hover {
  color: #fff;
  background: #22325a;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 13.5px;
}
.endpoint .method {
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 5px;
  font-family: var(--font);
}
.endpoint .method.post {
  background: #0f9d76;
}
.endpoint .method.get {
  background: #0e7fd6;
}
.endpoint .path {
  color: var(--ink);
  word-break: break-all;
}

.callout {
  display: flex;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 16px;
  font-size: 14px;
  color: #6a4a00;
  background: rgba(255, 176, 32, 0.1);
  border: 1px solid rgba(255, 176, 32, 0.3);
  border-radius: 10px;
}
.callout svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #c07a00;
}
.callout.info {
  color: var(--brand-700);
  background: rgba(43, 92, 255, 0.06);
  border-color: rgba(43, 92, 255, 0.2);
}
.callout.info svg {
  color: var(--brand);
}

/* 404 */
.err {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - var(--header-h) - 300px);
  padding: 80px 0;
  text-align: center;
}
.err b {
  font-size: clamp(72px, 14vw, 140px);
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, var(--brand), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.err h1 {
  margin: 18px 0 12px;
  font-size: clamp(22px, 3vw, 30px);
}
.err p {
  color: var(--muted);
  margin-bottom: 28px;
}

/* ---------- 滚动出现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid,
  .api-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    gap: 40px;
  }
  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .doc-nav {
    position: static;
  }
  .doc-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cardtypes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .api-grid .code-window {
    order: 2;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(11, 18, 32, 0.08);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 12px 14px;
    font-size: 15.5px;
  }
  .header-actions {
    margin-left: 0;
  }
  .header-actions .btn--ghost {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .float-card {
    left: 0;
    bottom: -18px;
    padding: 10px 13px;
  }
  .hero-stats {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }
  .container {
    padding: 0 18px;
  }
  .header-actions .btn--primary {
    height: 38px;
    padding: 0 14px;
    font-size: 13.5px;
  }
  .brand-name span {
    display: none;
  }
  .hero {
    padding-top: 36px;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .hero-stats b {
    font-size: 20px;
  }
  .hero-stats span {
    font-size: 11.5px;
  }
  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }
  .feature-grid,
  .cardtypes,
  .metrics,
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-top {
    gap: 28px;
  }
  .float-card {
    display: none;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 22px;
  }
  .cta .contact-list {
    flex-direction: column;
    gap: 10px;
  }
  table.data th,
  table.data td {
    padding: 12px 14px;
  }
  .doc-nav ul {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 卡种明细 ---------- */.ct-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ct-detail {
  padding: 24px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.ct-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.ct-detail-head > div {
  min-width: 0;
  flex: 1;
}
.ct-detail-head h3 {
  font-size: 17px;
  margin-bottom: 2px;
}
.ct-detail-head .ct-tag {
  margin-left: auto;
}
.spec {
  display: grid;
  font-size: 13.5px;
}
.spec li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  line-height: 1.6;
}
.spec li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.spec li > span:first-child {
  color: var(--muted);
  font-size: 12.5px;
}
.spec li > span:last-child {
  color: var(--body);
}

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

/* 打印 */
@media print {
  .site-header,
  .site-footer,
  .cta,
  .float-card,
  .nav-toggle {
    display: none !important;
  }
  body {
    color: #000;
  }
}

/* 卡种明细栅格响应式（置于末尾以覆盖基础声明） */
@media (max-width: 1024px) {
  .ct-detail-grid,
  .feature-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .ct-detail-grid,
  .feature-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* 卡种 logo 图片（替代单字色块） */
.ct-logo {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  object-fit: contain;
  padding: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.chip-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  padding: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
@media (max-width: 640px) {
  .ct-logo {
    width: 42px;
    height: 42px;
  }
}
