/* 糖心Vlog传媒 - tangx.lol */
:root {
  --bg: #0a0a0c;
  --bg-2: #121218;
  --bg-3: #1a1a22;
  --surface: #16161e;
  --text: #f2f2f5;
  --text-muted: #9a9aa8;
  --accent: #e11d48;
  --accent-soft: #fb7185;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --max: 1120px;
  --font-display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(225, 29, 72, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(251, 113, 133, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0a0c 0%, #0e0e12 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.brand span,
.brand em {
  color: var(--accent-soft);
  font-style: normal;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle-icon {
  position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-icon::before {
  top: -6px;
}

.menu-toggle-icon::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.hero-brand em {
  font-style: normal;
  color: var(--accent-soft);
}

.hero h1 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.hero-lead {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #be123c;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: fadeUp 0.8s ease both;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.section-head p {
  color: var(--text-muted);
  max-width: 42em;
}

.section-body {
  color: var(--text-muted);
}

.section-body p {
  margin-bottom: 1.1rem;
}

.section-body h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  font-family: var(--font-display);
}

.section-body h4 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 1.35rem 0 0.6rem;
}

.section-body ul {
  margin: 0.75rem 0 1.25rem 1.15rem;
  list-style: disc;
  color: var(--text-muted);
}

.section-body li {
  margin-bottom: 0.4rem;
}

.section-body strong {
  color: var(--text);
  font-weight: 600;
}

/* Category chips */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.75rem;
}

.cat-nav a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.cat-nav a:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(225, 29, 72, 0.15);
}

/* Media grids */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.media-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.media-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.media-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  animation: fadeUp 0.6s ease both;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 72, 0.4);
}

.media-card img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top;
  background: var(--bg-2);
}

.media-card figcaption {
  padding: 0.75rem 0.85rem 0.95rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.media-card figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
}

/* Feature row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 1.5rem 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-row img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
  object-position: top;
  max-height: 480px;
}

.feature-text h3 {
  margin-top: 0;
}

/* TOC */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0 2rem;
}

.toc h2 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}

.toc ol {
  margin-left: 1.2rem;
  color: var(--text-muted);
}

.toc li {
  margin-bottom: 0.35rem;
}

.toc a {
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--accent-soft);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 40em;
}

.prose {
  padding: 2.5rem 0 3.5rem;
  color: var(--text-muted);
  max-width: 760px;
}

.prose h2 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.6rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul {
  list-style: disc;
  margin: 0.5rem 0 1.25rem 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.error-page h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.footer-brand span {
  color: var(--accent-soft);
  font-style: normal;
}

.footer-col h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-soft);
}

/* Related links box */
.related {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related h2 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.related ul {
  list-style: none;
  margin: 0;
}

.related li {
  margin-bottom: 0.4rem;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .media-grid,
  .media-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual img {
    max-height: 420px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 12, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .media-grid,
  .media-grid.cols-3,
  .media-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .hero {
    padding: 2rem 0 1.75rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .media-card figcaption {
    font-size: 0.8rem;
    padding: 0.55rem 0.6rem 0.7rem;
  }
}
