:root {
  --ink: #18212f;
  --muted: #657286;
  --line: #d9e1ea;
  --page: #f5f7fa;
  --surface: #ffffff;
  --brand: #08756f;
  --brand-dark: #075c58;
  --navy: #17233a;
  --green: #12715b;
  --shadow: 0 18px 55px rgba(23, 35, 58, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}
a { color: inherit; text-decoration: none; }
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 70px);
  border-bottom: 1px solid rgba(217, 225, 234, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
}
nav { display: flex; justify-content: center; gap: clamp(12px, 3vw, 28px); color: var(--muted); font-size: 14px; font-weight: 700; }
.health { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); background: #fff; font-size: 13px; font-weight: 800; }
.health.ok { color: var(--green); background: #edf9f5; }
.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(380px, 0.82fr);
  align-items: center;
  gap: clamp(26px, 6vw, 80px);
  padding: clamp(46px, 7vw, 86px) clamp(18px, 5vw, 70px) 42px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1800&q=80") center / cover;
}
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
h1 { margin: 0 0 14px; font-size: clamp(48px, 8vw, 96px); line-height: .95; letter-spacing: 0; }
h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: 0; }
h3 { margin: 0; font-size: 18px; }
.hero-copy { max-width: 680px; color: #3f4d5e; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 16px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}
.button.secondary { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.relay-visual {
  position: relative;
  min-height: 360px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(23, 35, 58, .92), rgba(8, 117, 111, .88));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.node {
  position: absolute;
  z-index: 2;
  top: 45%;
  width: 128px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  font-weight: 800;
}
.left { left: 9%; }
.center { left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .24); }
.right { right: 9%; }
.wire { position: absolute; top: calc(45% + 31px); left: 17%; width: 66%; height: 2px; background: rgba(255, 255, 255, .52); }
.pulse { position: absolute; z-index: 3; top: calc(45% + 25px); width: 12px; height: 12px; border-radius: 50%; background: #d8fff9; animation: travel 4s linear infinite; }
.two { animation-delay: 1.35s; }
.three { animation-delay: 2.7s; }
@keyframes travel { from { left: 16%; opacity: 0; } 12%, 88% { opacity: 1; } to { left: 82%; opacity: 0; } }
.section { width: min(1240px, calc(100vw - 36px)); margin: 0 auto; padding: 58px 0; }
.section-head { max-width: 820px; margin-bottom: 22px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.price-card { border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: var(--surface); }
dl { display: grid; gap: 10px; margin: 20px 0 0; }
dl div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #edf1f5; padding-top: 10px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 800; text-align: right; }
.split { display: grid; grid-template-columns: .8fr 1fr; gap: 28px; }
.muted { color: var(--muted); line-height: 1.65; }
.code-stack { display: grid; gap: 12px; }
pre { overflow: auto; margin: 0; border-radius: 8px; padding: 14px; color: #d8fff9; background: #111827; font-size: 13px; line-height: 1.5; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px clamp(18px, 5vw, 70px); color: #d7dee8; background: var(--navy); font-size: 13px; }
@media (max-width: 900px) {
  .nav, .hero, .pricing-grid, .split { grid-template-columns: 1fr; }
  nav { justify-content: flex-start; flex-wrap: wrap; }
  .hero { min-height: auto; }
  footer { flex-direction: column; }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: #fff;
  transition: background .15s;
}
.lang-switch:hover { background: #edf9f5; }

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .nav {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 16px;
  }
  .nav nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 36px 18px 28px;
    gap: 28px;
  }
  h1 { font-size: clamp(38px, 12vw, 64px); }
  .hero-copy { font-size: 16px; }
  .relay-visual { min-height: 240px; }
  .node { width: 80px; height: 42px; font-size: 13px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .section-head h2 { font-size: 24px; }
  .actions { width: 100%; }
  .actions .button { width: 100%; justify-content: center; text-align: center; }
  footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .lang-switch { height: 28px; font-size: 12px; }
}

@media (max-width: 480px) {
  .nav { padding: 8px 12px; }
  .relay-visual { min-height: 180px; }
  .node { width: 64px; height: 34px; font-size: 11px; border-radius: 6px; }
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  pre { font-size: 11px; padding: 10px; }
  dl div { flex-direction: column; gap: 2px; }
  dd { text-align: left; }
}

.support-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.support-list li {
  padding-left: 4px;
}

.support-contact {
  display: flex;
  align-items: center;
}

.contact-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  color: var(--brand);
  word-break: break-all;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.contact-card .button {
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  .support-contact {
    display: block;
  }
  .contact-card {
    padding: 20px;
  }
  .contact-card h3 {
    font-size: 18px;
  }
}

/* ===== 顶部理念下弹窗 ===== */
.top-banner {
  max-height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.35s ease;
}

.top-banner.closed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.top-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px clamp(18px, 5vw, 70px);
}

.top-banner-text {
  margin: 0;
  flex: 1;
  color: #d8fff9;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
}

.top-banner-text a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.top-banner-text a:hover {
  color: #d8fff9;
}

.top-banner-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d8fff9;
  background: rgba(255, 255, 255, 0.1);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.top-banner-close:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

@media (max-width: 768px) {
  .top-banner-inner {
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px;
  }
  .top-banner-text {
    font-size: 12px;
    line-height: 1.55;
  }
  .top-banner-close {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
}
