:root {
  --bg: #0a0a0c;
  --bg-elevated: #121218;
  --bg-card: #1a1a22;
  --bg-soft: #16161e;
  --text: #f5f0f2;
  --text-muted: #b8a8b0;
  --text-dim: #8a7a82;
  --pink: #ff4d8d;
  --pink-soft: #ff7aa8;
  --magenta: #e91e63;
  --orange: #ff9a3c;
  --gradient: linear-gradient(135deg, #ff9a3c 0%, #ff4d8d 45%, #e91e63 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255,154,60,.15), rgba(255,77,141,.12));
  --border: rgba(255, 77, 141, 0.18);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --nav-h: 64px;
  --ad-bar-h: 72px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--ad-bar-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 77, 141, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(255, 154, 60, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pink-soft);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--orange);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin: 0 0 0.65rem; }

p { margin: 0 0 1rem; color: var(--text-muted); }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 77, 141, 0.12);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Sticky download bar under nav */
.app-sticky-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 999;
  background: rgba(18, 18, 24, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0;
}

.app-sticky-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  min-width: 0;
  flex: 1 1 calc(25% - 0.55rem);
  max-width: 260px;
  justify-content: flex-start;
}

.app-chip img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-chip .meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.app-chip .name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-chip .tag {
  font-size: 0.68rem;
  color: var(--pink-soft);
}

.app-chip:hover {
  border-color: var(--pink);
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,.25) 0%, rgba(10,10,12,.55) 45%, rgba(10,10,12,.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 2rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-soft);
  margin-bottom: 0.5rem;
}

.hero p {
  max-width: 36rem;
  color: rgba(245, 240, 242, 0.88);
  font-size: 1.05rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 77, 141, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ===== Download ad panel ===== */
.download-panel {
  scroll-margin-top: calc(var(--nav-h) + var(--ad-bar-h) + 12px);
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow);
}

.download-panel h2 {
  margin-bottom: 0.35rem;
}

.download-panel > p {
  margin-bottom: 1.1rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 1rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
}

.download-card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
}

.download-card .name {
  font-weight: 700;
  font-size: 0.95rem;
}

.download-card .desc {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.download-card .btn {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* ===== Sections ===== */
.section {
  padding: 2.25rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head p {
  max-width: 46rem;
}

.eyebrow {
  color: var(--pink);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

/* 3:7 content blocks */
.ratio-block {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ratio-block.reverse {
  grid-template-columns: 7fr 3fr;
}

.ratio-block.reverse .ratio-media {
  order: 2;
}

.ratio-media {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
  max-height: 420px;
}

.ratio-media.landscape {
  aspect-ratio: 4 / 3;
  max-height: 280px;
}

.ratio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-body h3 {
  color: var(--text);
}

.ratio-body p {
  font-size: 0.98rem;
}

/* Cards grids */
.video-grid,
.artist-grid,
.short-grid {
  display: grid;
  gap: 1rem;
}

.video-grid {
  grid-template-columns: repeat(4, 1fr);
}

.artist-grid {
  grid-template-columns: repeat(4, 1fr);
}

.short-grid {
  grid-template-columns: repeat(4, 1fr);
}

.media-card {
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.media-card:hover {
  border-color: var(--pink);
  transform: translateY(-3px);
}

.media-card .thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
}

.media-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.media-card:hover .thumb img {
  transform: scale(1.05);
}

/* 最新视频封面为 16:9 横图，完整展示不裁切 */
.video-grid .media-card .thumb {
  aspect-ratio: 16 / 9;
  background: #0d0d12;
}

.video-grid .media-card .thumb img {
  object-fit: contain;
  object-position: center;
}

.video-grid .media-card:hover .thumb img {
  transform: none;
}

.media-card .info {
  padding: 0.85rem 0.9rem 1rem;
}

.media-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-card .actor {
  font-size: 0.8rem;
  color: var(--pink-soft);
}

.artist-card .thumb {
  aspect-ratio: 1;
}

.artist-card .info {
  text-align: center;
}

.short-card .thumb {
  aspect-ratio: 9 / 16;
}

.short-card .thumb img {
  object-fit: contain;
  object-position: center;
}

/* Article prose for SEO */
.prose {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  margin: 1.75rem 0;
}

.prose h2,
.prose h3 {
  color: var(--text);
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0.25rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--text-muted);
}

.page-hero {
  padding: 1.5rem 0 0.5rem;
}

.page-hero h1 {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Legal / content pages */
.content-page {
  padding-bottom: 3rem;
}

.content-page .prose {
  margin-top: 1rem;
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 3rem 0;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 7rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: #070709;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 44px;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer-links h4 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

/* Motion */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: fadeUp 0.7s ease both;
}

.hero-content {
  animation: fadeUp 0.9s ease both;
}

.app-chip,
.download-card,
.media-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ===== Mobile ===== */
@media (max-width: 960px) {
  .video-grid,
  .artist-grid,
  .short-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ratio-block,
  .ratio-block.reverse {
    grid-template-columns: 1fr;
  }

  .ratio-block.reverse .ratio-media {
    order: 0;
  }

  .ratio-media {
    max-height: 360px;
    aspect-ratio: 3 / 4;
    max-width: 280px;
    margin-inline: auto;
  }

  .ratio-media.landscape {
    max-width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 220px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
    --ad-bar-h: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(12, 12, 16, 0.98);
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .app-chip {
    flex: 1 1 calc(50% - 0.55rem);
    max-width: none;
  }

  /* 移动端：图片完整展示，文案置于图下方，避免遮挡 */
  .hero {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
  }

  .hero-bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center top;
  }

  .hero::after {
    display: none;
  }

  .hero-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.25rem 1rem 1.5rem;
    background: linear-gradient(180deg, rgba(18, 18, 24, 0.98), var(--bg));
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .hero p {
    font-size: 0.92rem;
    margin-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .video-grid,
  .artist-grid,
  .short-grid,
  .download-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .download-card img {
    width: 52px;
    height: 52px;
  }

  .media-card .info {
    padding: 0.65rem;
  }

  .media-card h3 {
    font-size: 0.82rem;
  }

  .prose {
    padding: 1.1rem 0.95rem;
  }
}
