/* 糖心Vlog txvlogs.biz - PC & Mobile */
:root {
  --bg: #0a0a0c;
  --bg-soft: #121218;
  --bg-card: #1a1a22;
  --bg-elevated: #22222c;
  --text: #f2f2f5;
  --text-muted: #a0a0b0;
  --text-dim: #6e6e80;
  --accent: #e8364f;
  --accent-soft: #ff5a6e;
  --accent-glow: rgba(232, 54, 79, 0.35);
  --line: rgba(255, 255, 255, 0.08);
  --gold: #f0c14b;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

ul,
ol {
  padding-left: 1.25rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.35;
  font-weight: 700;
  color: #fff;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 2.2rem 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

h3 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.7rem;
  color: #ffe6ea;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.brand span {
  background: linear-gradient(90deg, #fff, var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.35rem 0.2rem;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: #fff;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(120, 40, 80, 0.25), transparent 50%),
    linear-gradient(180deg, #121218 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(232, 54, 79, 0.15);
  border: 1px solid rgba(232, 54, 79, 0.35);
  color: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 0.85rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: #d0d0da;
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  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(--accent), #ff6b7d);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.hero-meta strong {
  color: var(--gold);
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
  margin-inline: auto;
}

.hero-float {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #ddd;
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-intro {
  max-width: 46rem;
  margin-bottom: 1.75rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0;
  border: none;
  padding: 0;
}

.section-head .more {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Cards / grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(232, 54, 79, 0.45);
  transform: translateY(-3px);
}

.feature-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(232, 54, 79, 0.15);
  color: var(--accent-soft);
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  margin-top: 0;
  color: #fff;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #111;
}

.shot-card .caption {
  padding: 0.75rem 0.85rem 1rem;
}

.shot-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.shot-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.cat-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 140px;
}

.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
  transition: transform 0.35s ease;
}

.cat-item:hover img {
  transform: scale(1.06);
}

.cat-item .label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 0.85rem 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-weight: 800;
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.step h3 {
  margin-top: 0;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent-soft);
  font-size: 1.2rem;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0.75rem 0 0;
  font-size: 0.94rem;
}

.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.dual img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.keyword-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.keyword-box a,
.keyword-box span {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.keyword-box a:hover {
  border-color: var(--accent);
  color: #fff;
}

.prose {
  max-width: 52rem;
}

.prose h2 {
  display: block;
  width: 100%;
}

.prose ul,
.prose ol {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 0.4rem;
}

.page-hero {
  padding: 2.5rem 0 1.5rem;
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, var(--accent-glow), transparent 50%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 40rem;
  color: #c8c8d4;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  margin-bottom: 0.75rem;
}

.error-page p {
  max-width: 28rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: #070709;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-weight: 800;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
}

.toc h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.toc ol {
  margin: 0;
  color: var(--text-muted);
}

.toc a {
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--accent-soft);
}

.note {
  background: rgba(232, 54, 79, 0.08);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
  color: #d8d8e2;
  font-size: 0.92rem;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .dual,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid,
  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual img {
    max-height: 420px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(12, 12, 16, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .steps,
  .shot-grid,
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .shot-card img {
    aspect-ratio: 3 / 4;
    max-height: 420px;
  }

  .cat-item img {
    min-height: 200px;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.hero-visual {
  animation: fadeUp 0.7s ease both;
}

.hero-visual {
  animation-delay: 0.12s;
}
