/* 糖心Vlog tx2.baby */
:root {
  --brand: #e91e8c;
  --brand-deep: #b0106a;
  --brand-soft: #fff0f7;
  --accent: #ff6b35;
  --accent-warm: #ffb347;
  --ink: #1a1220;
  --ink-soft: #4a3f52;
  --muted: #7a6f85;
  --line: #f0e6ee;
  --paper: #fffbfc;
  --card-bg: #ffffff;
  --shadow: 0 12px 40px rgba(185, 20, 100, 0.08);
  --radius: 16px;
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  padding-left: 1.25rem;
}

/* Atmosphere background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(233, 30, 140, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(255, 107, 53, 0.1), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255, 179, 71, 0.08), transparent 40%),
    linear-gradient(180deg, #fff8fb 0%, #fffbfc 40%, #fff5f0 100%);
  pointer-events: none;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 251, 252, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo span {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: linear-gradient(120deg, var(--brand) 0%, var(--accent) 55%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeUp 0.7s ease both;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 1.02rem;
  animation: fadeUp 0.7s 0.2s ease both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 8px 24px rgba(233, 30, 140, 0.28);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(233, 30, 140, 0.36);
}

.btn-ghost {
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid var(--line);
}

.hero-phone {
  width: min(280px, 70vw);
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 8px rgba(255, 255, 255, 0.8);
  animation: floatIn 1s 0.35s ease both;
}

.hero-phone img {
  width: 100%;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.section-head p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 240, 247, 0.55), transparent);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, var(--brand-soft), #fff3e8);
  color: var(--brand);
}

.feature-item h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Showcase / screenshots */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.showcase.reverse .showcase-text {
  order: 2;
}

.showcase.reverse .showcase-media {
  order: 1;
}

.showcase-text h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.showcase-text p {
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.showcase-text ul {
  color: var(--muted);
  margin-bottom: 1rem;
}

.showcase-text li {
  margin-bottom: 0.35rem;
}

.phone-frame {
  max-width: 260px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s ease;
}

.shot-card:hover {
  transform: translateY(-3px);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.shot-card figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Category chips */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--line);
}

.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.cat-item:hover img {
  transform: scale(1.05);
}

.cat-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 0.75rem 0.75rem;
  background: linear-gradient(transparent, rgba(26, 18, 32, 0.78));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

/* Article / long SEO content */
.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.article h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 1.75rem 0 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.article h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article h3 {
  font-size: 1.12rem;
  margin: 1.25rem 0 0.55rem;
  color: var(--brand-deep);
}

.article p {
  margin-bottom: 0.9rem;
  color: var(--ink-soft);
  text-align: justify;
}

.article ul,
.article ol {
  margin: 0.5rem 0 1rem;
  color: var(--ink-soft);
}

.article li {
  margin-bottom: 0.4rem;
}

.toc {
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.toc ol {
  margin: 0;
  color: var(--ink-soft);
}

.toc a {
  color: var(--brand-deep);
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.faq details p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Inner pages */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  color: var(--muted);
}

.legal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin-bottom: 3rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.65rem;
  color: var(--brand-deep);
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.legal ul {
  margin-bottom: 1rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 7rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 420px;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #2a1524, #1a0f18);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.75rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-grid p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.45rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--accent-warm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.15rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.age-note {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(255, 179, 71, 0.4);
  border-radius: 6px;
  color: var(--accent-warm);
  font-size: 0.78rem;
}

/* Related links box */
.related {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--brand-soft);
  border-radius: 12px;
}

.related h3 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related-links a {
  padding: 0.35rem 0.75rem;
  background: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--line);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .showcase,
  .showcase.reverse {
    grid-template-columns: 1fr;
  }

  .showcase.reverse .showcase-text,
  .showcase.reverse .showcase-media {
    order: unset;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 251, 252, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 2.25rem 0 1.75rem;
  }

  .article,
  .legal {
    padding: 1.35rem 1.1rem;
  }

  .section {
    padding: 2.25rem 0;
  }
}

@media (max-width: 480px) {
  .shot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .cat-grid {
    gap: 0.65rem;
  }
}
