/* 糖心Vlog · tx-log.baby */
:root {
  --brand: #c41e5a;
  --brand-dark: #9a1848;
  --brand-soft: #fce8ef;
  --ink: #1a1520;
  --ink-soft: #4a4452;
  --muted: #7a7482;
  --line: #e8e2e6;
  --bg: #faf7f8;
  --bg-alt: #fff;
  --surface: #ffffff;
  --max: 1120px;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(26, 21, 32, 0.08);
  --font-display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(196, 30, 90, 0.07), transparent),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(196, 30, 90, 0.05), transparent),
    var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.35rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0 0 0.85rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.6rem; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 248, 0.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: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(196, 30, 90, 0.08) 0%, transparent 55%),
    url("/VLOG01_31_11zon.jpg") center / cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 42rem;
  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.75rem 1.35rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(196, 30, 90, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 48rem;
}

.section-head p {
  margin-bottom: 0;
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
  border: 1px solid var(--line);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot.landscape img {
  aspect-ratio: 16 / 10;
  object-position: center top;
}

.shot-caption {
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.shot-caption strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

/* Feature blocks */
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature:hover {
  border-color: rgba(196, 30, 90, 0.35);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.prose {
  max-width: 48rem;
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose li::marker {
  color: var(--brand);
}

.callout {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

.callout p {
  margin: 0;
  color: var(--ink);
}

/* Category strip */
.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.5rem;
}

.cat-list a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-decoration: none;
}

.cat-list a:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
}

/* Showcase */
.showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.showcase.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.showcase.reverse .showcase-media {
  order: 2;
}

.showcase.reverse .showcase-body {
  order: 1;
}

/* TOC */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 2rem;
}

.toc h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  gap: 2rem;
}

.toc li {
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

.toc a {
  font-size: 0.95rem;
}

/* Page hero (inner) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--brand-soft), transparent);
}

.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.page-hero .breadcrumb a {
  color: var(--muted);
}

.page-content {
  padding: 2.5rem 0 3.5rem;
}

.page-content .prose {
  max-width: 44rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--brand);
  line-height: 1;
  margin: 0 0 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c9c3cc;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #f0e8ec;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: #fff;
  text-decoration: none;
}

.footer-brand:hover {
  text-decoration: none;
  color: #fff;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-body);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.85;
}

.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: #9a93a0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.age-notice {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.35rem;
}

/* Related links */
.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Animations */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1,
.hero-lead,
.hero-actions {
  animation: rise 0.6s ease both;
}

.hero-lead { animation-delay: 0.08s; }
.hero-actions { animation-delay: 0.16s; }

.feature:nth-child(1) { animation: rise 0.5s ease 0.05s both; }
.feature:nth-child(2) { animation: rise 0.5s ease 0.12s both; }
.feature:nth-child(3) { animation: rise 0.5s ease 0.19s both; }

/* Mobile */
@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .showcase,
  .showcase.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .showcase.reverse .showcase-media,
  .showcase.reverse .showcase-body {
    order: unset;
  }

  .toc ol {
    columns: 1;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 1rem;
  }

  .header-inner {
    position: relative;
  }

  .shot img {
    aspect-ratio: 9 / 19;
  }

  .section {
    padding: 2.25rem 0;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
