/* 糖心vlog 官网 - txvlogs.lol */
:root {
  --bg: #0b0b0f;
  --bg-2: #14141c;
  --bg-3: #1c1c28;
  --text: #f2f2f5;
  --text-muted: #a8a8b8;
  --accent: #ff3b5c;
  --accent-2: #ff6b35;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  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 0.2s ease;
}

a:hover {
  color: #ff7a90;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.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: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--bg-3);
}

.nav-toggle {
  display: none;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 48px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 59, 92, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(255, 107, 53, 0.12), transparent 50%),
    linear-gradient(180deg, #12121a 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(255, 59, 92, 0.12);
  border: 1px solid rgba(255, 59, 92, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 28px;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 59, 92, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--bg-3);
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: var(--text);
  display: block;
  font-size: 1.15rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  object-fit: cover;
  max-height: 520px;
}

.hero-float {
  position: absolute;
  right: -8px;
  bottom: -16px;
  width: 42%;
  border-radius: 14px;
  border: 2px solid var(--bg);
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 32px;
  max-width: 42em;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.shot-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 420px;
}

.shot-card .cap {
  padding: 14px 16px;
}

.shot-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.shot-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.content-block {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.content-block h2,
.content-block h3 {
  margin-top: 0;
}

.content-block p {
  color: var(--text-muted);
}

.content-block ul,
.content-block ol {
  color: var(--text-muted);
  padding-left: 1.25em;
}

.content-block li {
  margin-bottom: 8px;
}

.content-block a {
  font-weight: 500;
}

.prose {
  max-width: 48em;
}

.prose h2 {
  margin: 2em 0 0.75em;
  font-size: 1.35rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.5em 0 0.6em;
  font-size: 1.1rem;
}

.prose p {
  color: var(--text-muted);
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  color: var(--text-muted);
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.5em;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.faq details {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 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 p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cta-banner {
  text-align: center;
  padding: 48px 28px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 59, 92, 0.2), rgba(255, 107, 53, 0.12)),
    var(--bg-3);
  border: 1px solid rgba(255, 59, 92, 0.25);
}

.cta-banner h2 {
  margin: 0 0 12px;
}

.cta-banner p {
  margin: 0 0 24px;
  color: var(--text-muted);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 48px 0 28px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 59, 92, 0.12), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.page-body {
  padding: 40px 0 64px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0 0 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 28px;
}

/* Footer */
.site-footer {
  background: #08080c;
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 700;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-footer p,
.site-footer li {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--text);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .shot-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero-float {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .content-block {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .shot-row {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    gap: 12px;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }
}
