@charset "UTF-8";

/* ===== cupfox · 片架剧场主题 ===== */
:root {
  --amber: #B42509;
  --amber-deep: #7C1B06;
  --amber-soft: #FDC78A;
  --cream: #FFFBEB;
  --cocoa: #2C1110;
  --ink: #33160F;
  --muted: #7A4C3C;
  --line: #EED0C0;
  --radius: 8px;
  --radius-lg: 14px;
  --shell: 1200px;
  --header-height: 70px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "Alibaba PuHuiTi", "PingFang 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;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--amber-soft);
  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;
  background: var(--cocoa);
  box-shadow: 0 2px 12px rgba(44, 17, 16, 0.24);
}

.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: 9px;
  color: #FFEFE4;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

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

.primary-nav a {
  display: inline-block;
  padding: 6px 0;
  color: #D8B0A1;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  transition: color 160ms ease;
}

.primary-nav a:hover {
  color: #FFBA8A;
}

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

.nav-download {
  min-height: 40px;
  min-width: 126px;
  padding: 0 15px;
  color: #3A150C;
  background: var(--amber-soft);
}

.nav-download .icon {
  filter: invert(22%) sepia(38%) saturate(1600%) hue-rotate(4deg) brightness(92%) contrast(94%);
}

.nav-download:hover {
  background: #FFDBB8;
}

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

.menu-toggle .icon {
  width: 19px;
  height: 19px;
  filter: brightness(0) invert(1);
}

/* ---- 英雄区 ---- */
.hero {
  position: relative;
  padding: 54px 0 62px;
  background:
    radial-gradient(700px 360px at 100% 0%, #FCDDC7 0%, rgba(255, 251, 235, 0) 66%),
    var(--cream);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

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

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

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

.eyebrow::after {
  display: inline-block;
  width: 34px;
  height: 2px;
  margin-left: 10px;
  vertical-align: 4px;
  content: "";
  background: var(--amber);
}

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

.hero h1 {
  font-size: clamp(44px, 5.4vw, 66px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

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

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

.button {
  min-height: 46px;
  min-width: 170px;
  padding: 0 24px;
}

.button-primary {
  color: #FFF0E6;
  background: var(--amber);
}

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

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

/* ---- 英雄组件：剧集卡片墙 + 播放源标签 ---- */
.epWall {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #2C1110;
  box-shadow: 0 20px 38px rgba(44, 17, 16, 0.26);
}

.ewTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  color: #FFEFE4;
  gap: 10px;
}

.ewTop b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ewTop span {
  flex: none;
  color: #C9907C;
  font-size: 11px;
}

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

.epCard {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 10px 9px 9px;
  border: 1px solid #4A1F1B;
  border-radius: var(--radius);
  background: #3A1913;
}

.epNum {
  display: block;
  margin-bottom: 8px;
  color: #B97056;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.epCard b {
  overflow: hidden;
  color: #F4D8CA;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epCard small {
  margin-top: 3px;
  color: #A6776A;
  font-size: 10px;
}

.epCard.is-on {
  border-color: var(--amber-soft);
  background: var(--amber);
}

.epCard.is-on .epNum,
.epCard.is-on b {
  color: #FFF2E8;
}

.epCard.is-on small {
  color: #FFD5BC;
}

.epCard.is-lock {
  border-style: dashed;
  background: transparent;
  opacity: 0.66;
}

.ewSrc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #4A1F1B;
  gap: 8px;
}

.ewSrcLabel {
  color: #A6776A;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.ewTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ewTabs span {
  padding: 4px 10px;
  border: 1px solid #52251F;
  border-radius: 999px;
  color: #C9907C;
  font-size: 11px;
}

.ewTabs .is-on {
  border-color: #F09E70;
  color: #3A150C;
  background: #F7B086;
  font-weight: 600;
}

.ewFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: #9C695B;
  font-size: 10.5px;
  gap: 8px;
}

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

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

.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(2, minmax(0, 1fr));
  gap: 12px;
}

.four {
  position: relative;
  min-width: 0;
  padding: 22px 22px 22px 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFDF6;
}

.four .n {
  position: absolute;
  top: 22px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #FFFFFF;
  background: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11.5px;
}

.four h3 {
  margin: 0 0 7px;
  font-size: 17.5px;
  font-weight: 700;
}

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

/* ---- 界面展示 ---- */
.screens {
  padding: 68px 0 74px;
  background: #F9E9DD;
  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;
}

.covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  background: #EFD8CB;
  box-shadow: 0 12px 24px rgba(44, 17, 16, 0.14);
}

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

.covers small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

/* ---- FAQ ---- */
.faq {
  padding: 66px 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);
  background: #FFFCF4;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  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;
  padding: 3px;
  border-radius: 4px;
  background: #FBE5D6;
  transition: transform 160ms ease;
  filter: invert(36%) sepia(56%) saturate(1600%) hue-rotate(2deg) brightness(88%) contrast(94%);
}

.faq-item[open] {
  border-color: #E2B49A;
  background: #FFFFFF;
}

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

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

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

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

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

.official-fold {
  border-radius: var(--radius);
  background: #FFEEE2;
  border: 1px solid #EBC1A7;
}

.official-fold summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  color: var(--amber-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: "▾";
  font-size: 13px;
  color: var(--amber);
}

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

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

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

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

/* ---- 用户评价（深色区） ---- */
.reviews {
  padding: 66px 0 70px;
  color: #FFEADF;
  background: var(--cocoa);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.reviews .eyebrow {
  color: #F7B086;
}

.reviews .section-heading > p:last-child {
  color: #C09183;
}

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

.review-card {
  display: flex;
  min-width: 0;
  min-height: 186px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #4A1F1B;
  border-radius: var(--radius);
  background: #3A1913;
}

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

.review-card header b {
  color: #FFD5BC;
  font-size: 13px;
  font-weight: 700;
}

.review-card time {
  flex: none;
  color: #A6776A;
  font-size: 10.5px;
}

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

.rv-site {
  margin-top: auto;
  padding-top: 10px;
  color: #F39B71;
  font-size: 10.5px;
  word-break: break-all;
}

/* ---- 下载 ---- */
.download-cta {
  padding: 62px 0 66px;
  color: #FFEADF;
  background: linear-gradient(120deg, #B42509 0%, #7C1B06 100%);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

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

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

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

.download-cta .button-primary {
  color: #7C1B06;
  background: #FFEEE2;
}

.download-cta .button-primary .icon {
  filter: invert(30%) sepia(56%) saturate(1600%) hue-rotate(2deg) brightness(88%) contrast(94%);
}

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

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

/* ---- 页脚 ---- */
.site-footer {
  padding: 28px 0 20px;
  color: #B3867B;
  background: #1C0A09;
  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: #E6BBA8;
}

.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: 8px;
  background: var(--cocoa);
  box-shadow: 0 10px 20px rgba(44, 17, 16, 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 #F7B086;
  border-left: 2px solid #F7B086;
  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(--amber);
}

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

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

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

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

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

  .fours {
    grid-template-columns: 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;
  }

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

  .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 #4A1F1B;
    border-radius: 6px;
    font-size: 13px;
  }

  .nav-download {
    grid-row: 1;
    grid-column: 3;
    min-width: auto;
    min-height: 34px;
    margin-left: auto;
    padding: 0 10px;
    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: 42px;
  }

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

  .epWall {
    padding: 14px;
  }

  .epGrid {
    gap: 6px;
  }

  .epCard {
    padding: 9px 8px 8px;
  }

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

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

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

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

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

  .four {
    padding: 20px 18px 20px 60px;
  }

  .four .n {
    top: 20px;
    left: 16px;
    width: 28px;
    height: 28px;
  }

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

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