:root {
  color-scheme: light;
  --background: #fff;
  --surface: #f4f6f3;
  --surface-raised: #e8ede8;
  --text: #1d211e;
  --muted: #737b75;
  --accent: #3e735b;
  --line: #e9ece9;
  --page-max: 1180px;
  --page-gutter: clamp(18px, 4vw, 32px);
}

@font-face {
  font-family: "Alimama FangYuan";
  src: url("../assets/fonts/alimama-fangyuan-vf.woff2") format("woff2");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

p,
h1,
h2 {
  margin: 0;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header,
.site-shell main {
  width: min(100% - (var(--page-gutter) * 2), var(--page-max));
  margin-inline: auto;
}

.site-header {
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 72px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-logo-frame {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.brand-text {
  white-space: nowrap;
}

.simulator-guide {
  position: fixed;
  top: 50%;
  right: max(10px, env(safe-area-inset-right));
  z-index: 30;
  display: grid;
  gap: 2px;
  justify-items: center;
  min-width: 56px;
  padding: 10px 8px;
  border: 1px solid rgba(62, 115, 91, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: #252b27;
  box-shadow: 0 10px 28px rgba(29, 33, 30, 0.12);
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
  font-size: 11px;
}

.online-service-fab {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(88px, calc(env(safe-area-inset-bottom) + 88px));
  z-index: 30;
  display: grid;
  place-items: center;
  min-width: 56px;
  min-height: 56px;
  padding: 10px 8px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1478ff, #ff9418);
  color: #fff;
  box-shadow: 0 10px 28px rgba(20, 120, 255, 0.28);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
}

.simulator-guide-emoji {
  font-size: 18px;
  line-height: 1;
}

.simulator-guide-arrow {
  color: var(--accent);
  font-size: 14px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 5;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.banner-slide {
  display: none;
  width: 100%;
  height: 100%;
  animation: 0.22s both banner-fade-in;
}

.banner-slide.is-active {
  display: block;
}

.banner-slide img,
.banner-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-slide img {
  object-fit: cover;
}

@keyframes banner-fade-in {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

.banner-dots {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: flex;
  gap: 6px;
}

.banner-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.banner-dots button[aria-current="true"] {
  width: 18px;
  background: #fff;
}

.announcement-ticker {
  position: relative;
  overflow: hidden;
  height: 30px;
  margin-top: 8px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 30px;
  white-space: nowrap;
}

.announcement-track {
  display: inline-block;
  min-width: max-content;
  padding-left: 100%;
  animation: 28s linear 1.2s infinite announcement-scroll;
}

@keyframes announcement-scroll {
  to {
    transform: translateX(-100%);
  }
}

.content-section {
  position: relative;
  padding-block: 48px 0;
}

.section-promo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 43%);
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px 22px 0;
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
}

.section-promo-copy {
  padding-bottom: 22px;
}

.section-promo-card h2 {
  font-family: "Alimama FangYuan", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-promo-card p {
  margin-top: 10px;
  color: #b42318;
  font-size: 15px;
  font-weight: 700;
}

.section-promo-media img {
  display: block;
  width: 100%;
  height: auto;
}

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

.platform-entry {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 124px;
  padding: 10px 4px;
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.18s;
}

.platform-entry:hover {
  transform: translateY(-3px);
}

.platform-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.platform-mark img {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.platform-copy {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.entry-name {
  font-size: 14px;
  font-weight: 700;
}

.platform-tagline {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.platform-entry--promoted .entry-name,
.platform-entry--promoted .platform-tagline {
  color: #d72f2f;
}

.simulator-section .section-promo-card {
  background: linear-gradient(135deg, #1d2a24, #2f4a3c 48%, #1a2420);
  color: #fff;
}

.simulator-section .section-promo-card p {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.vendor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 4px;
  border-radius: 22px;
  background: #152019;
}

.vendor-entry {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 102px;
  padding: 14px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.18s, transform 0.18s;
}

.vendor-entry:hover {
  background: #ffffff12;
  transform: translateY(-2px);
}

.vendor-mark {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 148px;
  height: 56px;
}

.vendor-mark img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.vendor-cta {
  color: #d7e7db;
  font-size: 12px;
  font-weight: 700;
}

.resource-sections {
  display: grid;
  gap: 28px;
  margin-top: 48px;
}

.resource-heading {
  margin-bottom: 14px;
}

.resource-heading h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.resource-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

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

.resource-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
}

.resource-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.resource-icon img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.resource-name {
  font-size: 14px;
  font-weight: 700;
}

.support-section {
  margin: 48px 0 56px;
}

.support-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface);
}

.customer-service-contact {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.support-promo-title {
  font-size: 18px;
  font-weight: 800;
}

.customer-service-icon img,
.support-media img {
  display: block;
  max-width: 100%;
  height: auto;
}

.provider-footer-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
  opacity: 0.72;
}

.provider-footer-logo {
  width: 88px;
  height: 34px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .platform-grid,
  .vendor-grid,
  .resource-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-promo-card {
    grid-template-columns: 1fr;
  }

  .section-promo-media {
    max-width: 280px;
    margin-left: auto;
  }
}

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

  .hero-section {
    aspect-ratio: 16 / 8;
    border-radius: 16px;
  }

  .content-section {
    padding-block: 28px 0;
  }

  .platform-grid,
  .vendor-grid,
  .resource-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-row {
    grid-template-columns: 1fr;
  }

  .simulator-guide {
    top: auto;
    bottom: max(78px, calc(env(safe-area-inset-bottom) + 78px));
    transform: none;
  }

  .online-service-fab {
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}
