/* 糖心vlog txtv.click — brand: orange → pink */
:root {
  --brand-orange: #ff7a18;
  --brand-pink: #ff2d6f;
  --brand-grad: linear-gradient(135deg, #ff7a18 0%, #ff2d6f 100%);
  --bg: #0a0a0c;
  --bg-soft: #141418;
  --bg-card: #1a1a20;
  --text: #f5f5f7;
  --text-muted: #a0a0ab;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --max: 1120px;
  --header-h: 64px;
  --font-display: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-pink);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-orange);
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

.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(10, 10, 12, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  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(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 45, 111, 0.12);
}

.nav-cta {
  background: var(--brand-grad) !important;
  color: #fff !important;
  font-weight: 600;
  margin-left: 0.35rem;
}

.nav-toggle {
  display: none;
  background: none;
  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;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 20%, rgba(255, 45, 111, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(255, 122, 24, 0.18), transparent 55%),
    linear-gradient(180deg, #121018 0%, var(--bg) 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.45;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  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, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 45, 111, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand-pink);
  color: var(--brand-pink);
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.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.8s ease-out;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  animation: fadeUp 0.7s ease-out;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 42em;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.section-head p {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.4rem;
}

/* Feature / category grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-item:hover {
  border-color: rgba(255, 45, 111, 0.4);
  transform: translateY(-3px);
}

.feature-item h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-grad);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  font-size: 1.2rem;
}

/* Screenshot showcase */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform 0.25s;
}

.shot-item:hover {
  transform: translateY(-4px);
}

.shot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-item figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.shot-wide {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.shot-wide img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
  margin-inline: auto;
}

.shot-wide figcaption {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Content prose */
.prose {
  max-width: 48em;
}

.prose h2 {
  font-size: 1.55rem;
  margin: 2rem 0 0.85rem;
  padding-top: 0.5rem;
}

.prose h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.65rem;
}

.prose p {
  margin-bottom: 1rem;
  color: #d4d4dc;
}

.prose ul,
.prose ol {
  margin-bottom: 1.1rem;
  color: #d4d4dc;
}

.prose strong {
  color: var(--text);
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.toc h2 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  padding: 0;
}

.toc ol {
  margin: 0;
  columns: 2;
  gap: 1.5rem;
}

.toc a {
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--brand-pink);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-grad);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at center, rgba(255, 45, 111, 0.2), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--line);
}

.cta-band h2 {
  font-size: 1.65rem;
  margin-bottom: 0.6rem;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

/* Page hero (subpages) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255, 122, 24, 0.15), transparent 60%);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 40em;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--brand-pink);
}

.page-body {
  padding: 2.5rem 0 3.5rem;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.side-nav h2 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.side-nav a {
  display: block;
  padding: 0.4rem 0.5rem;
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 0.9rem;
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--text);
  background: rgba(255, 45, 111, 0.1);
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: var(--brand-grad);
  -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: 28em;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #08080a;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: var(--brand-pink);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Related links strip */
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.related a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.related a:hover {
  border-color: var(--brand-pink);
  color: var(--brand-pink);
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
    max-width: 320px;
    margin-inline: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(14, 14, 18, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem;
    gap: 0.25rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }

  .header-inner {
    position: relative;
  }

  .feature-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2rem 0 2.25rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
