/* 糖心Vlog - tx-1.lat */
:root {
  --brand: #e83e6a;
  --brand-dark: #c2185b;
  --brand-soft: #fff0f4;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #ececec;
  --bg: #faf7f8;
  --card: #ffffff;
  --max: 1100px;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(232, 62, 106, 0.08);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

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);
}

.container {
  width: min(100% - 32px, 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;
  min-height: 64px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo span {
  font-family: var(--display);
  letter-spacing: 0.04em;
  color: var(--brand-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(232, 62, 106, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(194, 24, 91, 0.12), transparent 50%),
    linear-gradient(165deg, #fff 0%, var(--brand-soft) 55%, #ffe8ef 100%);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--brand-dark);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
  animation: rise 0.8s ease both;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  animation: rise 0.8s ease 0.1s both;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 36em;
  margin-bottom: 24px;
  animation: rise 0.8s ease 0.18s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.8s ease 0.26s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  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(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 62, 106, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid rgba(232, 62, 106, 0.25);
}

.hero-visual {
  position: relative;
  animation: float-in 1s ease 0.2s both;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 420px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -12px -12px auto;
  width: 42%;
  height: 42%;
  background: linear-gradient(135deg, transparent, rgba(232, 62, 106, 0.15));
  border-radius: var(--radius);
  z-index: -1;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: #fff;
}

.section-head {
  margin-bottom: 28px;
  max-width: 46em;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.section-head p {
  color: var(--muted);
}

.prose {
  color: var(--muted);
}

.prose p {
  margin-bottom: 1em;
}

.prose h2,
.prose h3 {
  color: var(--ink);
  margin: 1.6em 0 0.7em;
  font-family: var(--display);
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1em 1.25em;
}

.prose li {
  margin-bottom: 0.45em;
}

/* Feature / category grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.media-block {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.media-block img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.media-block:hover img {
  transform: scale(1.03);
}

.media-block .cap {
  padding: 14px 16px 16px;
}

.media-block .cap h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.media-block .cap p {
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}

.feature-row:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.feature-row:nth-child(even) .feature-text {
  order: 2;
}

.feature-row:nth-child(even) .feature-media {
  order: 1;
}

.feature-text h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.feature-text p {
  color: var(--muted);
  margin-bottom: 12px;
}

.feature-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 360px;
}

.shot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.shot-strip img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease;
}

.shot-strip img:hover {
  transform: translateY(-4px);
}

.vlog-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.vlog-gallery img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.cta-band {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.cta-band p {
  opacity: 0.92;
  max-width: 36em;
}

.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--muted);
}

.page-hero {
  padding: 40px 0 20px;
  background: linear-gradient(180deg, var(--brand-soft), var(--bg));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--muted);
  max-width: 42em;
}

.content-wrap {
  padding: 40px 0 64px;
}

.legal-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}

.related-links {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-links h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.related-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.related-links a {
  color: var(--brand-dark);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.error-page .code {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--brand);
  line-height: 1;
  margin-bottom: 8px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 22px;
}

/* Footer */
.site-footer {
  background: #1f1218;
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
  font-family: var(--display);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: #ffb3c7;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav.open {
    display: flex;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-grid,
  .grid-2,
  .feature-row,
  .feature-row:nth-child(even),
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-row:nth-child(even) .feature-text,
  .feature-row:nth-child(even) .feature-media {
    order: initial;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .vlog-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .shot-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 48px 0;
  }
}

@media (max-width: 560px) {
  .grid-3,
  .grid-4,
  .shot-strip {
    grid-template-columns: 1fr;
  }

  .vlog-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .legal-box {
    padding: 20px 16px;
  }
}
