:root {
  --bg: #f6eeff;
  --pink: #ff8fb1;
  --yellow: #ffd84d;
  --ink: #241a2f;
  --lime: #c8ff4d;
  --lilac: #e7d7ff;
  --paper: #fffdf8;
  --muted: #5d4f72;
  --radius-lg: 32px;
  --radius-md: 22px;
  --shadow-hard: 8px 8px 0 rgba(36, 26, 47, 0.16);
  --shadow-soft: 0 18px 40px rgba(36, 26, 47, 0.10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 60;
  padding: 10px 18px;
  border-radius: 0 0 14px 0;
  background: var(--ink);
  color: #fffdf8;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 2px solid var(--ink);
  background: rgba(246, 238, 255, 0.94);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-domain {
  font-size: 0.72rem;
  color: var(--muted);
}

.site-nav {
  margin-left: auto;
  order: 2;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-list a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.18s ease;
}

.nav-list a:hover {
  background: var(--lilac);
}

.nav-list a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* 按钮 */
.button-look {
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.6rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button-look:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.button-look:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button-look:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.button-solid {
  background: var(--pink);
}

.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
}

.nav-cta {
  order: 3;
  flex-shrink: 0;
}

.nav-cta:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
}

/* 首屏 */
.hero {
  position: relative;
  padding: 60px 0 48px;
  overflow: clip;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.05rem, 4.6vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 34em;
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--muted);
}

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

.hero-cta:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
}

.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 26px 6px 46px;
}

.hero-art::before {
  content: "";
  position: absolute;
  right: 4%;
  bottom: 6%;
  width: 78%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--lilac);
  opacity: 0.75;
  z-index: 0;
}

.poster {
  position: relative;
  z-index: 1;
  width: 33%;
  margin: 0;
  padding: 7px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.poster img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  border-radius: 17px;
}

.poster-a {
  z-index: 2;
  margin-right: -6%;
  transform: rotate(-7deg) translateY(8px);
}

.poster-b {
  z-index: 3;
  margin-left: -5%;
  transform: rotate(3deg) translateY(-18px);
}

.poster-c {
  z-index: 1;
  margin-left: -4%;
  transform: rotate(-3deg) translateY(16px);
}

.poster-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 1px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.6;
}

/* 通用区块 */
.section {
  padding: 84px 0;
}

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #6b4a8f;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 3px;
  background: var(--pink);
  vertical-align: 1px;
}

.section-head {
  max-width: 660px;
  margin-bottom: 40px;
}

.section-head h2,
.howto-copy h2,
.search-copy h2,
.download-head h2 {
  margin-top: 10px;
  font-size: clamp(1.7rem, 3.1vw, 2.4rem);
}

.section-desc {
  margin-top: 12px;
  color: var(--muted);
}

/* 核心能力 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-hard);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge-pink {
  background: var(--pink);
}

.badge-yellow {
  background: var(--yellow);
}

.badge-lime {
  background: var(--lime);
}

.feature-card h3 {
  margin-top: 16px;
  font-size: 1.2rem;
}

.feature-card p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* 题材选择器 */
.genre-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.genre-tab {
  padding: 8px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.genre-tab:hover {
  transform: translateY(-2px);
}

.genre-tab:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.genre-tab[aria-selected="true"] {
  background: var(--pink);
  box-shadow: 3px 3px 0 var(--ink);
}

.genre-panel {
  padding: 34px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
}

.genre-panel:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.genre-panel-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.genre-copy h3 {
  font-size: 1.5rem;
}

.genre-copy p {
  margin-top: 12px;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  padding: 3px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lilac);
  font-size: 0.8rem;
  font-weight: 700;
}

.genre-art {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: var(--lilac);
}

.genre-art::before {
  content: "";
  position: absolute;
  top: -14%;
  right: -10%;
  width: 62%;
  aspect-ratio: 1 / 1;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
}

.genre-art::after {
  content: "";
  position: absolute;
  left: 14%;
  bottom: 14%;
  width: 56%;
  height: 36%;
  border: 3px solid var(--ink);
  border-radius: 20px 20px 10px 10px;
  background: var(--yellow);
}

.genre-art-sweet {
  background: #ffe1eb;
}

.genre-art-revenge {
  background: #fff0c2;
}

.genre-art-revenge::before {
  background: var(--yellow);
}

.genre-art-revenge::after {
  background: var(--pink);
}

.genre-art-mystery {
  background: #ddd3fb;
}

.genre-art-mystery::before {
  background: var(--ink);
}

.genre-art-mystery::after {
  background: var(--lime);
}

.genre-art-costume {
  background: #e2d0ff;
}

.genre-art-costume::after {
  background: #f6eeff;
}

/* 搜索与筛选：干净留白带 */
.section-search {
  padding: 104px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.search-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.search-points li {
  padding: 22px 0;
  border-bottom: 2px dashed rgba(36, 26, 47, 0.22);
}

.search-points li:first-child {
  padding-top: 0;
}

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

.search-points h3 {
  font-size: 1.1rem;
}

.search-points p {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* 追剧与续播 */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.duo-card {
  padding: 32px;
  border: 3px solid var(--ink);
  border-radius: 30px;
  box-shadow: var(--shadow-hard);
}

.duo-lilac {
  background: var(--lilac);
}

.duo-yellow {
  background: #ffedb0;
}

.duo-card h3 {
  font-size: 1.35rem;
}

.duo-card p {
  margin-top: 10px;
  color: #4a3a5e;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.mini-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
}

.mini-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--ink);
}

.resume-bar {
  height: 14px;
  margin-top: 22px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}

.resume-fill {
  display: block;
  width: 62%;
  height: 100%;
  background: var(--lime);
}

/* 播放体验 */
.play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 18px;
}

.play-card {
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
}

.play-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}

.mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  flex-shrink: 0;
}

.mark-pink {
  background: var(--pink);
}

.mark-yellow {
  background: var(--yellow);
}

.mark-lime {
  background: var(--lime);
}

.mark-lilac {
  background: var(--lilac);
}

.play-card p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* 三步开始 */
.howto-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px 18px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 30px 22px 22px;
  border: 2px dashed var(--ink);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.7);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -16px;
  left: 20px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--yellow);
  font-weight: 800;
  line-height: 1.5;
}

.steps h3 {
  font-size: 1.05rem;
}

.steps p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.app-showcase {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

.app-shot {
  width: min(300px, 70vw);
  border-radius: 40px;
  box-shadow: var(--shadow-soft);
}

/* 常见问题 */
.faq {
  display: grid;
  gap: 14px;
  max-width: 860px;
}

.faq details {
  padding: 18px 22px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.faq p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* 下载区 */
.section-download {
  padding: 96px 0 100px;
}

.download-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.dl-card {
  position: relative;
  padding: 28px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.dl-card:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dl-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.dl-card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.dl-netdisk {
  background: var(--lilac);
}

.dl-android {
  background: var(--lime);
}

.dl-ios {
  background: var(--yellow);
}

.dl-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.dl-desc {
  font-size: 0.9rem;
  color: #4a3a5e;
}

.dl-arrow {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 1.2rem;
  font-weight: 800;
}

/* 页脚 */
.site-footer {
  padding: 56px 0 26px;
  background: var(--ink);
  color: #f6eeff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 46px;
  height: 46px;
  padding: 2px;
  border-radius: 15px;
  background: var(--paper);
}

.footer-name {
  font-weight: 800;
}

.footer-domain {
  font-size: 0.82rem;
  color: #bda6d1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: 460px;
}

.footer-nav a {
  font-size: 0.92rem;
  color: #e7d7ff;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(231, 215, 255, 0.25);
  font-size: 0.8rem;
  color: #bda6d1;
}

/* 404 */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.error-card {
  max-width: 560px;
  padding: 48px 36px;
  border: 3px solid var(--ink);
  border-radius: 36px;
  background: var(--paper);
  box-shadow: var(--shadow-hard);
  text-align: center;
}

.error-code {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.error-card h1 {
  margin-top: 8px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.error-card p {
  margin-top: 14px;
  color: var(--muted);
}

.error-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.error-actions .button-look {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 窄屏 */
@media (max-width: 980px) {
  .hero {
    padding-top: 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-art {
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
  }

  .genre-panel-inner {
    grid-template-columns: 1fr;
  }

  .search-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .howto-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav-list {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .section {
    padding: 64px 0;
  }

  .section-search {
    padding: 72px 0;
  }

  .section-download {
    padding: 72px 0 80px;
  }

  .site-nav {
    order: 4;
    width: 100%;
    margin-left: 0;
  }

  .nav-list a {
    padding: 4px 10px;
    font-size: 0.9rem;
  }

  .nav-cta {
    order: 3;
    margin-left: auto;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }

  .lede {
    font-size: 1rem;
  }

  .genre-panel {
    padding: 22px;
  }

  .genre-copy h3 {
    font-size: 1.3rem;
  }

  .genre-art {
    min-height: 170px;
  }

  .duo-card {
    padding: 24px;
  }

  .feature-card {
    padding: 24px;
  }

  .download-head {
    text-align: left;
    margin-bottom: 28px;
  }

  .app-shot {
    width: min(260px, 72vw);
  }

  .error-card {
    padding: 36px 22px;
  }
}

@media (max-width: 380px) {
  .brand-domain {
    font-size: 0.66rem;
  }

  .nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
  }

  .button-look {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
