:root {
  --republic-red: #d9435f;
  --republic-red-dark: #af2c46;
  --jade: #168a85;
  --jade-dark: #0f625f;
  --signal-gold: #f2b544;
  --ink: #1f2733;
  --muted: #667080;
  --paper: #f7f7f2;
  --white: #ffffff;
  --line: #dfe3e6;
  --soft-red: #fff0f3;
  --soft-jade: #e9f5f3;
  --shadow: 0 16px 40px rgba(31, 39, 51, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
}

p,
h1,
h2,
h3,
li,
td,
summary {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 242, 0.96);
  border-bottom: 1px solid rgba(31, 39, 51, 0.1);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
  color: #3e4753;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--republic-red);
  border-color: var(--republic-red);
}

.site-nav .nav-download {
  margin-left: 8px;
  padding: 8px 19px;
  color: var(--white);
  background: var(--republic-red);
  border: 1px solid var(--republic-red);
  border-radius: 6px;
}

.site-nav .nav-download:hover {
  color: var(--white);
  background: var(--republic-red-dark);
  border-color: var(--republic-red-dark);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 670px;
  background:
    linear-gradient(90deg, rgba(217, 67, 95, 0.08) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(rgba(22, 138, 133, 0.06) 1px, transparent 1px) 0 0 / 54px 54px,
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 100%;
  content: "";
  background: linear-gradient(var(--republic-red) 0 47%, var(--signal-gold) 47% 62%, var(--jade) 62% 100%);
}

.hero-grid {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 72px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-copy {
  align-self: center;
  min-width: 0;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--republic-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow span,
.section-label span {
  display: inline-block;
  margin-right: 10px;
  padding: 3px 9px;
  color: var(--white);
  background: var(--republic-red);
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: 0;
  line-height: 1.28;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 900;
}

.hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: #4d5662;
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--republic-red);
  box-shadow: 0 10px 24px rgba(217, 67, 95, 0.24);
}

.button-primary:hover {
  background: var(--republic-red-dark);
}

.button-secondary {
  color: var(--jade-dark);
  background: var(--white);
  border-color: var(--jade);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 25px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.hero-meta li::before {
  margin-right: 8px;
  color: var(--jade);
  content: "●";
  font-size: 9px;
}

.hero-media {
  min-height: 520px;
  display: grid;
  align-items: center;
  justify-items: center;
  align-self: stretch;
  position: relative;
  min-width: 0;
}

.hero-media::before,
.hero-media::after {
  position: absolute;
  z-index: 0;
  content: "";
}

.hero-media::before {
  width: 330px;
  height: 470px;
  border: 2px solid var(--jade);
  transform: translate(42px, -12px);
}

.hero-media::after {
  width: 150px;
  height: 28px;
  right: 6px;
  bottom: 46px;
  background: var(--signal-gold);
}

.hero-phone {
  position: relative;
  z-index: 2;
  width: min(330px, 100%);
  max-width: 330px;
  padding: 10px;
  background: var(--ink);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-phone img {
  width: 100%;
  height: auto;
  max-width: 310px;
  margin: auto 0;
  border-radius: 22px;
}

.media-stamp {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 68px;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  padding: 14px;
  color: var(--white);
  background: var(--republic-red);
  border: 5px solid var(--paper);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  transform: rotate(8deg);
}

.section {
  padding: 92px 0;
}

.section-white {
  background: var(--white);
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.section-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.section-index {
  flex: 0 0 auto;
  color: rgba(31, 39, 51, 0.24);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}

.section-dark .section-index {
  color: rgba(255, 255, 255, 0.18);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-item {
  min-height: 270px;
  padding: 30px;
  background: var(--white);
}

.feature-code {
  display: inline-flex;
  min-width: 46px;
  height: 27px;
  align-items: center;
  justify-content: center;
  margin-bottom: 42px;
  color: var(--white);
  background: var(--jade);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
}

.feature-item:nth-child(2) .feature-code,
.feature-item:nth-child(4) .feature-code {
  background: var(--republic-red);
}

.feature-item h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.screens-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
  gap: 70px;
}

.screens-copy {
  position: sticky;
  top: 112px;
}

.screens-copy h2 {
  margin-bottom: 30px;
  font-size: clamp(32px, 4vw, 48px);
}

.screen-key {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.screen-key li {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.76);
}

.screen-key strong {
  color: var(--signal-gold);
}

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

.screen-card {
  margin: 0;
}

.screen-card:nth-child(even) {
  margin-top: 58px;
}

.screen-card img {
  width: 100%;
  height: auto;
  max-width: 360px;
  border: 8px solid #111720;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.screen-card figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.screen-card figcaption strong {
  display: block;
  color: var(--white);
  font-size: 16px;
}

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

.route-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 38px;
  color: var(--ink);
  background: var(--soft-jade);
  border: 1px solid #cce5e1;
  border-radius: 8px;
}

.route-card:last-child {
  background: var(--soft-red);
  border-color: #f2ccd4;
}

.route-card .route-number {
  margin-bottom: 55px;
  color: var(--jade);
  font-size: 13px;
  font-weight: 900;
}

.route-card:last-child .route-number {
  color: var(--republic-red);
}

.route-card h3 {
  margin-bottom: 16px;
  font-size: 29px;
}

.route-card p {
  margin: 0 0 30px;
  color: #56606c;
}

.route-card a {
  margin-top: auto;
  font-weight: 800;
}

.route-card a::after {
  margin-left: 10px;
  content: "→";
}

.review-stats {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.stat-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  min-height: 150px;
  padding: 28px;
  background: var(--white);
}

.stat strong {
  display: block;
  color: var(--republic-red);
  font-size: 42px;
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.quotes {
  display: grid;
  gap: 22px;
}

.quote {
  margin: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.quote footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.faq-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.faq-preview article {
  padding: 28px 0;
  border-top: 3px solid var(--signal-gold);
}

.faq-preview h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.faq-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.download-band {
  color: var(--white);
  background: var(--jade-dark);
}

.download-inner {
  min-height: 340px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.download-inner h2 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 58px);
}

.download-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.download-inner .button-primary {
  min-width: 150px;
  background: var(--signal-gold);
  color: var(--ink);
  box-shadow: none;
}

.site-footer {
  padding: 52px 0 30px;
  color: rgba(255, 255, 255, 0.7);
  background: #151b24;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding-bottom: 38px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

.footer-note {
  max-width: 720px;
  margin: 0;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 12px 22px;
  font-size: 14px;
}

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

.copyright {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

/* Inner pages */
.inner-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 76px;
  color: var(--white);
  background: var(--ink);
}

.inner-hero::after {
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 380px;
  height: 380px;
  content: "";
  border: 56px solid var(--republic-red);
  border-radius: 50%;
  opacity: 0.34;
}

.inner-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

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

.inner-hero h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 64px);
}

.inner-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 70px;
  padding-top: 80px;
  padding-bottom: 96px;
}

.article-flow {
  min-width: 0;
}

.article-flow section {
  margin-bottom: 74px;
}

.article-flow h2 {
  margin-bottom: 28px;
  padding-left: 18px;
  border-left: 6px solid var(--republic-red);
  font-size: 32px;
}

.article-flow h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.article-flow p {
  margin: 0 0 18px;
  color: #4d5662;
}

.article-flow a:not(.button) {
  color: var(--jade-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(22, 138, 133, 0.3);
  text-underline-offset: 4px;
}

.side-nav {
  position: sticky;
  top: 102px;
  align-self: start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.side-nav strong {
  display: block;
  margin-bottom: 13px;
  font-size: 15px;
}

.side-nav a {
  display: block;
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.side-nav a:last-child {
  border-bottom: 0;
}

.side-nav a:hover {
  color: var(--republic-red);
}

.step-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 26px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.step-number {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--jade);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
}

.step:nth-child(even) .step-number {
  background: var(--republic-red);
}

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

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 18px 20px 18px 48px;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.check-list li::before {
  position: absolute;
  left: 19px;
  top: 18px;
  color: var(--jade);
  content: "✓";
  font-weight: 900;
}

.guide-image-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.guide-image-row figure {
  margin: 0;
}

.guide-image-row img {
  width: 100%;
  height: auto;
  max-width: 360px;
  border: 8px solid var(--ink);
  border-radius: 24px;
}

.guide-image-row figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  padding: 22px 24px;
  color: #664d0f;
  background: #fff7dd;
  border-left: 5px solid var(--signal-gold);
}

.notice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.function-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

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

.function-table th {
  color: var(--white);
  background: var(--jade-dark);
}

.function-table td:first-child {
  width: 26%;
  color: var(--republic-red-dark);
  font-weight: 800;
}

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

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.faq-list details[open] {
  border-color: rgba(217, 67, 95, 0.5);
}

.faq-list summary {
  position: relative;
  padding: 20px 54px 20px 22px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  right: 22px;
  top: 17px;
  color: var(--republic-red);
  content: "+";
  font-size: 24px;
}

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

.faq-answer {
  padding: 0 22px 20px;
  color: #4d5662;
}

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

.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.related-links a {
  padding: 22px;
  color: var(--ink) !important;
  background: var(--soft-jade);
  border: 1px solid #cce5e1;
  border-radius: 6px;
  text-decoration: none !important;
}

.related-links strong {
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 0.8fr;
    gap: 36px;
  }

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

  .screens-layout,
  .review-stats {
    grid-template-columns: 1fr;
  }

  .screens-copy {
    position: static;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .side-nav {
    position: static;
    order: -1;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-content: start;
    padding: 22px 20px;
    background: var(--paper);
  }

  .nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    min-height: 54px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-download {
    margin: 14px 0 0;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .hero-copy {
    text-align: left;
  }

  h1 {
    font-size: 38px;
  }

  .hero-copy > p {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    word-break: break-all;
  }

  .hero-media {
    width: 100%;
    max-width: 100%;
    min-height: 490px;
    justify-self: stretch;
  }

  .hero-media::before {
    width: 290px;
    height: 420px;
    transform: translate(28px, -8px);
  }

  .hero-phone {
    width: 290px;
    justify-self: center;
  }

  .media-stamp {
    right: calc(50% - 170px);
    top: 40px;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-index {
    font-size: 38px;
  }

  .feature-grid,
  .screens-grid,
  .route-grid,
  .faq-preview,
  .guide-image-row,
  .check-list,
  .related-links {
    grid-template-columns: 1fr;
  }

  .feature-item {
    min-height: 220px;
  }

  .screen-card:nth-child(even) {
    margin-top: 0;
  }

  .screen-card img,
  .guide-image-row img {
    margin: 0 auto;
  }

  .download-inner {
    grid-template-columns: 1fr;
    min-height: 300px;
  }

  .download-inner .button {
    width: 100%;
  }

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

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

  .inner-hero {
    padding: 64px 0 58px;
  }

  .inner-hero h1 {
    font-size: 39px;
  }

  .content-layout {
    padding-top: 52px;
    padding-bottom: 68px;
  }

  .article-flow h2 {
    font-size: 28px;
  }

  .step {
    grid-template-columns: 52px 1fr;
    gap: 18px;
  }

  .step-number {
    width: 48px;
    height: 48px;
  }

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

  .function-table thead {
    display: none;
  }

  .function-table td:first-child {
    width: 100%;
    padding-bottom: 6px;
    border-bottom: 0;
  }

  .function-table td:last-child {
    padding-top: 6px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
