:root {
  --bg: #0b0b0f;
  --bg-elevated: #14141c;
  --bg-card: #1a1a24;
  --text: #f5f5f7;
  --text-muted: #a8a8b8;
  --border: rgba(255, 255, 255, 0.08);
  --accent-start: #ff8a1a;
  --accent-mid: #ff3d7a;
  --accent-end: #c44dff;
  --accent: #ff4d8d;
  --accent-soft: rgba(255, 77, 141, 0.15);
  --nav-h: 64px;
  --ads-h: 110px;
  --radius: 12px;
  --max: 1100px;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--ads-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.25em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.2rem; }

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-mid), var(--accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Sticky site ads (loaded from myads.html) */
.site-ads {
  position: sticky;
  top: var(--nav-h);
  z-index: 999;
  background: linear-gradient(180deg, #16161f 0%, #12121a 100%);
  border-bottom: 1px solid var(--border);
  padding: 4px 12px 8px;
  min-height: var(--ads-h);
}

html:not(.has-site-ads) .site-ads:empty {
  display: none;
}

/* Hero: full image, copy below (no overlay covering art) */
.hero {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  background: #0b0b0f;
}

.hero-visual {
  width: 100%;
  line-height: 0;
  background: #0b0b0f;
}

.hero-img {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.hero-content {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 20px 0 8px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  background: linear-gradient(90deg, var(--accent-start), var(--accent-mid), var(--accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  margin-bottom: 10px;
  max-width: 40em;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 42em;
  margin: 0 0 18px;
  font-size: 0.98rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  opacity: 0.95;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-start), var(--accent-mid));
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #555;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* Content layout 3:7 */
.section {
  padding: 28px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  max-width: 48em;
}

.split-37 {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.split-37.reverse {
  grid-template-columns: 7fr 3fr;
}

.split-37 .media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.split-37 .media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.split-37 .media.wide img {
  aspect-ratio: 16 / 10;
}

.split-37 .copy p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

.split-37 .copy p:last-child {
  margin-bottom: 0;
}

.prose {
  color: var(--text-muted);
}

.prose p {
  margin: 0 0 1.1em;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose h2, .prose h3 {
  color: var(--text);
  margin-top: 1.6em;
}

.keyword-link {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px dashed rgba(255, 77, 141, 0.5);
}

.keyword-link:hover {
  border-bottom-style: solid;
  text-decoration: none;
}

/* Cards grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.media-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.media-card .thumb {
  background: #111118;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.media-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.media-card .meta {
  padding: 10px 12px 14px;
}

.media-card .meta h3 {
  font-size: 0.95rem;
  margin: 0 0 4px;
  font-family: var(--font);
}

.media-card .meta p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.artist-card {
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
}

.artist-card img {
  width: 96px;
  height: 96px;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 77, 141, 0.4);
}

.artist-card h3 {
  font-size: 0.95rem;
  margin: 0;
  font-family: var(--font);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 10px 14px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-list li strong {
  color: var(--text);
}

.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0 28px;
}

.toc h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.toc ol {
  margin: 0;
  color: var(--text-muted);
}

.toc a {
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--accent);
}

.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.faq details p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}

.error-page .code {
  font-size: clamp(4rem, 15vw, 7rem);
  font-family: var(--font-display);
  background: linear-gradient(90deg, var(--accent-start), var(--accent-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 36px 0 24px;
  border-top: 1px solid var(--border);
  background: #08080c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer li {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.copyright {
  text-align: center;
  color: #666;
  font-size: 0.82rem;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Page title block */
.page-hero {
  padding: 28px 0 10px;
}

.page-hero h1 {
  margin-bottom: 10px;
}

.page-hero .lead {
  color: var(--text-muted);
  max-width: 48em;
  margin: 0;
}

/* Mobile */
@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid,
  .artist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-37,
  .split-37.reverse {
    grid-template-columns: 1fr;
  }

  .split-37 .media img {
    aspect-ratio: 16 / 10;
    max-height: 360px;
    width: 100%;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 56px;
    --ads-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: #12121a;
    border-bottom: 1px solid var(--border);
    padding: 8px;
    gap: 2px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 14px;
  }

  .site-ads {
    padding: 4px 8px 6px;
  }

  .card-grid,
  .artist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .logo-text {
    font-size: 1rem;
  }
}

