/* 糖心Vlog传媒 - tx-log.xyz */
:root {
  --bg: #0a0a0c;
  --bg-elevated: #141418;
  --bg-card: #1a1a20;
  --bg-soft: #22222a;
  --text: #f2f2f5;
  --text-muted: #a0a0ab;
  --text-dim: #6e6e7a;
  --accent-start: #ff8c00;
  --accent-end: #e91e63;
  --accent: #ff4d6d;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1180px;
  --header-h: 64px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --grad: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

*,
*::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.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff7a9a;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ffb347;
}

ul,
ol {
  padding-left: 1.25rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  margin-bottom: 0.85rem;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 2.2rem 0 1rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.7rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
  background: var(--bg-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  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;
}

.nav-mobile {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.95rem 1.25rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.nav-mobile a:hover {
  color: var(--text);
  background: var(--bg-soft);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.2rem 0 2.4rem;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(255, 140, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(233, 30, 99, 0.2), transparent 50%),
    linear-gradient(180deg, #121218 0%, var(--bg) 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.2rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #ffd4a8;
  background: rgba(255, 140, 0, 0.12);
  border: 1px solid rgba(255, 140, 0, 0.28);
  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-muted);
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.hero-cta {
  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.72rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.28);
}

.btn-primary:hover {
  color: #fff;
  opacity: 0.92;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero-meta strong {
  color: var(--text);
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
}

.hero-visual-caption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}

/* Sections */
.section {
  padding: 2.8rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head p {
  max-width: 48rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
  font-weight: 600;
}

/* Category chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.chip:hover {
  border-color: rgba(233, 30, 99, 0.4);
  color: var(--text);
}

/* Feature / gallery grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 140, 0, 0.35);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-soft);
}

.feature-card-body {
  padding: 1rem 1.05rem 1.15rem;
}

.feature-card-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.feature-card-body p {
  margin: 0;
  font-size: 0.9rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.shot-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.shot-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.shot-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
}

/* Content article */
.seo-article {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.seo-article p,
.seo-article li {
  color: var(--text-muted);
}

.seo-article li {
  margin-bottom: 0.45rem;
}

.seo-article strong {
  color: var(--text);
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0 1.75rem;
}

.toc h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc a {
  font-size: 0.9rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.media-block {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.media-block img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 440px;
  object-fit: cover;
  object-position: top center;
  margin-inline: auto;
}

.media-block figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.callout {
  border-left: 3px solid var(--accent);
  background: rgba(233, 30, 99, 0.08);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Breadcrumb / page hero */
.page-hero {
  padding: 2.2rem 0 1.4rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 80% at 0% 0%, rgba(255, 140, 0, 0.12), transparent 55%),
    var(--bg-elevated);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero .lead {
  max-width: 40rem;
  margin-bottom: 0;
}

/* Legal pages */
.legal-content {
  padding: 2.2rem 0 3rem;
}

.legal-content .seo-article {
  max-width: 860px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.updated {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  margin-bottom: 0.75rem;
}

.error-page p {
  max-width: 28rem;
  margin-inline: auto 1rem;
  margin-left: auto;
  margin-right: auto;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #08080a;
  padding: 2.4rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  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 p {
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

.footer-col h4 {
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-muted);
}

/* Internal link box */
.link-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.link-box a {
  display: block;
  padding: 0.95rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.link-box a span {
  display: block;
  margin-top: 0.25rem;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.link-box a:hover {
  border-color: rgba(233, 30, 99, 0.4);
  color: #ffb347;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.hero-visual {
  animation: fadeUp 0.7s ease both;
}

.hero-visual {
  animation-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .link-box {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    max-height: 420px;
    margin-inline: auto;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .hero {
    padding: 2rem 0 1.6rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .seo-article {
    padding: 1.2rem 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  .brand-sub {
    display: none;
  }

  .hero-visual img,
  .media-block img {
    max-height: 380px;
  }
}
