/* 糖心vlog txvlogs.baby */
:root {
  --bg: #0a0a0c;
  --bg-2: #121216;
  --bg-3: #1a1a22;
  --text: #f2f2f5;
  --muted: #9a9aa8;
  --accent: #e63946;
  --accent-2: #ff6b4a;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --max: 1120px;
  --font: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --sans: "DM Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ff8f75;
}

ul, ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo span {
  background: linear-gradient(120deg, #fff 30%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(230, 57, 70, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255, 107, 74, 0.12), transparent 50%),
    linear-gradient(180deg, #0e0e12 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand {
  font-family: var(--font);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: #dddde6;
  margin-bottom: 1rem;
  max-width: 32ch;
}

.hero-desc {
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 42ch;
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 28px rgba(230, 57, 70, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: floatIn 0.9s ease both;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 48rem;
}

.section-head h2 {
  font-family: var(--font);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
}

.section-head p {
  color: var(--muted);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.2s, transform 0.25s;
}

.feature-item:hover {
  border-color: rgba(230, 57, 70, 0.4);
  transform: translateY(-3px);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  margin-bottom: 1rem;
  max-height: 280px;
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font);
}

.feature-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Category chips / gallery */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-3);
}

.cat-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.cat-item:hover img {
  transform: scale(1.04);
}

.cat-item figcaption {
  padding: 0.75rem 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.cat-item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  margin-top: 0.25rem;
}

/* Content / SEO article */
.prose {
  max-width: 48rem;
}

.prose h2 {
  font-family: var(--font);
  font-size: 1.55rem;
  margin: 2.2rem 0 0.9rem;
  padding-top: 0.4rem;
}

.prose h3 {
  font-family: var(--font);
  font-size: 1.2rem;
  margin: 1.6rem 0 0.7rem;
  color: #e8e8ef;
}

.prose p {
  margin-bottom: 1rem;
  color: #c8c8d2;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  color: #c8c8d2;
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

.toc {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0 2rem;
}

.toc h2 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  font-family: var(--sans);
}

.toc ol {
  margin: 0;
  color: var(--muted);
}

.toc a {
  color: #d0d0da;
}

.toc a:hover {
  color: var(--accent-2);
}

/* Two column layout for legal pages */
.page-hero {
  padding: 2.75rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(230, 57, 70, 0.12), transparent 50%),
    var(--bg-2);
}

.page-hero h1 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--muted);
}

.page-body {
  padding: 2.5rem 0 4rem;
}

.page-body .prose {
  max-width: 44rem;
}

.meta-line {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* FAQ */
.faq details {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--accent-2);
  margin-bottom: 0.65rem;
}

.faq p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  counter-reset: step;
}

.step {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  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%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.step p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* Screenshot row */
.shot-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.shot-row img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 320px;
}

/* Internal link box */
.link-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.link-box a {
  display: block;
  padding: 1rem 1.15rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
}

.link-box a:hover {
  border-color: rgba(230, 57, 70, 0.45);
  color: #fff;
}

.link-box strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent-2);
}

.link-box span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-family: var(--font);
  font-size: clamp(3rem, 10vw, 5rem);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.error-page h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #08080a;
  padding: 2.75rem 0 1.75rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.footer-brand span {
  color: var(--accent-2);
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer h4 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  color: #ddd;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .feature-item,
  .cat-item {
    animation: rise 0.6s ease both;
  }

  .feature-item:nth-child(2),
  .cat-item:nth-child(2) { animation-delay: 0.06s; }
  .feature-item:nth-child(3),
  .cat-item:nth-child(3) { animation-delay: 0.12s; }
  .feature-item:nth-child(4),
  .cat-item:nth-child(4) { animation-delay: 0.18s; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 320px;
    margin-inline: auto;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #111116;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .link-box {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .shot-row {
    grid-template-columns: 1fr 1fr;
  }
}
