:root {
  --brand-pink: #e63e8c;
  --brand-orange: #ff6b35;
  --brand-gold: #ffb020;
  --brand-deep: #1a1224;
  --brand-muted: #5c5368;
  --brand-light: #fff7fb;
  --brand-line: #f0e4ec;
  --brand-card: #ffffff;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(230, 62, 140, 0.12);
  --font-display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brand-deep);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 176, 32, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(230, 62, 140, 0.16), transparent 55%),
    linear-gradient(180deg, #fff9fc 0%, #ffffff 40%, #faf5f8 100%);
  line-height: 1.8;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 广告图标保持正方形，不受全局 img 规则拉伸 */
#tx-ads-wrap #ads img,
#ads img {
  max-width: 65px;
  width: 65px;
  height: 65px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

a {
  color: var(--brand-pink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 249, 252, 0.88);
  border-bottom: 1px solid rgba(240, 228, 236, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--brand-line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-deep);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}

.nav a {
  color: var(--brand-deep);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-pink);
  border-bottom-color: var(--brand-pink);
  text-decoration: none;
}

.hero {
  padding: 48px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  color: var(--brand-orange);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.35;
  font-weight: 800;
}

.hero-lead {
  margin: 0 0 22px;
  color: var(--brand-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-pink));
  box-shadow: 0 10px 24px rgba(230, 62, 140, 0.28);
}

.btn-secondary {
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid var(--brand-line);
}

.hero-meta {
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.section {
  padding: 42px 0;
}

.section-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.4;
}

.section-desc {
  margin: 0 0 24px;
  color: var(--brand-muted);
  max-width: 760px;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--brand-card);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 18, 36, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #f7eef3;
}

.card-body {
  padding: 14px 16px 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card-body p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 16px;
}

.feature-item img {
  width: 120px;
  border-radius: 12px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-item p {
  margin: 0;
  color: var(--brand-muted);
}

.prose {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  padding: 28px 26px;
}

.prose h2 {
  margin: 28px 0 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--brand-line);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 22px 0 10px;
  font-size: 1.1rem;
}

.prose p {
  margin: 0 0 14px;
  color: #2c2436;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
  color: #2c2436;
}

.prose li {
  margin-bottom: 8px;
}

.toc {
  background: linear-gradient(135deg, #fff7fb, #fff);
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  border: none;
  padding: 0;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc a {
  color: var(--brand-deep);
}

.toc a:hover {
  color: var(--brand-pink);
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.anchor-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--brand-line);
  color: var(--brand-deep);
  font-size: 0.9rem;
  text-decoration: none;
}

.anchor-nav a:hover {
  border-color: var(--brand-pink);
  color: var(--brand-pink);
}

.media-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  align-items: center;
  margin: 22px 0;
}

.media-row img {
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.media-row.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.media-row.reverse img {
  order: 2;
}

.internal-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.internal-links a {
  display: block;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  color: var(--brand-deep);
  text-decoration: none;
}

.internal-links a:hover {
  border-color: var(--brand-pink);
  color: var(--brand-pink);
}

.breadcrumb {
  padding: 18px 0 0;
  color: var(--brand-muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--brand-muted);
}

.page-hero {
  padding: 20px 0 8px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--brand-muted);
  max-width: 780px;
}

.site-footer {
  margin-top: 48px;
  padding: 36px 0 28px;
  background: linear-gradient(180deg, rgba(255, 249, 252, 0.7) 0%, #fff7fb 100%);
  border-top: 1px solid var(--brand-line);
  color: var(--brand-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--brand-deep);
  font-size: 1rem;
}

.site-footer a {
  color: var(--brand-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand-pink);
  text-decoration: underline;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--brand-deep);
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.footer-copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--brand-line);
  font-size: 0.88rem;
  color: var(--brand-muted);
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.error-page h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-family: var(--font-display);
}

.error-page p {
  margin: 0 0 22px;
  color: var(--brand-muted);
}

.age-tip {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.2);
  color: #8a4520;
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .media-row,
  .media-row.reverse,
  .footer-grid,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .media-row.reverse img {
    order: 0;
  }

  .feature-item {
    grid-template-columns: 96px 1fr;
  }

  .feature-item img {
    width: 96px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 102;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: min(220px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(26, 18, 36, 0.14);
    z-index: 101;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
    border-bottom: none;
    border-radius: 10px;
  }

  .nav a:hover,
  .nav a.active {
    background: rgba(230, 62, 140, 0.08);
    border-bottom-color: transparent;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .media-row,
  .media-row.reverse,
  .footer-grid,
  .internal-links,
  .feature-item {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-visual {
    order: -1;
  }

  .prose {
    padding: 20px 16px;
  }

  .section {
    padding: 32px 0;
  }

  .card img,
  .feature-item img {
    aspect-ratio: 3 / 4;
  }
}
