:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #162033;
  --muted: #5c667a;
  --subtle: #78839a;
  --line: #dce4f0;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --success: #0f8a4b;
  --warning: #a16207;
  --shadow: 0 18px 45px rgba(22, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #ffffff 100%);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-weight: 750;
}

.brand-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent-strong);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.button:hover {
  color: #ffffff;
  background: var(--accent-strong);
}

.button.secondary {
  border-color: #c8d7fb;
  background: #eef4ff;
  color: var(--accent-strong);
}

.button.secondary:hover {
  color: var(--accent-strong);
  background: #e1ebff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 42px;
  align-items: center;
  padding: 70px 0 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 10px;
  border: 1px solid #c8d7fb;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(238, 244, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 720px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  margin: 0 0 24px;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--subtle);
  font-size: 14px;
}

.trust-row li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.gateway-panel {
  padding: 22px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.route-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.route-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.route-line strong,
.route-line span {
  overflow-wrap: anywhere;
}

.tag {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.model-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.model-strip span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.section {
  padding: 42px 0;
}

.section h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-lead {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.list li + li {
  margin-top: 8px;
}

.notice {
  padding: 20px;
  border: 1px solid #ead79d;
  border-radius: 8px;
  background: #fff9e8;
  color: #6f4d07;
}

.notice h3 {
  margin: 0 0 8px;
  color: var(--warning);
  font-size: 18px;
  letter-spacing: 0;
}

.notice p {
  margin: 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--accent-strong);
}

.recharge-hero {
  max-width: 820px;
  padding: 70px 0 24px;
}

.recharge-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.recharge-hero > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.recharge-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  gap: 10px;
}

.recharge-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.14);
}

.recharge-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

.recharge-amount {
  margin: 0;
  color: var(--accent-strong) !important;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}

.recharge-price {
  margin-bottom: 18px !important;
}

.recharge-card .button {
  margin-top: auto;
}

.recharge-steps {
  padding-left: 24px;
}

.recharge-actions {
  margin: 22px 0 0;
}

.recharge-notice {
  display: grid;
  align-content: start;
  gap: 12px;
}

.recharge-notice p + p {
  margin-top: 0;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 38px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .recharge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1120px);
  }

  .nav-links {
    gap: 12px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .route-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .recharge-grid {
    grid-template-columns: 1fr;
  }

  .recharge-card {
    min-height: 0;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
