/* 糖心Vlog tvlog.pics — 全局样式 */
:root {
  --bg: #0a0a0c;
  --bg-soft: #121216;
  --bg-card: #1a1a20;
  --text: #f2f2f5;
  --text-muted: #a0a0ae;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ff6b4a;
  --accent-2: #ff3d7f;
  --grad: linear-gradient(135deg, #ffd24a 0%, #ff8a3d 35%, #ff4d8d 70%, #9b4dff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 210, 74, 0.15), rgba(155, 77, 255, 0.15));
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff9a7a;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ffd24a;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 12, 0.86);
  border-bottom: 1px solid var(--line);
}

.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-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 6px 0;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav-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;
}

.nav-toggle-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 77, 141, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(255, 210, 74, 0.12), transparent 55%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  color: #ffb08a;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 24px;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad);
  color: #1a0a12;
}

.btn-primary:hover {
  color: #1a0a12;
  opacity: 0.92;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffd24a;
}

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.hero-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  border: 1px solid var(--line);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 28px;
  max-width: 48em;
}

.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(--text-muted);
}

.section-head .more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.95rem;
}

/* Category chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.chip:hover,
.chip.active {
  color: var(--text);
  border-color: rgba(255, 107, 74, 0.5);
  background: rgba(255, 107, 74, 0.12);
}

/* Media grids */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 74, 0.4);
}

.media-card .thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #000;
}

.media-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.media-card:hover .thumb img {
  transform: scale(1.04);
}

.media-card .body {
  padding: 12px 14px 16px;
}

.media-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 600;
}

.media-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background-image: var(--grad-soft);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.shot-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  max-height: 520px;
}

.shot-card .cap {
  padding: 12px 14px 16px;
}

.shot-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.shot-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Article / SEO text */
.prose {
  max-width: 52em;
}

.prose h2 {
  margin: 2em 0 0.7em;
  font-size: 1.45rem;
  scroll-margin-top: 80px;
}

.prose h3 {
  margin: 1.5em 0 0.55em;
  font-size: 1.15rem;
}

.prose p {
  margin: 0 0 1em;
  color: #d6d6de;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: #d6d6de;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: #fff;
  font-weight: 650;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 28px;
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text-muted);
}

.toc a {
  color: #ffb08a;
}

/* Two column layout for long pages */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.side-card {
  position: sticky;
  top: 88px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.side-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.side-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-card li {
  margin-bottom: 8px;
}

.side-card a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.side-card a:hover {
  color: #ffd24a;
}

/* Page hero for secondary pages */
.page-hero {
  padding: 42px 0 24px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 80% at 90% 0%, rgba(155, 77, 255, 0.16), transparent 55%),
    var(--bg);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 42em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: #ffb08a;
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-wrap .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.error-wrap h1 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.error-wrap p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #070709;
  padding: 40px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-footer h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.site-footer p,
.site-footer li {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: #ffd24a;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* FAQ */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

/* Animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.hero-visual {
  animation: rise 0.7s ease both;
}

.hero-visual {
  animation-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(240px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: rgba(18, 18, 22, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 120;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav a:hover,
  .nav a.active {
    background: rgba(255, 255, 255, 0.06);
  }

  .hero {
    padding: 36px 0 28px;
  }

  .hero-visual img {
    aspect-ratio: 3 / 4;
    max-height: 420px;
  }

  .section {
    padding: 40px 0;
  }

  .feature-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .media-card h3 {
    font-size: 0.88rem;
  }

  .prose {
    font-size: 0.98rem;
  }
}
