:root {
  --bg-void: #08060e;
  --bg-panel: #12101c;
  --bg-elevated: rgba(22, 18, 36, 0.88);
  --crimson: #e91e63;
  --crimson-deep: #c2185b;
  --violet: #7c4dff;
  --violet-soft: #b388ff;
  --amber: #ffb300;
  --rose-glow: rgba(233, 30, 99, 0.22);
  --violet-glow: rgba(124, 77, 255, 0.18);
  --text-bright: #faf5ff;
  --text-body: #d4c8e8;
  --text-dim: #9a8fb5;
  --line: rgba(233, 30, 99, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --nav-h: 58px;
  --sticky-h: 0px;
  --shadow-deep: 0 20px 50px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  background: var(--bg-void);
  color: var(--text-body);
  line-height: 1.9;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 85% 5%, var(--rose-glow), transparent 55%),
    radial-gradient(ellipse 55% 40% at 10% 85%, var(--violet-glow), transparent 50%),
    linear-gradient(165deg, #0a0712 0%, #120a1a 45%, #08060e 100%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--violet-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--amber);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1080px, 93vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.container-wide {
  width: min(1200px, 96vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 6, 14, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-bright);
  font-weight: 700;
  font-size: 1rem;
  font-family: "Noto Sans SC", sans-serif;
  letter-spacing: 0.04em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--crimson);
  box-shadow: 0 0 18px var(--rose-glow);
}

.nav-desktop {
  display: none;
  gap: 1.35rem;
  list-style: none;
  font-family: "Noto Sans SC", sans-serif;
}

.nav-desktop a {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--violet));
  transition: width 0.25s ease;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text-bright);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(120deg, var(--crimson-deep), var(--violet));
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: "Noto Sans SC", sans-serif;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(233, 30, 99, 0.4);
  white-space: nowrap;
}

.btn-cta:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  color: var(--text-bright);
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: "Noto Sans SC", sans-serif;
}

.btn-outline:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--crimson);
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.8rem 0 1rem;
  border-top: 1px solid var(--line);
  list-style: none;
  gap: 0.35rem;
  font-family: "Noto Sans SC", sans-serif;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--text-dim);
  padding: 0.55rem 0;
  font-size: 0.92rem;
}

/* Sticky download */
.sticky-download {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(8, 6, 14, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.sticky-download.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-download-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 1080px;
  margin: 0 auto;
}

.sticky-download-inner > div {
  width: calc(25% - 6px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sticky-download-inner img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.sticky-download-inner .caption {
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 2px;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-family: "Noto Sans SC", sans-serif;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .sticky-download-inner > div {
    width: calc(12.5% - 7px);
  }

  .sticky-download-inner img {
    width: 56px;
    height: 56px;
  }
}

main {
  padding-top: calc(var(--nav-h) + 12px);
  position: relative;
  z-index: 1;
}

body.has-sticky main {
  padding-top: calc(var(--nav-h) + var(--sticky-h) + 12px);
}

/* Ads */
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 12px 0 18px;
  gap: 6px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#ads img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
  border: 1px solid var(--line);
}

#ads a {
  display: inline-block;
  border-radius: 14px;
}

#ads img:hover {
  transform: translateY(-3px) scale(1.03);
}

#ads .caption {
  height: 15px;
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Noto Sans SC", sans-serif;
}

.ads-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 8px 6px;
  margin-bottom: 1.5rem;
}

/* Hero */
.hero-splash {
  position: relative;
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
}

.hero-splash::before {
  content: "";
  position: absolute;
  inset: -20px 0 0;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.08), rgba(124, 77, 255, 0.06));
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.hero-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(233, 30, 99, 0.15);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--crimson);
  font-family: "Noto Sans SC", sans-serif;
  margin-bottom: 1rem;
}

.hero-splash h1 {
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  color: var(--text-bright);
  line-height: 1.35;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 720px;
  margin-bottom: 1.4rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section-block {
  margin-bottom: 3rem;
}

.section-head {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--crimson);
}

.section-head h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: var(--text-bright);
  margin-bottom: 0.4rem;
}

.section-head p {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-family: "Noto Sans SC", sans-serif;
}

/* Text blocks */
.prose h3 {
  color: var(--text-bright);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
}

.prose p {
  margin-bottom: 1rem;
  text-align: justify;
}

.prose ul,
.prose ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.ext-link {
  color: var(--amber);
  border-bottom: 1px dashed rgba(255, 179, 0, 0.45);
}

/* Cards */
.card-row {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .card-row.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.1rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.info-card:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.info-card .card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.info-card h3 {
  color: var(--text-bright);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: "Noto Sans SC", sans-serif;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.75;
}

/* Media layouts - 3:7 ratio */
.media-split {
  display: grid;
  gap: 1.5rem;
  margin: 1.75rem 0;
  align-items: start;
}

@media (min-width: 768px) {
  .media-split {
    grid-template-columns: 3fr 7fr;
  }

  .media-split.reverse {
    grid-template-columns: 7fr 3fr;
  }

  .media-split.reverse .media-figure {
    order: 2;
  }
}

.media-figure {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-deep);
}

.media-figure img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.media-figure figcaption {
  padding: 0.6rem 0.8rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  background: var(--bg-panel);
  font-family: "Noto Sans SC", sans-serif;
}

.media-body h3 {
  color: var(--text-bright);
  font-size: 1.12rem;
  margin-bottom: 0.75rem;
}

/* Highlight strip */
.highlight-strip {
  background: linear-gradient(90deg, rgba(233, 30, 99, 0.12), rgba(124, 77, 255, 0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.highlight-strip h3 {
  color: var(--amber);
  font-size: 1rem;
  margin-bottom: 0.6rem;
  font-family: "Noto Sans SC", sans-serif;
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  font-family: "Noto Sans SC", sans-serif;
}

.spec-table th,
.spec-table td {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  text-align: left;
}

.spec-table th {
  background: rgba(233, 30, 99, 0.1);
  color: var(--text-bright);
  font-weight: 600;
}

.spec-table td {
  color: var(--text-dim);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-family: "Noto Sans SC", sans-serif;
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover {
  color: var(--crimson);
}

.breadcrumb span {
  color: var(--text-dim);
  opacity: 0.6;
}

/* Page content */
.page-content {
  padding-bottom: 3rem;
}

.page-content h1 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  color: var(--text-bright);
  margin-bottom: 1.25rem;
}

.page-content h2 {
  font-size: 1.2rem;
  color: var(--text-bright);
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.page-content h3 {
  font-size: 1.05rem;
  color: var(--violet-soft);
  margin: 1.5rem 0 0.65rem;
}

.page-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.page-content ul,
.page-content ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}

.page-content li {
  margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
  font-family: "Noto Sans SC", sans-serif;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  color: var(--text-bright);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--crimson), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page h1 {
  color: var(--text-bright);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--text-dim);
  max-width: 420px;
  margin-bottom: 1.5rem;
  font-family: "Noto Sans SC", sans-serif;
}
