:root {
  --bg: #d8e4f4;
  --bg-deep: #c5d6ec;
  --surface: #f2f7fc;
  --ink: #0d2137;
  --muted: #4d6480;
  --line: #c3d4ea;
  --primary: #1a7aed;
  --primary-deep: #0f5fbe;
  --cyan: #2a6b8f;
  --gold: #8a6a2b;
  --card: rgba(242, 247, 252, 0.92);
  --max: 1120px;
  --display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

body {
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% -5%, rgba(26, 122, 237, 0.18), transparent 55%),
    radial-gradient(720px 420px at 8% 12%, rgba(212, 181, 106, 0.12), transparent 50%),
    radial-gradient(100% 55% at 50% 100%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(180deg, #e8f0fa 0%, var(--bg) 42%, #c9d9ee 100%);
}

#stars {
  display: none;
}

.aurora {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 10vh;
  height: 38vh;
  background: radial-gradient(ellipse at 50% 80%, rgba(26, 122, 237, 0.14), rgba(42, 107, 143, 0.06) 45%, transparent 72%);
}

.horizon {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 24vh;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 122, 237, 0.45), transparent);
  box-shadow: 0 0 24px 4px rgba(26, 122, 237, 0.12);
}

.grid-floor {
  position: absolute;
  left: -35%;
  right: -35%;
  bottom: -18%;
  height: 58vh;
  background-image:
    linear-gradient(rgba(42, 107, 143, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 107, 143, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(480px) rotateX(58deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, rgba(0, 0, 0, 0.55) 40%, transparent 90%);
  mask-image: linear-gradient(to top, #000 10%, rgba(0, 0, 0, 0.55) 40%, transparent 90%);
}

.nav,
main,
.foot,
.modal,
.toast {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 36px;
  background: linear-gradient(180deg, rgba(232, 240, 250, 0.92), rgba(232, 240, 250, 0.55) 70%, transparent);
  backdrop-filter: blur(10px);
}

.nav.is-scrolled {
  background: rgba(242, 247, 252, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.22em;
}

.brand img {
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(26, 122, 237, 0.18);
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 120px;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--gold);
  letter-spacing: 0.42em;
  font-size: 13px;
}

.slogan {
  margin: 0;
  max-width: 18em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 6.4vw, 72px);
  line-height: 1.35;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sub {
  margin: 28px 0 0;
  color: var(--muted);
  letter-spacing: 0.28em;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.globe {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: min(280px, 32vw);
  height: min(280px, 32vw);
  opacity: 0.45;
  pointer-events: none;
  perspective: 640px;
  transform-style: preserve-3d;
}

.globe-sphere {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.7), transparent 28%),
    repeating-linear-gradient(
      90deg,
      transparent 0 18px,
      rgba(26, 122, 237, 0.12) 18px 19px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 18px,
      rgba(42, 107, 143, 0.1) 18px 19px
    ),
    radial-gradient(circle at 50% 50%, rgba(26, 122, 237, 0.22), rgba(242, 247, 252, 0.35));
  box-shadow:
    inset -18px -12px 28px rgba(13, 33, 55, 0.12),
    0 16px 40px rgba(26, 122, 237, 0.12);
  animation: spin 48s linear infinite;
}

.globe-ring,
.globe-ring-2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(26, 122, 237, 0.28);
  animation: orbit 48s linear infinite;
}

.globe-ring-2 {
  inset: 8%;
  border-color: rgba(138, 106, 43, 0.28);
  animation-duration: 36s;
  animation-direction: reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit {
  from {
    transform: rotateX(68deg) rotateZ(-16deg);
  }
  to {
    transform: rotateX(68deg) rotateZ(344deg);
  }
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 2px;
  letter-spacing: 0.16em;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3b8ff0, var(--primary-deep));
  box-shadow: 0 10px 28px rgba(26, 122, 237, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary,
.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.btn-ghost {
  min-height: 38px;
  padding: 0 14px;
  letter-spacing: 0.12em;
}

.btn-tiny {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  background: #fff;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto 80px;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(13, 33, 55, 0.06);
}

.strip article {
  background: var(--surface);
  padding: 36px 32px 40px;
}

.strip h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 32px;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

.split.reverse > div {
  order: 2;
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  letter-spacing: 0.36em;
  font-size: 12px;
}

.block h2,
.cta h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
  max-width: 42em;
}

.points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 0 0;
  margin: 0;
  list-style: none;
}

.points li {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 14px;
  color: var(--cyan);
  letter-spacing: 0.12em;
  font-size: 13px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 32px 28px;
  min-height: 200px;
  box-shadow: 0 12px 36px rgba(13, 33, 55, 0.05);
}

.panel-label {
  margin: 0 0 16px;
  color: var(--primary);
  letter-spacing: 0.28em;
  font-size: 12px;
}

.panel p:last-child {
  margin: 0;
  line-height: 2;
  color: var(--ink);
}

.panel-ai p:last-child {
  color: var(--muted);
}

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 12px 0 0;
  margin: 0;
  list-style: none;
}

.flow li {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.flow span {
  display: block;
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 12px;
  margin-bottom: 10px;
}

.flow strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.flow em {
  font-style: normal;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.fmt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.fmt-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px 20px 24px;
  box-shadow: 0 10px 28px rgba(13, 33, 55, 0.04);
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fmt-card-wide {
  grid-column: span 2;
}

.fmt-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.fmt-ext {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
}

.fmt-svc {
  margin: 0;
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid rgba(26, 122, 237, 0.28);
  background: rgba(26, 122, 237, 0.08);
  color: var(--primary-deep);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.cta {
  text-align: center;
  padding: 120px 24px 140px;
}

.cta p {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.24em;
}

.cta .hero-actions {
  margin-top: 36px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  padding: 32px 36px 48px;
  border-top: 1px solid var(--line);
  background: rgba(242, 247, 252, 0.7);
  color: var(--muted);
  font-size: 13px;
}

.foot-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
}

.foot-brand span,
.foot-brand strong {
  display: block;
}

.foot-brand span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}

.foot-note {
  width: 100%;
  margin: 0;
}

.linkish {
  border: 0;
  background: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 33, 55, 0.35);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  background: linear-gradient(180deg, #ffffff, #f2f7fc);
  border: 1px solid var(--line);
  padding: 36px 32px 32px;
  box-shadow: 0 30px 80px rgba(13, 33, 55, 0.18);
}

.modal-x {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.08em;
}

.modal-lead {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.8;
}

.modal-lead code {
  color: var(--primary-deep);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
}

.steps {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 2;
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.hint code {
  color: var(--primary-deep);
  font-family: ui-monospace, Consolas, monospace;
}

.cert-cli {
  margin-top: 18px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.cert-cli-title {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 600;
}

.cert-cli-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

.cert-cli-cmd {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 10px 12px;
  background: #e8eef6;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.contact li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact span {
  width: 48px;
  color: var(--muted);
  letter-spacing: 0.12em;
  font-size: 12px;
}

.contact strong {
  font-size: 20px;
  letter-spacing: 0.08em;
  margin-right: auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 50;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.12em;
  box-shadow: 0 8px 24px rgba(13, 33, 55, 0.1);
}

.toast[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .fmt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav {
    padding: 14px 16px;
  }

  .strip,
  .split,
  .split.reverse,
  .flow,
  .fmt-grid {
    grid-template-columns: 1fr;
  }

  .fmt-card-wide {
    grid-column: auto;
  }

  .split.reverse > div {
    order: 0;
  }

  .globe {
    display: none;
  }

  .slogan {
    letter-spacing: 0.1em;
  }

  .sub,
  .eyebrow {
    letter-spacing: 0.16em;
  }

  .block {
    padding: 56px 20px;
  }

  .foot {
    padding: 24px 20px 40px;
  }
}
