/* 糖心Vlog · vlog.lat */
:root {
  --brand: #e85a4f;
  --brand-deep: #d4453a;
  --brand-soft: #fff1ef;
  --accent: #f0a05a;
  --ink: #1c1c1f;
  --ink-soft: #5a5a66;
  --mute: #8b8b97;
  --line: #ebebef;
  --bg: #f7f6f4;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 36px rgba(28, 28, 31, 0.07);
  --max: 1120px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #ffe8e0 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #fff3d8 0%, transparent 50%),
    var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-offset, 68px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* 顶部固定壳：导航 + 广告 */
#app-fixed-top {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  transform: none !important;
  -webkit-transform: none !important;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Header（在固定壳内，不再单独 sticky/fixed） */
.site-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

/* 广告栏占位（由 ads.js 填充，首页/关于我们/404） */
#site-ads-wrap:empty {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  font-size: 1.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--brand-deep);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-lead {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 36em;
}

.cta-row {
  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-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #f08a4a 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 90, 79, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  color: var(--brand-deep);
  border-color: #f0c9c4;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid #fff;
  animation: floaty 6s ease-in-out infinite;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 18% -8% -8% 18%;
  background: linear-gradient(135deg, rgba(232, 90, 79, 0.18), rgba(240, 160, 90, 0.12));
  border-radius: 28px;
  z-index: -1;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeUp 0.7s ease both;
}

.reveal-delay {
  animation-delay: 0.12s;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 720px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

/* Feature / category grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-item,
.shot-card,
.info-block,
.legal-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-item {
  padding: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-item img,
.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #eee;
}

.shot-card img.wide,
.feature-item img.wide {
  aspect-ratio: 3 / 4;
}

.feature-body,
.shot-body {
  padding: 16px 18px 18px;
}

.feature-body h3,
.shot-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-body p,
.shot-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* Content prose */
.prose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.prose h2,
.prose h3 {
  font-family: var(--display);
  scroll-margin-top: 88px;
}

.prose h2 {
  margin: 1.6em 0 0.7em;
  font-size: 1.45rem;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.3em 0 0.55em;
  font-size: 1.15rem;
}

.prose p {
  margin: 0 0 1em;
  color: #33333d;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
  color: #33333d;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  background: var(--brand-soft);
  border: 1px solid #f5d8d3;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.toc a {
  text-decoration: none;
}

.highlight-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin: 28px 0;
}

.highlight-row img {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.kpi-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
}

.kpi-item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--brand-deep);
  margin-bottom: 4px;
}

.kpi-item span {
  color: var(--mute);
  font-size: 0.88rem;
}

/* Page hero for inner pages */
.page-hero {
  padding: 42px 0 18px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40em;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--mute);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--mute);
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-wrap h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  margin: 0 0 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-wrap p {
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  background: #19191d;
  color: #d7d7de;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: #b8b8c2;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.copyright {
  border-top: 1px solid #2c2c33;
  padding-top: 18px;
  font-size: 0.85rem;
  color: #8e8e99;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

/* Related links box */
.related {
  margin-top: 36px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.related ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--ink-soft);
}

.related li {
  margin-bottom: 6px;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .highlight-row,
  .footer-grid,
  .grid-3,
  .grid-4,
  .grid-2,
  .kpi {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    z-index: 110;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .hero-grid,
  .highlight-row,
  .footer-grid,
  .grid-3,
  .grid-2,
  .kpi {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .prose {
    padding: 20px 18px;
  }

  .section {
    padding: 40px 0;
  }

  .feature-item img,
  .shot-card img {
    aspect-ratio: 3 / 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
