@font-face {
  font-family: "BridgeSC";
  src: url("/assets/fonts/noto-sans-sc-vf.4d194e91.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --line: #e5e5ea;
  --good: #0f7b3e;
  --good-bg: #eefaf3;
  --good-border: #bfe6ce;
  --warn: #9a4b00;
  --warn-bg: #fff5ea;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.045);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "BridgeSC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: 8px;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-dot {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 980px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

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

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

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: #d2d2d7;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 13.5px;
}

/* Hero */
.hero {
  background: var(--bg);
  padding: 52px 0 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 980px;
  background: #eef5ff;
  color: var(--accent);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}

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

.hero h1 {
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 14px 0 16px;
  max-width: 920px;
}

.hero-lead {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 780px;
  margin: 0 0 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 980px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.quick-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Bands */
.band {
  padding: 52px 0;
}

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

.band--white {
  background: var(--bg);
}

.section-title {
  font-size: clamp(21px, 2.7vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.section-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 720px;
}

/* Comparison cards */
.cmp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card--good {
  border-color: var(--good-border);
  box-shadow: var(--shadow-soft);
}

.card-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 980px;
  margin-bottom: 14px;
}

.card-tag--warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.card-tag--good {
  background: var(--good-bg);
  color: var(--good);
}

.point-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 14.5px;
}

.point-list li {
  position: relative;
  padding-left: 20px;
}

.point-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--muted);
  font-weight: 700;
}

.card--good .point-list li::before {
  content: "✓";
  left: 0;
  color: var(--good);
}

.point-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

.point-list span {
  color: var(--muted);
}

/* Comparison Table */
.table-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.cmp-table th,
.cmp-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cmp-table thead th {
  background: #fafafc;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
}

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

.cmp-table tbody th {
  font-weight: 600;
  width: 20%;
  color: var(--ink);
}

.cmp-table td:last-child {
  color: var(--good);
  font-weight: 500;
}

/* Topic cards */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.topic-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.topic-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.band--white .topic-card {
  background: var(--surface);
}

.topic-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.topic-card h3 {
  font-size: 17px;
  line-height: 1.38;
  margin: 0 0 8px;
}

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

.topic-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* Dual CTA cards */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cta-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.cta-card h3 {
  margin: 6px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.cta-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* Article layout */
.takeaways {
  background: #f2f7ff;
  border: 1px solid #d4e4ff;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-top: 24px;
}

.takeaways-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}

.takeaways ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14.5px;
}

.article-body {
  max-width: 820px;
  display: grid;
  gap: 28px;
}

.article-sec h2 {
  font-size: clamp(19px, 2.3vw, 24px);
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}

.article-sec p {
  margin: 0 0 12px;
  color: #3a3a3c;
  font-size: 15.5px;
}

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

.cta-strip {
  background: #fff;
  border: 1px solid var(--good-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.cta-strip h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.cta-strip p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.faq-item summary {
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
}

.faq-item p {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 13.5px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-note {
  margin: 0;
  font-size: 12.5px;
  color: #86868b;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .wrap {
    padding: 0 16px;
  }

  .brand-sub,
  .nav-links {
    display: none;
  }

  .hero {
    padding: 30px 0 28px;
  }

  .band {
    padding: 34px 0;
  }

  .cmp-grid,
  .topics-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-row .btn,
  .cta-card .btn,
  .cta-strip .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .nav-bar .btn {
    width: auto;
    padding: 7px 13px;
    font-size: 13px;
  }

  .card,
  .cta-card,
  .cta-strip {
    padding: 18px;
  }

  /* Responsive card-mode comparison table */
  .table-shell {
    border: none;
    background: transparent;
  }

  .cmp-table,
  .cmp-table tbody,
  .cmp-table tr,
  .cmp-table th,
  .cmp-table td {
    display: block;
    width: 100%;
  }

  .cmp-table thead {
    display: none;
  }

  .cmp-table tbody tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 12px;
  }

  .cmp-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .cmp-table tbody th {
    width: 100%;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
    font-size: 15px;
  }

  .cmp-table tbody td {
    padding: 6px 0;
    border-bottom: none;
    font-size: 14px;
  }

  .cmp-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 2px;
  }
}
