/* 糖心Vlog传媒 - tangxins.club */
:root {
  --bg: #0a0a0c;
  --bg-elevated: #141418;
  --bg-card: #1a1a20;
  --bg-soft: #22222a;
  --text: #f2f2f5;
  --text-muted: #a0a0ab;
  --text-dim: #6e6e78;
  --accent: #e11d48;
  --accent-soft: #fb7185;
  --accent-dark: #9f1239;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --gradient-hero: linear-gradient(135deg, #1a0a10 0%, #0a0a0c 45%, #120810 100%);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo span {
  background: linear-gradient(90deg, #fff 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(225, 29, 72, 0.12);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(225, 29, 72, 0.18), transparent),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(251, 113, 133, 0.08), transparent);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-brand em {
  font-style: normal;
  color: var(--accent-soft);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 34em;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: #fff;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: fadeUp 0.8s ease both;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  object-fit: cover;
  object-position: top;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
  color: #fff;
}

.section-head p {
  color: var(--text-muted);
  max-width: 42em;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.4rem;
}

/* Category chips */
.cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cat-chip:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(225, 29, 72, 0.1);
}

/* Feature / screenshot grids */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.shot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.shot-card:hover {
  border-color: rgba(225, 29, 72, 0.45);
  transform: translateY(-3px);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: var(--bg-soft);
}

.shot-card .shot-body {
  padding: 1rem 1.1rem 1.15rem;
}

.shot-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: #fff;
  font-weight: 600;
}

.shot-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.shot-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.shot-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot-grid-4 .shot-card img {
  aspect-ratio: 3 / 4;
}

/* Content prose */
.prose {
  color: var(--text-muted);
}

.prose h2,
.prose h3 {
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  margin: 2rem 0 0.85rem;
}

.prose h2 {
  font-size: 1.55rem;
  padding-top: 0.5rem;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose strong {
  color: #e8e8ec;
  font-weight: 600;
}

.prose ul,
.prose ol {
  margin: 0.75rem 0 1.25rem;
}

.prose li {
  color: var(--text-muted);
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0 2rem;
}

.toc h2 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  color: #fff;
}

.toc ol {
  margin: 0;
  columns: 2;
  column-gap: 2rem;
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent-soft);
}

/* Feature list */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
}

.feature-item h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.feature-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* Page header for subpages */
.page-hero {
  padding: 2.75rem 0 2rem;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 40em;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.content-wrap {
  padding: 2.5rem 0 3.5rem;
}

.content-wrap .prose {
  max-width: 780px;
}

/* 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(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  animation: fadeIn 0.6s ease;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  background: #060608;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.65rem;
}

.footer-brand img {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.footer-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 28em;
}

.footer-col h3 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14, 14, 18, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.2rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 1rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 2.25rem 1.15rem 2rem;
    gap: 1.75rem;
  }

  .hero-visual img {
    max-height: 380px;
    margin: 0 auto;
  }

  .shot-grid,
  .shot-grid-2,
  .shot-grid-4,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .shot-grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .toc ol {
    columns: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 560px) {
  .shot-grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    font-size: 2rem;
  }

  .logo span {
    font-size: 1.15rem;
  }
}

/* Print / SEO helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
