:root {
  --ink: #111827;
  --ink-soft: #273244;
  --muted: #596579;
  --subtle: #77839a;
  --line: #d9e2ee;
  --line-strong: #bfccdc;
  --paper: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4fa;
  --brand: #006fbf;
  --brand-strong: #00508f;
  --cyan: #00a5d8;
  --green: #198754;
  --amber: #b96f17;
  --danger: #a63b3b;
  --night: #0f1724;
  --night-2: #19243a;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-strong);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 2000;
  padding: 10px 14px;
  color: #fff;
  background: var(--brand);
  border-radius: 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 226, 238, 0.88);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100% - 40px, var(--container));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 80, 143, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-domain {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  color: var(--ink-soft);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand-strong);
  background: var(--surface-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--night);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 36, 0.98) 0%, rgba(15, 23, 36, 0.86) 38%, rgba(15, 23, 36, 0.24) 100%);
  z-index: 1;
  pointer-events: none;
}

.page-hero.compact::before {
  background: linear-gradient(90deg, rgba(15, 23, 36, 0.98), rgba(25, 36, 58, 0.94));
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(70vw, 1220px);
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.92;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--container));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 88px 0 110px;
}

.page-hero.compact .hero-inner {
  min-height: 320px;
  padding: 70px 0 76px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #92d9ff;
  font-size: 13px;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  display: inline-block;
  background: var(--amber);
  border-radius: 50%;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: 54px;
  font-weight: 900;
}

h2 {
  color: var(--ink);
  font-size: 32px;
  font-weight: 900;
}

h3 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
}

.hero-copy h1 {
  color: #fff;
}

.hero-copy p {
  max-width: 600px;
  margin: 22px 0 0;
  color: #d9e8f8;
  font-size: 18px;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.btn.primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.btn.primary:hover {
  color: #fff;
  background: var(--brand-strong);
}

.btn.dark {
  color: #fff;
  background: var(--night-2);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn.dark:hover {
  color: #fff;
  background: #23324f;
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn.ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.btn.small {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 13px;
}

.btn svg,
.site-nav svg,
.inline-icon svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero-snapshot {
  width: min(100% - 40px, var(--container));
  margin: -72px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.snapshot-item {
  min-height: 132px;
  padding: 20px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.snapshot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.snapshot-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.snapshot-item strong {
  font-size: 20px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  color: var(--brand-strong);
  background: #e6f3fb;
  border: 1px solid #c4e4f7;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.version-badge.green {
  color: #0d6a40;
  background: #e8f7ef;
  border-color: #c2ead4;
}

.version-badge.amber {
  color: #83500f;
  background: #fff2dd;
  border-color: #f1d6ad;
}

.snapshot-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 84px 0;
}

.section.tight {
  padding: 56px 0;
}

.section.white {
  background: var(--surface);
}

.section.blueprint {
  background: #edf4fa;
}

.section.night {
  color: #eaf3ff;
  background: var(--night);
}

.section.night h2,
.section.night h3 {
  color: #fff;
}

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

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
}

.section.night .section-head p,
.section.night p {
  color: #c4d4e6;
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.download-card,
.resource-card,
.faq-card,
.step-card,
.note-panel,
.mini-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-card,
.resource-card,
.step-card,
.mini-panel {
  padding: 22px;
}

.feature-card h3,
.resource-card h3,
.step-card h3,
.mini-panel h3 {
  margin-bottom: 10px;
}

.feature-card p,
.resource-card p,
.step-card p,
.mini-panel p {
  margin: 0;
  color: var(--muted);
}

.icon-box {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--brand);
  background: #e6f3fb;
  border-radius: 8px;
}

.icon-box.amber {
  color: var(--amber);
  background: #fff2dd;
}

.icon-box.green {
  color: var(--green);
  background: #e8f7ef;
}

.icon-box img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.platform-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.platform-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex: 0 0 auto;
  object-fit: contain;
}

.platform-icon.small {
  width: 20px;
  height: 20px;
}

.platform-heading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.platform-tag {
  gap: 7px;
}

.platform-tag img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--ink);
  background: #f0f5fa;
  font-size: 13px;
  font-weight: 900;
}

tr:last-child td {
  border-bottom: 0;
}

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

td strong {
  color: var(--ink);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--ink-soft);
  background: #eef4fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.download-layout {
  display: grid;
  gap: 18px;
}

.download-card {
  padding: 0;
  overflow: hidden;
}

.download-card.featured {
  border-color: #a8d9f4;
  box-shadow: 0 18px 44px rgba(0, 111, 191, 0.12);
}

.download-card.featured .download-card-header {
  background: linear-gradient(180deg, #f7fcff 0%, #ffffff 100%);
}

.download-card-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.download-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.recommend-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  color: #fff;
  background: var(--brand);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.download-title h2 {
  font-size: 26px;
}

.download-card-header p {
  margin: 10px 0 0;
  color: var(--muted);
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.download-options {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.download-option {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: #fff;
}

.download-option strong {
  color: var(--ink);
}

.download-option p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 24px 24px;
  background: #fafcff;
}

.release-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  color: var(--ink-soft);
  background: #fff9ed;
  border: 1px solid #f0d9ad;
  border-radius: var(--radius);
}

.release-note p {
  margin: 0;
}

.guide-steps {
  counter-reset: steps;
}

.step-card {
  position: relative;
  padding-left: 76px;
}

.step-card::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  top: 22px;
  left: 22px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-button {
  min-height: 40px;
  padding: 8px 13px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 3px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--green);
  border-radius: 4px;
}

.code-box {
  overflow-x: auto;
  margin: 14px 0 0;
  padding: 16px;
  color: #dcecff;
  background: #111a2b;
  border: 1px solid #263857;
  border-radius: var(--radius);
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 14px;
  line-height: 1.7;
}

.faq-card {
  padding: 0;
  overflow: hidden;
}

.faq-card details {
  border-bottom: 1px solid var(--line);
}

.faq-card details:last-child {
  border-bottom: 0;
}

.faq-card summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card details[open] summary {
  color: var(--brand-strong);
  background: #f4f9fd;
}

.faq-card details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.note-panel {
  padding: 24px;
  background: #fbfdff;
}

.note-panel strong {
  color: var(--ink);
}

.note-panel p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-item time {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 800;
}

.timeline-item h3 {
  margin: 6px 0 8px;
}

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

.site-footer {
  color: #c4d4e6;
  background: #111827;
}

.footer-inner {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer a {
  color: #d8ecff;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: 17px;
}

.site-footer p,
.site-footer li {
  color: #b8c7da;
  font-size: 14px;
}

.footer-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: #9fb0c5;
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.copy-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  max-width: min(440px, calc(100vw - 40px));
  padding: 14px 16px;
  color: #fff;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 13px;
  word-break: break-all;
}

.copy-toast strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .hero-inner {
    min-height: 560px;
  }

  h1 {
    font-size: 44px;
  }

  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-option {
    grid-template-columns: 1fr;
  }

  .download-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 820px) {
  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 2px;
  }

  .site-nav a {
    min-height: 44px;
  }

  .page-hero::before {
    background: rgba(15, 23, 36, 0.86);
  }

  .hero-visual {
    width: 100%;
    opacity: 0.55;
  }

  .hero-inner {
    min-height: 590px;
    padding: 72px 0 112px;
  }

  .page-hero.compact .hero-inner {
    min-height: 290px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 27px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-snapshot {
    grid-template-columns: 1fr;
  }

  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

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

  .download-meta {
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .container,
  .hero-inner,
  .hero-snapshot,
  .footer-inner,
  .footer-bottom-inner {
    width: min(100% - 28px, var(--container));
  }

  .brand-domain {
    display: none;
  }

  h1 {
    font-size: 32px;
  }

  .section {
    padding: 62px 0;
  }

  .hero-actions,
  .download-actions,
  .external-links {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .snapshot-item,
  .feature-card,
  .resource-card,
  .step-card,
  .mini-panel,
  .note-panel {
    padding: 18px;
  }

  .step-card {
    padding-left: 64px;
  }

  .step-card::before {
    left: 18px;
  }
}
