/* 糖心Vlog 官网 - tx-1.homes */
:root {
  --bg: #0c0b10;
  --bg-soft: #15131c;
  --bg-card: #1a1722;
  --text: #f2edf5;
  --text-muted: #a89bb0;
  --brand: #e8385a;
  --brand-hot: #ff4d6d;
  --brand-soft: #ff8a9b;
  --accent: #ff6b35;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Sora", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  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(232, 56, 90, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(255, 107, 53, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(120, 40, 80, 0.18), transparent 60%),
    var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-hot);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(12, 11, 16, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 56, 90, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 12px 28px rgba(232, 56, 90, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  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);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1rem;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  max-width: none;
  margin: 0;
  z-index: 110;
  background: rgba(12, 11, 16, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.nav-mobile.open {
  display: flex;
  position: absolute;
}

.nav-mobile a {
  padding: 0.75rem 0.5rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(232, 56, 90, 0.15);
  color: var(--brand-soft);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(232, 56, 90, 0.3);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--brand-hot), var(--accent));
  -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.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  animation: floatIn 0.9s ease both;
}

.hero-float {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: 42%;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  animation: floatIn 1.1s 0.15s ease both;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

.section-head p {
  color: var(--text-muted);
  max-width: 46em;
}

.prose {
  color: var(--text-muted);
}

.prose p {
  margin-bottom: 1.1rem;
}

.prose h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.75rem;
}

.prose ul,
.prose ol {
  margin: 0.75rem 0 1.25rem 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

/* Feature / category grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(232, 56, 90, 0.45);
  transform: translateY(-3px);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  margin-bottom: 0.9rem;
  background: var(--bg-soft);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.shot-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.shot-card:hover {
  transform: translateY(-4px);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-card .cap {
  padding: 0.85rem 1rem 1rem;
}

.shot-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.shot-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.media-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.75rem;
  align-items: center;
  margin: 2rem 0;
}

.media-row.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.media-row img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.media-row .text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.media-row .text p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

/* CTA band */
.cta-band {
  margin: 1rem 0 0;
  padding: 2rem;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(232, 56, 90, 0.25), rgba(255, 107, 53, 0.12)),
    var(--bg-soft);
  border: 1px solid rgba(232, 56, 90, 0.35);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--display);
  margin-bottom: 0.6rem;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.75rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.55rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 42em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.content-wrap {
  padding: 2rem 0 3.5rem;
}

.content-wrap .prose {
  max-width: 760px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 3rem 0;
}

.error-page h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 5rem);
  background: linear-gradient(120deg, var(--brand-hot), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.error-page h2 {
  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: rgba(0, 0, 0, 0.35);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.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.65rem;
  margin-bottom: 0.85rem;
  color: var(--text);
  font-weight: 700;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-grid p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-grid h4 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.45rem;
}

.footer-grid a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Internal link chips */
.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.link-chips a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.link-chips a:hover {
  border-color: var(--brand);
  color: var(--brand-soft);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .media-row,
  .media-row.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-float {
    position: static;
    width: 55%;
    margin: 1rem auto 0;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .shot-grid-mobile-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card img,
  .shot-card img {
    aspect-ratio: 3 / 4;
  }

  .cta-band {
    padding: 1.5rem 1.15rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
