/* 糖心Vlog APP资源库 - tvlog.rest */
:root {
  --bg: #0b0b0f;
  --bg-soft: #14141c;
  --bg-card: #1a1a24;
  --text: #f2f2f5;
  --text-muted: #a8a8b8;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ff4d6d;
  --accent-2: #ff8a3d;
  --accent-3: #c44dff;
  --grad: linear-gradient(135deg, #ff8a3d 0%, #ff4d6d 50%, #c44dff 100%);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --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(--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: #ff8fa3;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffc2cc;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--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(--text);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 77, 109, 0.12);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 138, 61, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(196, 77, 255, 0.16), transparent 45%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 77, 109, 0.12);
  color: #ffb3c1;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  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;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  display: block;
  color: var(--text);
  font-size: 1.15rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-float {
  position: absolute;
  right: -8px;
  bottom: -16px;
  width: 42%;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02), transparent);
}

.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);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Feature / category grids */
.feature-grid,
.shot-grid,
.cat-grid,
.vlog-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(255, 77, 109, 0.35);
  transform: translateY(-2px);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.cat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  min-height: 180px;
}

.cat-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top center;
}

.cat-card .label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-weight: 600;
}

.shot-grid {
  grid-template-columns: repeat(3, 1fr);
}

.shot-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.shot-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top center;
}

.shot-card .body {
  padding: 14px 16px 18px;
}

.shot-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.shot-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.vlog-grid {
  grid-template-columns: repeat(4, 1fr);
}

.vlog-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.vlog-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center top;
}

/* Content article */
.prose {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 30px;
}

.prose h2,
.prose h3 {
  scroll-margin-top: 90px;
}

.prose h2 {
  margin: 1.6em 0 0.7em;
  font-size: 1.35rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.3em 0 0.55em;
  font-size: 1.1rem;
}

.prose p {
  margin: 0 0 1em;
  color: #d7d7e0;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
  color: #d7d7e0;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose .toc {
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.2);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.prose .toc strong {
  display: block;
  margin-bottom: 8px;
}

.prose .toc a {
  display: inline-block;
  margin: 4px 10px 4px 0;
}

.highlight-box {
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  margin: 0 0 1.2em;
  border-radius: 0 10px 10px 0;
}

/* Two column */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* 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;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: #ffb3c1;
  margin-bottom: 8px;
}

.faq p {
  margin: 0;
  color: var(--text-muted);
}

/* Page hero for subpages */
.page-hero {
  padding: 42px 0 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 77, 109, 0.15), 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 {
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: #ffb3c1;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page .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: 10px;
}

.error-page h1 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #08080c;
  padding: 40px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand p,
.footer-col p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 8px 0 0;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #ffb3c1;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--text-muted); }

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cat-grid,
  .vlog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-float {
    width: 38%;
    right: 8px;
    bottom: -10px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    background: #15151e;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .shot-grid,
  .cat-grid,
  .vlog-grid {
    grid-template-columns: 1fr;
  }

  .shot-card img {
    height: 260px;
  }

  .vlog-card img {
    height: 240px;
  }

  .prose {
    padding: 20px 16px;
  }

  .hero {
    padding-top: 36px;
  }

  .section {
    padding: 40px 0;
  }

  .hero-meta {
    gap: 12px;
  }

  .hero-meta strong {
    font-size: 1rem;
  }
}
