/* 糖心Vlog 官网样式 */
:root {
  --primary: #ff4d8d;
  --primary-dark: #e03a75;
  --secondary: #7c3aed;
  --bg-dark: #0f0f14;
  --bg-card: #1a1a24;
  --bg-card-hover: #222230;
  --text: #f0f0f5;
  --text-muted: #a0a0b0;
  --border: #2a2a3a;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --max-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ff7aad;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-link img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo-link:hover {
  color: var(--text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: var(--bg-card);
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 77, 141, 0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* Main content */
main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.12) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: rgba(26, 26, 36, 0.5);
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Image gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Content article */
.article-content {
  max-width: 860px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--primary);
}

.article-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.article-content ul,
.article-content ol {
  margin: 0 0 16px 24px;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 8px;
}

.article-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Membership */
.membership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.membership-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.membership-card:hover {
  border-color: var(--primary);
}

.membership-card figcaption {
  padding: 14px;
  text-align: center;
  font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Page header */
.page-header {
  padding: 48px 0 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.1) 0%, transparent 100%);
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
}

/* Forms */
.form-page {
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-card h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-align: center;
}

.form-card .form-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-card .btn {
  width: 100%;
  margin-top: 8px;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Legal pages */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--primary);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

/* Error pages */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.15), rgba(124, 58, 237, 0.15));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  margin: 0 20px;
}

.cta-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Internal links block */
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.internal-links a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.internal-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .features-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid,
  .membership-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .features-grid,
  .gallery-grid,
  .stats-grid,
  .membership-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* 图文展示区块 */
.showcase-block {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.showcase-row.reverse .showcase-img {
  order: 2;
}

.showcase-row.reverse .showcase-text {
  order: 1;
}

.showcase-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.showcase-img img {
  width: 100%;
  display: block;
}

.showcase-text h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.showcase-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.97rem;
}

.showcase-text ul {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.showcase-text li {
  margin-bottom: 6px;
}

.showcase-tag {
  display: inline-block;
  background: rgba(255, 77, 141, 0.15);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* 全宽图片横幅 */
.full-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.full-banner img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.full-banner-caption {
  background: var(--bg-card);
  padding: 24px 28px;
  border-top: 1px solid var(--border);
}

.full-banner-caption h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.full-banner-caption p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 会员详情卡片 */
.membership-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.membership-detail-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  align-items: start;
  transition: border-color 0.2s;
}

.membership-detail-card:hover {
  border-color: var(--primary);
}

.membership-detail-card img {
  border-radius: 8px;
  width: 100%;
}

.membership-detail-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.membership-detail-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.membership-detail-card .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

/* 三列图文卡片 */
.triple-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.triple-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.triple-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.triple-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.triple-card-body {
  padding: 20px;
}

.triple-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.triple-card-body p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
  }

  .showcase-row.reverse .showcase-img,
  .showcase-row.reverse .showcase-text {
    order: unset;
  }

  .membership-detail-grid {
    grid-template-columns: 1fr;
  }

  .membership-detail-card {
    grid-template-columns: 140px 1fr;
  }

  .triple-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .membership-detail-card {
    grid-template-columns: 1fr;
  }
}

/* APP 推荐广告栏 */
.ads-bar {
  background: linear-gradient(180deg, rgba(255, 77, 141, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 0 10px;
}

#applist {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.applist-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 4px;
  background: transparent;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}

#ads img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid rgba(255, 77, 141, 0.25);
  background: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  padding: 2px;
}

#ads a:hover img,
#ads a:active img {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 22px rgba(255, 77, 141, 0.35);
  border-color: var(--primary);
}

#ads figcaption,
#ads .caption {
  width: 72px;
  height: 16px;
  line-height: 16px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .ads-bar {
    padding: 12px 0 8px;
  }

  #ads > div {
    width: 72px;
  }

  #ads img {
    width: 62px;
    height: 62px;
  }
}
