:root {
  --bg-top: #f3eef8;
  --bg-mid: #ebe4f5;
  --bg-bottom: #f8f0f4;
  --ink: #1a1224;
  --ink-soft: #4a3d5c;
  --muted: #6b5f7a;
  --line: rgba(90, 60, 120, 0.14);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --accent-a: #ff6a3d;
  --accent-b: #ff2d8a;
  --accent-c: #7b5cff;
  --grad: linear-gradient(120deg, #7b5cff 0%, #ff2d8a 48%, #ff7a3d 100%);
  --grad-soft: linear-gradient(160deg, #efe7ff 0%, #ffe8f3 45%, #fff1e6 100%);
  --shadow: 0 10px 30px rgba(70, 40, 100, 0.08);
  --radius: 18px;
  --nav-h: 58px;
  --ad-h: 64px;
  --max: 1080px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--ad-h) + 12px);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(123, 92, 255, 0.18), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(255, 45, 138, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid) 40%, var(--bg-bottom));
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #8a2be8;
  text-decoration: none;
}

a:hover {
  color: var(--accent-b);
  text-decoration: underline;
}

.container {
  width: min(100% - 28px, var(--max));
  margin-inline: auto;
}

/* Header + sticky ad */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(18, 10, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-row {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
  color: #fff;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  background: #0b0612;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.nav-links a.cta {
  background: var(--grad);
  color: #fff;
  font-weight: 600;
}

.sticky-download {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  min-height: var(--ad-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(60, 30, 90, 0.06);
}

.sticky-download .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.app-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}

.app-chip img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.app-chip .meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-chip .name {
  font-size: 0.86rem;
  font-weight: 700;
}

.app-chip .tag {
  font-size: 0.7rem;
  color: var(--muted);
}

.app-chip.primary {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
}

.app-chip.primary .tag {
  color: rgba(255, 255, 255, 0.85);
}

.page-offset {
  padding-top: calc(var(--nav-h) + var(--ad-h) + 18px);
}

/* Hero */
.hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #140c1c;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}

.hero-media {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  padding: clamp(18px, 4vw, 40px);
  background: linear-gradient(180deg, transparent 0%, rgba(16, 8, 28, 0.82) 70%);
  color: #fff;
}

.hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.25;
  font-weight: 400;
  max-width: 16ch;
}

.hero p {
  margin: 0 0 18px;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  opacity: 0.95;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-dark {
  background: #1a1224;
  color: #fff;
}

/* Ad block */
.download-ad {
  scroll-margin-top: calc(var(--nav-h) + var(--ad-h) + 12px);
  margin: 0 0 28px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--grad-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s ease 0.1s both;
}

.download-ad h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
}

.download-ad > p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}

.app-card img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

.app-card strong {
  font-size: 0.95rem;
}

.app-card span {
  font-size: 0.78rem;
  color: var(--muted);
}

.app-card .btn-mini {
  margin-top: 4px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Layout blocks 3:7 */
.section {
  margin: 0 0 32px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  animation: fadeUp 0.7s ease both;
}

.section h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 400;
  line-height: 1.35;
}

.section .lead {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.split-37 {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 22px;
  align-items: start;
}

.split-37.reverse {
  grid-template-columns: 7fr 3fr;
}

.split-37 .media-col img,
.media-frame img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.media-frame {
  position: relative;
}

.media-caption {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}

.prose p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.prose h3 {
  margin: 20px 0 8px;
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 400;
}

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 6px;
}

.keyword-link {
  font-weight: 700;
  background: linear-gradient(120deg, rgba(123, 92, 255, 0.12), rgba(255, 45, 138, 0.12));
  padding: 0 4px;
  border-radius: 4px;
}

/* Cards for interactive content only */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.item-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.item-card .thumb {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #1a1224;
  display: block;
}

.item-card.video-card .thumb {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.item-card .body {
  padding: 10px 12px 14px;
}

.item-card h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 700;
}

.item-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.artist {
  text-align: center;
}

.artist img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 45, 138, 0.25);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.artist:hover img {
  transform: scale(1.04);
}

.artist span {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-row {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 18px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.feature-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.toc a {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--accent-b);
  color: var(--accent-b);
}

.breadcrumb {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  color: var(--ink);
}

.page-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
}

.site-footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  background: #140c1c;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}

.site-footer h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 6px;
}

.copyright {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  margin: 0 0 8px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 54px;
    --ad-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;
    background: rgba(18, 10, 28, 0.98);
    padding: 10px 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .sticky-download .inner {
    justify-content: center;
    flex-wrap: wrap;
    padding-inline: 4px;
  }

  .app-chip {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    justify-content: flex-start;
  }

  .page-offset {
    padding-top: calc(var(--nav-h) + 148px);
  }

  .hero {
    min-height: 0;
    border-radius: 16px;
  }

  .hero-overlay {
    position: static;
    padding: 16px 14px 18px;
    background: linear-gradient(180deg, #1a1024 0%, #120a1a 100%);
  }

  .hero h1 {
    font-size: 1.55rem;
    max-width: none;
  }

  .hero p {
    font-size: 0.92rem;
    margin-bottom: 12px;
  }

  .split-37,
  .split-37.reverse,
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .split-37 .media-col,
  .feature-row .media-col {
    order: -1;
    max-width: 320px;
    margin-inline: auto;
  }

  .section {
    padding: 16px;
  }

  .artist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sticky-download {
    min-height: 70px;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .app-grid {
    grid-template-columns: 1fr 1fr;
  }

  .item-card h3 {
    font-size: 0.86rem;
  }
}
