/* 糖心Vlog 官方导航 - txx.pics */
:root {
  --bg: #0c0c0e;
  --bg-elevated: #16161a;
  --bg-card: #1c1c22;
  --text: #f2f2f4;
  --text-muted: #a0a0ab;
  --accent: #e8366a;
  --accent-soft: #ff6b9d;
  --accent-dark: #b01e4a;
  --border: #2a2a32;
  --link: #ff7aa8;
  --max: 1100px;
  --radius: 10px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 54, 106, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(255, 107, 157, 0.08), transparent),
    linear-gradient(180deg, #0c0c0e 0%, #121218 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-soft);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent-soft);
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo span {
  font-family: var(--display);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--bg-card);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

/* Hero */
.hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.hero-brand em {
  font-style: normal;
  color: var(--accent-soft);
}

.hero h1 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232, 54, 106, 0.35);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 6px 28px rgba(232, 54, 106, 0.45);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--accent-soft);
  border-color: var(--accent);
}

/* Layout */
.main {
  padding: 40px 0 60px;
}

.section {
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.section-lead {
  color: var(--text-muted);
  margin: 12px 0 24px;
  max-width: 800px;
}

.prose {
  color: var(--text-muted);
}

.prose p {
  margin-bottom: 1.1em;
}

.prose h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--text);
  margin: 2em 0 0.75em;
  font-weight: 400;
}

.prose h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin: 1.6em 0 0.6em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em 1.4em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.feature-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}

.feature-item:hover {
  border-color: var(--accent);
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.feature-item a {
  font-weight: 600;
}

/* Category chips */
.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}

.cat-list a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.cat-list a:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
  text-decoration: none;
}

/* Screenshot galleries */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.shot-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.shot-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.shot-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.shot-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.shot-item img {
  width: 100%;
  border-radius: 0;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #000;
}

.shot-item figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* TOC */
.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 36px;
}

.toc h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text);
}

.toc ol {
  margin-left: 1.2em;
  color: var(--text-muted);
}

.toc li {
  margin-bottom: 6px;
}

/* FAQ */
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Page header (inner pages) */
.page-header {
  padding: 36px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-header h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  margin-bottom: 10px;
}

.page-header .breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.page-header .breadcrumb a {
  color: var(--text-muted);
}

.page-header .breadcrumb a:hover {
  color: var(--accent-soft);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-page .code {
  font-family: var(--display);
  font-size: clamp(4rem, 15vw, 7rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 420px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 40px 0 28px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.footer-brand span {
  color: var(--accent-soft);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

/* Related links box */
.related {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 40px;
}

.related h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.related ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.related a {
  font-size: 0.95rem;
}

/* Mobile */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(12, 12, 14, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    gap: 4px;
    align-items: stretch;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero {
    padding: 32px 0 28px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid,
  .shot-grid.cols-3,
  .shot-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .shot-item figcaption {
    font-size: 0.78rem;
    padding: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .main {
    padding: 28px 0 48px;
  }
}

@media (max-width: 400px) {
  .shot-grid,
  .shot-grid.cols-3,
  .shot-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
