:root {
  --navy: #1f3a5f;
  --navy-deep: #14283f;
  --orange: #ea580c;
  --orange-soft: #fff4e8;
  --ink: #172033;
  --muted: #657287;
  --line: #e3e8ef;
  --surface: #f6f8fb;
  --white: #ffffff;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr) 60px;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body,
button {
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 1000;
  padding: 9px 13px;
  color: var(--white);
  background: var(--navy);
  border-radius: 4px;
}

.skip-link:focus {
  top: 10px;
}

.header-inner,
.hero-inner,
.section-inner,
.footer-inner {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #edf0f4;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

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

.brand-copy strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
}

.brand-copy small {
  margin-top: 3px;
  color: #8290a3;
  font-size: 10px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.4);
  outline-offset: 3px;
}

.button-primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 9px 22px rgba(234, 88, 12, 0.2);
}

.button-primary:hover {
  background: #d94f09;
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.25);
}

.button-large {
  min-height: 50px;
  padding: 0 25px;
  font-size: 15px;
}

.android-mark {
  width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
}

main {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 104px;
}

.hero {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  background: var(--surface);
  border-left: 1px solid #edf0f4;
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 56px;
  padding: 24px 0 46px;
}

.hero-copy,
.hero-product {
  animation: page-enter 560ms ease both;
}

.hero-product {
  animation-delay: 90ms;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.hero-kicker span {
  width: 28px;
  height: 3px;
  background: var(--orange);
}

.hero h1 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 52px;
  line-height: 1.15;
  font-weight: 800;
}

.hero h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-description {
  max-width: 555px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 26px;
}

.download-control {
  position: relative;
  display: inline-flex;
}

.download-popover {
  position: absolute;
  z-index: 30;
  top: 50%;
  left: calc(100% + 16px);
  width: 174px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(-8px);
  color: var(--ink);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 18px 46px rgba(20, 40, 63, 0.2);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
}

.download-popover::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -6px;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--white);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.download-popover img {
  width: 148px;
  height: 148px;
}

.download-popover strong,
.download-popover span {
  display: block;
}

.download-popover strong {
  margin-top: 9px;
  color: var(--navy);
  font-size: 13px;
}

.download-popover span {
  margin-top: 4px;
  color: #7d899a;
  font-size: 10px;
}

@media (min-width: 601px) and (hover: hover) and (pointer: fine) {
  .download-control:hover .download-popover,
  .download-control:focus-within .download-popover,
  .download-control.is-open .download-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
  }
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 22px;
  color: #677489;
  font-size: 12px;
}

.hero-notes span {
  white-space: nowrap;
}

.hero-notes i {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  margin-right: 4px;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.hero-product {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.hero-promo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
  box-shadow: 0 24px 64px rgba(31, 58, 95, 0.14);
}

.route-line {
  position: absolute;
  z-index: 1;
  inset: 50% -72px auto -28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #b8c1ce 0 8px, transparent 8px 16px);
}

.route-node {
  position: absolute;
  top: -7px;
  width: 16px;
  height: 16px;
  border: 4px solid var(--white);
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.24);
}

.route-node-start { left: 0; }
.route-node-end { right: 0; }

.route-train {
  position: absolute;
  top: -17px;
  right: 48px;
  padding: 5px 8px;
  color: var(--white);
  background: var(--navy);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
}

.phone {
  position: relative;
  padding: 8px;
  background: #172236;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 32px;
  box-shadow: 0 24px 64px rgba(31, 58, 95, 0.16);
}

.phone-main {
  z-index: 2;
  width: 270px;
  height: min(540px, calc(100% - 8px));
  min-height: 420px;
  transform: rotate(2deg);
}

.phone-speaker {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 50%;
  width: 74px;
  height: 18px;
  transform: translateX(-50%);
  background: #172236;
  border-radius: 0 0 10px 10px;
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  background: #f7f8fa;
  border-radius: 25px;
}

.app-status {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  color: #334055;
  font-size: 8px;
  font-weight: 700;
}

.app-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px 7px;
  background: var(--white);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
}

.app-brand img {
  width: 23px;
  height: 23px;
  border-radius: 5px;
}

.filter-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #f3f5f8;
  border-radius: 8px;
  font-weight: 800;
}

.city-tabs {
  display: flex;
  gap: 6px;
  padding: 7px 9px 11px;
  overflow: hidden;
  background: var(--white);
  font-size: 9px;
}

.city-tabs span,
.city-tabs b {
  flex-shrink: 0;
  padding: 5px 9px;
  color: #68758a;
  background: #f6f7f9;
  border: 1px solid #e7ebf0;
  border-radius: 13px;
}

.city-tabs b {
  color: var(--orange);
  background: var(--orange-soft);
  border-color: #ffd9bf;
}

.notice-strip {
  margin: 9px;
  padding: 7px;
  color: #8c4c22;
  background: #fff5e8;
  border: 1px solid #ffe3c2;
  border-radius: 8px;
  font-size: 7px;
}

.notice-strip span {
  width: 13px;
  height: 13px;
  display: inline-grid;
  place-items: center;
  margin-right: 4px;
  color: var(--white);
  background: var(--orange);
  border-radius: 50%;
  font-weight: 800;
}

.source-list {
  display: grid;
  gap: 8px;
  padding: 0 9px 62px;
}

.source-item {
  padding: 11px;
  background: var(--white);
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(31, 58, 95, 0.05);
}

.source-top,
.source-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.source-top {
  color: #8995a7;
  font-size: 7px;
}

.source-tag {
  padding: 3px 6px;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 3px;
  font-weight: 700;
}

.source-item h3 {
  margin: 8px 0 4px;
  font-size: 11px;
}

.source-item p {
  margin: 0 0 8px;
  color: #68758a;
  font-size: 8px;
}

.source-bottom {
  color: #8a95a6;
  font-size: 7px;
}

.source-bottom button {
  padding: 5px 9px;
  color: var(--white);
  background: var(--orange);
  border: 0;
  border-radius: 5px;
  font-size: 7px;
  font-weight: 700;
}

.app-tabbar {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 5px 7px 6px;
  background: rgba(255, 252, 248, 0.98);
  border-top: 1px solid #f6e3cf;
}

.app-tabbar > * {
  min-width: 60px;
  display: grid;
  place-items: center;
  color: #8b95a7;
  font-size: 14px;
}

.app-tabbar b {
  padding: 5px;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 11px;
}

.app-tabbar small {
  display: block;
  margin-top: 2px;
  font-size: 7px;
}

.match-alert {
  position: absolute;
  z-index: 4;
  top: 14%;
  right: -10px;
  min-width: 198px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid #e3e8ef;
  border-radius: 7px;
  box-shadow: 0 15px 34px rgba(31, 58, 95, 0.15);
}

.alert-dot {
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  background: var(--orange-soft);
  border: 8px solid #ffe0c9;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--orange);
}

.match-alert strong,
.match-alert small {
  display: block;
}

.match-alert strong {
  color: var(--navy);
  font-size: 11px;
}

.match-alert small {
  margin-top: 4px;
  color: #8591a2;
  font-size: 8px;
}

.hero-rail {
  position: absolute;
  z-index: 5;
  inset: auto 0 0;
  height: 34px;
  display: flex;
  justify-content: space-around;
  overflow: hidden;
  border-top: 4px solid var(--navy);
  background: #e8ecf1;
}

.hero-rail::before {
  content: "";
  position: absolute;
  inset: 10px 0 auto;
  height: 3px;
  background: var(--navy);
}

.hero-rail span {
  width: 7px;
  height: 44px;
  transform: rotate(28deg);
  background: #bcc5d0;
}

.trust-band {
  min-height: 0;
  background: var(--navy);
}

.trust-grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.trust-grid > div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.trust-grid strong {
  color: var(--white);
  font-size: 14px;
}

.trust-grid span {
  margin-top: 6px;
  color: #b8c6d8;
  font-size: 10px;
}

.site-footer {
  position: relative;
  color: #9caec1;
  background: #101e30;
  border-top: 2px solid var(--orange);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.footer-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
}

.footer-identity,
.footer-links {
  display: flex;
  align-items: center;
}

.footer-identity {
  min-width: 0;
  gap: 10px;
}

.footer-identity img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 6px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}

.footer-company {
  min-width: 0;
}

.footer-company strong,
.footer-company span {
  display: block;
  white-space: nowrap;
}

.footer-company strong {
  color: #dce5ef;
  font-size: 11px;
  font-weight: 600;
}

.footer-company span {
  margin-top: 4px;
  color: #71859b;
  font-size: 9px;
}

.footer-links {
  gap: 0;
}

.footer-links a {
  position: relative;
  padding: 5px 13px;
  color: #b9c5d3;
  font-weight: 600;
  transition: color 160ms ease;
}

.footer-links a + a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
}

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

@keyframes page-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    gap: 28px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .phone-main {
    width: 248px;
    min-height: 400px;
  }

  .match-alert {
    right: 0;
    transform: scale(0.9);
    transform-origin: right center;
  }
}

@media (max-width: 600px) {
  body {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
  }

  main {
    display: block;
  }

  .site-header {
    height: 58px;
  }

  .header-inner,
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy small {
    font-size: 8px;
  }

  .hero::before {
    display: none;
  }

  .hero-inner {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 0 50px;
  }

  .hero-copy {
    position: relative;
    z-index: 6;
  }

  .hero-kicker {
    gap: 6px;
    margin-bottom: 8px;
    font-size: 9px;
  }

  .hero-kicker span {
    width: 18px;
    height: 2px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.18;
  }

  .hero-description {
    max-width: none;
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .download-popover {
    display: none;
  }

  .button-large {
    min-height: 48px;
    padding: 0 22px;
    gap: 9px;
    font-size: 14px;
  }

  .android-mark {
    width: 19px;
    height: 19px;
    border-radius: 5px;
    font-size: 9px;
  }

  .hero-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
    font-size: 10px;
  }

  .hero-notes i {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }

  .hero-product {
    width: min(100%, 340px);
    height: auto;
    aspect-ratio: 2 / 3;
    margin: 2px auto 0;
    overflow: visible;
    border: 0;
  }

  .hero-product::after {
    display: none;
  }

  .hero-promo-image {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 7px;
    box-shadow: 0 18px 44px rgba(31, 58, 95, 0.15);
  }

  .phone-main {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 520px;
    min-height: 0;
    transform: translate(-50%, -47%) rotate(2deg) scale(0.53);
  }

  .route-line {
    inset: 62% 0 auto;
  }

  .route-train {
    right: 12px;
  }

  .match-alert {
    top: 22%;
    right: -2px;
    min-width: 188px;
    transform: scale(0.56);
    transform-origin: right center;
  }

  .hero-rail {
    height: 28px;
  }

  .hero-rail::before {
    top: 8px;
  }

  .trust-grid {
    width: 100%;
    min-height: 112px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid > div {
    padding: 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .trust-grid > div:nth-child(even) {
    border-right: 0;
  }

  .trust-grid > div:nth-child(n + 3) {
    border-bottom: 0;
  }

  .trust-grid strong {
    font-size: 11px;
  }

  .trust-grid span {
    margin-top: 3px;
    font-size: 8px;
  }

  .footer-inner {
    min-height: 78px;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 9px;
  }

  .footer-identity {
    gap: 7px;
  }

  .footer-identity img {
    width: 26px;
    height: 26px;
    border-radius: 5px;
  }

  .footer-company strong {
    font-size: 9px;
  }

  .footer-company span {
    margin-top: 3px;
    font-size: 8px;
  }

  .footer-links {
    flex-shrink: 0;
  }

  .footer-links a {
    padding: 5px 6px;
    font-size: 8px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-description {
    font-size: 12px;
  }

  .phone-main {
    transform: translate(-50%, -47%) rotate(2deg) scale(0.49);
  }

  .match-alert {
    transform: scale(0.52);
  }
}

@media (max-height: 720px) and (min-width: 601px) {
  body {
    grid-template-rows: 62px minmax(0, 1fr) 54px;
  }

  main {
    grid-template-rows: minmax(0, 1fr) 94px;
  }

  .hero-inner {
    padding-top: 14px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-description {
    margin-top: 14px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-notes {
    margin-top: 15px;
  }

  .phone-main {
    transform: rotate(2deg) scale(0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
