:root {
  --bg: #F1F7FA;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-soft: #E6F1F7;
  --hero-bg: #102B46;
  --hero-surface: #163759;
  --text: #102B46;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #CBD5E1;
  --primary: #0891B2;
  --primary-hover: #0E7490;
  --accent: #67E8F9;
  --accent-hover: #A5F3FC;
  --border: #D5E5ED;
  --border-dark: rgba(103, 232, 249, 0.25);
  --focus: #0891B2;
  --max-width: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --header-height: 72px;
}

*,
*::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", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: normal;
}

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

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

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--accent);
  color: var(--hero-bg);
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  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, 43, 70, 0.96);
  border-bottom: 1px solid var(--border-dark);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-on-dark);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hero-bg);
  background: var(--accent);
  border-radius: 999px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-on-dark-muted);
  padding: 0.55rem 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text-on-dark);
  background: rgba(103, 232, 249, 0.14);
  text-decoration: none;
}

.main-nav a.btn-primary,
.main-nav a.btn-primary:hover {
  color: var(--hero-bg);
  background: var(--accent);
}

.main-nav a.btn-primary:hover {
  background: var(--accent-hover);
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--hero-bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--hero-bg);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--primary);
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  border-color: rgba(103, 232, 249, 0.45);
}

.hero .btn-secondary:hover {
  background: rgba(103, 232, 249, 0.16);
  color: var(--text-on-dark);
  border-color: var(--accent);
}

/* Anchor offset for sticky header */
section[id],
article[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

/* Hero */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background:
    radial-gradient(circle at 80% 25%, rgba(103, 232, 249, 0.14), transparent 52%),
    radial-gradient(circle at 15% 85%, rgba(8, 145, 178, 0.2), transparent 48%),
    var(--hero-bg);
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--border-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.25;
  color: var(--text-on-dark);
}

.hero-subtitle {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 600;
}

.hero-desc {
  margin: 0 0 1.75rem;
  color: var(--text-on-dark-muted);
  font-size: 1rem;
}

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

.hero-visual {
  background: var(--hero-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  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: var(--space-md);
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card h2,
.card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}

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

.card-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.tag {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
}

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

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

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

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

.pricing-table tbody th {
  color: var(--text);
}

.pricing-table thead th {
  background: var(--hero-bg);
  color: var(--text-on-dark);
  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: 800;
  color: var(--primary);
}

.pricing-cta-bar {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* Reviews */
.review-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.review-stars {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.9rem;
}

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

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-body {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.faq-body p {
  margin: 0 0 0.5rem;
}

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

/* Article & Subpage Layout */
.page-hero {
  padding: var(--space-lg) 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(103, 232, 249, 0.12), transparent 50%),
    var(--hero-bg);
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--border-dark);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.3;
  color: var(--text-on-dark);
}

.page-hero .hero-desc {
  margin: 0;
  color: var(--text-on-dark-muted);
}

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

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

.article-content {
  max-width: 820px;
  padding: var(--space-lg) 0;
}

.article-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  color: var(--text);
}

.article-content p {
  margin: 0 0 1.1rem;
  color: var(--text-body);
}

.article-content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  color: var(--text-body);
}

.article-content li {
  margin-bottom: 0.45rem;
}

.section-actions {
  margin-top: 1.75rem;
}

/* Footer */
.site-footer {
  padding: var(--space-lg) 0;
  background: var(--hero-bg);
  border-top: 1px solid var(--border-dark);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-on-dark);
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.5rem;
}

.footer-nav a:hover {
  color: var(--accent);
}

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

@media (max-width: 600px) {
  .site-header {
    position: static;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
  }

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

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

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

  .btn {
    transition: none;
  }
}
