/* 糖心Vlog - tlog.baby */
:root {
  --bg: #0b0b0f;
  --bg-elevated: #14141c;
  --bg-card: #1a1a24;
  --text: #f5f5f7;
  --text-muted: #a8a8b3;
  --accent: #ff2d78;
  --accent-hot: #ff5a3d;
  --accent-gold: #ffb347;
  --grad: linear-gradient(135deg, #ffb347 0%, #ff2d78 55%, #e91e8c 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,179,71,.18), rgba(255,45,120,.18));
  --border: rgba(255,255,255,.08);
  --radius: 14px;
  --max: 1120px;
  --header-h: 64px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--accent); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: #ff7aa8; }
ul { list-style: none; }
button, .btn { cursor: pointer; font-family: inherit; border: 0; }

.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(11,11,15,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 1.15rem; flex-shrink: 0;
}
.logo img { width: 36px; height: 36px; border-radius: 8px; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-desktop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-desktop a {
  color: var(--text-muted); padding: 8px 12px; font-size: .92rem; border-radius: 8px;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--text); background: rgba(255,255,255,.05); }

.nav-toggle {
  display: none; width: 42px; height: 42px;
  background: var(--bg-card); border-radius: 10px; color: var(--text);
  align-items: center; justify-content: center; font-size: 1.25rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad); color: #fff !important;
  box-shadow: 0 8px 24px rgba(255,45,120,.35);
}
.btn-outline {
  background: transparent; color: var(--text) !important;
  border: 1px solid rgba(255,255,255,.25);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent) !important; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  padding: 48px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 70% 40%, rgba(255,45,120,.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(255,179,71,.12), transparent 55%),
    var(--bg);
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.hero-brand {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800; letter-spacing: .02em; line-height: 1.15; margin-bottom: 18px;
}
.hero-brand em {
  font-style: normal; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  color: var(--text-muted); font-size: 1.08rem; max-width: 36em; margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-meta { color: var(--text-muted); font-size: .88rem; }
.hero-visual {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  aspect-ratio: 9/16; max-height: 70vh; margin: 0 auto; width: min(100%, 340px);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-badge {
  position: absolute; left: 12px; top: 12px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(6px);
  padding: 6px 12px; border-radius: 999px; font-size: .78rem; color: #fff;
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-elevated); }
.section-title {
  font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 700; margin-bottom: 12px;
  line-height: 1.3;
}
.section-desc { color: var(--text-muted); margin-bottom: 32px; max-width: 48em; }
.section-head { margin-bottom: 36px; }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; transition: border-color .2s;
}
.feature-card:hover { border-color: rgba(255,45,120,.4); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: .95rem; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  background: var(--grad-soft); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.cat-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s;
}
.cat-item:hover { transform: translateY(-3px); }
.cat-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.cat-item .cat-body { padding: 14px; }
.cat-item h3 { font-size: .98rem; margin-bottom: 6px; }
.cat-item p { color: var(--text-muted); font-size: .85rem; }

.shot-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.shot-grid figure {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  background: var(--bg-card);
}
.shot-grid img { width: 100%; aspect-ratio: 9/16; object-fit: cover; object-position: top; }
.shot-grid figcaption {
  padding: 10px 12px; font-size: .82rem; color: var(--text-muted);
}

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step;
}
.step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; margin-bottom: 12px;
  background: var(--grad); font-weight: 700; font-size: .9rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .92rem; }

.prose {
  color: var(--text-muted); font-size: 1rem;
}
.prose h2 {
  color: var(--text); font-size: 1.35rem; margin: 2em 0 .75em;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); font-size: 1.1rem; margin: 1.5em 0 .6em; }
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.2em; }
.prose li { margin-bottom: .45em; list-style: disc; }
.prose ol li { list-style: decimal; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start;
}
.media-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
.media-frame img { width: 100%; object-fit: cover; object-position: top; }

.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.faq-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.faq-item p { color: var(--text-muted); font-size: .94rem; }

.cta-band {
  padding: 56px 0; text-align: center;
  background: var(--grad-soft);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--text-muted); margin-bottom: 24px; }

/* Page banner (inner pages) */
.page-banner {
  padding: 48px 0 36px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255,45,120,.2), transparent 70%),
    var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.page-banner h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.page-banner p { color: var(--text-muted); max-width: 40em; }
.breadcrumb { font-size: .88rem; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

.page-main { padding: 48px 0 72px; }
.page-main .prose { max-width: 820px; }

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 60px 16px;
}
.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem); font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: 12px;
}
.error-page h1 { font-size: 1.5rem; margin-bottom: 12px; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; max-width: 28em; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  background: #08080c; border-top: 1px solid var(--border);
  padding: 48px 0 28px; margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: .92rem; max-width: 28em; }
.footer-col h4 { font-size: .95rem; margin-bottom: 14px; color: var(--text); }
.footer-col a {
  display: block; color: var(--text-muted); font-size: .9rem; padding: 5px 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--text-muted); font-size: .85rem;
}

/* Mobile nav drawer */
.nav-mobile {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: rgba(0,0,0,.55);
}
.nav-mobile.open { display: block; }
.nav-mobile-panel {
  background: var(--bg-elevated); width: min(100%, 320px); margin-left: auto;
  height: 100%; padding: 20px; border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.nav-mobile-panel a {
  color: var(--text); padding: 12px 14px; border-radius: 10px; font-size: 1rem;
}
.nav-mobile-panel a:hover { background: rgba(255,255,255,.06); }
.nav-mobile-panel .btn { margin-top: 12px; width: 100%; }

/* TOC for long home content */
.toc {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px;
}
.toc h2 { font-size: 1.05rem; margin-bottom: 12px; }
.toc ol { margin-left: 1.2em; }
.toc li { list-style: decimal; margin-bottom: 6px; color: var(--text-muted); }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--accent); }

.keyword-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.keyword-tags span {
  font-size: .8rem; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,45,120,.12); color: #ff8fb4; border: 1px solid rgba(255,45,120,.25);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero { min-height: auto; padding: 36px 0 48px; }
  .hero-visual { max-height: 480px; width: min(100%, 280px); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .shot-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner .btn-primary.desktop-only { display: none; }
  .feature-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .cat-grid, .shot-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .section { padding: 48px 0; }
  .logo span { font-size: 1rem; }
}

@media (max-width: 400px) {
  .cat-grid, .shot-grid { grid-template-columns: 1fr; }
}
