/* 糖心Vlog 官网 - tvlog.quest */
:root {
  --c-bg: #0b0b0f;
  --c-bg-soft: #14141c;
  --c-bg-card: #1a1a24;
  --c-text: #f4f2f6;
  --c-muted: #a8a2b0;
  --c-line: rgba(255, 255, 255, 0.08);
  --c-pink: #e83d8a;
  --c-magenta: #c41d7a;
  --c-orange: #ff7a3d;
  --c-gold: #ffb020;
  --grad-brand: linear-gradient(135deg, #ffb020 0%, #ff7a3d 35%, #e83d8a 70%, #9b1fb8 100%);
  --grad-btn: linear-gradient(90deg, #ff7a3d 0%, #e83d8a 100%);
  --grad-soft: linear-gradient(160deg, rgba(255, 122, 61, 0.18), rgba(232, 61, 138, 0.12) 45%, rgba(15, 15, 22, 0.95));
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --font: "Segoe UI", "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);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff9ec8;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ffd0e4;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-pink);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 15, 0.86);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text);
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--c-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--c-muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(232, 61, 138, 0.16);
}

.nav-cta {
  background: var(--grad-btn) !important;
  color: #fff !important;
  font-weight: 600;
  margin-left: 4px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--c-line);
  background: var(--c-bg-soft);
  color: #fff;
  border-radius: 10px;
  padding: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  background: var(--grad-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 50%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 61, 138, 0.28), transparent 68%);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--c-line);
  color: var(--c-gold);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.25;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 22px;
  color: var(--c-muted);
  font-size: 1.05rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 61, 138, 0.28);
}

.btn-primary:hover {
  color: #fff;
  opacity: 0.94;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--c-line);
  color: var(--c-text);
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(232, 61, 138, 0.45);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--c-muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: var(--c-text);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-line);
  object-fit: cover;
  max-height: 520px;
}

.hero-float {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(12, 12, 18, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(20, 20, 28, 0.7), rgba(11, 11, 15, 0));
}

.section-head {
  margin-bottom: 28px;
  max-width: 46em;
}

.section-head .eyebrow {
  display: inline-block;
  color: var(--c-orange);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--c-muted);
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 61, 138, 0.35);
}

.card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #111;
}

.card-body {
  padding: 14px 16px 16px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.card-body p {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.92rem;
}

.feature {
  padding: 20px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.94rem;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: var(--grad-btn);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Content prose */
.prose {
  max-width: 780px;
}

.prose h2,
.prose h3 {
  scroll-margin-top: 90px;
}

.prose h2 {
  margin: 1.8em 0 0.7em;
  font-size: 1.45rem;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--c-line);
}

.prose h3 {
  margin: 1.4em 0 0.55em;
  font-size: 1.15rem;
  color: #ffe3f0;
}

.prose p {
  margin: 0 0 1em;
  color: #ddd8e4;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
  color: #ddd8e4;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: #fff;
}

.toc {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 28px;
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  border: 0;
  padding: 0;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
  color: var(--c-muted);
}

.toc a {
  color: #ffb3d4;
}

/* Showcase row */
.showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.showcase.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.showcase.reverse .showcase-media {
  order: 2;
}

.showcase-media img {
  border-radius: 16px;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow);
  max-height: 560px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.showcase-copy h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.showcase-copy p {
  margin: 0 0 12px;
  color: var(--c-muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 0.82rem;
}

/* CTA band */
.cta-band {
  margin: 20px 0 40px;
  padding: 28px;
  border-radius: 18px;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.cta-band p {
  margin: 0;
  opacity: 0.92;
}

.cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Page header for subpages */
.page-hero {
  padding: 42px 0 20px;
  background: var(--grad-soft);
  border-bottom: 1px solid var(--c-line);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--c-muted);
  max-width: 42em;
}

.breadcrumb {
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--c-muted);
}

.breadcrumb a {
  color: var(--c-muted);
}

.page-content {
  padding: 36px 0 60px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.error-page h1 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.error-page p {
  margin: 0 0 22px;
  color: var(--c-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--c-line);
  background: #09090d;
  padding: 40px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.footer-brand p {
  margin: 6px 0 0;
  color: var(--c-muted);
  font-size: 0.9rem;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: var(--c-muted);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--c-line);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  color: var(--c-muted);
  font-size: 0.85rem;
}

.related-links {
  margin-top: 36px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
}

.related-links h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.related-links ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--c-muted);
}

.related-links li {
  margin-bottom: 6px;
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .hero-grid,
  .card,
  .feature,
  .showcase {
    animation: rise 0.7s ease both;
  }

  .card:nth-child(2),
  .feature:nth-child(2) {
    animation-delay: 0.08s;
  }

  .card:nth-child(3),
  .feature:nth-child(3) {
    animation-delay: 0.16s;
  }

  .card:nth-child(4) {
    animation-delay: 0.24s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(18, 18, 26, 0.98);
    border: 1px solid var(--c-line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero-grid,
  .showcase,
  .showcase.reverse,
  .grid-3,
  .grid-4,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .showcase.reverse .showcase-media {
    order: 0;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .section {
    padding: 40px 0;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .card img {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 60px;
  }

  .brand-text span {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
