:root {
  --rose-core: #ff4d8d;
  --rose-light: #ff8cb3;
  --peach: #ffb199;
  --wine: #4a1535;
  --plum-deep: #1c0f24;
  --plum-mid: #2a1838;
  --gold: #f0c56e;
  --gold-soft: #ffe4a8;
  --cream: #fff5f8;
  --text-main: #f8eef4;
  --text-soft: #cbb8cc;
  --text-muted: #8f7a96;
  --glass: rgba(42, 24, 56, 0.72);
  --glass-border: rgba(255, 77, 141, 0.35);
  --glow-rose: rgba(255, 77, 141, 0.28);
  --glow-peach: rgba(255, 177, 153, 0.2);
  --nav-h: 56px;
  --sticky-h: 0px;
  --radius-pill: 999px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "DM Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--plum-deep);
  color: var(--text-soft);
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -5%, var(--glow-rose), transparent 58%),
    radial-gradient(ellipse 60% 45% at 95% 30%, var(--glow-peach), transparent 52%),
    radial-gradient(ellipse 50% 40% at 5% 90%, rgba(240, 197, 110, 0.12), transparent 48%),
    linear-gradient(168deg, #1a0e22 0%, #2d1535 38%, #1c0f24 100%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--rose-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-soft);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(1140px, 94vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(28, 15, 36, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo-link img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid var(--rose-core);
  box-shadow: 0 0 16px var(--glow-rose);
}

.nav-pc {
  display: none;
  list-style: none;
  gap: 6px;
}

.nav-pc a {
  display: block;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-pc a:hover,
.nav-pc a.is-on {
  background: rgba(255, 77, 141, 0.18);
  color: var(--cream);
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--rose-core), #e8357a);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 22px var(--glow-rose);
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-dl:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--glow-rose);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--glass-border);
  color: var(--rose-light);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  background: rgba(255, 77, 141, 0.1);
  color: var(--gold-soft);
  border-color: var(--gold);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--rose-light);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-mob {
  display: none;
  list-style: none;
  padding: 12px 0 16px;
  border-top: 1px solid var(--glass-border);
  background: rgba(28, 15, 36, 0.98);
}

.nav-mob.open {
  display: block;
}

.nav-mob li a {
  display: block;
  padding: 11px 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 77, 141, 0.1);
}

.nav-mob li a:hover {
  color: var(--cream);
}

/* Sticky download */
.sticky-dl {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(28, 15, 36, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  padding: 8px 8px;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.sticky-dl.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-dl-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto;
}

.sticky-dl-inner > div {
  width: calc(25% - 5px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sticky-dl-inner img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--glass-border);
}

.sticky-dl-inner .caption {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

main {
  padding-top: calc(var(--nav-h) + 14px);
  position: relative;
  z-index: 1;
}

body.sticky-on main {
  padding-top: calc(var(--nav-h) + var(--sticky-h) + 14px);
}

/* Ads */
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
}

#ads img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
  border: 1px solid var(--glass-border);
  transition: transform 0.18s ease;
}

#ads a {
  display: inline-block;
  border-radius: 14px;
}

#ads img:hover {
  transform: translateY(-3px) scale(1.04);
}

#ads .caption {
  height: 15px;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

.ads-zone {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 12px 10px 8px;
  margin-bottom: 1.4rem;
}

/* Hero */
.banner-hero {
  padding: 2rem 0 1.8rem;
  text-align: center;
}

.banner-hero .tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(255, 77, 141, 0.15);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  color: var(--rose-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.banner-hero h1 {
  font-size: clamp(1.45rem, 4.5vw, 2.15rem);
  color: var(--cream);
  line-height: 1.45;
  font-weight: 700;
  margin-bottom: 1rem;
}

.banner-hero .lead {
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto 1.4rem;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Sections */
.block {
  margin-bottom: 2.4rem;
}

.block-head {
  margin-bottom: 1.2rem;
}

.block-head h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  color: var(--cream);
  font-weight: 700;
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 14px;
}

.block-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  background: linear-gradient(180deg, var(--rose-core), var(--gold));
  border-radius: 4px;
}

.block-head p {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 14px;
}

.prose h3 {
  font-size: 1.08rem;
  color: var(--rose-light);
  margin: 1.3rem 0 0.6rem;
  font-weight: 600;
}

.prose p {
  margin-bottom: 0.9rem;
  font-size: 0.93rem;
}

.prose ul,
.prose ol {
  margin: 0.6rem 0 1rem 1.4rem;
  font-size: 0.93rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.ext-ref {
  color: var(--gold);
  border-bottom: 1px dashed rgba(240, 197, 110, 0.4);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 14px;
  margin: 1.2rem 0;
}

.card-grid.g3 {
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.1rem;
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: var(--rose-core);
  transform: translateY(-3px);
}

.feature-card .ico {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 1.2rem 0;
}

.stat-box {
  background: linear-gradient(145deg, rgba(255, 77, 141, 0.12), rgba(240, 197, 110, 0.08));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 1.35rem;
  color: var(--gold);
  font-weight: 700;
}

.stat-box span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Media blocks */
.media-row {
  display: grid;
  gap: 1.2rem;
  align-items: center;
  margin: 1.4rem 0;
}

.media-row.reverse .media-pic {
  order: -1;
}

.media-pic {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}

.media-pic img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
  max-height: 480px;
}

.media-body h3 {
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.media-body p {
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

/* Combo: cards + image */
.combo-block {
  display: grid;
  gap: 1.2rem;
  margin: 1.4rem 0;
}

.combo-cards {
  display: grid;
  gap: 10px;
}

.mini-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(42, 24, 56, 0.55);
  border: 1px solid rgba(255, 77, 141, 0.2);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.mini-card .num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--rose-core), var(--peach));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.mini-card h4 {
  font-size: 0.92rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.mini-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* FAQ */
.faq-list {
  margin: 1rem 0;
}

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  background: rgba(42, 24, 56, 0.45);
}

.faq-item summary {
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--cream);
  font-size: 0.92rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--rose-light);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .ans {
  padding: 0 1rem 0.9rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Breadcrumb */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  padding: 8px 0;
}

.crumb a {
  color: var(--text-muted);
}

.crumb a:hover {
  color: var(--rose-light);
}

.crumb span.sep {
  opacity: 0.5;
}

/* Page content */
.page-article {
  padding-bottom: 2.5rem;
}

.page-article h1 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.page-article h2 {
  font-size: 1.15rem;
  color: var(--rose-light);
  margin: 1.6rem 0 0.7rem;
  font-weight: 600;
}

.page-article h3 {
  font-size: 1rem;
  color: var(--cream);
  margin: 1.2rem 0 0.5rem;
}

.page-article p {
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

.page-article ul,
.page-article ol {
  margin: 0.5rem 0 1rem 1.5rem;
  font-size: 0.92rem;
}

/* Error pages */
.err-page {
  text-align: center;
  padding: 3rem 0 4rem;
}

.err-page .code {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose-core), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.err-page h1 {
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.err-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.foot-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.foot-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  margin-bottom: 0.6rem;
}

.foot-brand p {
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 280px;
}

.foot-nav h4 {
  font-size: 0.88rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.foot-nav ul {
  list-style: none;
}

.foot-nav li {
  margin-bottom: 0.35rem;
}

.foot-nav a {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.foot-nav a:hover {
  color: var(--rose-light);
}

.foot-copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 77, 141, 0.12);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.2), rgba(240, 197, 110, 0.12));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-band h2 {
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.cta-band p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .card-grid.g3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .media-row {
    grid-template-columns: 1fr 1.2fr;
  }

  .media-row.reverse {
    grid-template-columns: 1.2fr 1fr;
  }

  .combo-block {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-pc {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .sticky-dl-inner > div {
    width: calc(12.5% - 7px);
  }

  .sticky-dl-inner img {
    width: 54px;
    height: 54px;
  }

  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .banner-hero .lead {
    text-align: center;
  }
}
