:root {
  --cream: #fff8f5;
  --rose-50: #fff0f3;
  --rose-100: #ffd6e0;
  --rose-300: #ff8fab;
  --rose-500: #e91e8c;
  --rose-700: #b80e5e;
  --magenta: #c2185b;
  --champagne: #f4d4bc;
  --gold: #d4a574;
  --ink: #2a1520;
  --ink-soft: #5c3d4a;
  --ink-muted: #8a6b76;
  --card-bg: rgba(255, 255, 255, 0.88);
  --border-rose: rgba(233, 30, 140, 0.18);
  --glow: rgba(233, 30, 140, 0.22);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --nav-h: 60px;
  --max-w: 1080px;
  --font: "Noto Serif SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.9;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 143, 171, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(244, 212, 188, 0.35), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(233, 30, 140, 0.08), transparent),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 8c-2 6-8 10-8 16 0 6 6 10 8 16 2-6 8-10 8-16 0-6-6-10-8-16z' fill='%23ffb3c6' fill-opacity='0.12'/%3E%3C/svg%3E");
}

a { color: var(--rose-700); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--magenta); }

img { max-width: 100%; height: auto; display: block; }

.container { width: min(100% - 28px, var(--max-w)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 248, 245, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-rose);
  box-shadow: 0 2px 20px rgba(233, 30, 140, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 14px var(--glow);
  border: 2px solid var(--rose-100);
}

.nav-toggle {
  display: none;
  background: var(--rose-50);
  border: 1px solid var(--border-rose);
  color: var(--ink);
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.15rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 7px 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  background: linear-gradient(135deg, var(--rose-500), var(--magenta));
  color: #fff;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--rose-500), #ff4d94);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 6px 22px var(--glow);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.btn-dl:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 8px 28px var(--glow); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--rose-300);
  color: var(--rose-700) !important;
  box-shadow: none;
}

.btn-outline:hover { background: var(--rose-50); }

/* Sticky download bar */
.sticky-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 240, 243, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-rose);
  padding: 7px 10px;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.sticky-bar.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-bar #sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.sticky-bar #sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 6px);
  box-sizing: border-box;
}

.sticky-bar #sticky-ads img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(42, 21, 32, 0.12);
  border: 1px solid var(--rose-100);
}

.sticky-bar #sticky-ads .caption {
  font-size: 10px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

/* Top ads */
.ads-zone {
  padding: 12px 0 8px;
  background: linear-gradient(180deg, var(--rose-50), transparent);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 8px);
  box-sizing: border-box;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(42, 21, 32, 0.14);
  transition: transform 180ms ease;
  border: 2px solid #fff;
}

#ads img:hover { transform: translateY(-3px) scale(1.04); }

#ads .caption {
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* Hero */
.hero-panel {
  padding: 44px 0 32px;
  position: relative;
}

.hero-panel .ribbon {
  display: inline-block;
  padding: 5px 18px;
  background: linear-gradient(90deg, var(--rose-500), var(--magenta));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 4px 16px 16px 4px;
  margin-bottom: 20px;
  box-shadow: 3px 3px 0 var(--champagne);
}

.hero-panel h1 {
  font-family: var(--font);
  font-size: clamp(1.55rem, 5vw, 2.35rem);
  line-height: 1.38;
  margin-bottom: 18px;
  color: var(--ink);
}

.hero-panel h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--rose-500), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 720px;
  text-align: justify;
  margin-bottom: 26px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.block { padding: 38px 0; }

.block.alt { background: linear-gradient(180deg, var(--rose-50) 0%, transparent 100%); }

.block-head {
  margin-bottom: 26px;
  border-left: 4px solid var(--rose-500);
  padding-left: 16px;
}

.block-head h2 {
  font-family: var(--font);
  font-size: 1.45rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.block-head p {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.prose p {
  margin-bottom: 1.15em;
  text-align: justify;
  color: var(--ink-soft);
}

.prose h3 {
  font-family: var(--font);
  font-size: 1.12rem;
  margin: 1.6em 0 0.7em;
  color: var(--rose-700);
}

.prose ul, .prose ol {
  padding-left: 1.4em;
  margin-bottom: 1.1em;
  color: var(--ink-soft);
}

.prose li { margin-bottom: 0.5em; }

/* Cards */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.tile {
  background: var(--card-bg);
  border: 1px solid var(--border-rose);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(233, 30, 140, 0.06);
  position: relative;
  overflow: hidden;
}

.tile::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, var(--rose-100), transparent 70%);
  pointer-events: none;
}

.tile-mark {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--rose-300), var(--rose-500));
  color: #fff;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tile h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.tile p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

/* Media layouts */
.split {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 26px;
  align-items: start;
  margin: 24px 0;
}

.split.flip { grid-template-columns: 1.3fr 0.7fr; }

.shot-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--rose-100);
  box-shadow: 0 14px 40px rgba(233, 30, 140, 0.12);
  background: #fff;
}

.shot-wrap img { width: 100%; }

.shot-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* Accent box */
.accent-box {
  background: linear-gradient(135deg, rgba(255, 214, 224, 0.5), rgba(244, 212, 188, 0.3));
  border: 1px solid var(--border-rose);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 22px 0;
}

.accent-box strong { color: var(--rose-700); }

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.metric {
  text-align: center;
  padding: 16px 8px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-rose);
}

.metric-val {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--rose-500);
}

.metric-lbl {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* Breadcrumb */
.crumb {
  padding: 12px 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.crumb a { color: var(--ink-muted); }
.crumb a:hover { color: var(--rose-700); }
.crumb span { color: var(--rose-700); }

/* Sub pages */
.sub-hero {
  padding: 32px 0 18px;
  border-bottom: 1px solid var(--border-rose);
  margin-bottom: 24px;
}

.sub-hero h1 {
  font-family: var(--font);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.sub-hero p { color: var(--ink-muted); }

.legal h2 {
  font-family: var(--font);
  font-size: 1.22rem;
  margin: 2em 0 0.7em;
  color: var(--rose-700);
}

.legal h3 {
  font-size: 1.04rem;
  margin: 1.4em 0 0.5em;
  color: var(--ink);
}

.legal p, .legal li {
  margin-bottom: 0.85em;
  color: var(--ink-soft);
  text-align: justify;
}

.legal ul, .legal ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

/* Footer */
.site-foot {
  margin-top: 56px;
  padding: 38px 0 24px;
  border-top: 1px solid var(--border-rose);
  background: linear-gradient(180deg, var(--rose-50), var(--cream));
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.foot-brand img {
  width: 46px;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 2px solid var(--rose-100);
}

.foot-brand p {
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.foot-col h4 {
  font-size: 0.92rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 7px; }
.foot-col a { font-size: 0.86rem; color: var(--ink-muted); }

.foot-end {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
  padding-top: 18px;
  border-top: 1px solid var(--border-rose);
}

/* Error pages */
.err-page {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 20px;
}

.err-num {
  font-family: var(--font);
  font-size: 4.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose-500), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.err-page h1 { margin: 14px 0 8px; font-family: var(--font); }
.err-page p { color: var(--ink-muted); max-width: 460px; margin-bottom: 22px; }

/* Inline link highlight */
.link-em { font-weight: 600; border-bottom: 1px dashed var(--rose-300); }

/* Responsive */
@media (min-width: 769px) {
  #ads > div { width: calc(12.5% - 8px); }
  .sticky-bar #sticky-ads > div { width: calc(12.5% - 6px); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 248, 245, 0.98);
    border-bottom: 1px solid var(--border-rose);
    padding: 12px;
    box-shadow: 0 8px 24px rgba(42, 21, 32, 0.08);
  }

  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }

  .split, .split.flip { grid-template-columns: 1fr; }

  .foot-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }

  .header-cta { display: none; }
}

@media (max-width: 480px) {
  #ads > div { width: calc(25% - 8px); }
}
