/* 糖心Vlog传媒官网 - txjishu.com */
:root {
  --brand: #e91e8c;
  --brand-dark: #c2186b;
  --brand-soft: #fff0f7;
  --accent: #ff6b35;
  --purple: #8e24aa;
  --text: #1a1a2e;
  --text-secondary: #4a4a68;
  --muted: #6b6b85;
  --border: #ead5e0;
  --bg: #fffafc;
  --bg-alt: #fff5f9;
  --white: #ffffff;
  --shadow: 0 8px 28px rgba(233, 30, 140, 0.1);
  --radius: 12px;
  --max: 1080px;
  --header-h: 68px;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "ZCOOL XiaoWei", "Noto Sans SC", "PingFang SC", 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);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(233, 30, 140, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 107, 53, 0.06), transparent 45%),
    var(--bg);
  line-height: 1.85;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.35em;
}

li {
  margin: 0.4em 0;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--brand), var(--purple), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.25s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--brand);
  text-decoration: none;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px !important;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--purple));
  color: var(--white) !important;
  font-weight: 600 !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  color: var(--white) !important;
  filter: brightness(1.05);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-brand img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  line-height: 1.35;
  margin-bottom: 14px;
  color: var(--text);
}

.hero-lead {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--purple));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(233, 30, 140, 0.28);
}

.btn-primary:hover {
  color: var(--white);
  filter: brightness(1.06);
}

.btn-secondary {
  background: var(--white);
  color: var(--brand);
  border: 1.5px solid var(--brand);
}

.btn-secondary:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 10px;
  color: var(--text);
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.4;
}

.section h3 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: var(--text);
  padding-left: 12px;
  border-left: 3px solid var(--brand);
}

.section h4 {
  font-size: 1.05rem;
  margin: 18px 0 8px;
  color: var(--brand-dark);
}

.prose p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.feature-item {
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.25s, transform 0.25s;
}

.feature-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-item h3 {
  border: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--brand-dark);
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin: 0;
}

/* Screenshot gallery */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.shot-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.shot-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #f5e6ee;
}

.shot-card figcaption {
  padding: 14px 16px 18px;
}

.shot-card h3 {
  border: none;
  padding: 0;
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.shot-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

/* Channel list */
.channel-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.channel-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.channel-num {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--purple));
  flex-shrink: 0;
}

.channel-item h3 {
  border: none;
  padding: 0;
  margin: 0 0 6px;
}

.channel-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat-item {
  text-align: center;
  padding: 24px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.step {
  position: relative;
  padding: 20px 20px 20px 72px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--purple));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step h3 {
  border: none;
  padding: 0;
  margin: 0 0 6px;
}

.step p {
  margin: 0;
  color: var(--text-secondary);
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 24px auto 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  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);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-body {
  border-top-color: var(--border);
  padding-top: 14px;
}

/* CTA banner */
.cta-banner {
  text-align: center;
  padding: 48px 28px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(233, 30, 140, 0.95), rgba(142, 36, 170, 0.92)),
    url("/logo.png") center/cover;
  color: var(--white);
  margin: 16px 0;
  box-shadow: var(--shadow);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 10px;
  font-family: var(--font-display);
}

.cta-banner p {
  opacity: 0.92;
  margin-bottom: 22px;
  max-width: 560px;
  margin-inline: auto;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--brand);
  box-shadow: none;
}

.cta-banner .btn-primary:hover {
  color: var(--brand-dark);
  filter: none;
}

/* Page header (inner pages) */
.page-header {
  padding: 40px 0 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  background: var(--bg-alt);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 10px;
}

.page-header p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

.page-content {
  padding-bottom: 56px;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-soft);
}

.page-content h3 {
  font-size: 1.1rem;
  margin: 22px 0 8px;
  color: var(--brand-dark);
}

.page-content p,
.page-content li {
  color: var(--text-secondary);
}

.page-content p {
  margin-bottom: 1em;
}

.related-nav {
  margin-top: 40px;
  padding: 24px;
  background: var(--brand-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.related-nav h2 {
  font-size: 1.15rem;
  margin: 0 0 12px;
  border: none;
  padding: 0;
}

.related-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.related-nav li {
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  margin: 0 6px;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--brand), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 420px;
}

/* Footer */
.site-footer {
  background: #1a1220;
  color: #c9b8c4;
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--white);
  text-decoration: none;
}

.footer-brand:hover {
  text-decoration: none;
  color: var(--white);
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.footer-about {
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 320px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin: 8px 0;
}

.footer-col a {
  color: #c9b8c4;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #ff8ec8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #8a7a86;
}

.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 32px;
}

.toc h2 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  text-align: left;
  font-family: var(--font);
}

.toc ol {
  margin: 0;
  color: var(--text-secondary);
}

.toc a {
  color: var(--text-secondary);
}

.toc a:hover {
  color: var(--brand);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.member-grid figure {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.member-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.member-grid figcaption {
  padding: 10px 12px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.guide-block {
  margin: 28px 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.guide-block h3 {
  margin-top: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.shot-card,
.feature-item {
  animation: fadeUp 0.6s ease both;
}

.shot-card:nth-child(2) { animation-delay: 0.08s; }
.shot-card:nth-child(3) { animation-delay: 0.16s; }
.shot-card:nth-child(4) { animation-delay: 0.24s; }
.shot-card:nth-child(5) { animation-delay: 0.32s; }
.shot-card:nth-child(6) { animation-delay: 0.4s; }

/* Mobile */
@media (max-width: 900px) {
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .channel-item {
    grid-template-columns: 56px 1fr;
  }

  .channel-num {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    margin: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu a {
    display: block;
    padding: 14px 4px;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 12px;
    justify-content: center;
    border: none !important;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .shot-grid,
  .member-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .section {
    padding: 36px 0;
  }
}
