:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-alt: #f3f4f6;
  --hero-bg: #090b0f;
  --hero-surface: #141821;
  --text: #111827;
  --text-muted: #4b5563;
  --text-inverse: #f9fafb;
  --text-inverse-muted: #d1d5db;
  --primary: #b45309;
  --primary-hover: #92400e;
  --accent: #d97706;
  --gold-light: #fbbf24;
  --brand-dark: #111318;
  --border: #d1d5db;
  --border-light: #e5e7eb;
  --success-bg: #fef3c7;
  --success-text: #92400e;
  --radius: 12px;
  --radius-sm: 8px;
  --container-max: 1120px;
  --shadow: 0 4px 16px rgba(9, 11, 15, 0.08);
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-wrap: break-word;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

section[id],
[id] {
  scroll-margin-top: 84px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

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

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background-color: var(--brand-dark);
  border: 1px solid var(--accent);
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 700;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--accent);
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

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

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

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

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-outline-light {
  background-color: transparent;
  border-color: #94a3b8;
  color: #ffffff;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Hero Section */
.hero {
  background-color: var(--hero-bg);
  color: var(--text-inverse);
  padding: 64px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--hero-surface);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--gold-light);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 2.35rem;
  line-height: 1.25;
  color: #ffffff;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: var(--text-inverse-muted);
}

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

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

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

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

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

.section-header h2 {
  margin: 0 0 12px;
  font-size: 1.85rem;
  color: var(--text);
}

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

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

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

.card {
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.card-icon {
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--text);
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.tag-list li {
  padding: 4px 10px;
  border-radius: 6px;
  background-color: var(--surface-alt);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Pricing Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  text-align: left;
}

.pricing-table caption {
  padding: 16px 20px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background-color: var(--surface-alt);
  border-bottom: 1px solid var(--border-light);
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.pricing-table thead th {
  background-color: var(--surface-alt);
  color: var(--text);
  font-weight: 700;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.price-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.table-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Knowledge Preview & Articles */
.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section-cta {
  text-align: center;
  margin-top: 32px;
}

/* Reviews */
.review-rating {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: var(--success-bg);
  color: var(--success-text);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.review-author {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.faq-item summary {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  cursor: pointer;
  list-style-position: outside;
  padding: 4px 0;
}

.faq-answer {
  margin-top: 10px;
  color: var(--text-muted);
}

.faq-answer p {
  margin: 0;
}

/* Subpage & Article Content */
.page-banner {
  background-color: var(--hero-bg);
  color: var(--text-inverse);
  padding: 44px 0;
}

.page-banner h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  color: #ffffff;
}

.page-banner p {
  margin: 0;
  color: var(--text-inverse-muted);
}

.breadcrumb {
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-inverse-muted);
}

.breadcrumb a {
  color: var(--gold-light);
}

.prose {
  max-width: 840px;
  margin: 0 auto;
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.prose h2 {
  margin: 28px 0 12px;
  font-size: 1.4rem;
  color: var(--text);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 16px;
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.article-cta-box {
  margin: 28px 0;
  padding: 20px 24px;
  background-color: var(--surface-alt);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Footer */
.site-footer {
  background-color: var(--hero-bg);
  color: var(--text-inverse-muted);
  padding: 36px 0;
  border-top: 1px solid var(--hero-surface);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-inverse-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .hero {
    padding: 44px 0;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-actions,
  .hero-actions .btn,
  .header-cta {
    width: 100%;
  }

  .prose {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
