/*
视觉方向：muziaiyx 根站同款布局；幸福岛屿 · 海蓝晴空。
主色：页面 #e8f8ff / 强调 #0077b6 / 按钮 #90e0ef。
*/
:root {
  --page: #e8f8ff;
  --paper: #ffffff;
  --ink: #0a2840;
  --muted: #4a6880;
  --panel: #0a2840;
  --panel-2: #123a58;
  --line: #b0d8f0;
  --red: #0077b6;
  --orange: #90e0ef;
  --orange-2: #caf0f8;
  --gold: #0096c7;
  --shadow: 0 18px 44px rgba(23, 20, 20, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(215, 25, 32, .055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 20, 20, .05) 1px, transparent 1px),
    var(--page);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 3px solid var(--red);
  background: rgba(23, 20, 20, .94);
  color: #fff;
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.brand-logo {
  width: min(252px, 42vw);
  height: auto;
  max-height: 50px;
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, .92);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--red);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #fff;
  background: var(--red);
  box-shadow: 5px 5px 0 var(--orange);
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 4px;
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 153, 0, .16);
  color: #fff;
}

.cta-button,
.ghost-button,
.dark-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-weight: 900;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cta-button {
  background: linear-gradient(135deg, var(--orange), var(--orange-2) 48%, #fff1a7 50%, var(--orange) 52%, #f06d00);
  background-size: 220% 100%;
  color: #171414;
  box-shadow: 7px 7px 0 var(--red);
  animation: ctaShine 3s linear infinite;
}

.cta-button:hover,
.ghost-button:hover,
.dark-button:hover {
  transform: translate(-2px, -2px);
  filter: saturate(1.1);
}

.cta-button:active,
.ghost-button:active,
.dark-button:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--red);
}

.ghost-button {
  background: #fff;
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--gold);
}

.dark-button {
  background: var(--ink);
  color: #fff;
  box-shadow: 6px 6px 0 var(--orange);
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 126px 0 68px;
  overflow: hidden;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(15, 13, 12, .88), rgba(15, 13, 12, .58), rgba(15, 13, 12, .84)),
    url("../images/xingfudao-hero-01.webp");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  content: "";
  background: repeating-linear-gradient(90deg, var(--orange) 0 30px, var(--red) 30px 60px, var(--ink) 60px 90px);
}

.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .72fr);
  gap: 34px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(215, 25, 32, .86);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.hero h1,
.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 900;
  line-height: 1.02;
}

.hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 820px;
  margin: 28px 0;
}

.metric {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  padding: 14px;
}

.metric strong {
  display: block;
  color: var(--orange-2);
  font-size: 22px;
  font-weight: 900;
}

.metric span {
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media {
  border: 5px solid #fff;
  background: var(--ink);
  box-shadow: 16px 16px 0 var(--red);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.store-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: #fff;
}

.store-strip div {
  min-height: 92px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.store-strip div:last-child {
  border-right: 0;
}

.store-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.store-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 900;
}

section {
  padding: 76px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  border-bottom: 4px solid var(--ink);
}

.section-title h2 {
  margin: 0;
  padding-bottom: 12px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
}

.section-title p {
  max-width: 560px;
  margin: 0 0 15px;
  color: var(--muted);
  line-height: 1.8;
}

.dark-band {
  background: var(--panel);
  color: #fff;
}

.dark-band .section-title {
  border-color: var(--orange);
}

.dark-band .section-title p {
  color: rgba(255, 255, 255, .72);
}

.story-copy {
  max-width: 920px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 2;
  text-align: center;
}

.feature-grid,
.review-grid,
.guide-grid,
.download-grid,
.requirement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.review-card,
.guide-card,
.platform-card,
.requirement-card,
.faq-item,
.timeline-item {
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(23, 20, 20, .12);
}

.feature-card,
.review-card,
.guide-card,
.platform-card,
.requirement-card {
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.feature-card:hover,
.review-card:hover,
.guide-card:hover,
.platform-card:hover {
  transform: translateY(-5px);
  box-shadow: 10px 14px 0 rgba(215, 25, 32, .2);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  object-fit: cover;
  border: 2px solid var(--ink);
}

.feature-card h3,
.review-card h3,
.guide-card h3,
.platform-card h3,
.requirement-card h3,
.faq-question h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
}

.feature-card p,
.review-card p,
.guide-card p,
.platform-card p,
.requirement-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.gallery-grid button {
  padding: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--ink);
  cursor: pointer;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .2s ease, filter .2s ease;
}

.gallery-grid button:hover img {
  filter: brightness(1.1) saturate(1.15);
  transform: scale(1.04);
}

.download-band {
  border-top: 5px solid var(--red);
  border-bottom: 5px solid var(--red);
  background:
    linear-gradient(135deg, rgba(255, 153, 0, .22), rgba(215, 25, 32, .08)),
    #fff;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border: 4px solid var(--ink);
  background: #fff;
  box-shadow: 14px 14px 0 var(--orange);
}

.download-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
}

.download-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.timeline-item time {
  color: var(--red);
  font-weight: 900;
}

.review-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.review-score strong {
  color: var(--orange-2);
  font-size: clamp(36px, 7vw, 76px);
  font-weight: 900;
  line-height: 1;
}

.review-card {
  background: #fffaf3;
}

.review-card span {
  display: block;
  margin-top: 16px;
  color: var(--red);
  font-weight: 900;
}

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

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-question h3 {
  margin: 0;
}

.faq-icon {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--orange);
  font-weight: 900;
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  display: block;
}

.page-hero {
  padding: 124px 0 62px;
  border-bottom: 5px solid var(--red);
  background:
    linear-gradient(90deg, rgba(23, 20, 20, .9), rgba(23, 20, 20, .72)),
    url("../images/bianlidianshaonvz-screenshot-01.webp") center / cover;
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .8);
  font-size: 18px;
  line-height: 1.8;
}

.tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tabbar button,
.guide-card button,
.modal-close {
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(23, 20, 20, .14);
}

.tabbar button.active {
  background: var(--red);
  color: #fff;
}

.step-list {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-list li {
  counter-increment: step;
  list-style: none;
  padding: 22px;
  border: 2px solid var(--ink);
  background: #fff;
}

.step-list li::before {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  place-items: center;
  background: var(--red);
  color: #fff;
  content: counter(step);
  font-weight: 900;
}

.requirement-card table,
.modal-card table {
  width: 100%;
  border-collapse: collapse;
}

.requirement-card th,
.requirement-card td,
.modal-card th,
.modal-card td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.requirement-card th,
.modal-card th {
  background: #fff1d7;
}

.modal,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, .82);
}

.modal.open,
.lightbox.open {
  display: flex;
}

.modal-card {
  width: min(860px, 100%);
  max-height: 86vh;
  overflow: auto;
  border: 4px solid var(--ink);
  background: #fff;
  padding: 24px;
}

.lightbox img {
  max-height: 82vh;
  border: 5px solid #fff;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid #fff;
  background: var(--orange);
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  transform: translateY(-50%);
  cursor: pointer;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 2px solid #fff;
  background: var(--red);
  color: #fff;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}

.footer {
  padding: 44px 0;
  background: #171414;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 24px;
}

.footer h2,
.footer h3 {
  margin: 0 0 12px;
  font-weight: 900;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, .72);
  line-height: 1.8;
}

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

.footer-links {
  display: grid;
  gap: 6px;
}

@keyframes ctaShine {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 220% 0;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .download-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .store-strip,
  .metric-row,
  .feature-grid,
  .review-grid,
  .guide-grid,
  .download-grid,
  .requirement-grid,
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .section-inner,
  .nav-wrap {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .metric-row,
  .store-strip,
  .feature-grid,
  .review-grid,
  .guide-grid,
  .download-grid,
  .requirement-grid,
  .step-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    display: block;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .download-panel {
    padding: 20px;
  }

  .cta-button,
  .ghost-button,
  .dark-button {
    width: 100%;
  }

  .brand-logo {
    width: min(210px, 52vw);
    max-height: 44px;
  }
}
