/* 糖心Vlog 官网导航 - tv-log.pics */
:root {
  --bg: #0b0b0f;
  --bg-2: #14141c;
  --bg-3: #1c1c28;
  --text: #f2f2f5;
  --text-muted: #a8a8b8;
  --accent: #e63946;
  --accent-2: #ff6b35;
  --accent-soft: rgba(230, 57, 70, 0.15);
  --line: rgba(255, 255, 255, 0.08);
  --radius: 6px;
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif 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:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(230, 57, 70, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(255, 107, 53, 0.12), transparent 50%),
    linear-gradient(180deg, #0d0d12 0%, var(--bg) 40%, #0a0a0e 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ff8f66;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin: 0.35rem 0;
}

/* 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 {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand-text {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand-text span {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.55rem;
  border-radius: var(--radius);
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 10% -1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.hero-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(230, 57, 70, 0.35);
  animation: floatIn 0.8s ease both;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero .lead {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  animation: fadeUp 0.7s ease 0.2s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: fadeUp 0.7s ease 0.3s both;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--bg-2);
}

.btn-ghost:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

/* Sections */
.section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--text-muted);
  max-width: 720px;
}

.section-body {
  color: var(--text-muted);
}

.section-body p {
  margin-bottom: 1rem;
}

.section-body h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  font-weight: 600;
}

.section-body h4 {
  color: var(--text);
  font-size: 1.02rem;
  margin: 1.35rem 0 0.55rem;
}

/* Media grids */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.shot-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.shot-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.shot:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 57, 70, 0.45);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.shot.wide img {
  aspect-ratio: 16 / 10;
  object-position: center top;
}

.shot figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.shot figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

/* Feature list */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  margin: 1.25rem 0;
  list-style: none;
  padding: 0;
}

.feature-list li {
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1rem;
  margin: 0;
}

.feature-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

/* TOC */
.toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
}

.toc h2 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  font-family: var(--font);
  font-weight: 600;
}

.toc ol {
  columns: 2;
  gap: 1.5rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.toc a {
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--accent-2);
}

/* Page article */
.page-hero {
  padding: 2.5rem 0 1.25rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--text-muted);
}

.article {
  padding: 0 0 3rem;
  color: var(--text-muted);
}

.article p {
  margin-bottom: 1rem;
}

.article h2 {
  color: var(--text);
  font-size: 1.3rem;
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.article h3 {
  color: var(--text);
  font-size: 1.08rem;
  margin: 1.5rem 0 0.65rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.error-page .code {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7rem);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 420px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #08080c;
  padding: 2.5rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col h4 {
  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: 0.4rem 0;
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.keywords-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
}

.keywords-bar a {
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  background: var(--bg-2);
}

.keywords-bar a:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-2);
}

/* FAQ */
.faq details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  padding: 0.85rem 1rem;
}

.faq summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: 700;
}

.faq details[open] summary::before {
  content: "−";
}

.faq details p {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reveal {
  animation: fadeUp 0.6s ease both;
}

/* Mobile */
@media (max-width: 900px) {
  .shot-grid,
  .shot-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .toc ol {
    columns: 1;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    margin: 0;
    background: rgba(11, 11, 15, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    z-index: 110;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 1.25rem;
  }

  .hero {
    padding: 2.25rem 0 1.75rem;
  }

  .shot-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  .shot-grid,
  .shot-grid.cols-3 {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .shot figcaption {
    font-size: 0.78rem;
    padding: 0.5rem;
  }
}
