/* 糖心vlog 官网 - txvlogs.quest */
:root {
  --brand: #e11d48;
  --brand-dark: #be123c;
  --brand-soft: #fff1f2;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #78716c;
  --line: #e7e5e4;
  --bg: #fafaf9;
  --bg-alt: #f5f5f4;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(28, 25, 23, 0.08);
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Noto Serif SC", "Songti SC", "SimSun", 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;
  -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% - 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: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo span {
  font-family: var(--display);
  letter-spacing: 0.02em;
}

.logo em {
  font-style: normal;
  color: var(--brand);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  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;
  transition: 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(225, 29, 72, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(251, 113, 133, 0.1), transparent 50%),
    linear-gradient(165deg, #fff 0%, #fff1f2 45%, #fafaf9 100%);
  padding: 56px 0 48px;
}

.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(--ink);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.hero-brand em {
  font-style: normal;
  color: var(--brand);
}

.hero h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.45;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: floatIn 0.9s ease both;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 12px;
  color: var(--ink);
}

.section-head p {
  color: var(--muted);
  font-size: 1rem;
}

.section-label {
  display: inline-block;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* Feature / category grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: var(--bg-alt);
}

.feature-body {
  padding: 18px 18px 20px;
}

.feature-body h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.feature-body p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Showcase rows */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}

.showcase:last-child {
  margin-bottom: 0;
}

.showcase.reverse {
  direction: rtl;
}

.showcase.reverse > * {
  direction: ltr;
}

.showcase img {
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%;
}

.showcase-text h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.showcase-text p {
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.showcase-text ul {
  margin: 12px 0 0;
  padding-left: 0;
}

.showcase-text li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.showcase-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

/* Vlog gallery */
.vlog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.vlog-grid figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.25s ease;
}

.vlog-grid figure:hover {
  transform: scale(1.02);
}

.vlog-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.vlog-grid figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Long SEO content */
.seo-article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 40px;
}

.seo-article h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-soft);
}

.seo-article h3 {
  font-size: 1.18rem;
  margin: 28px 0 12px;
  color: var(--ink);
}

.seo-article p {
  color: var(--ink-soft);
  margin-bottom: 14px;
  text-align: justify;
}

.seo-article a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-article ol,
.seo-article ul.content-list {
  margin: 12px 0 18px 1.2em;
  color: var(--ink-soft);
}

.seo-article li {
  margin-bottom: 8px;
  list-style: disc;
}

.seo-article ol li {
  list-style: decimal;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.internal-links a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.internal-links a:hover {
  background: var(--brand);
  color: var(--white);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 48px 0 32px;
  background:
    linear-gradient(135deg, #fff 0%, #fff1f2 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 40em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.content-page {
  padding: 48px 0 72px;
}

.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 40px;
  max-width: 860px;
  margin: 0 auto;
}

.content-card h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--ink);
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.content-card ul,
.content-card ol {
  margin: 8px 0 16px 1.2em;
}

.content-card li {
  list-style: disc;
  margin-bottom: 8px;
}

.content-card ol li {
  list-style: decimal;
}

.update-date {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(225, 29, 72, 0.08), transparent 55%),
    var(--bg);
}

.error-box h1 {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--brand);
  line-height: 1;
  margin-bottom: 12px;
}

.error-box h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-box p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 28em;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-grid p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #a8a29e;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  color: #a8a29e;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: #fda4af;
}

.footer-bottom {
  border-top: 1px solid #292524;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #78716c;
}

/* CTA band */
.cta-band {
  padding: 56px 0;
  background:
    linear-gradient(120deg, #be123c 0%, #e11d48 45%, #fb7185 100%);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.cta-band p {
  opacity: 0.92;
  margin-bottom: 24px;
  max-width: 36em;
  margin-inline: auto;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: #fff1f2;
  color: var(--brand-dark);
}

.cta-band .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .showcase,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .showcase.reverse {
    direction: ltr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vlog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 36px 0 32px;
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    gap: 0;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .seo-article,
  .content-card {
    padding: 24px 18px;
  }

  .section {
    padding: 48px 0;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}
