:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-soft: #e0f2fe;
  --accent: #10b981;
  --dark-bg: #0f172a;
  --dark-surface: #1e293b;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

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

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

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0c4a6e 100%);
  color: #f8fafc;
  padding: 68px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 26px;
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 620px;
}

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

.hero-actions .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 22px;
}

.hero-card h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #fff;
}

.stat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-item {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
  padding: 12px;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #38bdf8;
}

.stat-label {
  font-size: 0.82rem;
  color: #cbd5e1;
}

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

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

.section-head {
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
}

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

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

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

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

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.price-tag {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin: 8px 0 14px;
}

.price-tag span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.feature-list li {
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.93rem;
  border-bottom: 1px dashed var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

/* Subpage Header & Breadcrumb */
.page-banner {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 34px 0 28px;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
}

.page-banner p {
  margin: 0;
  color: var(--text-muted);
  max-width: 720px;
}

/* Article / Docs */
.article-wrap {
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.article-wrap h2 {
  margin: 28px 0 12px;
  font-size: 1.32rem;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.article-wrap h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-wrap ol,
.article-wrap ul {
  padding-left: 20px;
  color: var(--text-muted);
}

.article-wrap li {
  margin-bottom: 8px;
}

.callout {
  background: var(--surface-alt);
  border-left: 4px solid var(--primary);
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  margin: 18px 0;
  font-size: 0.94rem;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

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

.tab-panel {
  display: none;
}

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

/* FAQ Accordion */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  display: none;
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-a {
  display: block;
}

/* Table */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}

th {
  background: var(--surface-alt);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--dark-bg);
  color: #94a3b8;
  padding: 44px 0 28px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.site-footer h4 {
  color: #f8fafc;
  margin: 0 0 12px;
  font-size: 0.98rem;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
}

@media (max-width: 860px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

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