/* 糖心Vlog官方入口 — 首页专属样式 (tx-vlog.pics) */
.page-home {
  --hp-glow: rgba(255, 107, 53, 0.35);
  --hp-surface: rgba(22, 22, 22, 0.88);
  --hp-line: rgba(255, 255, 255, 0.06);
}

.page-home .hp-main {
  overflow-x: clip;
}

/* ── Hero ── */
.hp-hero {
  position: relative;
  padding: 56px 0 72px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 30%, rgba(255, 107, 53, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 70%, rgba(216, 27, 96, 0.14), transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 60%, #111 100%);
  pointer-events: none;
}

.hp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hp-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.5;
}

.hp-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(216, 27, 96, 0.1);
  border: 1px solid rgba(216, 27, 96, 0.28);
  border-radius: 999px;
}

.hp-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: hp-pulse 2s ease infinite;
}

@keyframes hp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hp-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hp-hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-hero-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 28px;
}

.hp-domain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 28px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.9rem;
  color: var(--primary);
  background: rgba(255, 107, 53, 0.08);
  border: 1px dashed rgba(255, 107, 53, 0.35);
  border-radius: 10px;
}

.hp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hp-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.hp-metrics li {
  flex: 1 1 100px;
  padding: 14px 16px;
  background: var(--hp-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.hp-metrics strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-metrics span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hp-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.hp-device-ring {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 53, 0.2);
  animation: hp-spin 24s linear infinite;
}

.hp-device-ring::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 16px var(--hp-glow);
}

@keyframes hp-spin {
  to { transform: rotate(360deg); }
}

.hp-device {
  position: relative;
  width: min(280px, 72vw);
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(145deg, #2a2a2a, #111);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 80px rgba(216, 27, 96, 0.15);
  z-index: 2;
}

.hp-device img {
  width: 100%;
  border-radius: 20px;
}

.hp-float-card {
  position: absolute;
  padding: 10px 14px;
  background: var(--hp-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.hp-float-card strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.hp-float-card--tl { top: 8%; left: 0; }
.hp-float-card--br { bottom: 12%; right: 0; }

/* ── Dock 快捷导航 ── */
.hp-dock-wrap {
  position: sticky;
  top: 61px;
  z-index: 50;
  padding: 12px 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.hp-dock {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.hp-dock::-webkit-scrollbar { display: none; }

.hp-dock a {
  flex-shrink: 0;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s;
}

.hp-dock a:hover,
.hp-dock a.is-active {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
}

/* ── 通用区块 ── */
.hp-block {
  padding: 72px 0;
}

.hp-block--alt {
  background: var(--bg-card);
}

.hp-head {
  margin-bottom: 44px;
}

.hp-head--center {
  text-align: center;
}

.hp-head--center p {
  max-width: 580px;
  margin: 0 auto;
}

.hp-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.hp-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.hp-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 8px;
}

.hp-head p {
  color: var(--text-secondary);
}

.hp-more {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ── 功能卡片 ── */
.hp-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hp-cap {
  padding: 26px 22px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-left: 3px solid transparent;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.hp-block--alt .hp-cap {
  background: #141414;
}

.hp-cap:hover {
  transform: translateY(-4px);
  border-left-color: var(--primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.hp-cap-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(255, 107, 53, 0.12);
  border-radius: 12px;
  margin-bottom: 14px;
}

.hp-cap h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.hp-cap p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── 频道展示 ── */
.hp-channel-spotlight {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.hp-channel-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 360px;
}

.hp-channel-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.hp-channel-hero figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 24px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
}

.hp-channel-hero h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.hp-channel-hero p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.hp-channel-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.hp-channel-tile {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hp-channel-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
  transition: transform 0.4s ease;
}

.hp-channel-tile:hover img {
  transform: scale(1.04);
}

.hp-channel-tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 14px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}

.hp-tag {
  display: inline-block;
  padding: 3px 10px;
  margin-right: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
  border-radius: 999px;
  vertical-align: middle;
}

.hp-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hp-channel-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.25s, border-color 0.25s;
}

.hp-channel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 53, 0.4);
}

.hp-channel-card img {
  width: 100%;
  aspect-ratio: 9/14;
  object-fit: cover;
}

.hp-channel-card figcaption {
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ── VLOG 网格 ── */
.hp-vlog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hp-vlog-card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  transition: transform 0.25s, box-shadow 0.25s;
}

.hp-block--alt .hp-vlog-card {
  background: #141414;
}

.hp-vlog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.hp-vlog-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.hp-vlog-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hp-vlog-num {
  font-weight: 700;
  color: var(--primary);
}

/* ── 生态服务 ── */
.hp-eco {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

.hp-eco-nav {
  position: sticky;
  top: 130px;
  list-style: none;
  padding: 20px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.hp-block--alt .hp-eco-nav {
  background: #141414;
}

.hp-eco-nav li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.hp-eco-nav li:last-child {
  border-bottom: none;
}

.hp-eco-nav strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.hp-eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hp-eco-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.hp-eco-card--wide {
  grid-column: span 2;
}

.hp-eco-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hp-eco-card:not(.hp-eco-card--wide) img {
  aspect-ratio: 9/14;
}

.hp-eco-card:hover img {
  transform: scale(1.04);
}

.hp-eco-card figcaption {
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ── 步骤指南 ── */
.hp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  counter-reset: hp-step;
}

.hp-step {
  position: relative;
  padding: 24px 20px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  counter-increment: hp-step;
}

.hp-block--alt .hp-step {
  background: #141414;
}

.hp-step::before {
  content: counter(hp-step, decimal-leading-zero);
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.hp-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ── 文章区 ── */
.hp-article-block {
  background: linear-gradient(180deg, #0d0d0d, #101010);
}

.hp-article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.hp-toc {
  position: sticky;
  top: 130px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.hp-toc h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hp-toc ul {
  list-style: none;
}

.hp-toc a {
  display: block;
  padding: 7px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.hp-toc a:last-child {
  border-bottom: none;
}

.hp-toc a:hover {
  color: var(--primary);
}

.hp-article-body {
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
}

/* ── FAQ ── */
.hp-faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.hp-faq .faq-item {
  margin-bottom: 0;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.hp-block--alt .hp-faq .faq-item {
  background: #141414;
}

/* ── 页脚装饰 ── */
.hp-footer.site-footer {
  position: relative;
}

.hp-footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

/* ── 响应式 ── */
@media (max-width: 1024px) {
  .hp-hero-grid {
    grid-template-columns: 1fr;
  }

  .hp-hero-visual {
    order: -1;
    min-height: 380px;
  }

  .hp-cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-channel-spotlight {
    grid-template-columns: 1fr;
  }

  .hp-channel-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hp-vlog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hp-eco {
    grid-template-columns: 1fr;
  }

  .hp-eco-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
  }

  .hp-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-article-layout {
    grid-template-columns: 1fr;
  }

  .hp-toc {
    position: static;
  }

  .hp-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hp-toc a {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    border-bottom: 1px solid var(--border);
  }

  .hp-faq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hp-hero {
    padding: 40px 0 48px;
    min-height: auto;
  }

  .hp-hero-visual {
    min-height: 320px;
  }

  .hp-device {
    width: 220px;
  }

  .hp-float-card {
    display: none;
  }

  .hp-dock-wrap {
    top: 55px;
  }

  .hp-block {
    padding: 52px 0;
  }

  .hp-cap-grid,
  .hp-channel-grid,
  .hp-vlog-grid,
  .hp-eco-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-eco-card--wide {
    grid-column: span 2;
  }

  .hp-head--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hp-article-body {
    padding: 28px 20px;
  }

  .hp-eco-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hp-metrics li {
    flex: 1 1 calc(50% - 6px);
  }

  .hp-steps {
    grid-template-columns: 1fr;
  }
}
