@charset "UTF-8";

:root {
  --rose: #15803D;
  --rose-soft: #F0FDF4;
  --rose-line: #CDFED2;
  --ink: #0D3B0A;
  --body: #4A6B45;
  --paper: #FFFFFF;
  --radius: 18px;
  --radius-sm: 12px;
  --shell: 1200px;
  --header-height: 78px;
  --shadow: 0 18px 40px rgba(29, 225, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

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

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

button {
  color: inherit;
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.page-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.icon::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: center / contain no-repeat;
}

.icon-download::before { background-image: url("../icons/download.svg"); }
.icon-menu::before { background-image: url("../icons/menu.svg"); }
.icon-close::before { background-image: url("../icons/close.svg"); }
.icon-plus::before { background-image: url("../icons/plus.svg"); }
.icon-globe::before { background-image: url("../icons/globe.svg"); }

/* ===== header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 22px rgba(29, 225, 29, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--shell));
  min-height: var(--header-height);
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: contain;
  background: var(--rose-soft);
}

.primary-nav ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--rose);
  background: var(--rose-soft);
}

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav-download {
  min-width: 130px;
  padding: 0 20px;
  background: var(--rose);
  color: #FFFFFF;
  box-shadow: 0 8px 18px rgba(29, 225, 29, 0.28);
}

.nav-download:hover {
  background: #16BE12;
}

.nav-download .icon,
.button-primary .icon {
  filter: brightness(0) invert(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--rose-line);
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 20px;
  height: 20px;
}

/* ===== hero ===== */
.hero {
  padding: 58px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 4%, #E4FFE8 0%, transparent 46%),
    radial-gradient(circle at 12% 92%, #E9FFE9 0%, transparent 42%),
    var(--rose-soft);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1.14fr);
  align-items: center;
  gap: 46px;
}

.hero-copy {
  max-width: 480px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 14px 0 16px;
  color: var(--rose);
  font-size: clamp(23px, 2.5vw, 31px);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.hero-summary {
  margin: 0 0 28px;
  color: var(--body);
  font-size: 15px;
}

.button {
  min-width: 170px;
  padding: 0 26px;
}

.button-primary {
  background: var(--rose);
  color: #FFFFFF;
  box-shadow: 0 12px 24px rgba(29, 225, 29, 0.26);
}

.button-primary:hover {
  background: #16BE12;
}

/* 英雄区：片库分类九宫格 + 热播榜 */
.libPanel {
  min-width: 0;
  padding: 18px;
  border: 1px solid #D9FFDB;
  border-radius: 26px;
  background: #FFFFFF;
  box-shadow: var(--shadow);
}

.libTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 14px;
}

.libTop b {
  font-size: 16px;
  font-weight: 800;
}

.libTop span {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 11.5px;
  font-weight: 700;
}

.libBody {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 14px;
}

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

.libCell {
  min-width: 0;
  padding: 13px 8px;
  border: 1px solid #E4FFE6;
  border-radius: var(--radius-sm);
  background: #FFF8F9;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.libCell:hover {
  border-color: var(--rose-line);
  background: #FFEEF1;
}

.libCell.is-hot {
  border-color: var(--rose);
  background: var(--rose);
}

.libCell strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

.libCell small {
  display: block;
  margin-top: 3px;
  color: #7EA17C;
  font-size: 10px;
}

.libCell.is-hot strong,
.libCell.is-hot small {
  color: #FFFFFF;
}

.libRank {
  min-width: 0;
  padding: 12px 12px 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(170deg, #FFF1F2 0%, #FFFFFF 70%);
}

.rkTitle {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
}

.libRank ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.libRank li {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px dashed #D5FBD8;
  font-size: 11.5px;
}

.libRank li:last-child {
  border-bottom: 0;
}

.rkNo {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 6px;
  background: #E0FFE2;
  color: var(--rose);
  font-size: 10px;
  font-weight: 800;
}

.libRank li:first-child .rkNo {
  background: var(--rose);
  color: #FFFFFF;
}

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

.rkHot {
  color: var(--rose);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.rkFoot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #7EA17C;
  font-size: 10px;
}

.rkFoot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8222C5;
}

/* ===== routes ===== */
.routes {
  padding: 78px 0 82px;
  background: var(--paper);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.section-heading {
  max-width: 660px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.26;
}

.section-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--body);
  font-size: 14.5px;
}

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

.four {
  min-width: 0;
  padding: 28px 26px;
  border: 1px solid var(--rose-line);
  border-radius: var(--radius);
  background: #FFFAFB;
}

.four .n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
}

.four h3 {
  margin: 15px 0 7px;
  font-size: 19px;
  font-weight: 800;
}

.four p {
  margin: 0;
  color: var(--body);
  font-size: 14px;
}

/* ===== screens ===== */
.screens {
  padding: 78px 0 86px;
  background: #FFF7F8;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

.covers figure {
  min-width: 0;
  margin: 0;
}

.covers img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  background: #E4FFE6;
  box-shadow: 0 10px 24px rgba(29, 225, 29, 0.12);
}

.covers b {
  display: block;
  margin-top: 11px;
  font-size: 13.5px;
  font-weight: 800;
}

.covers small {
  display: block;
  margin-top: 2px;
  color: #6F9A6E;
  font-size: 11.5px;
}

/* ===== faq ===== */
.faq {
  padding: 78px 0 16px;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

.faq-item {
  border: 1px solid #D5FBD8;
  border-radius: 16px;
  background: #FFFCFC;
}

.faq-item summary,
.official-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 0 20px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker,
.official-fold summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.faq-item summary .icon {
  flex: none;
  padding: 5px;
  border-radius: 50%;
  background: var(--rose-soft);
  filter: invert(24%) sepia(93%) saturate(3150%) hue-rotate(327deg) brightness(94%) contrast(97%);
  transform: scale(0.86);
  transition: transform 180ms ease;
}

.faq-item[open] summary .icon {
  transform: scale(0.86) rotate(45deg);
}

.faq-answer {
  padding: 0 20px 18px;
}

.faq-answer p {
  margin: 0;
  color: var(--body);
  font-size: 14px;
}

/* ===== official ===== */
.official {
  padding: 30px 0 78px;
}

.official-fold {
  border: 1px dashed var(--rose);
  border-radius: var(--radius);
  background: var(--rose-soft);
}

.official-fold summary {
  color: var(--rose);
  font-size: 14px;
  font-weight: 700;
}

.official-fold summary::after {
  margin-left: auto;
  font-size: 18px;
  font-weight: 800;
  content: "+";
}

.official-fold[open] summary::after {
  content: "-";
}

.official-fold .official-link {
  padding: 12px 20px 18px;
}

.official-link a {
  color: var(--rose);
  font-size: 14px;
  font-weight: 700;
  word-break: break-all;
}

/* ===== reviews ===== */
.reviews {
  padding: 80px 0 84px;
  background: linear-gradient(180deg, #FFF1F2 0%, #FFFFFF 100%);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

.review-card {
  display: flex;
  min-height: 214px;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  background: #FFFFFF;
  box-shadow: 0 10px 26px rgba(29, 225, 29, 0.09);
}

.review-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-card .who {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-card .who::before {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #E0FFE2;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  content: "苹";
}

.review-card .who b {
  font-size: 13.5px;
  font-weight: 700;
}

.review-card time {
  flex: none;
  color: #8CB08A;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.review-card > p {
  margin: 14px 0 0;
  color: var(--body);
  font-size: 13.2px;
  line-height: 1.85;
}

.rv-site {
  margin-top: auto;
  padding-top: 14px;
  color: var(--rose);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

/* ===== download ===== */
.download-cta {
  padding: 74px 0 78px;
  background: var(--rose);
  color: #FFFFFF;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.download-cta .eyebrow {
  color: #D3FFD5;
}

.download-cta .section-heading {
  margin-bottom: 26px;
}

.download-cta .section-heading > p:last-child {
  color: #E1FFE3;
}

.download-cta .button-primary {
  background: #FFFFFF;
  color: var(--rose);
  box-shadow: 0 14px 28px rgba(10, 120, 14, 0.28);
}

.download-cta .button-primary .icon {
  filter: invert(20%) sepia(88%) saturate(3340%) hue-rotate(331deg) brightness(93%) contrast(96%);
}

.download-cta .button-primary:hover {
  background: #0D3B0A;
  color: #FFFFFF;
}

.download-cta .button-primary:hover .icon {
  filter: brightness(0) invert(1);
}

.disclaimer {
  margin: 20px 0 0;
  color: #D9FFDB;
  font-size: 12px;
}

/* ===== footer ===== */
.site-footer {
  padding: 34px 0 20px;
  background: #0D3B0A;
  color: #BFE9BF;
  font-size: 12px;
}

.site-footer .page-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #DDF8DE;
}

.site-footer a:hover {
  color: #FFFFFF;
}

/* ===== to-top ===== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 152px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--rose);
  box-shadow: 0 10px 24px rgba(29, 225, 29, 0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

.to-top::before {
  width: 9px;
  height: 9px;
  border-top: 2px solid #FFFFFF;
  border-left: 2px solid #FFFFFF;
  content: "";
  transform: rotate(45deg) translate(1px, 1px);
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: #16BE12;
}

/* ===== responsive ===== */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
    gap: 30px;
  }

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

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

  .hero-copy {
    max-width: 620px;
  }

  .libPanel {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }

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

@media (max-width: 760px) {
  .libBody {
    grid-template-columns: 1fr;
  }

  .libRank ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }

  .libRank li:nth-child(5) {
    display: none;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 64px;
  }

  body {
    padding-top: var(--header-height);
  }

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
  }

  .page-shell,
  .nav-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: var(--header-height);
    min-height: var(--header-height);
    column-gap: 10px;
    row-gap: 0;
  }

  .brand {
    grid-row: 1;
    grid-column: 1;
    gap: 7px;
    font-size: 16px;
  }

  .brand img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .primary-nav {
    display: none;
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0 -16px;
    padding: 0 16px 14px;
    border-top: 1px solid #E4FFE6;
    background: #FFFFFF;
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-download {
    grid-row: 1;
    grid-column: 3;
    min-width: auto;
    min-height: 34px;
    margin-left: auto;
    padding: 0 12px;
    font-size: 12px;
    box-shadow: none;
  }

  .nav-download .icon {
    width: 14px;
    height: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-row: 1;
    grid-column: 4;
    width: 36px;
    height: 36px;
  }

  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 13px;
  }

  .primary-nav a {
    display: block;
    padding: 9px 12px;
    border: 1px solid #E4FFE6;
    border-radius: 12px;
    background: #FFF8F9;
    font-size: 13px;
  }

  .hero {
    padding: 42px 0 48px;
  }

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

  .hero-title {
    font-size: 22px;
  }

  .hero-summary {
    font-size: 14px;
  }

  .routes,
  .screens,
  .reviews {
    padding: 54px 0;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .fours,
  .rgrid {
    grid-template-columns: 1fr;
  }

  .covers {
    gap: 12px;
  }

  .faq {
    padding: 54px 0 14px;
  }

  .official {
    padding: 24px 0 54px;
  }

  .download-cta {
    padding: 56px 0 58px;
  }

  .site-footer .page-shell {
    display: block;
    text-align: center;
  }

  .site-footer p + p {
    margin-top: 6px;
  }

  .to-top {
    right: 16px;
    bottom: 136px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .brand span {
    font-size: 14px;
  }

  .nav-download span {
    display: none;
  }

  .nav-download {
    width: 34px;
    padding: 0;
  }

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

  .libCell {
    padding: 11px 4px;
  }

  .libCell strong {
    font-size: 11.5px;
  }
}
