/* 糖心Vlog传媒 - tx02.pics */
:root {
  --bg: #f6f3f0;
  --bg-deep: #1e1a1c;
  --surface: #ffffff;
  --ink: #1a1517;
  --muted: #5c5458;
  --line: #e8e0dc;
  --accent: #c42b4a;
  --accent-dark: #9a1f38;
  --accent-soft: #fce8ed;
  --gold: #c4a574;
  --radius: 4px;
  --shadow: 0 12px 40px rgba(26, 21, 23, 0.08);
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(196, 43, 74, 0.07), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(196, 165, 116, 0.12), transparent 45%),
    var(--bg);
  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;
}

a:hover {
  color: var(--accent-dark);
}

ul,
ol {
  padding-left: 1.25em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-deep);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 26, 28, 0.95) 0%,
    rgba(30, 26, 28, 0.55) 45%,
    rgba(30, 26, 28, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 3rem;
  max-width: 720px;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--surface);
  box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40em;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--muted);
  font-size: 0.98rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
}

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
  color: #fff;
  display: block;
}

.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.75;
}

.cat-item:hover img {
  transform: scale(1.06);
  opacity: 0.9;
}

.cat-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 0.9rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-deep);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-row:hover .feature-media img {
  transform: scale(1.03);
}

.feature-body h3 {
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
}

.feature-body p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.feature-body p:last-child {
  margin-bottom: 0;
}

/* Vlog gallery */
.vlog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.vlog-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: box-shadow 0.3s, transform 0.3s;
}

.vlog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.vlog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.vlog-card figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.vlog-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

/* SEO article */
.seo-article {
  max-width: 760px;
}

.seo-article h2 {
  font-size: 1.7rem;
  margin: 2rem 0 0.85rem;
}

.seo-article h2:first-child {
  margin-top: 0;
}

.seo-article h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.65rem;
}

.seo-article p {
  margin-bottom: 1rem;
  color: var(--ink);
}

.seo-article ul,
.seo-article ol {
  margin-bottom: 1rem;
  color: var(--muted);
}

.seo-article li {
  margin-bottom: 0.4rem;
}

.seo-article a {
  border-bottom: 1px solid rgba(196, 43, 74, 0.3);
}

.toc {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1.1rem 1.25rem;
  margin-bottom: 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
}

.toc ol {
  margin: 0;
  color: var(--ink);
  padding-left: 1.2em;
}

.toc a {
  color: var(--ink);
  border: none;
}

.toc a:hover {
  color: var(--accent);
}

/* Service / tips strip */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tip {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
}

.tip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
}

.tip h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.tip p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.75rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(196, 43, 74, 0.06), transparent 55%),
    var(--surface);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 40em;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.content-block {
  padding: 2.75rem 0 3.5rem;
}

.content-block .prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 1.75rem 0 0.7rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  margin-bottom: 0.85rem;
  color: var(--muted);
}

.prose p strong,
.prose li strong {
  color: var(--ink);
}

.related-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related-links h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.related-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 7rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 28em;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 3rem 0 1.75rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.45rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.25rem;
  }

  .vlog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: var(--shadow);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.75rem 1rem;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content {
    padding: 2.5rem 0 2.25rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .vlog-grid {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    gap: 0.75rem;
  }

  .cat-item span {
    font-size: 1rem;
    padding: 0.85rem 0.7rem 0.7rem;
  }
}
