/* 糖心Vlog ttx.homes — Brand: gold → orange → pink */
:root {
  --bg: #0b0b0f;
  --bg-2: #14141c;
  --bg-3: #1c1c28;
  --text: #f2f2f5;
  --text-muted: #a8a8b8;
  --line: rgba(255, 255, 255, 0.08);
  --brand-1: #f5c542;
  --brand-2: #f07a3a;
  --brand-3: #e84d7a;
  --brand-4: #b24fd6;
  --grad: linear-gradient(115deg, var(--brand-1), var(--brand-2) 42%, var(--brand-3) 72%, var(--brand-4));
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(245, 197, 66, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(232, 77, 122, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(178, 79, 214, 0.1), transparent 55%),
    var(--bg);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ffb36b;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #fff;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 15, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-bottom-color: var(--brand-2);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--grad);
  color: #1a0f08 !important;
  font-weight: 700;
  border: none;
  border-bottom: none !important;
}

.nav-cta:hover {
  opacity: 0.92;
  color: #1a0f08 !important;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.2rem 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.12);
  border: 1px solid rgba(245, 197, 66, 0.28);
  color: var(--brand-1);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad);
  color: #1a0f08;
}

.btn-primary:hover {
  color: #1a0f08;
  opacity: 0.93;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-meta strong {
  color: #fff;
}

.hero-visual {
  position: relative;
}

.hero-shot {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-2);
}

.hero-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 560px;
}

.hero-float {
  position: absolute;
  left: -1rem;
  bottom: 1.5rem;
  width: min(46%, 190px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
  animation: floaty 4.5s ease-in-out infinite;
}

.hero-float-2 {
  left: auto;
  right: -0.8rem;
  bottom: auto;
  top: 1.2rem;
  width: min(40%, 160px);
  animation-delay: -1.5s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Sections */
.section {
  padding: 3.2rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(20, 20, 28, 0.55), transparent);
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 46rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--brand-2);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 122, 58, 0.4);
}

.feature-card h3 {
  margin: 0.7rem 0 0.45rem;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.cat-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  min-height: 180px;
}

.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
  transition: transform 0.35s ease;
}

.cat-item:hover img {
  transform: scale(1.05);
}

.cat-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  font-weight: 700;
  font-size: 0.98rem;
}

/* Content blocks */
.prose {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.prose h2,
.prose h3 {
  color: #fff;
  margin-top: 1.8rem;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.shot-stack {
  display: grid;
  gap: 0.85rem;
}

.shot-stack img {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.media-grid figure {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.media-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.media-grid figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* 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.2rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: #1a0f08;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  margin-bottom: 0.55rem;
  color: var(--brand-1);
}

.faq p {
  margin: 0;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  margin: 1rem 0 0;
  padding: 2rem;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(245, 197, 66, 0.15), rgba(232, 77, 122, 0.18)),
    var(--bg-2);
  border: 1px solid rgba(240, 122, 58, 0.3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.4rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 42rem;
}

.breadcrumb {
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: #fff;
}

.content-wrap {
  padding: 2rem 0 3.5rem;
}

.content-panel {
  background: rgba(20, 20, 28, 0.65);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 1.4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #09090d;
  padding: 2.4rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col h4 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .cat-grid,
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-float,
  .hero-float-2 {
    display: none;
  }

  .hero-shot img {
    max-height: 420px;
  }
}

@media (max-width: 720px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(11, 11, 15, 0.97);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1rem 1rem;
    gap: 0.2rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.4rem;
    border-bottom: none !important;
  }

  .feature-grid,
  .steps,
  .cat-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .section {
    padding: 2.4rem 0;
  }

  .cta-band {
    padding: 1.4rem;
  }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  .reveal.show {
    opacity: 1;
    transform: none;
  }
}
