/* 糖心vlog官网 - txvlogs.click */
:root {
  --bg: #0c0c0e;
  --bg-soft: #16161a;
  --bg-card: #1c1c22;
  --text: #f2f0ee;
  --text-muted: #a8a4a0;
  --accent: #e84a5f;
  --accent-hot: #ff6b4a;
  --accent-soft: rgba(232, 74, 95, 0.14);
  --line: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --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;
}

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-hot);
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(12, 12, 14, 0.2) 0%, rgba(12, 12, 14, 0.85) 55%, var(--bg) 100%),
    url("/category-featured.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 0 72px;
  max-width: 680px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.hero-brand span {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.5;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 28px;
  max-width: 520px;
}

.cta-group {
  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-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 36px;
  max-width: 720px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1rem;
}

.section-head .anchor-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.9rem;
}

/* Media grids */
.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(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 74, 95, 0.45);
}

.media-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #111;
}

.media-card.wide img {
  aspect-ratio: 9 / 16;
}

.media-body {
  padding: 14px 14px 16px;
}

.media-body h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.media-body p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Feature / text blocks */
.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);
  padding: 22px 20px;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.shot-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 40px;
}

.shot-row.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.shot-row.reverse .shot-visual {
  order: 2;
}

.shot-visual {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
}

.shot-visual img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
}

.shot-copy h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.shot-copy p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.shot-copy ul {
  margin: 12px 0 18px;
  padding-left: 0;
}

.shot-copy li {
  position: relative;
  padding-left: 16px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.shot-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Category chips */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 180px;
}

.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.cat-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.15));
}

.cat-label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 180px;
  padding: 16px;
}

.cat-label strong {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.cat-label span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Article / SEO text */
.seo-article {
  max-width: 860px;
}

.seo-article h2,
.seo-article h3 {
  font-family: var(--font-display);
  margin: 28px 0 12px;
}

.seo-article h2 {
  font-size: 1.55rem;
}

.seo-article h3 {
  font-size: 1.2rem;
}

.seo-article p {
  color: var(--text-muted);
  margin-bottom: 14px;
  text-align: justify;
}

.seo-article p strong {
  color: var(--text);
  font-weight: 600;
}

.seo-article ol,
.seo-article ul {
  margin: 0 0 16px 1.2em;
  color: var(--text-muted);
}

.seo-article li {
  margin-bottom: 8px;
  list-style: disc;
}

.seo-article ol li {
  list-style: decimal;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 20px 0;
  padding: 16px 18px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(232, 74, 95, 0.2);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(232, 74, 95, 0.18), transparent 50%),
    var(--bg);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 640px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.content-page {
  padding: 40px 0 72px;
}

.content-page .prose {
  max-width: 820px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 28px 0 12px;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.prose ul {
  margin-left: 1.2em;
  margin-bottom: 16px;
}

.prose li {
  list-style: disc;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}

.error-box h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.error-box h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.error-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #080809;
  padding: 40px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.footer-brand span {
  color: var(--accent);
}

.footer-grid p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-grid a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

/* App download strip */
.download-strip {
  background: linear-gradient(90deg, rgba(232, 74, 95, 0.18), rgba(255, 107, 74, 0.1));
  border: 1px solid rgba(232, 74, 95, 0.25);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.download-strip h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.download-strip p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Vlog showcase */
.vlog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.vlog-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-content {
    animation: rise 0.8s ease both;
  }

  .media-card,
  .cat-item,
  .feature-item {
    animation: fade-up 0.6s ease both;
  }

  .media-card:nth-child(2),
  .cat-item:nth-child(2),
  .feature-item:nth-child(2) {
    animation-delay: 0.08s;
  }

  .media-card:nth-child(3),
  .cat-item:nth-child(3),
  .feature-item:nth-child(3) {
    animation-delay: 0.16s;
  }

  .media-card:nth-child(4),
  .cat-item:nth-child(4) {
    animation-delay: 0.24s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 960px) {
  .media-grid,
  .cat-grid,
  .vlog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-row,
  .shot-row.reverse {
    grid-template-columns: 1fr;
  }

  .shot-row.reverse .shot-visual {
    order: 0;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 12, 14, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    min-height: 78vh;
    background-position: top center;
  }

  .hero-content {
    padding: 48px 0 56px;
  }

  .section {
    padding: 52px 0;
  }

  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .media-grid.pc-only-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .seo-article p {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .vlog-grid {
    grid-template-columns: 1fr 1fr;
  }
}
