:root {
  --bg: #101C30;
  --bg-alt: #142238;
  --surface: #1C2D45;
  --surface-hover: #223654;
  --border: #304761;
  --text: #F8FAFC;
  --text-muted: #A8B8CC;
  --accent: #38BDF8;
  --accent-dark: #0284C7;
  --cta-bg: #E5FF00;
  --cta-bg-hover: #EEFF4D;
  --cta-text: #101C30;
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1120px;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 3.5rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
  }
}

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

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

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

a:hover {
  text-decoration: underline;
}

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

[id] {
  scroll-margin-top: 88px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 28, 48, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
}

.site-nav a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--cta-bg);
  color: var(--cta-text);
  border-color: rgba(229, 255, 0, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 12px rgba(8, 14, 26, 0.35);
}

.btn-primary:hover {
  background-color: var(--cta-bg-hover);
  border-color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 16px rgba(8, 14, 26, 0.45);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-secondary {
  background: linear-gradient(180deg, rgba(28, 45, 69, 0.85) 0%, rgba(16, 28, 48, 0.95) 100%);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.22);
}

.btn-secondary:hover {
  background: linear-gradient(180deg, rgba(34, 54, 84, 0.95) 0%, rgba(20, 34, 56, 0.98) 100%);
  border-color: rgba(229, 255, 0, 0.65);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  padding: 3.75rem 0 3.25rem;
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(28, 45, 69, 0.38) 0%, rgba(16, 28, 48, 0) 44%, rgba(56, 189, 248, 0.045) 50%, rgba(16, 28, 48, 0) 56%, rgba(16, 28, 48, 0.45) 100%),
    linear-gradient(112deg, transparent 36%, rgba(56, 189, 248, 0.14) 36.1%, transparent 36.25%),
    linear-gradient(112deg, transparent 68%, rgba(229, 255, 0, 0.1) 68.08%, transparent 68.2%);
}

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

.hero-badge {
  display: inline-block;
  background: linear-gradient(180deg, rgba(28, 45, 69, 0.92), rgba(16, 28, 48, 0.92));
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow: inset 0 1px 0 rgba(248, 250, 252, 0.06);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(1.95rem, 3.3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0 0 1.1rem;
}

.hero-subtitle {
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 1.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(248, 250, 252, 0.08), 0 14px 32px rgba(8, 14, 26, 0.5);
}

/* Sections */
.section {
  padding: var(--space-lg) 0;
}

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

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

.section-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin: 0 0 0.65rem;
}

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

.section-more {
  text-align: center;
  margin-top: 2rem;
}

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

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

.card {
  background: linear-gradient(180deg, #213450 0%, #1C2D45 100%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(248, 250, 252, 0.07), 0 8px 20px rgba(8, 14, 26, 0.35);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(229, 255, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(229, 255, 0, 0.22), 0 10px 26px rgba(8, 14, 26, 0.48);
  transform: translateY(-2px);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}

.card h3 {
  margin: 0.25rem 0 0;
  font-size: 1.2rem;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.tag-list li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.875rem;
}

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

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

.pricing-table caption {
  padding: 1rem 1.25rem;
  font-weight: 700;
  text-align: left;
  color: var(--text);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

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

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

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

.pricing-table tbody tr:hover {
  background-color: var(--surface-hover);
}

.price-highlight {
  color: var(--cta-bg);
  font-weight: 800;
  font-size: 1.08rem;
}

/* Reviews */
.review-meta {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style-position: inside;
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

/* Articles & Inner Pages */
.page-hero {
  padding: 2.5rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.article-body h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.article-body p,
.article-body li {
  color: var(--text-muted);
}

.cta-box {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--text);
}

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

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

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav {
    width: 100%;
    gap: 0.25rem 0.9rem;
  }
  .hero {
    padding: 2.25rem 0 2rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .section {
    padding: 2.5rem 0;
  }
}
