/* 糖心Vlog Official - tangx.homes */
:root {
  --bg: #0b0b0d;
  --bg-elevated: #141418;
  --bg-card: #1a1a20;
  --bg-soft: #22222a;
  --text: #f2f2f4;
  --text-muted: #a8a8b3;
  --text-dim: #7a7a88;
  --accent: #e8334a;
  --accent-hot: #ff4d6d;
  --accent-soft: rgba(232, 51, 74, 0.14);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --header-h: 68px;
  --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;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 51, 74, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(120, 40, 80, 0.12), transparent 50%),
    linear-gradient(180deg, #0d0d10 0%, #0b0b0d 40%, #09090b 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-hot);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ff7a90;
}

ul, ol {
  padding-left: 1.25rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.35;
  font-weight: 400;
  color: var(--text);
}

h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }
p strong { color: var(--text); font-weight: 600; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(11, 11, 13, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  flex-shrink: 0;
}

.brand:hover { color: var(--text); opacity: 0.92; }

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.42;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 13, 0.35) 0%, rgba(11, 11, 13, 0.55) 45%, rgba(11, 11, 13, 0.96) 100%),
    linear-gradient(90deg, rgba(11, 11, 13, 0.75) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-hot);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.hero h1 {
  margin-bottom: 1rem;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.hero-lead {
  font-size: 1.05rem;
  color: #d5d5dc;
  margin-bottom: 1.6rem;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  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(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  color: #fff;
  box-shadow: 0 10px 28px rgba(232, 51, 74, 0.35);
}

.btn-primary:hover { color: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }

/* Sections */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 46rem;
}

.section-head p {
  margin-bottom: 0;
}

.section-label {
  display: inline-block;
  color: var(--accent-hot);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}

/* Feature / category grids */
.grid-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  isolation: isolate;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 51, 74, 0.45);
}

.cat-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.cat-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
}

.cat-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.cat-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #cfcfd6;
}

/* Showcase rows */
.showcase {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.showcase:nth-child(even) {
  direction: rtl;
}

.showcase:nth-child(even) > * {
  direction: ltr;
}

.showcase-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.showcase-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  object-fit: cover;
  object-position: center top;
  margin-inline: auto;
}

.showcase-copy h3 {
  font-family: var(--font-body);
  font-weight: 600;
}

.vlog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.vlog-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform 0.25s ease;
}

.vlog-item:hover { transform: translateY(-3px); }

.vlog-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
}

.vlog-item span {
  display: block;
  padding: 0.7rem 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Feature list */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-item {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}

.feature-item h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.92rem;
}

/* Article / SEO longform */
.seo-article {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.seo-article h2 {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.seo-article h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.seo-article h3 {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.seo-article ul,
.seo-article ol {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.seo-article li { margin-bottom: 0.45rem; }

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.toc ol {
  margin: 0;
  columns: 2;
  gap: 1.5rem;
}

.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--accent-hot); }

/* Legal / content pages */
.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 { margin-bottom: 0.75rem; }

.page-hero p {
  max-width: 40rem;
  margin: 0;
}

.content-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  margin-bottom: 3rem;
}

.content-panel h2 {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
}

.content-panel h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content-panel h3 {
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { margin: 0 0.4rem; color: var(--text-dim); }

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
  text-align: center;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--accent-hot);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.error-page h1 { margin-bottom: 0.75rem; }
.error-page p { max-width: 28rem; margin: 0 auto 1.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #08080a;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .brand-name {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li { margin-bottom: 0.45rem; }

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--accent-hot); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text-muted); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Mobile */
@media (max-width: 980px) {
  .grid-cats { grid-template-columns: repeat(2, 1fr); }
  .vlog-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .showcase,
  .showcase:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .showcase-media img {
    max-height: 480px;
    aspect-ratio: 9 / 14;
  }
  .toc ol { columns: 1; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(12, 12, 16, 0.96);
    backdrop-filter: blur(12px);
    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.25s ease, opacity 0.25s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
  }

  .hero {
    min-height: 78vh;
    padding: 2.5rem 0 2.5rem;
    align-items: flex-end;
  }

  .hero-media img {
    object-position: center 15%;
    opacity: 0.5;
  }

  .section { padding: 3rem 0; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .brand-tag { display: none; }
}

@media (max-width: 480px) {
  .grid-cats { gap: 0.7rem; }
  .cat-card h3 { font-size: 1rem; }
  .vlog-grid { gap: 0.7rem; }
  .cta-row { flex-direction: column; }
  .btn { width: 100%; }
}
