/* 糖心vlog官网 - txvlogs.cyou */
:root {
  --bg: #0a0a0c;
  --bg-soft: #141418;
  --bg-card: #1a1a22;
  --text: #f2f2f5;
  --text-muted: #a8a8b3;
  --accent: #ff4d6d;
  --accent-hot: #ff2d55;
  --gold: #ffb020;
  --grad: linear-gradient(135deg, #ffd34d 0%, #ff7a3d 40%, #ff4d8a 75%, #c73b9e 100%);
  --grad-soft: linear-gradient(160deg, rgba(255, 77, 109, 0.18), rgba(255, 176, 32, 0.08));
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --max: 1180px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti 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;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #ff8aa0; }
ul { list-style: none; }

.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-pc {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-pc a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.nav-pc a:hover,
.nav-pc a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.35) 0%, rgba(10,10,12,0.55) 45%, rgba(10,10,12,0.96) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(255, 77, 109, 0.25), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 0 64px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  animation: fadeUp .8s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 12px;
  max-width: 720px;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  color: #1a0a10;
  box-shadow: 0 10px 30px rgba(255, 77, 109, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line);
}

/* Sections */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 36px;
  max-width: 760px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.section-head p { color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  background: var(--grad-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .25s, transform .25s;
}

.feature-item:hover {
  border-color: rgba(255, 77, 109, 0.4);
  transform: translateY(-3px);
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Category chips */
.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.cat-list a,
.cat-list span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cat-list a:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* Media grids */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shot-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.shot-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.shot-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
  transition: transform .45s ease;
}

.shot-card:hover img { transform: scale(1.04); }

.shot-card figcaption {
  padding: 12px 14px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.shot-card figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.shot-wide img {
  aspect-ratio: 16/10;
  object-position: center top;
}

/* Content prose */
.prose {
  max-width: 820px;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  margin: 1.6em 0 0.6em;
}

.prose h2 { font-size: 1.55rem; }
.prose h3 { font-size: 1.2rem; color: #ffe0e8; }

.prose p {
  margin-bottom: 1.05em;
  color: #d4d4dc;
}

.prose ul {
  margin: 0 0 1.2em 1.2em;
  list-style: disc;
  color: #d4d4dc;
}

.prose li { margin-bottom: 0.45em; }

.prose a { text-decoration: underline; text-underline-offset: 3px; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.sticky-shot {
  position: sticky;
  top: 88px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.sticky-shot img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* FAQ */
.faq details {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details[open] summary { color: var(--accent); margin-bottom: 10px; }

.faq details p { color: var(--text-muted); font-size: 0.95rem; }

/* Page hero (inner) */
.page-hero {
  padding: 56px 0 28px;
  background: var(--grad-soft);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 10px;
}

.page-hero p { color: var(--text-muted); max-width: 640px; }

.page-body { padding: 48px 0 72px; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}

.error-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-wrap p {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  background: #070709;
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.site-footer p { color: var(--text-muted); font-size: 0.92rem; }

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: #fff;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Mobile nav drawer */
.container.nav-mobile,
.nav-mobile {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  max-width: none;
  margin: 0;
  z-index: 110;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px 14px;
  background: rgba(10, 10, 12, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  color: var(--text-muted);
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}

/* TOC */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 28px;
}

.toc h3 { font-size: 1rem; margin-bottom: 10px; }
.toc ol { margin-left: 1.2em; list-style: decimal; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--accent); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .feature-grid,
  .steps { grid-template-columns: repeat(2, 1fr); }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .sticky-shot { position: static; max-width: 360px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-pc { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero { min-height: 72vh; }
  .hero-content { padding-bottom: 40px; }
  .feature-grid,
  .steps,
  .shot-grid,
  .shot-grid.cols-3,
  .shot-grid.cols-2 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
