/* 糖心Vlog - tangxinweb.cfd */
:root {
  --brand: #e11d48;
  --brand-dark: #be123c;
  --brand-soft: #fff1f2;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #78716c;
  --line: #e7e5e4;
  --bg: #fafaf9;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(28, 25, 23, 0.08);
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", Georgia, 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);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand);
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1c1917;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 25, 23, 0.25) 0%,
    rgba(28, 25, 23, 0.55) 45%,
    rgba(28, 25, 23, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0 3rem;
  color: #fff;
  max-width: 720px;
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 36em;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: #fff;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  color: var(--ink);
  line-height: 1.3;
}

.section-head p {
  color: var(--muted);
  font-size: 0.98rem;
}

.prose {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.prose p {
  margin-bottom: 1.1rem;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 1.8rem 0 0.75rem;
  line-height: 1.35;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem 1.25rem;
  list-style: disc;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Feature / category grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.media-block {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #000;
}

.media-block img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.media-block:hover img {
  transform: scale(1.04);
}

.media-wide img {
  aspect-ratio: 16 / 10;
}

.cat-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  box-shadow: var(--shadow);
}

.cat-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cat-item:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.cat-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.9rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item h3 {
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.feature-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Page banner (inner pages) */
.page-banner {
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.92), rgba(190, 18, 60, 0.85)),
    url("/home-hot.jpg") center / cover;
  color: #fff;
  padding: 3.2rem 0 2.6rem;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.page-banner p {
  opacity: 0.9;
  max-width: 36rem;
}

.breadcrumb {
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
  opacity: 0.85;
}

.breadcrumb a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-wrap {
  padding: 2.5rem 0 3.5rem;
}

.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-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(--muted);
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

/* Footer */
.site-footer {
  background: #1c1917;
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.footer-grid h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

/* Utilities */
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--line);
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-3.cats,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    padding: 2.5rem 0 2.2rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .content-card {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 520px) {
  .grid-3.cats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .cat-label {
    font-size: 0.85rem;
    padding: 1rem 0.65rem 0.65rem;
  }
}
