/* 糖心Vlog - tx02.rest */
:root {
  --brand: #e11d48;
  --brand-dark: #be123c;
  --brand-soft: #fff1f2;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --muted: #78716c;
  --line: #e7e5e4;
  --bg: #fffafb;
  --bg-alt: #fff1f2;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(190, 18, 60, 0.08);
  --max: 1120px;
  --nav-h: 64px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #fecdd3 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #fda4af55 0%, transparent 50%),
    linear-gradient(180deg, #fff7f8 0%, var(--bg) 180px);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand); }
ul { list-style: none; }
.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 250, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(225, 29, 72, 0.12);
}
.header-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
}
.logo img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.logo span { font-family: var(--display); font-size: 1.35rem; color: var(--brand-dark); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-soft); padding: 8px 12px; border-radius: 999px; font-size: .95rem;
}
.nav a:hover, .nav a.active { color: var(--brand-dark); background: var(--brand-soft); }
.menu-toggle {
  display: none; border: 0; background: var(--brand-soft); color: var(--brand-dark);
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer; font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 28px;
  overflow: hidden;
}
.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.6rem);
  line-height: 1.15;
  color: var(--brand-dark);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.hero-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 36em;
  margin-bottom: 22px;
}
.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; font-size: .95rem;
  border: 1px solid transparent; transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; box-shadow: 0 8px 20px rgba(225, 29, 72, .28);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  background: #fff; color: var(--brand-dark); border-color: #fecdd3;
}
.hero-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
  animation: riseIn .8s ease both;
}
.hero-visual img {
  width: 100%; height: 100%; min-height: 320px; object-fit: cover;
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(28, 25, 23, .45));
  pointer-events: none;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Sections */
.section { padding: 56px 0; }
.section-alt {
  background: linear-gradient(180deg, #fff5f6 0%, #fffafb 100%);
  border-top: 1px solid #fecdd355;
  border-bottom: 1px solid #fecdd355;
}
.section-head { margin-bottom: 28px; max-width: 720px; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ink);
  margin-bottom: 8px;
}
.section-head p { color: var(--ink-soft); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform .25s ease;
  animation: fadeUp .6s ease both;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.cat-card .label {
  padding: 12px 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}
.cat-card .label small {
  display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 2px;
}

.vlog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.vlog-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.vlog-card:hover { transform: translateY(-3px); }
.vlog-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.vlog-card .meta { padding: 14px 16px 18px; }
.vlog-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.vlog-card p { color: var(--muted); font-size: .9rem; }

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
}
.feature-row.reverse { grid-template-columns: 0.9fr 1.1fr; }
.feature-row.reverse .feature-text { order: 2; }
.feature-media {
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.feature-media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.feature-text h3 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin-bottom: 10px;
  color: var(--brand-dark);
}
.feature-text p { color: var(--ink-soft); margin-bottom: 10px; }
.feature-text ul { margin: 12px 0 0; }
.feature-text li {
  position: relative; padding-left: 18px; margin-bottom: 8px; color: var(--ink-soft);
}
.feature-text li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
}

.seo-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.seo-article h2, .seo-article h3 {
  font-family: var(--display);
  margin: 1.4em 0 .6em;
  color: var(--ink);
}
.seo-article h2 { font-size: 1.7rem; margin-top: 0; }
.seo-article h3 { font-size: 1.25rem; color: var(--brand-dark); }
.seo-article p { margin-bottom: 1em; color: var(--ink-soft); }
.seo-article a { text-decoration: underline; text-underline-offset: 3px; }
.seo-article ol, .seo-article ul { margin: 0 0 1em 1.2em; color: var(--ink-soft); }
.seo-article li { margin-bottom: .45em; }
.internal-links {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.internal-links a {
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9rem;
  text-decoration: none;
}
.tag-cloud {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0;
}
.tag-cloud span {
  background: #fafaf9; border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; font-size: .85rem; color: var(--muted);
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.mini-gallery figure {
  border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow);
}
.mini-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.mini-gallery figcaption {
  padding: 8px 10px; font-size: .82rem; color: var(--muted); text-align: center;
}

/* Page hero (inner) */
.page-hero {
  padding: 42px 0 18px;
  text-align: left;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--brand-dark);
  margin-bottom: 10px;
}
.page-hero p { color: var(--ink-soft); max-width: 48em; }
.breadcrumb {
  font-size: .9rem; color: var(--muted); margin-bottom: 12px;
}
.breadcrumb a { color: var(--muted); }
.content-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 40px);
  margin: 10px 0 56px;
  box-shadow: var(--shadow);
}
.content-panel h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  margin: 1.4em 0 .55em;
}
.content-panel h2:first-child { margin-top: 0; }
.content-panel p, .content-panel li { color: var(--ink-soft); margin-bottom: .85em; }
.content-panel ul, .content-panel ol { margin-left: 1.2em; margin-bottom: 1em; }

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--nav-h) - 180px);
  display: grid; place-items: center; text-align: center; padding: 60px 16px;
}
.error-page .code {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--brand);
  margin-bottom: 8px;
}
.error-page h1 { font-size: 1.6rem; margin-bottom: 10px; }
.error-page p { color: var(--ink-soft); margin-bottom: 22px; }

/* Footer */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 48px 0 24px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.site-footer h3 {
  font-family: var(--display);
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.site-footer p { color: #a8a29e; font-size: .92rem; }
.site-footer a { color: #e7e5e4; }
.site-footer a:hover { color: #fda4af; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #44403c;
  padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: space-between;
  font-size: .85rem; color: #a8a29e;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid, .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-text { order: 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .vlog-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute; left: 16px; right: 16px; top: calc(var(--nav-h) + 8px);
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    flex-direction: column; align-items: stretch; padding: 10px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .hero { padding: 28px 0 12px; }
  .hero-visual, .hero-visual img { min-height: 220px; }
  .section { padding: 40px 0; }
  .vlog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
