/* 糖心Vlog tlog.forum — 统一样式（PC / 移动端） */
:root {
  --bg: #0b0b0f;
  --bg-elevated: #14141c;
  --bg-card: #1a1a24;
  --bg-soft: #22222e;
  --text: #f5f5f7;
  --text-muted: #a8a8b8;
  --text-dim: #7a7a8c;
  --accent: #ff2d6a;
  --accent-2: #ff6b2d;
  --gradient: linear-gradient(135deg, #ff8a00 0%, #ff2d6a 45%, #c4008f 100%);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1180px;
  --header-h: 64px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 45, 106, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(255, 138, 0, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(196, 0, 143, 0.1), transparent 60%),
    var(--bg);
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff7aa8;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffb3cc;
}

ul, ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 11, 15, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-domain {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 45, 106, 0.12);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ========== Hero ========== */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 45, 106, 0.35);
  background: rgba(255, 45, 106, 0.1);
  color: #ff8eb0;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 45, 106, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 45, 106, 0.45);
  background: rgba(255, 45, 106, 0.08);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.hero-meta strong {
  color: var(--text);
  font-weight: 700;
  display: block;
  font-size: 1.15rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top center;
  max-height: 560px;
}

.hero-float {
  position: absolute;
  left: -1rem;
  bottom: 1.5rem;
  background: rgba(20, 20, 28, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  backdrop-filter: blur(10px);
  max-width: 220px;
  box-shadow: var(--shadow);
}

.hero-float strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.hero-float span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ========== Sections ========== */
.section {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 48rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff7aa8;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.section-head p {
  color: var(--text-muted);
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

/* ========== Feature cards / grids ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(255, 45, 106, 0.35);
  transform: translateY(-3px);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-soft);
}

.feature-card .body {
  padding: 1rem 1.1rem 1.2rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  min-height: 180px;
}

.cat-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.cat-card:hover img {
  transform: scale(1.04);
}

.cat-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

.cat-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cat-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

/* VLOG strip */
.vlog-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.vlog-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.vlog-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
  max-height: 320px;
}

.vlog-item .cap {
  padding: 0.7rem 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Content prose (SEO long-form) */
.prose {
  color: var(--text-muted);
}

.prose h2,
.prose h3 {
  color: var(--text);
  margin: 1.75rem 0 0.85rem;
  line-height: 1.35;
}

.prose h2 {
  font-size: 1.45rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-size: 1.15rem;
}

.prose p {
  margin-bottom: 1rem;
  text-align: justify;
}

.prose strong {
  color: #ffd0df;
  font-weight: 650;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
}

.content-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

/* Info list / steps / FAQ */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 0.5rem;
}

.toc a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.toc a:hover {
  color: var(--text);
  border-color: rgba(255, 45, 106, 0.4);
}

/* Highlight box */
.note-box {
  border-left: 3px solid var(--accent);
  background: rgba(255, 45, 106, 0.08);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  color: var(--text-muted);
}

/* Legal / static pages */
.page-hero {
  padding: 2.5rem 0 1.25rem;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 42rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: #08080c;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: #ffb3cc;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }

/* ========== Mobile ========== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-visual {
    order: -1;
    max-width: 360px;
    margin-inline: auto;
  }

  .hero-float {
    left: 0.5rem;
    bottom: 0.75rem;
  }

  .feature-grid,
  .step-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vlog-strip {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
  }

  .vlog-item {
    scroll-snap-align: start;
    min-width: 140px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 58px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(14, 14, 20, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 1rem;
    border-radius: 10px;
  }

  .hero {
    padding: 1.75rem 0 1.5rem;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .feature-grid,
  .step-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .cat-card,
  .cat-card img {
    min-height: 150px;
  }

  .content-panel {
    padding: 1.25rem 1rem;
  }

  .prose p {
    text-align: left;
  }

  .brand-domain {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .vlog-strip {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }
}
