:root {
  --accent: #2095f2;
  --accent-strong: #1276cc;
  --on-accent: #fff;
  --text: #333;
  --muted: #888;
  --line: #e4e4e4;
  --line-strong: #ccc;
  --head-bg: #f8f8f8;
  --page-bg: #fdfdfd;
  --radius: 6px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font: 14px/1.7 Arial, Helvetica, "Microsoft YaHei", sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand-logo { width: 118px; height: 40px; object-fit: contain; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 12px;
}
.header-nav a {
  color: var(--text);
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.header-nav a:hover { color: var(--accent); border-color: var(--accent); }

.header-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 8px 16px 16px;
}
.mobile-nav a {
  display: block;
  padding: 11px 4px;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
}
.mobile-nav.open { display: block; }

/* Layout */
.layout {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 20px 15px 32px;
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.sidebar-title {
  margin: 0 5px 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { margin-bottom: 10px; }
.side-links a {
  display: block;
  padding: 0 12px;
  height: 34px;
  line-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.side-links a:hover { border-color: var(--accent); color: var(--accent); }
.side-links li.active a {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.content { flex: 1; min-width: 0; }
.inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 4px 20px 48px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 34px 20px 26px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgb(32 149 242 / 0.10), rgb(32 149 242 / 0) 62%),
    linear-gradient(180deg, #fff, var(--page-bg));
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-lead {
  max-width: 620px;
  margin: 12px auto 16px;
  color: #555;
  font-size: 15px;
}

.hero-chips {
  list-style: none;
  margin: 24px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.hero-chips li {
  padding: 4px 12px;
  border: 1px solid #d8ecfb;
  border-radius: 999px;
  background: #f2f9ff;
  color: #2b6f9e;
  font-size: 12px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-secondary {
  color: var(--accent);
  font-size: 14px;
  border-bottom: 1px solid rgb(32 149 242 / 0.35);
  padding-bottom: 2px;
}

/* Primary download CTA */
.download-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1276cc, #0a4f8f);
  color: var(--on-accent);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 16px 40px -12px rgb(10 79 143 / 0.65),
    inset 0 1px 0 rgb(255 255 255 / 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: download-cta-glow 3s ease-in-out infinite;
}
.download-primary:hover {
  transform: translateY(-2px) scale(1.03);
  color: #fff;
  box-shadow:
    0 22px 52px -12px rgb(10 79 143 / 0.8),
    inset 0 1px 0 rgb(255 255 255 / 0.3);
}
.download-primary:active { transform: translateY(0) scale(0.99); }
.download-primary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.download-primary svg { flex-shrink: 0; }

@keyframes download-cta-glow {
  0%, 100% { box-shadow: 0 16px 40px -12px rgb(10 79 143 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.25); }
  50% { box-shadow: 0 18px 52px -8px rgb(10 79 143 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.25); }
}

/* Cards and forms */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 15px;
  box-shadow: var(--shadow);
  scroll-margin-top: 88px;
}

.card-head {
  background: var(--head-bg);
  border-bottom: 1px solid var(--line);
  padding: 10px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

.card-body { padding: 14px 20px 16px; }

.query-form { display: flex; align-items: stretch; gap: 6px; }

.input-text {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: #000;
  font: inherit;
  outline: none;
}
.input-text:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(32 149 242 / 0.14); }

.input-button {
  flex-shrink: 0;
  width: 100px;
  height: 36px;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font: 15px/1 Arial, Helvetica, "Microsoft YaHei", sans-serif;
  cursor: pointer;
}
.input-button:hover { background: var(--accent-strong); }
.input-button:focus-visible { outline: 3px solid rgb(32 149 242 / 0.35); outline-offset: 2px; }

.form-hint { margin: 9px 0 0; color: var(--muted); font-size: 13px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.grid-2 .card { margin-bottom: 15px; }

/* Tools */
.tool-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}

.tool-group h3 {
  margin: 0 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.tool-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tool-links a {
  color: var(--muted);
  font-size: 13px;
  line-height: 26px;
}
.tool-links a:hover { color: var(--accent); }

/* Scenarios */
.section-title { margin: 28px 0 14px; font-size: 20px; }

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 22px;
}

.scenario-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.scenario-card h3 { margin: 0 0 6px; font-size: 15px; }
.scenario-card p { margin: 0; color: #666; font-size: 13px; }

/* FAQ */
.faq details {
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 0;
}
.faq details:first-of-type { padding-top: 0; }
.faq details:last-of-type { border-bottom: 0; padding-bottom: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: -2px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 8px 0 2px; color: #555; font-size: 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  margin-top: 10px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 24px 30px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 110px; height: auto; }
.footer-slogan { margin: 0; color: var(--text); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: #666; }
.footer-links a:hover { color: var(--accent); }
.copyright { margin: 0 0 0 auto; }

/* Responsive */
@media (max-width: 1080px) {
  .header-nav { gap: 16px; }
  .sidebar { width: 220px; }
  .inner { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .menu-toggle { display: block; }
  .sidebar { display: none; }
  .inner { max-width: 760px; }
  .scenario-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { height: 64px; padding: 0 16px; gap: 12px; }
  .site-header { position: sticky; }
  .brand-logo { width: 96px; height: 32px; }
  .brand-name { font-size: 16px; }
  .header-meta .today { display: none; }
  .sidebar { top: 64px; }
  .hero { padding: 26px 8px 22px; }
  .hero h1 { font-size: 24px; }
  .hero-lead { font-size: 14px; }
  .hero-actions { flex-direction: column; gap: 14px; }
  .download-primary { width: 100%; min-height: 54px; padding: 0 24px; font-size: 17px; }
  .grid-2, .tool-groups, .scenario-grid { grid-template-columns: 1fr; }
  .query-form { flex-wrap: wrap; }
  .input-text { flex: 1 1 100%; }
  .input-button { width: 100%; min-height: 38px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .copyright { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .download-primary { animation: none; transition: none; }
  .download-primary:hover { transform: none; }
}
