:root {
  --bg: #F4F6F8;
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --surface-silver-start: #FFFFFF;
  --surface-silver-end: #E2E6EB;
  --surface-dark: #263342;
  --text: #263342;
  --text-muted: #475569;
  --text-inverse: #F4F6F8;
  --primary: #263342;
  --primary-hover: #3B4959;
  --brand-accent: #64748B;
  --metal-silver: #A3ADB9;
  --border: #E2E6EB;
  --border-strong: #CBD5E1;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --max-width: 1120px;
  --header-height: 68px;
  --space-xs: 8px;
  --space-sm: 14px;
  --space-md: 24px;
  --space-lg: 44px;
  --space-xl: 68px;
  --shadow-sm: 0 1px 3px rgba(38, 51, 66, 0.06);
  --shadow-md: 0 12px 28px rgba(38, 51, 66, 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", "Hiragino Sans GB", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--brand-accent);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--surface-dark);
  color: var(--text-inverse);
  padding: 12px 18px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

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

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

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

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--bg);
  color: var(--brand-accent);
}

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

.btn-primary {
  background: linear-gradient(180deg, #334155 0%, #263342 100%);
  color: #FFFFFF;
  border-color: #263342;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
  color: #FFFFFF;
  border-color: #334155;
}

.btn-outline {
  background: #FFFFFF;
  color: var(--text);
  border-color: var(--metal-silver);
}

.btn-outline:hover {
  background: #F4F6F8;
  color: var(--text);
  border-color: var(--brand-accent);
}

.btn-nav {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Sections */
section[id],
h2[id],
h3[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.section {
  padding: var(--space-xl) 0;
  background: var(--bg);
}

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

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

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

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

/* Hero */
.hero {
  padding: var(--space-xl) 0;
  background: linear-gradient(160deg, var(--surface-silver-start) 0%, var(--surface-silver-end) 100%);
  border-bottom: 1px solid var(--border-strong);
}

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

.hero-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: #FFFFFF;
  border: 1px solid var(--metal-silver);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 2.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

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

.hero-media {
  background: linear-gradient(145deg, #FFFFFF 0%, #E2E6EB 100%);
  border: 1px solid var(--metal-silver);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* 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: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  overflow-wrap: break-word;
}

.card h3,
.card h2 {
  margin: 14px 0 8px;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--text);
}

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

.card-media-img {
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.meta-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-accent);
  background: #F4F6F8;
  border: 1px solid var(--border-strong);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

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

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

.pricing-table caption {
  padding: 16px 20px 8px;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  color: var(--text);
}

.pricing-table th,
.pricing-table td {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.pricing-table thead th {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F6F8 100%);
  font-weight: 700;
  color: var(--text);
}

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

.pricing-table .price {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

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

.section-cta {
  margin-top: 22px;
}

/* Review / Notice Box */
.notice-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.notice-box h3 {
  margin: 0 0 8px;
  color: var(--text);
}

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

/* FAQ */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--brand-accent);
  flex-shrink: 0;
}

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

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

.faq-answer p {
  margin: 0;
}

/* Article & Subpage Layout */
.page-banner {
  background: linear-gradient(160deg, var(--surface-silver-start) 0%, var(--surface-silver-end) 100%);
  border-bottom: 1px solid var(--border-strong);
  padding: 42px 0;
}

.page-banner h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.3;
  color: var(--text);
}

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

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

.article-body {
  max-width: 780px;
  margin: 32px auto;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-body h1 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.85rem;
  line-height: 1.35;
}

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

.article-body h3 {
  margin: 20px 0 8px;
  font-size: 1.15rem;
  color: var(--text);
}

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

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--brand-accent);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-faq {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.related-links {
  margin-top: 32px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
}

.related-links h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.related-links ul {
  margin: 0;
  padding-left: 20px;
}

/* Footer (Strictly 4 headings) */
.site-footer {
  background: var(--surface-dark);
  color: var(--text-inverse);
  padding: 48px 0 32px;
  border-top: 1px solid var(--metal-silver);
}

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

.footer-col h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #FFFFFF;
}

.footer-col p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #CBD5E1;
}

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

.footer-col a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #3B4959;
  font-size: 0.88rem;
  color: var(--metal-silver);
}

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

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .section,
  .hero {
    padding: 40px 0;
  }

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

  .section-header h2,
  .page-banner h1 {
    font-size: 1.5rem;
  }

  .article-body {
    margin: 16px 12px;
    padding: 24px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
