@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Zhi+Mang+Xing&display=swap');

:root {
  --cream: #fff8f9;
  --blush: #ffe4ec;
  --rose: #e91e63;
  --rose-deep: #ad1457;
  --wine: #880e4f;
  --plum: #6a1b9a;
  --coral: #ff6b8a;
  --gold: #f9a825;
  --ink: #2d1b2e;
  --muted: #7d5a6a;
  --card: #ffffff;
  --line: rgba(233, 30, 99, 0.15);
  --shadow: 0 8px 32px rgba(173, 20, 87, 0.1);
  --nav-h: 58px;
  --sticky-h: 88px;
  --radius: 18px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.9;
  font-size: 15px;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(255, 107, 138, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 5%, rgba(106, 27, 154, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(249, 168, 37, 0.08), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: 'Zhi Mang Xing', 'Noto Serif SC', serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--wine);
}

a { color: var(--rose-deep); text-decoration: none; transition: color 0.2s; border-bottom: 1px solid transparent; }
a:hover { color: var(--plum); border-bottom-color: var(--coral); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1400;
  background: rgba(255, 248, 249, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 2px 20px rgba(173, 20, 87, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--wine);
  font-family: 'Zhi Mang Xing', serif;
  font-size: 1.35rem;
  flex-shrink: 0;
  border-bottom: none;
}

.brand:hover { color: var(--rose); border-bottom: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 6px 12px;
  font-size: 0.88rem;
  color: var(--muted);
  border-radius: 20px;
  border-bottom: none;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--blush);
  color: var(--wine);
  border-bottom: none;
}

.header-cta .btn-dl {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--rose), var(--wine));
  color: #fff;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: none;
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.35);
  white-space: nowrap;
}

.header-cta .btn-dl:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.45);
  border-bottom: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.2rem;
  color: var(--wine);
  cursor: pointer;
}

/* Ads */
.ads-top-wrap {
  background: linear-gradient(180deg, var(--blush), transparent);
  padding: 14px 0 8px;
  border-bottom: 1px dashed var(--line);
}

#ads, #ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  background: transparent;
}

#ads > div, #ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 8px);
  min-width: 72px;
  box-sizing: border-box;
}

#ads img, #ads-sticky img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
  border: 2px solid #fff;
}

#ads a, #ads-sticky a { border-bottom: none; }

#ads img:hover, #ads-sticky img:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(173, 20, 87, 0.2);
}

#ads .caption, #ads-sticky .caption,
#ads figcaption, #ads-sticky figcaption {
  height: 16px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.sticky-ads-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 1350;
  background: rgba(255, 248, 249, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.sticky-ads-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  #ads > div, #ads-sticky > div {
    width: calc(25% - 6px);
    min-width: 68px;
  }
}

/* Hero */
.hero {
  padding: 48px 0 40px;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '✿';
  position: absolute;
  top: 20px;
  right: 8%;
  font-size: 2rem;
  color: var(--coral);
  opacity: 0.3;
}

.hero-tag {
  display: inline-block;
  padding: 4px 16px;
  background: var(--blush);
  color: var(--rose-deep);
  border-radius: 20px;
  font-size: 0.82rem;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--wine), var(--plum));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-dl {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--rose), var(--wine));
  color: #fff;
  border-radius: 28px;
  font-weight: 600;
  border-bottom: none;
  box-shadow: 0 6px 24px rgba(233, 30, 99, 0.3);
}

.btn-dl:hover { color: #fff; border-bottom: none; transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--rose);
  color: var(--rose-deep);
  border-radius: 28px;
  font-weight: 500;
  border-bottom: 2px solid var(--rose);
}

.btn-ghost:hover { background: var(--blush); border-bottom-color: var(--rose); }

/* Sections */
.section {
  padding: 44px 0;
}

.section:nth-child(even) {
  background: linear-gradient(180deg, transparent, rgba(255, 228, 236, 0.35), transparent);
}

.section-head {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.section-head h2 { font-size: clamp(1.3rem, 4vw, 1.75rem); margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 0.95rem; }

.section p { margin-bottom: 16px; text-align: justify; }

/* Cards */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(173, 20, 87, 0.14);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--rose-deep);
}

.card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0; text-align: left; }

/* Media blocks */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 28px 0;
}

.media-block.reverse { direction: rtl; }
.media-block.reverse > * { direction: ltr; }

.media-block img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 3px solid #fff;
}

.media-caption {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* Feature list */
.feature-list {
  list-style: none;
  margin: 20px 0;
}

.feature-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}

.feature-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-size: 0.7rem;
  top: 14px;
}

/* Tip box */
.tip-box {
  background: linear-gradient(135deg, var(--blush), #fff);
  border-left: 4px solid var(--rose);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 24px 0;
}

.tip-box p { margin-bottom: 0; }

/* Quote */
.quote-block {
  text-align: center;
  padding: 32px 24px;
  margin: 28px 0;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-style: italic;
  color: var(--wine);
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--rose-deep); border-bottom: none; }
.breadcrumb span { margin: 0 6px; color: var(--coral); }

/* Sub page */
.page-hero {
  padding: 36px 0 28px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 32px;
}

.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2rem); }

.content-block {
  margin-bottom: 32px;
}

.content-block h2 {
  font-size: 1.25rem;
  margin: 28px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--coral);
}

.content-block h3 {
  font-size: 1.05rem;
  margin: 20px 0 10px;
  color: var(--rose-deep);
}

.content-block ul, .content-block ol {
  margin: 12px 0 16px 24px;
}

.content-block li { margin-bottom: 8px; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--wine), #4a0e2e);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 24px;
  margin-top: 48px;
}

.site-footer a { color: var(--coral); border-bottom: none; }
.site-footer a:hover { color: #fff; border-bottom: none; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 6px; font-size: 0.88rem; }

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Error pages */
.error-page {
  text-align: center;
  padding: 80px 20px;
  min-height: 60vh;
}

.error-page h1 {
  font-size: 5rem;
  color: var(--coral);
  margin-bottom: 12px;
}

.error-page p { color: var(--muted); margin-bottom: 24px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 248, 249, 0.98);
    padding: 12px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1390;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .header-cta { display: none; }

  .media-block {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .media-block.reverse { direction: ltr; }

  .hero { padding: 32px 0 28px; }
  .section { padding: 32px 0; }
}
