/* 糖心Vlog - tangxin.monster */
:root {
  --bg: #0b0b0d;
  --bg-soft: #141418;
  --bg-card: #1a1a20;
  --text: #f2f2f5;
  --text-muted: #a8a8b3;
  --accent: #e11d2e;
  --accent-soft: #ff4d5e;
  --line: rgba(255, 255, 255, 0.08);
  --max: 1120px;
  --radius: 10px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti 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;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(225, 29, 46, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(225, 29, 46, 0.06), transparent),
    linear-gradient(180deg, #0b0b0d 0%, #0f0f12 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #fff;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 14px;
  color: #fff;
}

.hero-brand span {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.hero-lead {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-soft);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.hero-visual {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

/* Sections */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
  max-width: 42em;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 10px;
  color: #fff;
}

.section-head p {
  color: var(--text-muted);
}

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.cat-item:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 46, 0.4);
}

.cat-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.cat-item figcaption {
  padding: 12px 14px 14px;
}

.cat-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: #fff;
}

.cat-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-row.reverse .feature-text {
  order: 1;
}

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  object-fit: cover;
  object-position: top;
  margin-inline: auto;
}

.feature-text h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: #fff;
}

.feature-text p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.feature-text ul {
  margin: 12px 0 16px;
  padding-left: 1.1em;
  list-style: disc;
  color: var(--text-muted);
}

.feature-text li {
  margin-bottom: 6px;
}

/* Vlog gallery */
.vlog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.vlog-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}

.vlog-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  transition: transform 0.35s;
}

.vlog-grid a:hover img {
  transform: scale(1.04);
}

.vlog-grid span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-size: 0.85rem;
}

/* Article / SEO text */
.seo-article {
  max-width: 48em;
}

.seo-article h2,
.seo-article h3 {
  font-family: var(--font-display);
  color: #fff;
  margin: 28px 0 12px;
}

.seo-article h2 {
  font-size: 1.55rem;
}

.seo-article h3 {
  font-size: 1.2rem;
}

.seo-article p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.seo-article ul,
.seo-article ol {
  margin: 0 0 16px 1.2em;
  color: var(--text-muted);
  list-style: disc;
}

.seo-article ol {
  list-style: decimal;
}

.seo-article li {
  margin-bottom: 8px;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.internal-links a {
  padding: 8px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
}

.internal-links a:hover {
  border-color: var(--accent);
  color: #fff;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 40em;
}

.page-content {
  padding: 40px 0 64px;
}

.page-content .prose {
  max-width: 48em;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 28px 0 10px;
  color: #fff;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.prose ul {
  margin: 0 0 16px 1.2em;
  list-style: disc;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  padding: 40px 0 28px;
  background: #08080a;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fff;
}

.footer-grid p,
.footer-grid a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-grid ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  animation: fadeUp 0.7s ease both;
}

.hero-visual {
  animation: fadeUp 0.85s ease 0.12s both;
}

.cat-item {
  animation: fadeUp 0.55s ease both;
}

.cat-item:nth-child(2) { animation-delay: 0.05s; }
.cat-item:nth-child(3) { animation-delay: 0.1s; }
.cat-item:nth-child(4) { animation-delay: 0.15s; }
.cat-item:nth-child(5) { animation-delay: 0.2s; }
.cat-item:nth-child(6) { animation-delay: 0.25s; }
.cat-item:nth-child(7) { animation-delay: 0.3s; }
.cat-item:nth-child(8) { animation-delay: 0.35s; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-text {
    order: initial;
  }

  .cat-grid,
  .vlog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual img,
  .feature-media img {
    max-height: 420px;
  }
}

@media (max-width: 720px) {
  .nav-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, 16, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav.open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .vlog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 0;
  }

  .hero {
    padding: 32px 0 28px;
  }
}
