:root {
  --brand-900: #0d1f3c;
  --brand-800: #1a3560;
  --brand-700: #234878;
  --brand-600: #2755a6;
  --brand-100: #ebf0f9;
  --brand-50: #f4f7fd;
  --gold: #b8923a;
  --gold-light: #fbf5e8;
  --text: #1a1d2e;
  --text-muted: #5c6478;
  --border: #e2e8f0;
  --surface: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(13, 31, 60, 0.1);
  --shadow-sm: 0 4px 16px rgba(13, 31, 60, 0.06);
  font-family: "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--brand-50);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 253, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}

.brand-logo {
  height: 64px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--brand-600);
}

.header-cta {
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), #3d6fc4);
  color: #fff;
  box-shadow: 0 8px 24px rgba(39, 85, 166, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.btn-ghost {
  background: var(--surface);
  color: var(--brand-800);
  border: 1px solid var(--border);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
  border-radius: 12px;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

.link-btn {
  border: none;
  background: none;
  color: var(--brand-600);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(39, 85, 166, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(184, 146, 58, 0.1), transparent),
    linear-gradient(180deg, #eef3fb 0%, var(--brand-50) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-light);
  color: #8a6a1e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill-free {
  background: #e8f7ee;
  color: #1a7a43;
}

.hero-pricing-note {
  margin: -10px 0 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand-900);
}

.hero-accent {
  background: linear-gradient(135deg, var(--brand-600), #4a7fd4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Mock window */
.mock-window {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.mock-titlebar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d9e6;
}

.mock-titlebar span:nth-child(1) {
  background: #ff6b6b;
}
.mock-titlebar span:nth-child(2) {
  background: #ffd166;
}
.mock-titlebar span:nth-child(3) {
  background: #6bcb77;
}

.mock-titlebar em {
  margin-left: auto;
  font-style: normal;
}

.mock-body {
  display: grid;
  grid-template-columns: 130px 1fr;
  min-height: 280px;
}

.mock-sidebar {
  background: linear-gradient(180deg, var(--brand-900), var(--brand-800));
  color: #fff;
  padding: 16px 12px;
  font-size: 12px;
}

.mock-brand {
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 13px;
}

.mock-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mock-sidebar li {
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
  opacity: 0.72;
}

.mock-sidebar li.active {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
  font-weight: 600;
}

.mock-main {
  padding: 18px;
  background: #fafbfd;
}

.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.mock-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.mock-stat strong {
  display: block;
  font-size: 18px;
  color: var(--brand-600);
}

.mock-stat span {
  font-size: 11px;
  color: var(--text-muted);
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.mock-card h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.mock-card p {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.mock-progress {
  height: 6px;
  background: var(--brand-100);
  border-radius: 999px;
  overflow: hidden;
}

.mock-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-600), #5a8fd8);
  border-radius: inherit;
}

.mock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mock-tags span {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-800);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--brand-900);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-100);
  font-size: 22px;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--brand-900);
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.workflow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.workflow-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--brand-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.wf-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-600);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.workflow-steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-900);
}

.workflow-steps p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Download */
.section-download {
  background: linear-gradient(145deg, var(--brand-900) 0%, var(--brand-800) 55%, #2a4a7f 100%);
  color: #fff;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.download-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.download-desc {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.download-meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.download-free {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #9ee6b8;
}

.download-pricing-note {
  margin: 0 0 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.download-btn {
  margin-bottom: 16px;
}

.download-tip {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.download-tip .link-btn {
  color: #ffd166;
}

.download-panels {
  display: grid;
  gap: 16px;
}

.info-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 20px 22px;
  backdrop-filter: blur(8px);
}

.info-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.info-panel ul,
.install-steps {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.install-steps {
  list-style: none;
  padding: 0;
}

.install-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.install-steps .step-index {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 700;
}

/* FAQ */
.faq-wrap {
  max-width: 760px;
}

.faq-item {
  background: var(--brand-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 18px;
  margin-bottom: 10px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  color: var(--brand-900);
}

.faq-item p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 36px 0;
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 8px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  margin: 0;
}

.footer-meta p {
  margin: 0 0 6px;
  text-align: right;
}

.footer-meta .link-btn {
  color: #ffd166;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .mock-window {
    transform: none;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .mock-body {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    display: none;
  }

  .footer-meta p {
    text-align: left;
  }
}
