/* 糖心Vlog - tvlog.club */
:root {
  --bg: #0b0b0f;
  --bg-2: #14141c;
  --bg-3: #1c1c28;
  --text: #f2f2f5;
  --text-muted: #a8a8b8;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #ff4d6d;
  --accent-2: #ff9f1c;
  --grad: linear-gradient(135deg, #ffcc33 0%, #ff6b35 45%, #e8388a 100%);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", 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: #ffcc33;
}

ul,
ol {
  padding-left: 1.25rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 159, 28, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(232, 56, 138, 0.16), transparent 50%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 77, 109, 0.15);
  color: #ffb3c1;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 77, 109, 0.25);
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 28px rgba(232, 56, 138, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-float {
  position: absolute;
  right: -4%;
  bottom: -8%;
  width: 42%;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  animation: floatY 4.5s ease-in-out infinite;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.section-head p {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

/* Feature / article cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(255, 159, 28, 0.35);
  transform: translateY(-3px);
}

.feature-card h3 {
  margin-top: 0.85rem;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  background: #000;
}

/* Showcase rows */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.showcase:nth-child(even) .showcase-media {
  order: 2;
}

.showcase-media img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  margin-inline: auto;
}

.showcase-copy h2 {
  margin-bottom: 1rem;
}

.showcase-copy ul {
  color: var(--text-muted);
}

.showcase-copy li {
  margin-bottom: 0.45rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-3);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Content article body (SEO longform) */
.article-body {
  max-width: 820px;
  margin: 0 auto;
}

.article-body h2 {
  margin-top: 2.25rem;
  padding-top: 0.5rem;
}

.article-body h3 {
  margin-top: 1.5rem;
  color: #ffe0e6;
}

.article-body p,
.article-body li {
  color: var(--text-muted);
}

.article-body strong {
  color: #f7f7fb;
}

.toc {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.toc h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.toc ol {
  margin: 0;
  color: var(--text-muted);
}

.toc a {
  color: #ffb3c1;
}

.inline-shot {
  margin: 1.5rem 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 320px;
}

.inline-shot img {
  width: 100%;
}

.inline-shot figcaption {
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-2);
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.shot-row figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-3);
}

.shot-row img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-row figcaption {
  padding: 0.55rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  margin: 2rem 0 0;
  padding: 2.25rem;
  border-radius: 18px;
  background: var(--grad);
  text-align: center;
  color: #fff;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto 1.25rem;
}

.cta-band .btn {
  background: #111;
  color: #fff;
}

/* Legal / static pages */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255, 107, 53, 0.12), transparent 60%),
    var(--bg);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.legal-content {
  padding: 2.5rem 0 3.5rem;
  max-width: 860px;
}

.legal-content h2 {
  margin-top: 2rem;
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-family: var(--font-display);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #08080c;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 0.35rem;
}

.footer-col h4 {
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Related links */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.related-links a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.related-links a:hover {
  color: #fff;
  border-color: rgba(255, 159, 28, 0.4);
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .showcase,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .showcase:nth-child(even) .showcase-media {
    order: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-row {
    grid-template-columns: 1fr;
  }

  .hero-float {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(14, 14, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .cta-band {
    padding: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.fade-up {
  animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
