/* 星辰之旅页面（/star/）专属样式
 * 页面结构见 source/star/index.md，特效见 /js/butterfly/stars-page.js
 */

/* ---- Hero：宇宙舷窗（深空底 + 星空画布 + 轮播语录） ---- */
.stars-hero {
  position: relative;
  height: 72vh;
  min-height: 480px;
  border-radius: 12px;
  overflow: hidden;
  /* 深空渐变底色，画布上的星星由 JS 绘制 */
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 2rem;
}
#stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stars-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 2rem;
  max-width: 640px;
  color: #fff;
}
.stars-hero-kicker {
  letter-spacing: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}
.stars-hero-title {
  font-size: 2.6em;
  margin: 12px 0 24px;
  letter-spacing: 8px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}
.stars-quote {
  display: none;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
}
.stars-quote.active {
  display: block;
  animation: stars-fade 0.8s ease;
}
@keyframes stars-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- 星座导航：三个文章星区卡片 ---- */
.stars-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.stars-constellation {
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  background: var(--card-bg);
  padding: 18px;
  transition: box-shadow 0.3s;
}
.stars-constellation:hover {
  box-shadow: 0 4px 16px rgba(57, 197, 187, 0.18);
}
.stars-constellation-title {
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e8e8e8;
}
.stars-constellation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stars-constellation li {
  margin: 4px 0;
}
.stars-constellation a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.25s;
}
.stars-constellation a:hover {
  background: rgba(57, 197, 187, 0.12);
  transform: translateX(4px);
}

/* 暗黑模式适配 */
[data-theme='dark'] .stars-constellation {
  border-color: #323232;
}
[data-theme='dark'] .stars-constellation-title {
  border-bottom-color: #323232;
}

/* 移动端 */
@media (max-width: 768px) {
  .stars-hero {
    height: 60vh;
    min-height: 380px;
    border-radius: 8px;
  }
  .stars-hero-title {
    font-size: 2em;
    letter-spacing: 5px;
  }
  .stars-quote {
    font-size: 13px;
  }
}
