/* 糖心Vlog - txsite.forum */
:root {
  --primary: #e12a8f;
  --primary-dark: #c01878;
  --accent: #ff6b2c;
  --accent-soft: #ffb020;
  --bg: #0f0f14;
  --bg-card: #1a1a24;
  --bg-soft: #22222e;
  --text: #f5f5f7;
  --text-muted: #a0a0b0;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", 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;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  padding-left: 1.25rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo span {
  background: linear-gradient(90deg, var(--accent-soft), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--bg-soft);
}

.menu-toggle {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(225, 42, 143, 0.22), transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(255, 107, 44, 0.18), transparent 45%),
    var(--bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(225, 42, 143, 0.15);
  color: #ff9fd0;
  font-size: 0.85rem;
  margin-bottom: 14px;
  border: 1px solid rgba(225, 42, 143, 0.35);
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 6px 20px rgba(225, 42, 143, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--primary);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-float {
  position: absolute;
  right: 0;
  bottom: -12px;
  width: 42%;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(26, 26, 36, 0.6), transparent);
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.section-title-left {
  margin-bottom: 24px;
}

.section-title-left h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.section-title-left p {
  color: var(--text-muted);
}

/* Cards / grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(225, 42, 143, 0.45);
  transform: translateY(-3px);
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(225, 42, 143, 0.25), rgba(255, 107, 44, 0.2));
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 44, 0.5);
}

.cat-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: var(--bg-soft);
}

.cat-card .cat-body {
  padding: 14px;
}

.cat-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cat-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.shot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-card .shot-body {
  padding: 14px 16px 18px;
}

.shot-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.shot-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.two-col.reverse .text-col {
  order: 2;
}

.two-col.reverse .media-col {
  order: 1;
}

.media-col img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 320px;
}

.text-col h2 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.text-col p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.text-col ul {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.text-col li {
  margin-bottom: 6px;
}

/* Article / SEO content */
.article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
}

.article h2 {
  font-size: 1.35rem;
  margin: 28px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.article h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article h3 {
  font-size: 1.1rem;
  margin: 20px 0 10px;
  color: #ffc4e0;
}

.article p {
  color: var(--text-muted);
  margin-bottom: 14px;
  text-align: justify;
}

.article ul,
.article ol {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.article li {
  margin-bottom: 6px;
}

.article .toc {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 24px;
}

.article .toc h3 {
  margin-top: 0;
  color: var(--text);
}

.article .toc ol {
  margin-bottom: 0;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.inline-links a {
  padding: 6px 14px;
  background: var(--bg-soft);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

.inline-links a:hover {
  border-color: var(--primary);
  color: #ff9fd0;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 40px 0 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(225, 42, 143, 0.18), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 680px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.content-wrap {
  padding: 40px 0 56px;
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  max-width: 900px;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 24px 0 10px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.legal-content ul {
  margin-bottom: 14px;
}

/* CTA band */
.cta-band {
  margin: 20px 0 0;
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(135deg, rgba(225, 42, 143, 0.25), rgba(255, 107, 44, 0.2));
  border: 1px solid rgba(225, 42, 143, 0.35);
}

.cta-band h2 {
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page .code {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-soft), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 420px;
}

/* Footer */
.site-footer {
  background: #0a0a0e;
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .logo {
  margin-bottom: 4px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.step .num {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .two-col.reverse {
    grid-template-columns: 1fr;
  }

  .two-col.reverse .text-col,
  .two-col.reverse .media-col {
    order: unset;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-float {
    display: none;
  }

  .hero-visual img {
    max-width: 280px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 15, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 16px;
  }

  .feature-grid,
  .cat-grid,
  .shot-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article,
  .legal-content {
    padding: 22px 18px;
  }

  .cta-band {
    padding: 28px 18px;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .section {
    padding: 40px 0;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .cat-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }
}
