/* 糖心Vlog 首页专属样式 - tvlog.cfd */

.home-page { background: #080808; }

/* ── Hero ── */
.home-hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 184, 0, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(214, 0, 141, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(214, 0, 141, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.home-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--primary-start);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.home-hero h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: 18px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 520px;
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.home-stats {
  display: flex;
  gap: 0;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.home-stats li {
  flex: 1;
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid var(--border-color);
}
.home-stats li:last-child { border-right: none; }

.home-stats strong {
  display: block;
  font-size: 1.15rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2px;
}

.home-stats span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.home-phone-stack {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.home-phone-main {
  width: 260px;
  border-radius: 24px;
  border: 2px solid var(--border-color);
  box-shadow: 0 24px 60px rgba(214, 0, 141, 0.25), 0 0 0 1px rgba(255, 184, 0, 0.08);
  z-index: 2;
}

.home-phone-sub {
  position: absolute;
  right: 0;
  bottom: 20px;
  width: 160px;
  border-radius: 18px;
  border: 2px solid var(--border-color);
  opacity: 0.75;
  transform: rotate(6deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* ── Section 通用 ── */
.home-section { padding: 56px 0; }
.home-section-alt { background: rgba(255, 255, 255, 0.015); }

.home-section-head {
  text-align: center;
  margin-bottom: 40px;
}

.home-section-head h2 {
  font-size: 1.65rem;
  margin-bottom: 8px;
}

.home-section-head h2 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-section-head p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Bento 优势网格 ── */
.home-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.home-bento-main {
  grid-row: span 2;
  background: linear-gradient(145deg, rgba(255, 184, 0, 0.08), rgba(214, 0, 141, 0.1));
  border: 1px solid rgba(255, 184, 0, 0.2);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-bento-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 16px;
}

.home-bento-main h3 {
  font-size: 1.25rem;
  color: var(--primary-start);
  margin-bottom: 12px;
}

.home-bento-main p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.75;
}

.home-bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.home-bento-item:hover {
  border-color: rgba(214, 0, 141, 0.35);
  transform: translateY(-2px);
}

.home-bento-item h3 {
  font-size: 0.98rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.home-bento-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── 频道横向滚动 ── */
.home-channel-scroll {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.home-channel-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 9/14;
  transition: transform 0.25s, box-shadow 0.25s;
}

.home-channel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(214, 0, 141, 0.2);
}

.home-channel-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.home-channel-card:hover img { transform: scale(1.06); }

.home-channel-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.home-channel-info h3 { font-size: 0.88rem; font-weight: 700; }
.home-channel-info p { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ── Zigzag 功能展示 ── */
.home-zigzag { margin-bottom: 32px; }

.home-zigzag-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}

.home-zigzag-reverse { direction: rtl; }
.home-zigzag-reverse > * { direction: ltr; }

.home-zigzag-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.home-zigzag-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.home-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(214, 0, 141, 0.15);
  border: 1px solid rgba(214, 0, 141, 0.3);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--primary-end);
  margin-bottom: 10px;
}

.home-zigzag-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.home-zigzag-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ── 功能小卡片 ── */
.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.home-feature-mini {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.home-feature-mini:hover { border-color: rgba(255, 184, 0, 0.3); }

.home-feature-mini img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.home-feature-mini h3 {
  font-size: 0.9rem;
  padding: 12px 14px 4px;
}

.home-feature-mini p {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0 14px 14px;
  line-height: 1.55;
}

/* ── Mosaic VLOG ── */
.home-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}

.home-mosaic-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.home-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.home-mosaic-item:hover img { transform: scale(1.05); }

.home-mosaic-item span {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

.home-mosaic-lg { grid-row: span 2; }
.home-mosaic-wide { grid-column: span 2; }

/* ── APP 下载 ── */
.home-download {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.06), rgba(214, 0, 141, 0.08));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
}

.home-download-visual {
  display: flex;
  justify-content: center;
}

.home-download-visual img {
  max-width: 240px;
  border-radius: 20px;
  border: 2px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(214, 0, 141, 0.2);
}

.home-download-body h2 {
  font-size: 1.4rem;
  color: var(--primary-start);
  margin-bottom: 14px;
}

.home-download-body > p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 18px;
  line-height: 1.75;
}

.home-download-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.home-download-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.home-download-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-start);
  font-weight: 700;
}

.home-download-steps {
  margin: 0 0 14px 20px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.home-download-steps li { margin-bottom: 6px; }

.home-download-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── 文章 + 目录 ── */
.home-article-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
}

.home-toc {
  position: sticky;
  top: calc(var(--header-h) + 80px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 16px;
}

.home-toc h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.home-toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}

.home-toc a:hover {
  background: rgba(255, 184, 0, 0.08);
  color: var(--primary-start);
}

.home-article { margin: 0; }

/* ── 社区卡片 ── */
.home-community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-community-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 3/4;
}

.home-community-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.home-community-card:hover img { transform: scale(1.05); }

.home-community-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.88));
}

.home-community-overlay h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.home-community-overlay p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.home-faq { max-width: 760px; }

.home-links { margin-bottom: 8px; }

/* ── 响应式 ── */
@media (max-width: 1100px) {
  .home-channel-scroll { grid-template-columns: repeat(4, 1fr); }
  .home-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .home-community-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .home-hero-text { text-align: center; }
  .home-hero-desc { margin-left: auto; margin-right: auto; }
  .home-hero-actions { justify-content: center; }
  .home-phone-stack { min-height: 340px; }
  .home-phone-main { width: 220px; }
  .home-phone-sub { width: 130px; right: 10%; }

  .home-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .home-bento-main { grid-row: span 1; grid-column: span 2; }

  .home-zigzag-item,
  .home-zigzag-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .home-download { grid-template-columns: 1fr; padding: 28px; }
  .home-article-wrap { grid-template-columns: 1fr; }
  .home-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px;
  }
  .home-toc h3 { width: 100%; margin-bottom: 4px; }
  .home-toc nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .home-toc a { padding: 5px 10px; background: rgba(255,255,255,0.04); }

  .home-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .home-mosaic-wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .home-hero { padding: 36px 0 48px; }
  .home-hero h1 { font-size: 1.65rem; }
  .home-stats { flex-wrap: wrap; }
  .home-stats li { flex: 1 1 45%; border-bottom: 1px solid var(--border-color); }
  .home-stats li:nth-child(2) { border-right: none; }

  .home-bento { grid-template-columns: 1fr; }
  .home-bento-main { grid-column: span 1; }

  .home-channel-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .home-channel-card {
    flex: 0 0 130px;
    scroll-snap-align: start;
  }

  .home-feature-grid { grid-template-columns: 1fr 1fr; }
  .home-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .home-mosaic-lg { grid-row: span 1; }
  .home-mosaic-wide { grid-column: span 2; }
  .home-community-grid { grid-template-columns: 1fr; }
  .home-community-card { aspect-ratio: 16/9; }

  .home-section { padding: 40px 0; }
  .home-hero-actions { flex-direction: column; }
  .home-hero-actions .btn-primary,
  .home-hero-actions .btn-outline { text-align: center; }
}
