@charset "UTF-8";

/* ===== 豚豚剧 · 竖屏剧场主题 ===== */
:root {
  --rose: #1856BE;
  --rose-deep: #183F83;
  --rose-soft: #E7F2FC;
  --paper: #EFF6FF;
  --ink: #0E223B;
  --muted: #5A708B;
  --line: #D6E5F5;
  --radius: 18px;
  --radius-sm: 10px;
  --shell: 1140px;
  --header-height: 70px;
  --digit: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
}

* {
  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", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.74;
}

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

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

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

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible,
summary: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"); }

/* ---- 页头 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(253, 242, 248, 0.94);
  backdrop-filter: blur(8px);
}

.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: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 9px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: contain;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  gap: clamp(15px, 2.2vw, 30px);
  list-style: none;
}

.primary-nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13.5px;
  transition: color 160ms ease;
}

.primary-nav a:hover {
  color: var(--rose);
}

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-download {
  min-height: 40px;
  min-width: 124px;
  padding: 0 18px;
  color: #FFFFFF;
  background: var(--rose);
}

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

.nav-download:hover {
  background: var(--rose-deep);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #FFFFFF;
  cursor: pointer;
}

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

/* ---- 英雄区 ---- */
.hero {
  padding: 52px 0 62px;
  background:
    radial-gradient(560px 320px at 12% 10%, #D0E4FB 0%, rgba(253, 242, 248, 0) 72%),
    radial-gradient(480px 300px at 92% 84%, #E7F2FC 0%, rgba(253, 242, 248, 0) 70%);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--rose);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero h1 {
  font-size: clamp(44px, 5.2vw, 62px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 14px 0 16px;
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 600;
  line-height: 1.4;
}

.hero-summary {
  max-width: 430px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14.8px;
  line-height: 1.88;
}

.button {
  min-height: 46px;
  min-width: 166px;
  padding: 0 26px;
}

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

.button-primary:hover {
  background: var(--rose-deep);
}

/* ---- 英雄组件：竖屏三连卡 + 追更倒计时 ---- */
.shortStack {
  width: 100%;
  max-width: 470px;
  margin-left: auto;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 18px 40px rgba(24, 86, 190, 0.16);
}

.ssTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 12px;
  gap: 10px;
}

.ssTop b {
  font-size: 15px;
  font-weight: 700;
}

.ssTop span {
  flex: none;
  color: #7C94B2;
  font-size: 11px;
}

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

.ssCard {
  min-width: 0;
}

.ssPoster {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  background: #D5E5F8;
  overflow: hidden;
}

.ssPoster.p1 {
  background: linear-gradient(160deg, #1856BE 0%, #72B1F4 58%, #CFE6FB 100%);
}

.ssPoster.p2 {
  background: linear-gradient(160deg, #183F83 0%, #1856BE 55%, #A8D1F9 100%);
}

.ssPoster.p3 {
  background: linear-gradient(160deg, #05164C 0%, #17489D 60%, #72B1F4 100%);
}

.ssPoster::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46%;
  content: "";
  background: linear-gradient(180deg, rgba(14, 34, 59, 0) 0%, rgba(14, 34, 59, 0.55) 100%);
}

.ssTag {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 1px 6px;
  border-radius: 999px;
  color: #183F83;
  background: rgba(255, 255, 255, 0.9);
  font-size: 9px;
}

.ssCard.is-on .ssTag {
  color: #FFFFFF;
  background: var(--rose);
}

.ssCard b {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ssCard small {
  display: block;
  color: #7C90A9;
  font-size: 10px;
}

.ssCount {
  margin-top: 14px;
  padding: 11px 12px 10px;
  border-radius: 14px;
  background: #07152B;
  text-align: center;
}

.ssCountLabel {
  color: #A6BDD8;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.ssClock {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px 0 4px;
  gap: 4px;
}

.ssClock b {
  min-width: 42px;
  padding: 4px 0;
  border-radius: 6px;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--digit);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.ssClock i {
  color: #72B1F4;
  font-style: normal;
  font-size: 16px;
}

.ssCountFoot {
  color: #7C94B2;
  font-size: 10px;
}

/* ---- 核心特色 ---- */
.routes {
  padding: 64px 0 66px;
  background: #FFFFFF;
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.section-heading {
  max-width: 620px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.26;
}

.section-heading > p:last-child {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14.4px;
}

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

.four {
  min-width: 0;
  padding: 22px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFF9FC;
}

.four:nth-child(even) {
  background: #FDF2F8;
}

.four .n {
  display: block;
  margin-bottom: 10px;
  color: var(--rose);
  font-family: var(--digit);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.four h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 700;
}

.four p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ---- 界面展示 ---- */
.screens {
  padding: 64px 0 68px;
  background: linear-gradient(180deg, #FFFFFF 0%, #E3EFFB 100%);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

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

.covers figure {
  min-width: 0;
  margin: 0;
  padding: 8px 8px 12px;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(24, 86, 190, 0.1);
}

.covers img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  background: var(--paper);
}

.covers b {
  display: block;
  margin-top: 9px;
  padding-left: 4px;
  font-size: 13px;
  font-weight: 700;
}

.covers small {
  display: block;
  padding-left: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

/* ---- FAQ ---- */
.faq {
  padding: 62px 0 24px;
  background: #FFFFFF;
  scroll-margin-top: calc(var(--header-height) + 10px);
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #FFF9FC;
}

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

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

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

.faq-item summary .icon {
  flex: none;
  transition: transform 160ms ease;
  filter: invert(18%) sepia(62%) saturate(3400%) hue-rotate(316deg) brightness(88%) contrast(94%);
}

.faq-item[open] {
  border-color: #BED6F2;
  background: #FFFFFF;
  box-shadow: 0 6px 16px rgba(24, 86, 190, 0.07);
}

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

.faq-answer {
  padding: 0 16px 15px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 13.2px;
  line-height: 1.86;
}

/* ---- 官方入口 ---- */
.official {
  padding: 22px 0 62px;
  background: #FFFFFF;
}

.official .section-heading {
  margin-bottom: 20px;
}

.official-fold {
  border: 1px solid #C6DAF2;
  border-radius: var(--radius-sm);
  background: #FDF2F8;
}

.official-fold summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  color: var(--rose-deep);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.official-fold summary::after {
  margin-left: auto;
  content: "↓";
  color: var(--rose);
  font-size: 13px;
}

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

.official-link {
  padding: 0 18px 14px;
}

.official-link p {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed #C7DAF0;
  font-size: 13.2px;
}

.official-link a {
  color: var(--rose);
  font-weight: 600;
  word-break: break-all;
}

/* ---- 用户评价 ---- */
.reviews {
  padding: 64px 0 68px;
  background: #E3EFFB;
  scroll-margin-top: calc(var(--header-height) + 10px);
}

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

.review-card {
  display: flex;
  min-width: 0;
  min-height: 178px;
  flex-direction: column;
  padding: 17px 17px 15px;
  border: 1px solid #C9DBF0;
  border-radius: var(--radius);
  background: #FFFFFF;
}

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

.review-card header b {
  color: var(--rose-deep);
  font-size: 13px;
  font-weight: 700;
}

.review-card time {
  flex: none;
  color: #8CA0B7;
  font-size: 10px;
}

.review-card > p {
  margin: 10px 0 0;
  color: #263E5E;
  font-size: 13.2px;
  line-height: 1.86;
}

.rv-site {
  margin-top: auto;
  padding-top: 10px;
  color: var(--rose);
  font-size: 10.5px;
  word-break: break-all;
}

/* ---- 下载 ---- */
.download-cta {
  padding: 60px 0 64px;
  color: #E9F2FF;
  background: linear-gradient(140deg, #183F83 0%, #1856BE 100%);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.download-cta h2 {
  color: #FFFFFF;
}

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

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

.download-cta .button-primary {
  color: var(--rose-deep);
  background: #FFFFFF;
  box-shadow: none;
}

.download-cta .button-primary .icon {
  filter: invert(18%) sepia(62%) saturate(3400%) hue-rotate(316deg) brightness(88%) contrast(94%);
}

.download-cta .button-primary:hover {
  background: #E7F2FC;
}

.disclaimer {
  margin: 18px 0 0;
  color: #BCD2F2;
  font-size: 11.5px;
}

/* ---- 页脚 ---- */
.site-footer {
  padding: 26px 0 20px;
  color: #9BB0C9;
  background: #0E223B;
  font-size: 11.5px;
}

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

.site-footer p {
  margin: 0;
}

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

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

/* ---- 返回顶部 ---- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 148px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 10px 22px rgba(24, 86, 190, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.to-top::before {
  width: 8px;
  height: 8px;
  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: var(--rose-deep);
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .fours {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .shortStack {
    max-width: 100%;
    margin: 0;
  }

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

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

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

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
  }

  .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: 8px;
  }

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

  .brand img {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .primary-nav {
    display: none;
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0 -16px;
    padding: 0 16px 12px;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }

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

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

  .primary-nav a {
    display: block;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    font-size: 13px;
  }

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

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

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

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

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

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

  .shortStack {
    padding: 13px 13px 15px;
    border-radius: 18px;
  }

  .ssClock b {
    min-width: 38px;
    font-size: 19px;
  }

  .routes,
  .screens,
  .reviews,
  .download-cta {
    padding: 42px 0;
  }

  .faq {
    padding: 42px 0 16px;
  }

  .official {
    padding: 16px 0 42px;
  }

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

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

  .faq-list {
    grid-template-columns: 1fr;
  }

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

  .review-card {
    min-height: auto;
  }

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

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

  .to-top {
    right: 16px;
    bottom: 132px;
    width: 38px;
    height: 38px;
  }
}

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

  .nav-download span {
    display: none;
  }

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

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

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

  .primary-nav ul {
    grid-template-columns: 1fr;
  }

  .four {
    padding: 18px 15px;
  }

  .ssClock b {
    min-width: 34px;
    font-size: 17px;
  }
}
