:root {
  --bg-base: #fff6f2;
  --bg-panel: #ffffff;
  --bg-warm: #ffe8df;
  --rose: #e84a7a;
  --rose-deep: #c72d5e;
  --peach: #ff9a6c;
  --coral: #ff6b6b;
  --lilac: #a67cff;
  --ink: #2a1f28;
  --ink-soft: #5c4f58;
  --ink-muted: #8a7d86;
  --line: rgba(232, 74, 122, 0.18);
  --shadow: 0 14px 40px rgba(199, 45, 94, 0.1);
  --radius: 20px;
  --nav-h: 60px;
  --sticky-h: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-base);
  color: var(--ink);
  line-height: 1.9;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(255, 154, 108, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 15%, rgba(166, 124, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 35% at 50% 100%, rgba(232, 74, 122, 0.1), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--rose-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--peach);
}

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;
  background: rgba(255, 246, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 0.75rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
  font-family: "Noto Serif SC", serif;
}

.logo-link img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 2px solid var(--rose);
  box-shadow: 0 4px 14px rgba(232, 74, 122, 0.25);
}

.nav-list {
  display: none;
  gap: 1.2rem;
  list-style: none;
  font-size: 0.88rem;
}

.nav-list a {
  color: var(--ink-soft);
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a.current {
  color: var(--rose-deep);
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 1.05rem;
  background: linear-gradient(135deg, var(--rose), var(--peach));
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 6px 20px rgba(232, 74, 122, 0.35);
  white-space: nowrap;
}

.btn-dl:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 1.05rem;
  border: 1.5px solid var(--rose);
  color: var(--rose-deep);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-ghost:hover {
  background: rgba(232, 74, 122, 0.06);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
}

.nav-drawer {
  display: none;
  flex-direction: column;
  padding: 0.6rem 0 1rem;
  border-top: 1px solid var(--line);
  list-style: none;
  gap: 0.2rem;
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  color: var(--ink-soft);
  padding: 0.5rem 0;
  font-size: 0.92rem;
}

/* Ads */
.ads-zone {
  padding: 0.75rem 0 0.25rem;
}

#ads,
.sticky-bar-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  background: transparent;
}

#ads > div,
.sticky-bar-inner > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#ads img,
.sticky-bar-inner img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(42, 31, 40, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: none;
}

#ads a,
.sticky-bar-inner a {
  display: inline-block;
  border-radius: 14px;
}

#ads img:hover,
.sticky-bar-inner img:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 9px 22px rgba(42, 31, 40, 0.16);
}

#ads .caption,
.sticky-bar-inner .caption {
  height: 15px;
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

/* Sticky download bar */
.sticky-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 246, 242, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 7px 8px;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}

.sticky-bar.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-bar-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.sticky-bar-inner > div {
  width: calc(25% - 6px);
}

.sticky-bar-inner img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

body.has-sticky main {
  padding-top: calc(var(--nav-h) + var(--sticky-h));
}

/* Main layout */
main {
  padding-top: var(--nav-h);
}

/* Hero */
.hero-band {
  padding: 1.8rem 0 2.4rem;
  text-align: center;
}

.hero-ribbon {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: linear-gradient(90deg, rgba(232, 74, 122, 0.12), rgba(255, 154, 108, 0.12));
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--rose-deep);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.hero-band h1 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 780px;
  margin: 0 auto 1.4rem;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Sections */
.block {
  padding: 2.2rem 0;
}

.block-head {
  margin-bottom: 1.5rem;
}

.block-head h2 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.block-head p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.prose h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.15rem;
  color: var(--rose-deep);
  margin: 1.4rem 0 0.6rem;
}

.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 0.95rem;
  color: var(--ink-soft);
  text-align: justify;
}

.prose ul,
.prose ol {
  margin: 0.6rem 0 1rem 1.3rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.card-grid.g3 {
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--bg-panel);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-card.accent-left {
  border-left: 4px solid var(--rose);
}

.feature-card h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

.feature-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  background: rgba(232, 74, 122, 0.1);
  color: var(--rose-deep);
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* Media layouts */
.media-row {
  display: grid;
  gap: 1.4rem;
  align-items: start;
  margin-top: 1rem;
}

.media-row.reverse .media-img {
  order: 2;
}

.media-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.media-img img {
  width: 100%;
}

.media-img figcaption {
  padding: 0.55rem 0.8rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  background: var(--bg-panel);
  text-align: center;
}

.media-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Ribbon panel */
.ribbon-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 232, 223, 0.7));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-panel);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
}

.faq-item h3 {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
  font-family: "Noto Serif SC", serif;
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

/* Breadcrumb */
.crumb {
  padding: 0.9rem 0 0.2rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.crumb a {
  color: var(--ink-muted);
}

.crumb a:hover {
  color: var(--rose);
}

.crumb span {
  margin: 0 0.35rem;
  opacity: 0.5;
}

/* Page hero */
.page-hero {
  padding: 1.2rem 0 1.6rem;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 1.2rem;
}

.page-hero h1 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.4rem, 3.8vw, 1.9rem);
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.page-hero p {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* Footer */
.site-foot {
  margin-top: 2.5rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.foot-grid {
  display: grid;
  gap: 1.2rem;
}

.foot-grid h4 {
  font-family: "Noto Serif SC", serif;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}

.foot-links a {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.foot-copy {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--nav-h) - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0;
}

.error-box h1 {
  font-family: "Noto Serif SC", serif;
  font-size: 4rem;
  color: var(--rose);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-box h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.error-box p {
  color: var(--ink-muted);
  margin-bottom: 1.2rem;
}

.ext-link {
  border-bottom: 1px dotted var(--rose);
}

@media (min-width: 640px) {
  .card-grid.g3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid.g2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-row {
    grid-template-columns: 3fr 7fr;
  }

  .media-row.img-right {
    grid-template-columns: 7fr 3fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .nav-list {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .sticky-bar-inner > div {
    width: calc(12.5% - 7px);
  }

  .sticky-bar-inner img {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 767px) {
  .media-row.reverse .media-img {
    order: 0;
  }
}
