/* 糖心Vlog 视频导航中心 - vlogtx.baby */
:root {
  --bg: #fff8fa;
  --bg-alt: #fff0f4;
  --surface: #ffffff;
  --text: #1f1520;
  --text-soft: #5c4a55;
  --accent: #d4145a;
  --accent-dark: #a01045;
  --accent-soft: #ffe0eb;
  --line: #f0d4de;
  --shadow: 0 8px 28px rgba(212, 20, 90, 0.08);
  --radius: 14px;
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #ffd6e4 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 0%, #ffe8f0 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #fff5f8 40%, #fffafb 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 248, 250, 0.88);
  border-bottom: 1px solid var(--line);
}

.ads-sticky {
  position: sticky;
  top: 64px;
  z-index: 90;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}

.nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 48px 0 36px;
  text-align: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--accent);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  animation: fadeUp 0.7s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--text);
  animation: fadeUp 0.7s ease 0.08s both;
}

.hero-desc {
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--text-soft);
  font-size: 1.05rem;
  animation: fadeUp 0.7s ease 0.16s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: fadeUp 0.7s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f0437a);
  color: #fff;
  box-shadow: 0 8px 20px rgba(212, 20, 90, 0.28);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 26px rgba(212, 20, 90, 0.35);
}

.btn-ghost {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

/* Sections */
.section {
  padding: 42px 0;
}

.section-alt {
  background: rgba(255, 240, 244, 0.55);
  border-block: 1px solid var(--line);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 8px;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--text-soft);
  max-width: 680px;
  margin: 0 auto 28px;
}

/* Grid cards for screenshots */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.shot-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shot-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(212, 20, 90, 0.14);
}

.shot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #fce7ef;
}

.shot-item figcaption {
  padding: 14px 16px 16px;
}

.shot-item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.shot-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.shot-grid-wide .shot-item img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Feature list */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.feature-block h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--accent-dark);
}

.feature-block p {
  margin: 0;
  color: var(--text-soft);
}

/* SEO long content */
.seo-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.seo-content h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft);
  color: var(--text);
}

.seo-content h2:first-child {
  margin-top: 0;
}

.seo-content h3 {
  font-size: 1.1rem;
  margin: 20px 0 8px;
  color: var(--accent-dark);
}

.seo-content p {
  margin: 0 0 14px;
  color: var(--text-soft);
  text-align: justify;
}

.seo-content ul,
.seo-content ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
  color: var(--text-soft);
}

.seo-content li {
  margin-bottom: 8px;
}

.seo-content a {
  font-weight: 600;
  border-bottom: 1px dashed rgba(212, 20, 90, 0.35);
}

.toc {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc a {
  color: var(--text-soft);
  border: none;
  font-weight: 500;
}

/* Page hero for subpages */
.page-hero {
  padding: 36px 0 20px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 10px;
}

.page-hero p {
  margin: 0;
  color: var(--text-soft);
}

.legal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 24px 0 10px;
  color: var(--accent-dark);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-soft);
}

.legal-content ul {
  padding-left: 1.3em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}

.error-box h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0;
  color: var(--accent);
  line-height: 1;
}

.error-box h2 {
  margin: 12px 0;
  font-size: 1.4rem;
}

.error-box p {
  color: var(--text-soft);
  max-width: 420px;
  margin: 0 auto 22px;
}

/* Footer */
.site-footer {
  background: #2a1520;
  color: #f5dce6;
  padding: 36px 0 20px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.site-footer h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 12px;
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: #e8c4d2;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #c9a0b0;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeUp 0.6s ease both;
}

/* Mobile */
@media (max-width: 900px) {
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 248, 250, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }

  .header-inner {
    position: relative;
  }

  .shot-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .shot-item img {
    aspect-ratio: 9 / 14;
    max-height: 420px;
    margin-inline: auto;
  }

  .shot-grid-wide .shot-item img {
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .seo-content,
  .legal-content {
    padding: 20px 16px;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .section {
    padding: 32px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .brand span {
    font-size: 1.1rem;
  }

  .container {
    width: min(100% - 24px, var(--max));
  }
}
