/* 糖心Vlog · tx-tv.cyou */
:root {
  --brand: #c41e3a;
  --brand-dark: #9a1830;
  --brand-soft: #fce8ec;
  --ink: #1a1614;
  --ink-muted: #5c534c;
  --bg: #f7f3ef;
  --bg-alt: #fff9f5;
  --surface: #ffffff;
  --line: #e8ddd4;
  --accent: #2a6f7a;
  --accent-soft: #e6f2f4;
  --shadow: 0 12px 40px rgba(26, 22, 20, 0.08);
  --radius: 12px;
  --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 {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #f8d5dc 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #d9ebea 0%, transparent 50%),
    var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-dark);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.logo:hover {
  color: var(--brand);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.hero-brand span {
  color: var(--brand);
}

.hero h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
  max-width: 36em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeUp 0.9s ease both;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 249, 245, 0.85), transparent);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 42rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.section-head p {
  color: var(--ink-muted);
}

.prose {
  max-width: 48rem;
}

.prose p {
  margin-bottom: 1.1rem;
  color: var(--ink-muted);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0.75rem 0 1.25rem 1.25rem;
  color: var(--ink-muted);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* Cards / grids — cards only for interactive/media content blocks */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: fadeUp 0.7s ease both;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-item .body {
  padding: 1rem 1.1rem 1.2rem;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.vlog-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.vlog-row figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeIn 0.8s ease both;
}

.vlog-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s;
}

.vlog-row figure:hover img {
  transform: scale(1.04);
}

.vlog-row figcaption {
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split.reverse .split-text {
  order: 2;
}

.split.reverse .split-media {
  order: 1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag-list span {
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.65rem;
  padding: 0.9rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.faq p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.internal-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.internal-links a {
  display: block;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
}

.internal-links a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.internal-links a small {
  display: block;
  font-weight: 400;
  color: var(--ink-muted);
  margin-top: 0.25rem;
  font-size: 0.82rem;
}

/* Page banner for subpages */
.page-banner {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.page-banner p {
  color: var(--ink-muted);
  max-width: 36rem;
}

.page-content {
  padding-bottom: 3.5rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--ink-muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  background: #1a1614;
  color: #c9bfb6;
  padding: 2.75rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer .logo {
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: #c9bfb6;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  text-align: center;
}

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .hero-grid,
  .split,
  .split.reverse .split-text,
  .split.reverse .split-media {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-text,
  .split.reverse .split-media {
    order: unset;
  }

  .feature-grid,
  .vlog-row {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .internal-links {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .vlog-row {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    font-size: 2rem;
  }
}
