/* 糖心Vlog传媒 · tx2.homes */
:root {
  --bg: #0c0e12;
  --bg-soft: #141820;
  --bg-card: #1a1f2a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --muted: #9aa3b5;
  --brand: #e84a6f;
  --brand-soft: #ff7a96;
  --brand-deep: #c42d52;
  --accent: #f0c14b;
  --ok: #3ecf8e;
  --radius: 12px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "STKaiti", "KaiTi", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: auto;
}

html.lock-head {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 74, 111, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(240, 193, 75, 0.08), transparent 50%),
    linear-gradient(180deg, #0c0e12 0%, #10141c 40%, #0c0e12 100%);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* Ads pages: header stays put, only .page-scroll moves */
html.lock-head body,
body.has-ads {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  height: 100dvh;
  min-height: 0;
  padding-top: 0 !important;
  margin: 0;
}

html.lock-head .sticky-head,
body.has-ads .sticky-head {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  z-index: 1000;
  background: #0c0e12;
}

html.lock-head .page-scroll,
body.has-ads .page-scroll {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.sticky-head .site-header {
  position: relative !important;
  top: auto !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #0c0e12;
  border-bottom: none;
}

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  background: rgba(12, 14, 18, 0.96);
  border-bottom: 1px solid var(--line);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-soft);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #fff;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  background: linear-gradient(120deg, #fff 20%, var(--brand-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(232, 74, 111, 0.16);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  padding: 56px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.25;
  margin-bottom: 16px;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand-soft);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(232, 74, 111, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(232, 74, 111, 0.5);
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-meta strong {
  color: var(--brand-soft);
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  animation: floatIn 0.9s ease both;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -8% auto;
  width: 42%;
  height: 42%;
  background: radial-gradient(circle, rgba(232, 74, 111, 0.35), transparent 70%);
  z-index: -1;
  filter: blur(8px);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  animation: rise 0.7s ease both;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 28px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 8px;
}

.toc a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.02);
}

.toc a:hover {
  color: #fff;
  border-color: rgba(232, 74, 111, 0.45);
}

/* Feature / category grids */
.feature-grid,
.shot-grid,
.cat-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(232, 74, 111, 0.4);
  transform: translateY(-3px);
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: #fff;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: rgba(232, 74, 111, 0.14);
  color: var(--brand-soft);
  font-size: 1.2rem;
}

.shot-grid {
  grid-template-columns: repeat(3, 1fr);
}

.shot-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #111;
}

.shot-card figcaption {
  padding: 12px 14px 16px;
}

.shot-card h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 6px;
}

.shot-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.cat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cat-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 180px;
}

.cat-item img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.35s ease;
}

.cat-item:hover img {
  transform: scale(1.05);
}

.cat-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-weight: 600;
}

/* Content prose */
.prose {
  color: var(--muted);
  font-size: 1.02rem;
}

.prose h2,
.prose h3 {
  color: #fff;
  font-family: var(--font-display);
  margin: 1.6em 0 0.6em;
}

.prose h2 {
  font-size: 1.55rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.prose h3 {
  font-size: 1.2rem;
}

.prose p {
  margin-bottom: 1em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em 1.2em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.side-box {
  position: sticky;
  top: 88px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.side-box h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}

.side-box a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}

.side-box a:last-child {
  border-bottom: 0;
}

.side-box a:hover {
  color: var(--brand-soft);
}

.note {
  background: rgba(240, 193, 75, 0.08);
  border: 1px solid rgba(240, 193, 75, 0.25);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: #f5df9c;
  margin: 18px 0;
  font-size: 0.94rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 16px 64px;
  position: relative;
  color: var(--muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(232, 74, 111, 0.18);
  color: var(--brand-soft);
  font-weight: 700;
}

.steps strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 42px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  color: #fff;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 40rem;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand-soft);
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  color: var(--brand);
  line-height: 1;
  margin-bottom: 12px;
}

.error-wrap h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.error-wrap p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  padding: 40px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 10px;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 0.98rem;
}

.footer-grid ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}

/* FAQ */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  margin-bottom: 10px;
  padding: 14px 16px;
}

.faq summary {
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--brand-soft);
  margin-bottom: 8px;
}

.faq p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-box {
    position: static;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(18, 22, 30, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .shot-grid,
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .section {
    padding: 40px 0;
  }

  .shot-card img {
    aspect-ratio: 3 / 4;
  }
}
