/* 糖心Vlog传媒官网 - tangxinweb.lol */
:root {
  --bg: #0a0a0c;
  --bg-soft: #141418;
  --bg-card: #1a1a20;
  --text: #f2f2f4;
  --text-muted: #a8a8b3;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --line: #2a2a32;
  --radius: 10px;
  --max: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #fb7185; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .02em;
}
.logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.logo span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.nav a {
  color: var(--text-muted);
  padding: .4rem .75rem;
  border-radius: 6px;
  font-size: .92rem;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--bg-card); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
}
.menu-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(225, 29, 72, .18), transparent),
    linear-gradient(180deg, #121218 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: .8rem;
  color: var(--accent);
  background: rgba(225, 29, 72, .12);
  border: 1px solid rgba(225, 29, 72, .35);
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 36em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.hero-visual img {
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--line);
}
.hero-visual img:nth-child(2) { margin-top: 1.5rem; }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-soft); }

.section-head {
  margin-bottom: 1.75rem;
  max-width: 48rem;
}
.section-head h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin-bottom: .5rem;
}
.section-head p { color: var(--text-muted); }

/* Category chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.25rem 0 1.75rem;
}
.chip {
  display: inline-block;
  padding: .35rem .85rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .88rem;
}
.chip:hover { color: var(--text); border-color: var(--accent); }

/* Media grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.media-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.media-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 72, .45);
}
.media-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.media-card .meta {
  padding: .85rem .9rem 1rem;
}
.media-card h3 {
  font-size: .95rem;
  margin-bottom: .35rem;
  font-weight: 600;
}
.media-card p {
  font-size: .82rem;
  color: var(--text-muted);
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
  margin-inline: auto;
}
.feature-copy h3 {
  font-size: 1.35rem;
  margin-bottom: .75rem;
}
.feature-copy p {
  color: var(--text-muted);
  margin-bottom: .85rem;
}
.feature-copy ul { color: var(--text-muted); margin-bottom: .85rem; }
.feature-copy li { margin-bottom: .35rem; }

/* Article / long SEO text */
.prose {
  max-width: 48rem;
  margin: 0 auto;
}
.prose h2 {
  font-size: 1.45rem;
  margin: 2rem 0 .85rem;
  padding-top: .5rem;
}
.prose h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 .65rem;
}
.prose p { margin-bottom: 1rem; color: var(--text-muted); }
.prose p strong, .prose li strong { color: var(--text); }
.prose ul, .prose ol { margin-bottom: 1rem; color: var(--text-muted); }
.prose li { margin-bottom: .4rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Page hero (inner pages) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #15151c 0%, var(--bg) 100%);
}
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.page-hero p { color: var(--text-muted); max-width: 40rem; }
.breadcrumb {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .85rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

.content-wrap { padding: 2.5rem 0 3.5rem; }
.content-wrap .prose { max-width: 44rem; margin: 0; }

/* Two col showcase */
.showcase-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.showcase-2 img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.showcase-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.showcase-3 img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* CTA band */
.cta-band {
  margin: 2rem 0;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(225, 29, 72, .2), rgba(20, 20, 24, .9));
  border: 1px solid rgba(225, 29, 72, .35);
  text-align: center;
}
.cta-band h2 { margin-bottom: .5rem; }
.cta-band p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #08080a;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { display: flex; flex-direction: column; gap: .75rem; }
.footer-brand .logo { font-size: 1.05rem; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; }
.footer-col h4 {
  font-size: .95rem;
  margin-bottom: .85rem;
  color: var(--text);
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: .45rem;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  font-size: .82rem;
  color: var(--text-muted);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}
.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .5rem;
}
.error-page h1 { margin-bottom: .75rem; }
.error-page p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 28rem; margin-inline: auto; }

/* Related links box */
.related {
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.related h3 { font-size: 1rem; margin-bottom: .75rem; }
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: .4rem; }

/* Mobile */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-visual { max-width: 420px; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .feature-row img { max-height: 420px; max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .showcase-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 10, 12, .98);
    border-bottom: 1px solid var(--line);
    padding: .75rem 1rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem .85rem; }
  .header-inner { position: relative; }
  .hero { padding: 2rem 0 1.75rem; }
  .section { padding: 2.25rem 0; }
  .showcase-2, .showcase-3 { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .media-grid { gap: .65rem; }
  .media-card .meta { padding: .65rem .7rem .8rem; }
  .media-card h3 { font-size: .88rem; }
}

@media (max-width: 400px) {
  .media-grid { grid-template-columns: 1fr 1fr; }
  body { font-size: 15px; }
}
