/* 糖心Vlog传媒 tlog.lat — PC & Mobile */
:root {
  --bg: #0a0a0c;
  --bg-elevated: #141418;
  --bg-card: #1a1a20;
  --bg-soft: #22222a;
  --text: #f5f5f7;
  --text-muted: #a0a0ab;
  --text-dim: #6e6e78;
  --accent: #ff2d55;
  --accent-hot: #ff1744;
  --accent-soft: rgba(255, 45, 85, 0.15);
  --brand-y: #ffb020;
  --brand-o: #ff6b35;
  --brand-m: #e91e8c;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --header-h: 64px;
  --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);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ff6b8a;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  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: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--brand-y), var(--brand-o), var(--brand-m));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(10, 10, 12, 0.98);
  padding: 24px 20px;
  z-index: 99;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--text);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 1.05rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 176, 32, 0.12), transparent),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(233, 30, 140, 0.14), transparent),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(255, 45, 85, 0.08), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--brand-y);
  background: rgba(255, 176, 32, 0.12);
  border: 1px solid rgba(255, 176, 32, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--brand-y), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-actions {
  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: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-o), var(--accent), var(--brand-m));
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 45, 85, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
}

.hero-visual {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  max-height: 480px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.75) 0%, transparent 45%);
  pointer-events: none;
}

/* Category chips */
.cat-bar {
  padding: 8px 0 28px;
  position: relative;
  z-index: 1;
}

.cat-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.cat-scroll a {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.cat-scroll a:hover,
.cat-scroll a.active {
  color: #fff;
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Sections */
.section {
  padding: 40px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 1.45rem;
  font-weight: 700;
}

.section-head h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: linear-gradient(180deg, var(--brand-y), var(--accent));
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: -0.15em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 520px;
}

.section-link {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section-link:hover {
  color: var(--accent);
}

/* Cards grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.media-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}

.media-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 85, 0.4);
}

.media-card .thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-soft);
}

.media-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.media-card:hover .thumb img {
  transform: scale(1.04);
}

.media-card .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.media-card .meta {
  padding: 12px 12px 14px;
}

.media-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-card .sub {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Feature row */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.feature-item a {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.88rem;
}

/* Showcase dual */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.showcase-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 280px;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.showcase-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.showcase-cap h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.showcase-cap p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* SEO article */
.seo-article {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 40px;
}

.seo-article h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.seo-article h3 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: #ffe8ee;
}

.seo-article p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.98rem;
  text-align: justify;
}

.seo-article ul {
  margin: 0 0 16px 1.2em;
  list-style: disc;
  color: var(--text-muted);
}

.seo-article li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.seo-article a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 24px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
}

.toc a {
  display: inline-block;
  margin: 4px 12px 4px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.toc a:hover {
  color: var(--accent);
}

/* Page content (inner pages) */
.page-hero {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 640px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.content-block {
  max-width: 820px;
  padding-bottom: 60px;
}

.content-block h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
}

.content-block p {
  color: var(--text-muted);
  margin-bottom: 14px;
  text-align: justify;
}

.content-block ul {
  list-style: disc;
  margin: 0 0 16px 1.4em;
  color: var(--text-muted);
}

.content-block li {
  margin-bottom: 8px;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page .code {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-y), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  background: #070709;
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-dim);
  margin-left: 14px;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-sm {
  margin-top: 12px;
}

.notice {
  background: rgba(255, 176, 32, 0.08);
  border: 1px solid rgba(255, 176, 32, 0.25);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Mobile */
@media (max-width: 960px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-visual {
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-visual img {
    max-height: 420px;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }

  .showcase {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .seo-article {
    padding: 24px 18px;
  }

  .section {
    padding: 28px 0;
  }
}

@media (max-width: 520px) {
  .logo-text {
    font-size: 1rem;
  }

  .hero {
    padding: 28px 0 20px;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .media-card h3 {
    font-size: 0.82rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
