/* 糖心Vlog官网 - txsite.cfd */
:root {
  --bg: #0c0a0f;
  --bg-2: #16121c;
  --bg-3: #1e1828;
  --surface: #221c2e;
  --text: #f5f0f7;
  --text-muted: #b8aec4;
  --accent: #ff2d55;
  --accent-2: #ff8a3d;
  --accent-3: #e91e8c;
  --line: rgba(255, 255, 255, 0.08);
  --grad: linear-gradient(135deg, #ff8a3d 0%, #ff2d55 48%, #c2185b 100%);
  --grad-soft: linear-gradient(160deg, rgba(255, 138, 61, 0.18), rgba(255, 45, 85, 0.12) 45%, rgba(194, 24, 91, 0.08));
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "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(--font-body);
  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, 138, 61, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(255, 45, 85, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(194, 24, 91, 0.1), transparent 55%),
    var(--bg);
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff8fab;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ffd0da;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 10, 15, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: var(--text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 45, 85, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.brand-mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.85rem;
  animation: rise 0.8s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 1rem;
  color: var(--text);
  animation: rise 0.8s ease 0.08s both;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36em;
  margin-bottom: 1.6rem;
  animation: rise 0.8s ease 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  animation: rise 0.8s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 45, 85, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 138, 61, 0.55);
}

.hero-visual {
  position: relative;
  animation: float-in 1s ease 0.2s both;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -10% 20%;
  height: 40%;
  background: var(--grad);
  filter: blur(48px);
  opacity: 0.35;
  z-index: -1;
}

/* Sections */
.section {
  padding: 3.2rem 0;
}

.section-alt {
  background: var(--grad-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 46rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 0.55rem;
}

.section-head p {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(255, 45, 85, 0.35);
  transform: translateY(-3px);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
}

/* Showcase / screenshots */
.showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.shot:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 61, 0.4);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: var(--bg-3);
}

.shot figcaption {
  padding: 0.75rem 0.9rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.shot strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

/* Content blocks */
.prose {
  color: var(--text-muted);
}

.prose p {
  margin-bottom: 1rem;
}

.prose h2,
.prose h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  margin: 1.8rem 0 0.75rem;
}

.prose h2 {
  font-size: 1.55rem;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  margin: 0.6rem 0 1.2rem 1.2rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.category-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.category-list li {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.category-list strong {
  color: var(--text);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Internal links strip */
.ilinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.ilinks a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ilinks a:hover {
  color: var(--text);
  border-color: rgba(255, 45, 85, 0.4);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--grad-soft);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 40rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.content-wrap {
  padding: 2.5rem 0 3.5rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #09070c;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: #ffc1cd;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .showcase {
    grid-template-columns: 1fr 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(12, 10, 15, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .steps,
  .showcase,
  .category-list {
    grid-template-columns: 1fr;
  }

  .showcase {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
