/* 糖心Vlog · tx-log.monster */
:root {
  --brand: #e11d48;
  --brand-dark: #be123c;
  --brand-soft: #ffe4e6;
  --ink: #1c1917;
  --ink-muted: #57534e;
  --line: #e7e5e4;
  --bg: #fffaf9;
  --bg-soft: #fef2f2;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(190, 18, 60, 0.08);
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", "STSong", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 50% at 10% -10%, #fecdd3 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 0%, #ffe4e6 0%, transparent 45%),
    var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

#ads img,
#site-ads-bar img {
  max-width: 65px;
  width: 65px;
  height: 65px;
  object-fit: cover;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 249, 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;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.logo span {
  font-family: var(--display);
  color: var(--brand);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--ink-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
  background: var(--brand-soft);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* Hero */
.hero {
  padding: 48px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--brand);
}

.hero h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin: 0 0 14px;
  line-height: 1.4;
  font-weight: 700;
}

.hero-lead {
  color: var(--ink-muted);
  margin: 0 0 22px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(190, 18, 60, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: var(--card);
  color: var(--brand-dark);
  border: 1px solid #fecdd3;
}

.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #fecdd3;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section {
  padding: 48px 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-soft), transparent);
}

.section-head {
  margin-bottom: 28px;
  max-width: 720px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-family: var(--display);
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.media-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-soft);
}

.media-card .body {
  padding: 14px 16px 18px;
}

.media-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.media-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
}

.feature-row.reverse {
  grid-template-columns: 1.1fr 1fr;
}

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-media {
  order: 1;
}

.feature-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.feature-text h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.feature-text p {
  margin: 0 0 12px;
  color: var(--ink-muted);
}

.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 28px 12px;
  box-shadow: var(--shadow);
}

.article h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 8px 0 16px;
}

.article h3 {
  margin: 28px 0 12px;
  font-size: 1.2rem;
  color: var(--brand-dark);
}

.article p {
  margin: 0 0 14px;
  color: #44403c;
}

.article ul,
.article ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
  color: #44403c;
}

.article li {
  margin-bottom: 8px;
}

.toc {
  background: var(--bg-soft);
  border: 1px solid #fecdd3;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc a {
  display: inline-block;
  margin: 4px 10px 4px 0;
  font-size: 0.92rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.85rem;
}

.page-hero {
  padding: 40px 0 20px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--brand);
}

.page-hero p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 720px;
}

.legal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}

.legal h2 {
  margin: 28px 0 12px;
  font-size: 1.2rem;
  color: var(--brand-dark);
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: #44403c;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.error-page .code {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--brand);
  margin: 0;
}

.error-page h1 {
  margin: 12px 0;
}

.error-page p {
  color: var(--ink-muted);
  max-width: 420px;
  margin: 0 auto 24px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #1c1917;
  color: #d6d3d1;
  padding: 40px 0 24px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.site-footer p {
  margin: 0 0 10px;
  color: #a8a29e;
  font-size: 0.92rem;
}

.site-footer a {
  color: #fecdd3;
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.copyright {
  border-top: 1px solid #44403c;
  padding-top: 16px;
  font-size: 0.85rem;
  color: #78716c;
  text-align: center;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--ink-muted);
}

.breadcrumb span {
  margin: 0 6px;
  color: #a8a29e;
}

.vlog-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.vlog-strip .media-card img {
  aspect-ratio: 3 / 4;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-grid,
.media-card,
.feature-row {
  animation: rise-in 0.6s ease both;
}

.media-card:nth-child(2) {
  animation-delay: 0.05s;
}

.media-card:nth-child(3) {
  animation-delay: 0.1s;
}

.media-card:nth-child(4) {
  animation-delay: 0.15s;
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-media {
    order: initial;
  }

  .grid-4,
  .vlog-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
  }

  .hero {
    padding: 28px 0 20px;
  }

  .section {
    padding: 36px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .vlog-strip {
    grid-template-columns: 1fr;
  }

  .article,
  .legal {
    padding: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
