/* 糖心vlog - txweb.monster */
:root {
  --brand-orange: #ff8a3d;
  --brand-pink: #e83a8a;
  --brand-magenta: #c41d7a;
  --grad: linear-gradient(135deg, #ff8a3d 0%, #e83a8a 55%, #c41d7a 100%);
  --grad-soft: linear-gradient(160deg, #fff5ef 0%, #ffe8f3 45%, #fff0f6 100%);
  --bg: #faf7f8;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #555;
  --muted: #888;
  --border: #eee0e6;
  --shadow: 0 8px 28px rgba(196, 29, 122, 0.08);
  --radius: 14px;
  --max: 1100px;
  --nav-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);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-pink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-magenta); }
ul { list-style: none; }

.container { width: min(100% - 32px, 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(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  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: 4px;
}

.nav a {
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-pink);
  background: #fff0f6;
}

.nav-cta {
  background: var(--grad) !important;
  color: #fff !important;
  font-weight: 600;
  margin-left: 8px;
}

.nav-cta:hover { opacity: 0.92; color: #fff !important; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .25s;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-soft);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(255, 138, 61, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(232, 58, 138, 0.12), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-brand {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-brand em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.45;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 58, 138, 0.35);
}

.btn-primary:hover { color: #fff; opacity: 0.95; }

.btn-secondary {
  background: var(--surface);
  color: var(--brand-pink);
  border: 1.5px solid #f5c0d8;
}

.btn-secondary:hover { background: #fff5f9; color: var(--brand-magenta); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-phone {
  width: min(280px, 100%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(196, 29, 122, 0.22);
  border: 3px solid #fff;
  background: #111;
  animation: floatY 5s ease-in-out infinite;
}

.hero-phone img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt { background: var(--surface); }

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-secondary);
  max-width: 40em;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .25s, transform .25s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Screenshot showcase */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shot-item {
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
  transition: transform .3s;
}

.shot-item:hover { transform: scale(1.02); }

.shot-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.shot-caption {
  background: var(--surface);
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Category chips */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cat-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #222;
}

.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .4s;
}

.cat-item:hover img { transform: scale(1.05); }

.cat-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

/* Content prose (SEO) */
.prose {
  max-width: 780px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 2em 0 0.7em;
  padding-bottom: 0.35em;
  border-bottom: 2px solid var(--border);
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 1.15rem;
  margin: 1.6em 0 0.55em;
  color: #333;
}

.prose p {
  margin-bottom: 1.1em;
  color: var(--text-secondary);
  text-align: justify;
}

.prose ul, .prose ol {
  margin: 0 0 1.2em 1.25em;
  color: var(--text-secondary);
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li { margin-bottom: 0.45em; }

.prose strong { color: var(--text); }

.prose a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.seo-box {
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 28px 0;
}

.seo-box h3 { margin-top: 0; }

.cta-banner {
  background: var(--grad);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  color: #fff;
  margin: 48px 0 0;
}

.cta-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  border: none;
  color: #fff;
}

.cta-banner p {
  opacity: 0.92;
  margin-bottom: 22px;
  color: #fff;
  text-align: center;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand-pink);
  box-shadow: none;
}

.cta-banner .btn-primary:hover { color: var(--brand-magenta); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { color: var(--text-secondary); font-size: 0.95rem; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brand-pink);
  font-weight: 400;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--grad-soft);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 36em;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-pink); }

/* Legal / about content */
.page-content {
  padding: 48px 0 64px;
}

.page-content .prose h1 {
  font-size: 1.8rem;
  margin-bottom: 0.8em;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}

.error-code {
  font-size: clamp(5rem, 15vw, 8rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 28em;
}

/* Footer */
.site-footer {
  background: #1a1218;
  color: #c9b8c0;
  padding: 48px 0 28px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: #c9b8c0;
  padding: 4px 0;
  font-size: 0.9rem;
}

.footer-col a:hover { color: #ff9ec8; }

.footer-bottom {
  border-top: 1px solid #33252c;
  padding-top: 20px;
  font-size: 0.85rem;
  text-align: center;
  color: #8a7a82;
}

.footer-bottom a { color: #8a7a82; }
.footer-bottom a:hover { color: #ff9ec8; }

/* Related links */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.related-links a {
  background: #fff0f6;
  color: var(--brand-pink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.related-links a:hover {
  background: var(--grad);
  color: #fff;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-phone { width: 200px; animation: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: .28s ease;
    gap: 2px;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 16px;
    border-radius: 10px;
  }

  .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }

  .section { padding: 48px 0; }
  .hero { padding: 36px 0 32px; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .prose p { text-align: left; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}
