/* 糖心Vlog传媒 - txapp.cfd */
:root {
  --brand: #e11d48;
  --brand-dark: #be123c;
  --brand-soft: #fff1f2;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --bg: #fafaf9;
  --surface: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
  --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);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #ffe4e6 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #ffedd5 0%, transparent 50%),
    var(--bg);
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.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 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo span {
  background: linear-gradient(120deg, var(--brand), #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Hero */
.hero {
  padding: 3rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.5vw, 2.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #f97316);
  color: #fff;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.28);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.65);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.5rem;
  max-width: 760px;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.prose {
  color: var(--ink);
}

.prose h2,
.prose h3 {
  margin-top: 1.75rem;
  line-height: 1.35;
}

.prose p {
  margin: 0.9rem 0;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.4rem 0;
}

/* Cards / grids */
.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;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f5f5f4;
}

.card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.card-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 1.75rem 0;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.feature.reverse {
  grid-template-columns: 1.1fr 1fr;
}

.feature.reverse .feature-media {
  order: 2;
}

.feature-media img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.feature h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.feature p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
}

.tag-list a:hover {
  background: #fecdd3;
}

.cta-box {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
  border: 1px solid #fecdd3;
  text-align: center;
}

.cta-box h2 {
  margin: 0 0 0.6rem;
}

.cta-box p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

/* Legal / content pages */
.page-hero {
  padding: 2.25rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--muted);
}

.content-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.6rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.04);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0;
  background: linear-gradient(135deg, var(--brand), #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  color: var(--muted);
  max-width: 420px;
  margin: 0.75rem auto 1.5rem;
}

/* Footer */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 2.5rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.site-footer h3 {
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: #a8a29e;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fda4af;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0.4rem 0;
}

.footer-bottom {
  border-top: 1px solid #44403c;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #78716c;
  text-align: center;
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: min(240px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 120;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
  }

  .nav a:hover,
  .nav a.active {
    background: var(--brand-soft);
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .hero-grid,
  .feature,
  .feature.reverse,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature.reverse .feature-media {
    order: 0;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 1.75rem;
  }
}

@media (max-width: 560px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .content-panel {
    padding: 1.15rem 1rem 1.5rem;
  }
}
