/* 糖心vlog - txlog.pics */
:root {
  --bg: #0c0a0f;
  --bg-soft: #16121c;
  --bg-card: #1c1724;
  --text: #f5f0f2;
  --text-muted: #b8a8b0;
  --accent: #ff2d55;
  --accent-2: #ff6b35;
  --accent-3: #c026d3;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 107, 53, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(192, 38, 211, 0.16), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255, 45, 85, 0.08), transparent 40%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent-2);
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(12, 10, 15, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand:hover {
  color: var(--text);
  opacity: 0.92;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  background: linear-gradient(115deg, #ffb347 0%, #ff2d55 45%, #c026d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 16px;
  color: var(--text);
  animation: fadeUp 0.8s ease 0.08s both;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 26px;
  max-width: 36em;
  animation: fadeUp 0.8s ease 0.16s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeUp 0.8s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-2), var(--accent) 55%, var(--accent-3));
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 45, 85, 0.28);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 45, 85, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
  position: relative;
  animation: fadeIn 1s ease 0.2s both;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -10% 20%;
  height: 40%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  filter: blur(48px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 52px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 42em;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-head p {
  color: var(--text-muted);
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-block: 1px solid var(--line);
}

/* Feature / category grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 85, 0.35);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: var(--bg-soft);
}

.feature-item .body {
  padding: 16px 18px 20px;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.shot-grid figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform 0.25s ease;
}

.shot-grid figure:hover {
  transform: scale(1.02);
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-grid figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Content blocks */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 12px;
}

.split-copy p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.split-copy ul {
  margin: 12px 0 18px;
}

.split-copy li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.split-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
}

/* SEO article */
.seo-article {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 40px);
}

.seo-article h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 28px 0 12px;
}

.seo-article h2:first-child {
  margin-top: 0;
}

.seo-article h3 {
  font-size: 1.15rem;
  margin: 22px 0 10px;
  color: #ffe4ec;
}

.seo-article p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.seo-article a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  margin-left: 1.2em;
  color: var(--text-muted);
}

.toc li {
  margin-bottom: 4px;
}

/* Page common */
.page-hero {
  padding: 40px 0 20px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 40em;
}

.prose {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 36px);
  margin: 10px 0 48px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 26px 0 10px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.prose ul,
.prose ol {
  margin: 0 0 14px 1.2em;
}

.prose ul {
  list-style: disc;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  background: linear-gradient(115deg, #ffb347, #ff2d55, #c026d3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-footer p,
.site-footer li {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer h4 {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer ul 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;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    gap: 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav a:hover,
  .nav a.active {
    background: rgba(255, 255, 255, 0.04);
  }

  .nav a.active::after {
    display: none;
  }

  .hero-grid,
  .split,
  .split.reverse .split-media,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 36px;
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
