/* 糖心Vlog官网 tx-tv.xyz */
:root {
  --bg: #0a0a0c;
  --bg-soft: #141418;
  --bg-card: #1a1a20;
  --text: #f2f2f5;
  --text-muted: #a0a0ae;
  --accent: #ff4d6d;
  --accent-2: #ff8a3d;
  --accent-3: #ffc14a;
  --line: rgba(255, 255, 255, 0.08);
  --grad: linear-gradient(135deg, #ffc14a 0%, #ff8a3d 40%, #ff4d6d 100%);
  --radius: 14px;
  --max: 1180px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 77, 109, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(255, 138, 61, 0.12), transparent 45%),
    linear-gradient(180deg, #0a0a0c 0%, #121216 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-2);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 12, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle .bar::before {
  top: -6px;
}

.nav-toggle .bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 77, 109, 0.15);
  color: #ff8fa3;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 77, 109, 0.25);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad);
  color: #1a0a0a;
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.35);
}

.btn-primary:hover {
  color: #1a0a0a;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: rgba(255, 138, 61, 0.5);
  color: var(--accent-2);
}

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: floatIn 0.8s ease both;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(10, 10, 12, 0.85));
  pointer-events: none;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: 3rem 0;
  animation: rise 0.6s ease both;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--text-muted);
  max-width: 48em;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.section-title-row h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
}

.more-link {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Category chips */
.cat-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.cat-chip {
  flex: 0 0 auto;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.cat-chip:hover,
.cat-chip.active {
  color: var(--text);
  border-color: rgba(255, 77, 109, 0.45);
  background: rgba(255, 77, 109, 0.12);
}

/* Grids */
.feature-grid,
.shot-grid,
.cat-grid {
  display: grid;
  gap: 1.25rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.shot-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cat-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  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;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 61, 0.35);
}

.card-media {
  position: relative;
  overflow: hidden;
  background: #000;
}

.card-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 1rem 1.05rem 1.15rem;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 77, 109, 0.18);
  color: #ff9aab;
  margin-bottom: 0.55rem;
}

.feature-item {
  padding: 1.4rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-item h3 {
  margin: 0.8rem 0 0.45rem;
  font-size: 1.1rem;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

/* Content prose for SEO */
.prose {
  background: rgba(20, 20, 24, 0.7);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.prose h2 {
  font-size: 1.45rem;
  margin: 1.6rem 0 0.75rem;
  padding-top: 0.4rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.25rem 0 0.55rem;
  color: #ffe0e6;
}

.prose p {
  color: #d4d4dc;
  margin-bottom: 1rem;
  text-align: justify;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.25rem;
  color: #d4d4dc;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Dual showcase */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.showcase figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.showcase img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 480px;
}

.showcase figcaption {
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  margin: 1rem 0 2rem;
  padding: 2rem;
  border-radius: 20px;
  background: var(--grad);
  color: #1a0a0a;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band h2 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.cta-band p {
  opacity: 0.85;
  max-width: 36em;
}

.cta-band .btn {
  background: #1a0a0a;
  color: #fff;
}

.cta-band .btn:hover {
  color: #fff;
  opacity: 0.92;
}

/* Page hero for inner pages */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 42em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.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: 3rem 1rem;
}

.error-box h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.error-box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand h3 {
  margin-bottom: 0.35rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col h4 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.age-notice {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.25);
  color: #ffb3c0;
  font-size: 0.88rem;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .showcase,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual img {
    max-height: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    left: auto;
    width: min(220px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: rgba(20, 20, 24, 0.96);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    z-index: 120;
  }

  .nav.open a {
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
  }

  .nav.open a:hover,
  .nav.open a.active {
    background: rgba(255, 77, 109, 0.12);
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .hero {
    padding-top: 2rem;
  }

  .shot-grid,
  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .card-body {
    padding: 0.75rem;
  }

  .card-body h3 {
    font-size: 0.95rem;
  }

  .cta-band {
    padding: 1.4rem;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }
}
