:root {
  --blue-950: #071833;
  --blue-900: #0b2448;
  --blue-700: #075ee8;
  --blue-600: #0b73ff;
  --cyan-400: #35d9ff;
  --text: #102033;
  --muted: #5e7089;
  --surface: rgba(255, 255, 255, 0.9);
  --line: rgba(35, 116, 222, 0.16);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #eef6ff;
}

a {
  color: inherit;
}

.page-shell {
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(53, 217, 255, 0.25), transparent 34%),
    linear-gradient(180deg, #edf7ff 0%, #f9fcff 58%, #eef7ff 100%);
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 4vw, 64px);
}

.brand img {
  width: min(260px, 46vw);
  height: auto;
  display: block;
}

.support-phone {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #eaf7ff;
  text-decoration: none;
  background: rgba(7, 24, 51, 0.25);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 104px clamp(18px, 4vw, 64px) 48px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-landscape.svg");
  background-size: cover;
  background-position: center bottom;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 22, 52, 0.1), rgba(6, 44, 96, 0.5) 48%, rgba(2, 16, 38, 0.78)),
    linear-gradient(180deg, rgba(2, 13, 35, 0.05), rgba(3, 20, 44, 0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(580px, 1.18fr) minmax(420px, 0.82fr);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
}

.preview-card,
.download-panel {
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 28px 90px rgba(0, 25, 66, 0.28);
  backdrop-filter: blur(16px);
}

.preview-card {
  min-height: 510px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(238, 247, 255, 0.7);
}

.preview-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.preview-tabs span {
  padding: 8px 14px;
  border-radius: 999px;
  color: #356186;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 800;
}

.preview-tabs .active {
  color: white;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-400));
}

.device-carousel {
  position: relative;
  min-height: 452px;
}

.desktop-mock,
.phone-mocks {
  position: absolute;
  inset: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.phone-mocks {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  display: flex;
  justify-content: center;
  gap: 28px;
  padding-top: 18px;
}

.device-carousel:hover .desktop-mock {
  opacity: 0;
  transform: translateY(-18px) scale(0.97);
}

.device-carousel:hover .phone-mocks {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.desktop-mock {
  border-radius: 18px;
  overflow: hidden;
  background: #f7fbff;
  box-shadow: inset 0 0 0 1px rgba(45, 107, 190, 0.16);
}

.mock-titlebar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: linear-gradient(90deg, #eaf5ff, #ffffff);
  color: #29445f;
  font-size: 13px;
}

.mock-titlebar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7fb6ff;
}

.mock-titlebar span:nth-child(2) {
  background: #35d9ff;
}

.mock-titlebar span:nth-child(3) {
  background: #1f8cff;
}

.mock-titlebar strong {
  margin-left: 8px;
}

.mock-layout {
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: 412px;
}

.mock-layout aside {
  padding: 22px 12px;
  border-right: 1px solid #dbeafa;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #486078;
  font-size: 13px;
}

.mock-layout aside img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.mock-layout aside em {
  font-style: normal;
  padding: 10px 12px;
  border-radius: 10px;
}

.mock-layout aside .selected {
  color: #0b63f6;
  background: #eaf4ff;
  font-weight: 800;
}

.mock-screen {
  position: absolute;
  left: 110px;
  right: 0;
  bottom: 0;
  top: 40px;
  padding: 18px;
  animation: screenSwap 8s infinite;
}

.slide-two {
  opacity: 0;
  animation-delay: 4s;
}

@keyframes screenSwap {
  0%, 43% { opacity: 1; transform: translateX(0); }
  50%, 93% { opacity: 0; transform: translateX(-10px); }
  100% { opacity: 1; transform: translateX(0); }
}

.mock-screen h3 {
  margin: 0 0 14px;
  font-size: 21px;
}

.cashier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.amount-box,
.coupon-box,
.summary-row,
.mock-screen table {
  border: 1px solid #d8e8fb;
  border-radius: 14px;
  background: white;
}

.amount-box,
.coupon-box {
  min-height: 112px;
  padding: 14px;
}

.amount-box small,
.coupon-box small,
.summary-row small {
  display: block;
  color: #6d8199;
  font-weight: 700;
}

.amount-box strong {
  display: block;
  margin-top: 8px;
  font-size: 36px;
  color: #071833;
}

.coupon-box p {
  margin: 14px 0 0;
  color: #31506d;
  font-weight: 700;
}

.keypad {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 74px) 1fr;
  gap: 10px;
}

.keypad span,
.keypad button {
  height: 42px;
  border: 0;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  color: #0b2448;
  background: #eef6ff;
}

.keypad button {
  color: white;
  background: linear-gradient(135deg, #0865f4, #14c8ff);
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.summary-row b {
  display: block;
  margin-top: 8px;
  font-size: 19px;
  color: #075ee8;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

th,
td {
  padding: 10px 10px;
  text-align: left;
  border-bottom: 1px solid #e5effa;
  color: #344c66;
}

th {
  color: #496b8d;
  background: #eef7ff;
}

td:nth-child(3) {
  color: #059669;
  font-weight: 900;
}

.phone-frame {
  width: 210px;
  min-height: 424px;
  padding: 28px 18px 20px;
  border: 8px solid #082448;
  border-radius: 32px;
  background: linear-gradient(180deg, #f8fcff, #eaf5ff);
  box-shadow: 0 22px 60px rgba(0, 23, 62, 0.28);
}

.phone-two {
  margin-top: 44px;
}

.phone-bar {
  width: 56px;
  height: 6px;
  margin: 0 auto 22px;
  border-radius: 99px;
  background: #0c2a50;
}

.phone-frame h4 {
  margin: 0 0 22px;
  font-size: 20px;
}

.phone-amount {
  padding: 16px;
  margin-bottom: 18px;
  text-align: right;
  border-radius: 14px;
  background: white;
  color: #071833;
  font-size: 34px;
  font-weight: 900;
}

.phone-buttons {
  display: grid;
  gap: 10px;
}

.phone-buttons button,
.phone-order {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0865f4, #18c8ff);
  color: white;
  font-size: 15px;
  font-weight: 900;
  padding: 14px;
}

.phone-order {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  background: white;
  color: #153353;
  border: 1px solid #dbeafa;
}

.phone-order span {
  color: #075ee8;
  font-weight: 900;
}

.download-panel {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 26px;
  color: white;
  background: linear-gradient(180deg, rgba(7, 24, 51, 0.78), rgba(7, 35, 78, 0.58));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-400);
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 900;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.08;
}

.capability-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.capability-list p {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.capability-list strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  border-radius: 11px;
  color: #06224b;
  background: linear-gradient(135deg, #ffffff, #9beeff);
  font-size: 15px;
  font-weight: 900;
}

.capability-list span {
  min-width: 0;
  color: #e5f6ff;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 800;
  line-height: 1.45;
}

.download-status {
  margin-top: 18px;
  border-radius: 14px;
  font-weight: 800;
}

.download-status {
  color: #cdeeff;
  min-height: 16px;
}

.download-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(2, 96, 255, 0.28);
}

.download-button.windows {
  background: linear-gradient(135deg, #0b73ff, #32c8ff);
}

.download-button.android {
  background: linear-gradient(135deg, #08a883, #31e0b6);
}

.button-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.button-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.qr-grid figure {
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  text-align: center;
  color: #d6eeff;
  background: rgba(255, 255, 255, 0.12);
}

.qr-grid img {
  width: min(142px, 100%);
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 12px;
  background: white;
}

.qr-grid figcaption {
  margin-top: 10px;
  font-weight: 800;
}

.site-footer {
  padding: 42px clamp(18px, 4vw, 64px) 34px;
  background: #f7fbff;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.official-account {
  display: flex;
  align-items: center;
  gap: 18px;
}

.official-account img {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #dbeafa;
  background: white;
}

.official-account h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.official-account p {
  margin: 0 0 10px;
  color: var(--muted);
}

.official-account a {
  color: #075ee8;
  font-weight: 900;
  text-decoration: none;
}

.beian {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  color: #66788e;
  font-size: 14px;
}

.beian a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.mps-link img {
  width: 18px;
  height: 18px;
}

.guide-dialog {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 18, 42, 0.58);
  backdrop-filter: blur(8px);
}

.guide-dialog[hidden] {
  display: none;
}

.guide-card {
  width: min(420px, 100%);
  padding: 26px;
  border-radius: 20px;
  color: #12243a;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 18, 50, 0.32);
}

.guide-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.guide-card p {
  margin: 0;
  color: #31465f;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.65;
}

.guide-card button {
  width: 100%;
  height: 46px;
  margin-top: 22px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #0b73ff, #32c8ff);
  font-size: 16px;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .preview-card {
    order: 2;
  }

  .download-panel {
    order: 1;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    overflow: hidden;
    padding: 18px;
    justify-content: center;
    background:
      linear-gradient(135deg, rgba(7, 24, 51, 0.96), rgba(11, 99, 246, 0.84)),
      url("assets/hero-landscape.svg") center 28% / cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .brand img {
    width: min(300px, calc(100vw - 44px));
    max-width: 100%;
  }

  .support-phone {
    display: none;
  }

  .hero {
    min-height: auto;
    width: 100%;
    padding: 12px 12px 28px;
  }

  .hero-bg::after {
    background: linear-gradient(180deg, rgba(3, 24, 56, 0.2), rgba(3, 24, 56, 0.72));
  }

  .download-panel {
    padding: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }

  h1 {
    font-size: clamp(27px, 7vw, 34px);
    line-height: 1.12;
  }

  .capability-list {
    gap: 8px;
    margin-top: 14px;
  }

  .capability-list p {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: flex-start;
    gap: 9px;
    padding: 8px 10px;
  }

  .capability-list strong {
    height: 28px;
    border-radius: 10px;
    font-size: 14px;
  }

  .capability-list span {
    font-size: 14px;
    line-height: 1.42;
  }

  .download-status {
    min-height: 8px;
    margin-top: 8px;
  }

  .download-actions,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .download-actions {
    gap: 10px;
    margin-top: 10px;
  }

  .download-button {
    min-height: 48px;
    border-radius: 14px;
    font-size: 15px;
  }

  .download-button.android {
    order: -1;
  }

  .button-icon {
    width: 22px;
    height: 22px;
  }

  .qr-grid {
    display: none;
  }

  .preview-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 500px;
    padding: 12px;
  }

  .hero-content,
  .device-carousel,
  .phone-mocks {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .desktop-mock {
    display: none;
  }

  .phone-mocks {
    opacity: 1;
    transform: none;
    gap: 12px;
    padding-top: 0;
    overflow: hidden;
  }

  .phone-frame {
    width: min(43vw, 184px);
    flex: 0 1 min(43vw, 184px);
    min-height: 370px;
    border-width: 6px;
    padding: 22px 12px 16px;
  }

  .phone-two {
    margin-top: 30px;
  }

  .footer-inner,
  .official-account {
    align-items: flex-start;
    flex-direction: column;
  }

  .beian {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .download-panel {
    border-radius: 20px;
  }

  .phone-mocks {
    flex-direction: column;
    align-items: center;
  }

  .phone-frame {
    width: min(280px, 88vw);
  }

  .phone-two {
    display: none;
  }
}
