/* 糖心vlog · txlog.quest */
:root {
  --brand: #e91e63;
  --brand2: #ff6d00;
  --grad: linear-gradient(135deg, #ff8c00 0%, #e91e63 55%, #c2185b 100%);
  --bg: #faf7f8;
  --bg2: #fff;
  --text: #1a1a1a;
  --muted: #666;
  --line: #eee;
  --max: 1100px;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(233, 30, 99, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand2); }
ul, ol { padding-left: 1.25rem; }

.container { width: min(100% - 2rem, var(--max)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active { color: var(--brand); }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  margin: 0 auto;
  transition: .2s;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  color: #fff;
  padding: 4rem 0 3.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.12), transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.15;
  margin-bottom: .75rem;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  opacity: .95;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-desc {
  font-size: 1.05rem;
  opacity: .9;
  max-width: 36em;
  margin-bottom: 1.75rem;
}

.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .2s, background .2s, color .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: #fff;
  color: var(--brand);
}

.btn-primary:hover { color: var(--brand2); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}

.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.hero-visual {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  border: 3px solid rgba(255,255,255,.35);
}

.hero-visual img { width: 100%; }

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt { background: var(--bg2); }

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: .5rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-head p {
  color: var(--muted);
  max-width: 40em;
  margin: 0 auto;
}

.prose {
  max-width: 48rem;
  margin: 0 auto;
}

.prose h2, .prose h3 {
  margin: 1.75rem 0 .75rem;
  line-height: 1.35;
}

.prose h2 { font-size: 1.45rem; color: #222; }
.prose h3 { font-size: 1.15rem; color: #333; }

.prose p { margin-bottom: 1rem; color: #333; }
.prose ul, .prose ol { margin: 0 0 1rem; color: #333; }
.prose li { margin-bottom: .4rem; }

.lead {
  font-size: 1.08rem;
  color: #444;
}

/* Feature / category grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.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;
}

.feature-item {
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(233, 30, 99, 0.08);
  transition: transform .25s;
}

.feature-item:hover { transform: translateY(-4px); }

.feature-item img { width: 100%; aspect-ratio: 9/16; object-fit: cover; object-position: top; }

.feature-item .body {
  padding: 1rem 1.1rem 1.2rem;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: .35rem;
}

.feature-item p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}

.shot-card {
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.shot-card .cap {
  padding: .7rem .85rem;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  margin-bottom: .75rem;
}

.step h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq-list { max-width: 48rem; margin: 0 auto; }

.faq-item {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: .75rem;
}

.faq-item h3 {
  font-size: 1.02rem;
  margin-bottom: .4rem;
}

.faq-item p { color: var(--muted); font-size: .95rem; }

/* CTA band */
.cta-band {
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}

.cta-band h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: .6rem;
}

.cta-band p {
  opacity: .92;
  margin-bottom: 1.25rem;
}

.cta-band .btn-primary { color: var(--brand); }

/* Page banner (inner pages) */
.page-banner {
  background: var(--grad);
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin-bottom: .4rem;
}

.page-banner p { opacity: .9; }

.page-content {
  padding: 2.5rem 0 3.5rem;
}

.breadcrumb {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: .5rem;
}

.error-page h1 { font-size: 1.5rem; margin-bottom: .75rem; }
.error-page p { color: var(--muted); margin-bottom: 1.5rem; }

/* Footer */
.site-footer {
  background: #1f1a1c;
  color: #ccc;
  padding: 2.75rem 0 1.5rem;
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .75rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-footer p { color: #999; line-height: 1.7; }

.site-footer h4 {
  color: #fff;
  margin-bottom: .75rem;
  font-size: 1rem;
}

.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #bbb; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.25rem;
  text-align: center;
  color: #777;
  font-size: .85rem;
}

/* TOC for long homepage */
.toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 0 auto 2rem;
  max-width: 48rem;
}

.toc h2 {
  font-size: 1.05rem;
  margin-bottom: .6rem;
}

.toc ol { margin: 0; color: var(--muted); }
.toc a { color: #555; }
.toc a:hover { color: var(--brand); }

.highlight-box {
  background: linear-gradient(135deg, rgba(255,140,0,.08), rgba(233,30,99,.08));
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0;
}

.keyword-tags span {
  background: #fff;
  border: 1px solid var(--line);
  padding: .3rem .75rem;
  border-radius: 999px;
  font-size: .85rem;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 280px; margin: 0 auto; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }

  .nav.open { display: flex; }

  .nav a {
    padding: .85rem 1rem;
    border-radius: 8px;
  }

  .nav a:hover { background: #faf0f4; }

  .hero { padding: 2.5rem 0 2rem; }
  .section { padding: 2.5rem 0; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .feature-item img,
  .shot-card img { aspect-ratio: 3/4; }
}
