/* 糖心Vlog传媒官网 - tx-log.lat */
:root {
  --brand-orange: #ff7a1a;
  --brand-pink: #e83e8c;
  --brand-magenta: #c2185b;
  --brand-grad: linear-gradient(135deg, #ff9a3c 0%, #ff5e7a 45%, #c2185b 100%);
  --brand-grad-soft: linear-gradient(180deg, #fff8f2 0%, #fff0f5 50%, #ffffff 100%);
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #777;
  --border: #eee0e6;
  --bg: #ffffff;
  --bg-soft: #faf6f8;
  --shadow: 0 8px 28px rgba(194, 24, 91, 0.08);
  --radius: 12px;
  --max: 1120px;
  --header-h: 68px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-magenta);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-orange);
}

ul,
ol {
  padding-left: 1.25em;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  border-image: var(--brand-grad) 1;
}

h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--brand-magenta);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.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.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.logo span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--text-secondary);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-magenta);
  background: #fff0f5;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-grad-soft);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% auto -10%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.18), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(232, 62, 140, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-magenta);
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-grad);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(232, 62, 140, 0.28);
}

.btn-secondary {
  background: #fff;
  color: var(--brand-magenta) !important;
  border: 1px solid var(--border);
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-visual {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #fff;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-intro {
  max-width: 48em;
  margin-bottom: 1.5rem;
}

/* Cards / grids — content interaction blocks */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

.feature-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.feature-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.vlog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.vlog-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vlog-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.vlog-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.vlog-item .cap {
  padding: 0.75rem 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.category-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
  min-height: 160px;
}

.category-item img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.35s, opacity 0.25s;
}

.category-item:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.category-item .label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Content prose */
.prose {
  max-width: 48em;
}

.prose p {
  text-align: justify;
}

.prose ul,
.prose ol {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: var(--text);
}

.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
  margin: 1.75rem 0;
}

.content-block img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 16 / 11;
}

.toc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.toc h2 {
  margin-top: 0;
  font-size: 1.15rem;
  border: none;
  padding: 0;
  margin-bottom: 0.75rem;
}

.toc ol {
  margin: 0;
  columns: 2;
  column-gap: 2rem;
}

.toc a {
  font-weight: 500;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}

.internal-links a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.internal-links a:hover {
  border-color: var(--brand-pink);
  color: var(--brand-magenta);
  background: #fff5f8;
}

.highlight-box {
  background: linear-gradient(135deg, #fff8f2, #fff0f5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box h3 {
  margin-top: 0;
}

/* Page header for subpages */
.page-hero {
  background: var(--brand-grad-soft);
  padding: 2.25rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--brand-magenta);
}

.page-body {
  padding: 2.5rem 0 3rem;
}

.page-body .prose {
  max-width: 720px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  background: var(--brand-grad-soft);
}

.error-box {
  max-width: 480px;
}

.error-code {
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-box h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-box p {
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: #1c1218;
  color: #d8c8d0;
  padding: 2.5rem 0 1.5rem;
  margin-top: 1rem;
}

.site-footer a {
  color: #f0dce6;
}

.site-footer a:hover {
  color: #ffb087;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  color: #b9a5b0;
  font-size: 0.9rem;
  margin: 0;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: #cbb8c4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #9a8792;
  text-align: center;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .content-block {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vlog-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }

  body {
    font-size: 15px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
    box-shadow: var(--shadow);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 2rem 0 1.75rem;
  }

  .feature-grid,
  .vlog-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 2rem 0;
  }

  .logo span {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}
