/* 糖心Vlog - tx-log.quest */
:root {
  --brand-magenta: #d81b60;
  --brand-purple: #8e24aa;
  --brand-orange: #fb8c00;
  --brand-yellow: #ffd600;
  --gradient: linear-gradient(135deg, #ffd600 0%, #fb8c00 35%, #d81b60 70%, #8e24aa 100%);
  --gradient-soft: linear-gradient(135deg, rgba(251,140,0,.12), rgba(216,27,96,.1), rgba(142,36,170,.12));
  --text: #1a1a1a;
  --text-secondary: #555;
  --muted: #777;
  --bg: #faf7fb;
  --bg-alt: #fff;
  --border: #eee0ef;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(142, 36, 170, 0.08);
  --max: 1100px;
  --header-h: 64px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-magenta); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-purple); }
ul, ol { padding-left: 1.25em; }
h1, h2, h3, h4 { line-height: 1.35; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 2rem 0 .85rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 .6rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: .6rem;
  color: var(--text); font-weight: 800; font-size: 1.1rem;
}
.logo img {
  width: 40px; height: 40px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(216,27,96,.25);
}
.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.nav a {
  color: var(--text-secondary);
  font-size: .92rem;
  padding: .4rem .7rem;
  border-radius: 8px;
  font-weight: 500;
}
.nav a:hover, .nav a.active {
  color: var(--brand-magenta);
  background: rgba(216,27,96,.08);
}
.menu-toggle {
  display: none;
  border: none; background: transparent;
  width: 42px; height: 42px;
  cursor: pointer; border-radius: 8px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; margin: 5px auto;
  background: var(--text); border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-soft);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,214,0,.25), transparent 50%),
    radial-gradient(ellipse at 80% 10%, rgba(216,27,96,.18), transparent 45%),
    radial-gradient(ellipse at 60% 90%, rgba(142,36,170,.15), transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand-magenta);
  background: rgba(216,27,96,.1);
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}
.hero h1 {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .8rem;
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
  max-width: 36em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 6px 18px rgba(216,27,96,.3);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  color: var(--brand-purple);
  background: #fff;
  border: 1px solid var(--border);
}
.hero-visual {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #fff;
}
.hero-visual img { width: 100%; }

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}
.section {
  padding: 2.5rem 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-intro {
  max-width: 48em;
  margin-bottom: 1.5rem;
}
.section-kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: .4rem;
}

/* Feature / category grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.shot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot img { width: 100%; aspect-ratio: 9/16; object-fit: cover; object-position: top; }
.shot figcaption {
  padding: .75rem 1rem 1rem;
  font-size: .9rem;
  color: var(--text-secondary);
}
.shot figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: .25rem;
  font-size: .98rem;
}
.feature-block {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 1.75rem;
  align-items: center;
  margin: 2rem 0;
}
.feature-block.reverse { grid-template-columns: 1.15fr .85fr; }
.feature-block.reverse .feature-copy { order: 2; }
.feature-block.reverse .feature-media { order: 1; }
.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}
.feature-media img { width: 100%; }
.feature-copy h3 {
  font-size: 1.25rem;
  margin-top: 0;
}
.tag-list {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 1rem 0 0;
  list-style: none;
  padding: 0;
}
.tag-list a, .tag-list span {
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: rgba(142,36,170,.08);
  color: var(--brand-purple);
  font-size: .85rem;
  font-weight: 500;
}
.tag-list a:hover {
  background: rgba(216,27,96,.12);
  color: var(--brand-magenta);
}

/* Content prose */
.prose { max-width: 48em; }
.prose h2 { padding-top: .5rem; border-top: 1px solid transparent; }
.prose ul, .prose ol { margin: 0 0 1rem; color: var(--text-secondary); }
.prose li { margin-bottom: .4rem; }
.toc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow);
}
.toc h2 { margin: 0 0 .75rem; font-size: 1.1rem; }
.toc ol { margin: 0; color: var(--text-secondary); }
.toc a { font-weight: 500; }

.highlight-box {
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.highlight-box h3 { margin-top: 0; }

.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: .75rem;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--brand-magenta);
  font-weight: 800;
}
.faq details[open] summary::before { content: "–"; }
.faq details p { margin: .75rem 0 0; }

/* Breadcrumb / page header */
.page-hero {
  background: var(--gradient-soft);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 1.75rem;
}
.breadcrumb {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .75rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-magenta); }
.page-body { padding: 2rem 0 3rem; }

/* 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-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .5rem;
}
.error-page h1 { margin-bottom: .75rem; }
.error-page p { max-width: 28em; margin: 0 auto 1.5rem; }

/* Footer */
.site-footer {
  background: #1f1428;
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: .85rem;
}
.site-footer a {
  color: rgba(255,255,255,.7);
  display: block;
  margin-bottom: .45rem;
  font-size: .92rem;
}
.site-footer a:hover { color: #ffb74d; }
.footer-brand {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: .85rem;
  color: #fff; font-weight: 800;
}
.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  text-align: center;
}

/* Internal link strip */
.ilinks {
  display: flex; flex-wrap: wrap; gap: .6rem .9rem;
  margin: 1.25rem 0;
}
.ilinks a {
  font-size: .9rem;
  font-weight: 600;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(216,27,96,.35);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 1.75rem 1rem 2rem; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .feature-block,
  .feature-block.reverse { grid-template-columns: 1fr; }
  .feature-block.reverse .feature-copy,
  .feature-block.reverse .feature-media { order: unset; }
  .feature-media { max-width: 380px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: .75rem;
    gap: .15rem;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .shot img { aspect-ratio: 3/4; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .section { padding: 1.75rem 0; }
}

@media (min-width: 721px) {
  .nav { display: flex !important; }
}
