:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3ff;
  --text: #111827;
  --muted: #607086;
  --line: #dfe7f3;
  --primary: #1f66ff;
  --primary-dark: #0f46c8;
  --primary-soft: #e8f0ff;
  --accent: #10b981;
  --shadow: 0 24px 70px rgba(15, 35, 70, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 102, 255, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(246, 248, 251, 0.82);
  border-bottom: 1px solid rgba(223, 231, 243, 0.8);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, var(--primary), #00a6ff);
  box-shadow: 0 10px 30px rgba(31, 102, 255, 0.25);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 18px;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 30px;
  color: #374151;
  font-size: 15px;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-download {
  color: #fff;
  background: var(--primary);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(31, 102, 255, 0.22);
}

.mobile-menu-btn {
  display: none;
  border: 0;
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(15, 35, 70, 0.08);
}

.hero {
  padding: 86px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 9px 14px;
  border: 1px solid rgba(31, 102, 255, 0.16);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.badge span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.13);
}

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

.hero h1 {
  margin: 24px 0 12px;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-subtitle {
  margin-bottom: 16px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.24;
  font-weight: 800;
  color: #172033;
}

.hero-desc {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #00a6ff);
  box-shadow: 0 16px 36px rgba(31, 102, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 20px 42px rgba(31, 102, 255, 0.32);
}

.btn-ghost {
  background: rgba(255,255,255,0.72);
  border-color: var(--line);
  color: #22304a;
}

.btn-copy {
  width: 100%;
  background: var(--surface);
  border-color: var(--line);
  color: #22304a;
}

.btn-large {
  width: 100%;
  min-height: 58px;
  font-size: 18px;
}

.download-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  position: relative;
}

.browser-window {
  overflow: hidden;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(223, 231, 243, 0.95);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.browser-top {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: #f7f9fe;
  border-bottom: 1px solid var(--line);
}

.browser-top > span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #c8d3e6;
}

.browser-top > span:nth-child(1) { background: #ff6b6b; }
.browser-top > span:nth-child(2) { background: #ffd166; }
.browser-top > span:nth-child(3) { background: #06d6a0; }

.address {
  flex: 1;
  margin-left: 10px;
  color: #607086;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}

.browser-body {
  min-height: 390px;
  display: grid;
  grid-template-columns: 168px 1fr;
}

.side-panel {
  padding: 22px 16px;
  background: #f3f6fb;
  border-right: 1px solid var(--line);
}

.side-item {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #5b6b83;
  font-weight: 700;
  font-size: 14px;
}

.side-item.active {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 35, 70, 0.08);
}

.content-panel {
  padding: 28px;
}

.panel-title {
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 900;
}

.env-card {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 35, 70, 0.06);
}

.env-card strong {
  color: #172033;
}

.env-card span {
  color: var(--muted);
  font-size: 14px;
}

.status-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: -20px;
  position: relative;
  z-index: 3;
}

.status-row span {
  color: #17423b;
  background: #dff8ef;
  border: 1px solid rgba(16, 185, 129, 0.20);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 72px 0;
}

.trust-strip {
  padding-top: 30px;
}

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

.trust-grid > div {
  display: grid;
  gap: 4px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(223, 231, 243, 0.9);
  border-radius: 22px;
  padding: 22px;
}

.trust-grid strong {
  font-size: 18px;
}

.trust-grid span {
  color: var(--muted);
  font-size: 14px;
}

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

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.section h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.download-card p,
.company-card p,
.api-card p {
  color: var(--muted);
}

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

.feature-card {
  padding: 26px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(223, 231, 243, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(15, 35, 70, 0.06);
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 16px;
  font-weight: 900;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.feature-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.download-section {
  padding-top: 40px;
}

.download-card,
.company-card,
.api-card {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 34px;
  align-items: center;
  padding: 42px;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(238,243,255,0.9));
  border: 1px solid rgba(223, 231, 243, 0.95);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.download-box {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.download-box small {
  color: var(--muted);
  text-align: center;
  word-break: break-all;
}

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

.changelog-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  padding: 24px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(223, 231, 243, 0.92);
  border-radius: 24px;
}

.version {
  width: fit-content;
  height: fit-content;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 900;
  font-size: 13px;
}

.timeline-item h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.update-api {
  padding-top: 20px;
}

.api-card {
  grid-template-columns: 1fr;
}

.api-card code {
  display: block;
  overflow-x: auto;
  padding: 18px 20px;
  background: #101827;
  color: #dbeafe;
  border-radius: 16px;
  font-size: 15px;
}

.company-card {
  grid-template-columns: 1fr 420px;
}

.company-info {
  display: grid;
  gap: 12px;
}

.company-info span {
  padding: 14px 16px;
  color: #22304a;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 700;
}

.site-footer {
  padding: 36px 0;
  background: #0f172a;
  color: #dbeafe;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 8px 0 0;
  color: #94a3b8;
}

.footer-grid > div:last-child {
  display: grid;
  gap: 6px;
  text-align: right;
  color: #94a3b8;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  z-index: 50;
  color: #fff;
  background: #111827;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 920px) {
  .nav {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    order: 4;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
  }

  .nav-download {
    margin-left: auto;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid,
  .changelog-grid,
  .download-card,
  .company-card {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-card,
  .company-card,
  .api-card {
    padding: 28px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .hero h1 {
    font-size: 48px;
  }

  .nav-download {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .browser-body {
    grid-template-columns: 1fr;
  }

  .side-panel {
    display: none;
  }

  .content-panel {
    padding: 20px;
  }

  .feature-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .status-row {
    flex-wrap: wrap;
  }

  .footer-grid {
    display: grid;
  }

  .footer-grid > div:last-child {
    text-align: left;
  }
}
