/* 糖心Vlog官网 tx-log.lol */
:root {
  --bg: #0a0a0c;
  --bg-soft: #121218;
  --bg-card: #17171f;
  --text: #f2f2f5;
  --text-muted: #a8a8b3;
  --accent: #ff2d6a;
  --accent-2: #ff8a3d;
  --accent-grad: linear-gradient(135deg, #ff8a3d 0%, #ff2d6a 55%, #c41d7a 100%);
  --line: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff7aa8;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffb3cb;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: nowrap;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-domain {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-toggle-bars::before {
  top: -6px;
}

.menu-toggle-bars::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(255, 45, 106, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(255, 138, 61, 0.12), transparent 55%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.25;
  font-family: var(--font-display);
}

.hero-lead {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 38em;
}

.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;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 45, 106, 0.5);
  color: #ffb3cb;
}

.hero-visual {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
}

/* Sections */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 52em;
}

.section-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

/* Cards / galleries */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 106, 0.35);
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--bg-soft);
}

.card-body {
  padding: 14px 14px 16px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 640px;
}

.shot figcaption {
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Content prose */
.prose {
  max-width: 780px;
}

.prose h2,
.prose h3 {
  line-height: 1.35;
  margin-top: 1.6em;
  margin-bottom: 0.7em;
}

.prose p {
  margin: 0 0 1em;
  color: #d8d8e0;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: #d8d8e0;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: #fff;
  font-weight: 650;
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 28px;
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text-muted);
}

.toc a {
  color: #ff7aa8;
}

.two-col {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 90px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.side-panel h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.side-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-panel li {
  margin-bottom: 10px;
}

.side-panel a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.side-panel a:hover {
  color: #ffb3cb;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.related a {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  color: var(--text);
}

.related a:hover {
  border-color: rgba(255, 45, 106, 0.4);
  color: #fff;
}

.related span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page h1 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* Footer */
.site-footer {
  padding: 40px 0 28px;
  background: #070709;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer p,
.site-footer li {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.keyword-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.keyword-strip span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 45, 106, 0.12);
  color: #ffb3cb;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 45, 106, 0.2);
}

/* Legal / simple pages */
.page-hero {
  padding: 42px 0 20px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(255, 45, 106, 0.12), transparent 55%),
    var(--bg);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
}

.legal-content {
  padding: 40px 0 60px;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .shot-pair,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .related {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 2;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(220px, calc(100vw - 32px));
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding: 12px;
    gap: 4px;
    background: rgba(18, 18, 24, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    z-index: 1200;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav a:hover,
  .nav a.active {
    background: rgba(255, 45, 106, 0.12);
  }

  .header-inner {
    flex-wrap: nowrap;
    min-height: 60px;
  }

  .hero-visual img,
  .shot img {
    max-height: 420px;
  }
}

@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .section {
    padding: 40px 0;
  }

  .brand-name {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card {
    transition: none;
  }
}
