:root {
  --jm-blue: #087cf7;
  --jm-blue-dark: #005de3;
  --jm-red: #e4393c;
  --jm-ink: #142033;
  --jm-muted: #5d6b7c;
  --jm-line: #dbe7f3;
  --jm-soft: #f2f7fd;
  --jm-page: #f6f9fd;
  --page-width: 1200px;
  --prose-width: 780px;
  --body-line-height: 1.85;
  --heading-line-height: 1.32;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #30445a;
  background: var(--jm-page);
  font-size: 16px;
  line-height: var(--body-line-height);
}

a { color: var(--jm-blue-dark); text-decoration: none; }
a:hover { text-decoration: none; color: var(--jm-red); }

.container { max-width: var(--page-width); margin: 0 auto; padding: 0 32px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(18, 31, 48, .97);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(8, 32, 72, .18);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  white-space: nowrap;
}

.brand img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 10px;
}

.brand .brand-wordmark {
  width: 132px;
  height: 34px;
  border-radius: 0;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.site-nav a.active,
.site-nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--jm-blue), var(--jm-blue-dark));
}

.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;
}

.header-cta,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--jm-blue), var(--jm-blue-dark));
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(8,124,247,.25);
}

.header-cta { min-height: 42px; padding: 0 18px; flex-shrink: 0; }
.header-cta:hover, .btn-primary:hover { color: #fff; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  color: var(--jm-blue-dark);
  background: #fff;
  border: 1px solid rgba(8,124,247,.28);
  font-weight: 800;
}

.hero {
  color: #fff;
  background:
    radial-gradient(circle at 70% 22%, rgba(255,255,255,.22), transparent 26%),
    linear-gradient(140deg, #008df6 0%, #005de3 58%, #044bb6 100%);
  overflow: hidden;
}

.hero-grid {
  min-height: 548px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  align-items: center;
  gap: 64px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 900;
}

.hero-kicker img {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: #fff;
}

.hero h1 {
  max-width: 680px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 44px;
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-update {
  margin-bottom: 22px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

.hero-sub {
  max-width: 650px;
  margin: 0 0 28px;
  color: rgba(255,255,255,.9);
  font-size: 17px;
  line-height: 1.85;
}

.hero-actions { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.hero-note { color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.7; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; color: rgba(255,255,255,.9); font-size: 14px; }
.trust-row span::before { content: "✓"; margin-right: 5px; color: #dfffe8; font-weight: 900; }

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  display: block;
  border-radius: 22px;
  border: 8px solid rgba(255,255,255,.75);
  box-shadow: 0 30px 80px rgba(0,45,120,.35);
  background: #fff;
}

.section { padding: 56px 0; }
.section.tight { padding-top: 36px; }

.card,
.download-panel,
.content-card,
.toc-card {
  background: #fff;
  border: 1px solid var(--jm-line);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(8,72,150,.07);
}

.grid { display: grid; gap: 22px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card { padding: 28px; }
.card h3 { margin: 0 0 10px; color: var(--jm-ink); font-size: 20px; line-height: 1.35; }
.card p { margin: 0; color: var(--jm-muted); line-height: 1.8; }

h2 {
  margin: 0 0 18px;
  color: var(--jm-ink);
  font-size: 28px;
  line-height: var(--heading-line-height);
}

h3 {
  margin: 28px 0 10px;
  color: var(--jm-ink);
  font-size: 21px;
  line-height: 1.38;
}

p { max-width: var(--prose-width); margin: 0 0 18px; line-height: var(--body-line-height); }

.download-panel {
  max-width: 880px;
  margin: -52px auto 0;
  padding: 26px 28px;
  position: relative;
  z-index: 5;
}

.download-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #617188;
  font-size: 14px;
  margin-bottom: 16px;
}

.download-panel .btn-primary {
  width: 100%;
  min-height: 64px;
  font-size: 20px;
}

.badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  color: #236048;
  font-size: 14px;
}

.badges span::before { content: "✓"; color: #00a862; margin-right: 6px; font-weight: 900; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.fact {
  padding: 22px 24px;
  border-left: 1px solid var(--jm-line);
}

.fact:first-child { border-left: 0; }
.fact span { display: block; color: #708096; font-size: 13px; margin-bottom: 8px; }
.fact strong { display: block; color: var(--jm-ink); font-size: 18px; line-height: 1.45; }

.article-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.toc-card {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.toc-card h3 {
  margin: 0 0 14px;
  color: #7b8797;
  font-size: 15px;
}

.toc-card a {
  display: block;
  padding: 8px 0;
  color: #405168;
  line-height: 1.65;
}

.content-card { padding: 36px 40px; }
.content-card h2:not(:first-child) { margin-top: 44px; }

.table-wrap { overflow-x: auto; margin: 24px 0 32px; }
table { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--jm-line); border-radius: 12px; overflow: hidden; background: #fff; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #edf3f8; line-height: 1.75; vertical-align: top; }
th { background: #eef6ff; color: var(--jm-ink); font-weight: 900; }
tr:last-child td { border-bottom: 0; }

.footer {
  background: #111a27;
  color: rgba(255,255,255,.68);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer h4 { margin: 0 0 14px; color: #fff; font-size: 15px; }
.footer a { display: block; color: rgba(255,255,255,.68); margin: 8px 0; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.58); font-size: 13px; line-height: 2; text-align: center; }
.footer-bottom a { display: inline; margin: 0 8px; }

@media (max-width: 980px) {
  .site-header-inner { height: auto; min-height: 72px; flex-wrap: wrap; padding: 12px 0; }
  .site-nav { order: 3; justify-content: flex-start; overflow-x: auto; width: 100%; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 34px; }
  .hero h1 { font-size: 34px; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2, .facts, .article-layout, .footer-grid { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--jm-line); }
  .fact:first-child { border-top: 0; }
  .toc-card { position: static; }
}
