:root {
  --paper: #fff9f3;
  --surface: #ffffff;
  --ink: #241713;
  --muted: #6e5d56;
  --line: #ecd9cf;
  --red: #e7352f;
  --red-2: #b91f28;
  --amber: #f6a43a;
  --blue: #345b8c;
  --soft: #fff0e7;
  --shadow: 0 18px 46px rgba(185, 31, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(231, 53, 47, 0.04) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(180deg, #fffdf9 0%, var(--paper) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.2fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 253, 249, 0.92);
  border-bottom: 1px solid rgba(236, 217, 207, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  font-weight: 900;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--amber));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: #4d3b34;
  font-size: 14px;
  font-weight: 780;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--red);
}

.header-action,
.primary,
.secondary,
.article-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 850;
}

.header-action {
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  gap: 36px;
  align-items: center;
  padding: 56px 5vw 38px;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.25;
}

.lead {
  color: #5a463e;
  font-size: 20px;
}

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

.primary,
.secondary {
  min-width: 148px;
  padding: 0 20px;
}

.primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 15px 30px rgba(231, 53, 47, 0.2);
}

.secondary {
  color: var(--red-2);
  background: #fff;
  border: 1px solid var(--line);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.trust-strip span {
  padding: 8px 12px;
  color: #7d3429;
  font-size: 13px;
  font-weight: 850;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: 74px 5vw;
  border-top: 1px solid var(--line);
}

.section-title {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-title p,
.doc-head p,
.doc-section p,
.article-list em,
.quick-grid em,
.route-cards p,
.faq-list p,
.site-footer p {
  color: var(--muted);
}

.quick {
  background: #fff;
}

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

.quick-grid a,
.article-list a,
.route-cards article,
.doc-section,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.quick-grid a {
  display: grid;
  gap: 8px;
  min-height: 178px;
  padding: 20px;
}

.quick-grid span,
.article-list span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-grid strong {
  font-size: 22px;
}

.quick-grid em,
.article-list em {
  font-style: normal;
}

.compare {
  background: var(--soft);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(185, 31, 40, 0.08);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

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

th {
  color: #753029;
  background: #fff1e8;
}

td {
  color: #5e4a41;
}

td a {
  color: var(--red-2);
  font-weight: 850;
}

tr:last-child td {
  border-bottom: 0;
}

.route-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
  color: #fff;
  background:
    linear-gradient(135deg, #2a1412, #5d171b 52%, #180f12);
}

.route-copy p {
  color: rgba(255, 255, 255, 0.75);
}

.route-band .eyebrow {
  color: #ffbd69;
}

.route-cards {
  display: grid;
  gap: 12px;
}

.route-cards article {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.route-cards strong,
.route-cards span {
  display: block;
}

.route-cards strong {
  color: #fff;
  font-size: 20px;
}

.route-cards span {
  color: #ffbd69;
  font-weight: 850;
}

.articles {
  background: #fffaf5;
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-list a {
  display: grid;
  grid-template-columns: 92px minmax(220px, 0.75fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 18px;
}

.article-list a:hover,
.quick-grid a:hover {
  border-color: rgba(231, 53, 47, 0.4);
  box-shadow: 0 10px 26px rgba(231, 53, 47, 0.09);
}

.faq {
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 20px 22px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
}

.doc-main {
  width: min(980px, 90vw);
  margin: 0 auto;
  padding: 64px 0 88px;
}

.doc-main.compact {
  width: min(860px, 90vw);
}

.doc-head {
  max-width: 860px;
  margin-bottom: 34px;
}

.doc-head h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.doc-head p {
  font-size: 19px;
}

.doc-body {
  display: grid;
  gap: 16px;
}

.doc-section {
  padding: 24px;
}

.doc-section h2 {
  font-size: 28px;
}

.doc-section p,
.doc-section li {
  font-size: 18px;
}

.doc-section ul {
  margin: 0;
  padding-left: 22px;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-cta a {
  padding: 0 18px;
  color: #fff;
  background: var(--red);
}

.article-cta a.secondary {
  color: var(--red-2);
  background: #fff;
  border: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 5vw;
  color: rgba(255, 255, 255, 0.74);
  background: #1e1210;
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  max-width: 620px;
}

.footer-links a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--red);
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 2px 0;
    background: #fff;
  }

  .menu-toggle em {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .main-nav,
  .header-action {
    display: none;
  }

  .site-header.is-open .main-nav {
    position: absolute;
    left: 5vw;
    right: 5vw;
    top: 82px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .main-nav a {
    min-height: 42px;
    padding: 9px 10px;
  }

  .hero,
  .route-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: 36px;
  }

  .lead,
  .doc-head p {
    font-size: 18px;
  }

  .section {
    padding: 56px 5vw;
  }

  .quick-grid,
  .article-list a,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .article-list a {
    align-items: start;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
