/*
ThemeName=星辰
ThemeType=home
Description=黑金奢雅风聚合支付首页，全局深色质感设计
Version=V1.1.1
Author=
Author_Description=
Author_link=
*/

:root {
  --ink: #f4efe3;
  --ink-2: #d9d2c0;
  --muted: #a39c8b;
  --muted-2: #736d5f;
  --line: rgba(232, 182, 76, 0.13);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-dark: rgba(255, 255, 255, 0.09);
  --bg: #0a0a0d;
  --bg-2: #0d0e12;
  --card: #14151a;
  --card-2: #1a1b21;
  --space: #08080b;
  --space-2: #0b0c10;
  --space-3: #101116;
  --star: #e8b64c;
  --star-2: #c9962e;
  --star-3: #f6d47c;
  --green: #34d399;
  --red: #f87171;
  --text-on-dark: #f4efe3;
  --muted-on-dark: #a39c8b;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

::selection {
  background: rgba(232, 182, 76, 0.35);
  color: #141006;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--star-3) 0%, var(--star) 55%, var(--star-2) 100%);
  color: #221a05;
  box-shadow: 0 8px 24px rgba(201, 150, 46, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(201, 150, 46, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-outline {
  border-color: rgba(232, 182, 76, 0.3);
  color: var(--star-3);
  background: rgba(232, 182, 76, 0.05);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: rgba(232, 182, 76, 0.55);
  background: rgba(232, 182, 76, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 14px;
  border-radius: 10px;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 16px;
  border-radius: 14px;
}

/* ============ 顶部导航 ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(8, 8, 11, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links > a:not(.btn) {
  font-size: 15px;
  color: rgba(244, 239, 227, 0.75);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links > a:not(.btn):hover {
  color: var(--star-3);
}

.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--star-3), var(--star-2));
  transition: width 0.25s ease;
}

.nav-links > a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(232, 182, 76, 0.05);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--star-3);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--space);
  color: var(--text-on-dark);
  padding: 168px 0 130px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 细网格 */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 182, 76, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 182, 76, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

/* 星点 */
.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 244, 214, 0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 42%, rgba(255, 244, 214, 0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 12%, rgba(255, 244, 214, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 30%, rgba(255, 244, 214, 0.5) 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 14%, rgba(246, 212, 124, 0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 38%, rgba(255, 244, 214, 0.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 58%, rgba(255, 244, 214, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 55%, rgba(255, 244, 214, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 62%, rgba(255, 244, 214, 0.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 70%, rgba(255, 244, 214, 0.4) 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

/* 光晕 */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 42% 36% at 82% 8%, rgba(232, 182, 76, 0.14), transparent 70%),
    radial-gradient(ellipse 38% 42% at 8% 78%, rgba(201, 150, 46, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 45% at 50% 110%, rgba(232, 182, 76, 0.1), transparent 70%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(232, 182, 76, 0.32);
  background: rgba(232, 182, 76, 0.08);
  color: var(--star-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--star);
  box-shadow: 0 0 10px rgba(232, 182, 76, 0.9);
  animation: pulse 2.2s ease-in-out infinite;
}

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

.hero-text h1 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-text h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffe6a8 0%, var(--star-3) 40%, var(--star) 75%, var(--star-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text .lead {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted-on-dark);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  font-size: 13.5px;
  color: var(--muted-on-dark);
  flex-wrap: wrap;
}

.hero-proof i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(232, 182, 76, 0.4);
}

/* ============ 收银台模拟卡片 ============ */
.hero-visual {
  position: relative;
  padding: 34px 0;
}

.checkout-card {
  position: relative;
  z-index: 2;
  width: min(400px, 100%);
  margin-left: auto;
  background: linear-gradient(180deg, #191a20 0%, #121317 100%);
  border: 1px solid rgba(232, 182, 76, 0.24);
  border-radius: 22px;
  padding: 26px 26px 20px;
  color: var(--ink);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(232, 182, 76, 0.08);
  animation: floatMain 7s ease-in-out infinite;
}

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

.checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.checkout-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #221a05;
  background: linear-gradient(135deg, var(--star-3), var(--star-2));
}

.checkout-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.checkout-secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.22);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.checkout-order {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 0;
}

.checkout-merchant {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.checkout-no {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted-2);
  font-family: var(--mono);
}

.checkout-amount {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--star-3);
}

.checkout-amount small {
  font-size: 16px;
  font-weight: 700;
  margin-right: 2px;
}

.checkout-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.method.active {
  border-color: rgba(232, 182, 76, 0.55);
  background: rgba(232, 182, 76, 0.07);
}

.method-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.method-wx { background: #07c160; }
.method-ali { background: #1677ff; }
.method-up { background: #e43d30; }

.method-name {
  flex: 1;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.method.active .method-name {
  color: var(--ink);
}

.method-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: transparent;
  transition: all 0.2s ease;
}

.method.active .method-check {
  background: var(--star);
  border-color: var(--star);
  color: #221a05;
}

.checkout-pay {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--star-3) 0%, var(--star) 55%, var(--star-2) 100%);
  color: #221a05;
  font-size: 15.5px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(201, 150, 46, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.checkout-pay:hover {
  box-shadow: 0 12px 30px rgba(201, 150, 46, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.checkout-foot {
  margin-top: 14px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* 悬浮通知卡片 */
.notify-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(20, 21, 26, 0.78);
  border: 1px solid rgba(232, 182, 76, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-on-dark);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.notify-a {
  top: 8px;
  left: -12px;
  animation: floatA 6s ease-in-out infinite;
}

.notify-b {
  bottom: 6px;
  right: -8px;
  animation: floatA 6s ease-in-out 1.4s infinite;
}

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

.notify-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.notify-icon.ok {
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
}

.notify-icon.hook {
  background: rgba(232, 182, 76, 0.14);
  color: var(--star-3);
}

.notify-title {
  font-size: 13.5px;
  font-weight: 600;
}

.notify-title b {
  font-variant-numeric: tabular-nums;
  color: var(--star-3);
}

.notify-sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted-on-dark);
}

/* ============ 数据指标 ============ */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 76px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat {
  position: relative;
  padding-left: 22px;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--star-3), var(--star-2));
}

.stat-value {
  font-size: clamp(38px, 3.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  color: var(--ink);
}

.stat-value i {
  font-style: normal;
  font-size: 0.55em;
  font-weight: 700;
  margin-left: 3px;
  color: var(--star-2);
}

.stat-label {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
}

.stat-desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ============ 通用 Section ============ */
.section {
  padding: 110px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--star-3);
  background: rgba(232, 182, 76, 0.08);
  border: 1px solid rgba(232, 182, 76, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.section-head h2,
.api-text h2,
.cta-box h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

/* ============ Bento 能力区 ============ */
#features {
  background: var(--bg);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.bento-card {
  grid-column: span 3;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 182, 76, 0.4);
}

.bento-lg {
  grid-column: span 6;
}

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--star-3);
  background: rgba(232, 182, 76, 0.09);
  border: 1px solid rgba(232, 182, 76, 0.26);
  margin-bottom: 20px;
}

.bento-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.bento-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.route-demo,
.risk-demo {
  margin-top: 22px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-soft);
  padding: 8px 16px;
}

.route-row,
.risk-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.route-row:last-child,
.risk-row:last-child {
  border-bottom: 0;
}

.route-row em {
  margin-left: auto;
  font-style: normal;
  font-weight: 500;
  color: var(--muted-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.route-row.off {
  color: var(--muted-2);
}

.route-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.route-dot.ok {
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

.route-dot.warn {
  background: var(--red);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.6);
}

.risk-row span {
  color: var(--muted);
  font-weight: 500;
}

.risk-row b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--star-3);
}

/* ============ 开发者区 ============ */
.section-dark {
  background: var(--space-2);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 50% at 100% 0%, rgba(232, 182, 76, 0.1), transparent 70%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(201, 150, 46, 0.07), transparent 70%);
  pointer-events: none;
}

.api-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.api-text h2 {
  color: var(--ink);
}

.api-text > p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted-on-dark);
}

.api-points {
  list-style: none;
  margin: 32px 0 38px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.api-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(244, 239, 227, 0.88);
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(232, 182, 76, 0.12);
  color: var(--star-3);
}

.code-window {
  border-radius: 16px;
  background: #0a0b0f;
  border: 1px solid rgba(232, 182, 76, 0.16);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(232, 182, 76, 0.05);
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.code-file {
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--muted-on-dark);
  font-family: var(--mono);
}

.code-body {
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: #d9d2c0;
  white-space: pre;
}

.c-cm { color: #6f6a5e; }
.c-cmd { color: #f6d47c; }
.c-str { color: #ffd98a; }
.c-key { color: #e8b64c; }
.c-num { color: #34d399; }

/* ============ 接入流程 ============ */
#flow {
  background: var(--bg);
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}

.flow-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.flow-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 182, 76, 0.4);
}

.flow-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--star-3), var(--star-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.flow-card h4 {
  margin: 14px 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.flow-card p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: rgba(232, 182, 76, 0.45);
}

/* ============ CTA ============ */
.cta {
  padding: 0 0 110px;
  background: var(--bg);
}

.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #16171d 0%, #0e0f13 100%);
  border: 1px solid rgba(232, 182, 76, 0.24);
  color: var(--text-on-dark);
  text-align: center;
  padding: 84px 40px;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(232, 182, 76, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 100%, rgba(201, 150, 46, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  position: relative;
  color: var(--ink);
}

.cta-box p {
  position: relative;
  margin-top: 18px;
  font-size: 16px;
  color: var(--muted-on-dark);
}

.cta-actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ============ 页脚 ============ */
.site-footer {
  background: #060608;
  border-top: 1px solid var(--line);
  color: var(--muted-on-dark);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-brand .brand-logo {
  width: 30px;
  height: 30px;
}

.footer-brand-col p {
  font-size: 13.5px;
  line-height: 1.85;
  max-width: 320px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
}

.footer-links span {
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-links span:hover {
  color: var(--star-3);
}

.footer-bottom {
  padding-top: 32px;
  font-size: 13px;
  color: rgba(163, 156, 139, 0.55);
}

/* ============ 公告弹窗 ============ */
.popup-mask {
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 4, 6, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.popup-box {
  width: min(640px, 100%);
  max-height: min(76vh, 720px);
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid rgba(232, 182, 76, 0.24);
  box-shadow: var(--shadow-lg);
}

.popup-head {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.popup-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--star-2);
}

.popup-title {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.popup-body {
  max-height: min(50vh, 500px);
  overflow: auto;
  padding: 24px 28px;
  color: var(--ink-2);
  line-height: 1.9;
  font-size: 15px;
}

.popup-foot {
  display: flex;
  justify-content: flex-end;
  padding: 18px 28px 26px;
}

/* ============ 滚动渐入 ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .checkout-card,
  .notify-card,
  .hero-stars,
  .eyebrow-dot {
    animation: none;
  }
}

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .hero-text .lead {
    max-width: 640px;
  }
  .checkout-card {
    margin: 0 auto;
  }
  .notify-a { left: 0; }
  .notify-b { right: 0; }
  .api-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .flow-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .flow-arrow {
    display: none;
  }
  .bento-card { grid-column: span 6; }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 32px;
  }
}

@media (max-width: 760px) {
  .nav {
    height: 62px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 5vw 22px;
    background: rgba(8, 8, 11, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links > a:not(.btn) {
    padding: 13px 6px;
    font-size: 16px;
  }
  .nav-links > a:not(.btn)::after {
    display: none;
  }
  .nav-links .btn {
    margin-top: 12px;
  }
  .hero {
    padding: 128px 0 90px;
  }
  .hero-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .section {
    padding: 76px 0;
  }
  .section-head {
    margin-bottom: 44px;
  }
  .bento-card,
  .bento-lg {
    grid-column: span 12;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .flow-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand-col {
    grid-column: span 2;
  }
  .cta-box {
    padding: 60px 24px;
  }
  .notify-card {
    position: static;
    margin-top: 14px;
    width: 100%;
    animation: none;
  }
  .hero-visual {
    padding: 0;
  }
}
