/* ==========================================================================
   「星空」致谢页：一个人一颗星
   ========================================================================== */

.stars-page {
  background:
    radial-gradient(1200px 700px at 50% -12%, rgba(56, 89, 168, 0.32), transparent 62%),
    radial-gradient(900px 600px at 82% 108%, rgba(104, 65, 168, 0.22), transparent 60%),
    radial-gradient(700px 500px at 8% 88%, rgba(28, 96, 132, 0.18), transparent 60%),
    #050813;
  color: #e8f0ff;
  min-height: 100vh;
}

.stars-stage {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  isolation: isolate;
}

.stars-field {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* 装饰星点（无姓名，只负责把天铺满） */
.stars-dot {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #dce9ff;
  opacity: 0.45;
  pointer-events: none;
  animation: stars-twinkle var(--dur, 5s) ease-in-out var(--delay, 0s) infinite;
}

/* 致谢星：一个人一颗，四角星，和背景圆点区分开 */
.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: calc(var(--size) + 20px);
  height: calc(var(--size) + 20px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.18s ease;
  z-index: 1;
}

.star-shape {
  width: var(--size);
  height: var(--size);
  background: radial-gradient(circle at 50% 46%, #ffffff 0%, #f4f9ff 24%, #dbeafe 48%, rgba(147, 197, 253, 0.5) 66%, rgba(96, 165, 250, 0) 80%);
  clip-path: polygon(50% 0%, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0% 50%, 44% 44%);
  filter:
    drop-shadow(0 0 calc(var(--size) * 0.42) rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 calc(var(--size) * 1.05) rgba(96, 165, 250, 0.55));
  opacity: var(--bright, 0.85);
  animation: stars-twinkle var(--dur, 5s) ease-in-out var(--delay, 0s) infinite;
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.star:hover,
.star:focus-visible {
  transform: translate(-50%, -50%) scale(1.22);
  outline: none;
  z-index: 3;
}

.star:hover .star-shape,
.star:focus-visible .star-shape {
  opacity: 1;
  filter:
    drop-shadow(0 0 calc(var(--size) * 0.55) rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 calc(var(--size) * 1.5) rgba(147, 197, 253, 0.7));
}

.stars-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(92vw, 760px);
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.9);
}

.stars-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  color: #7fb6e8;
}

.stars-copy h1 {
  margin: 0;
  font-size: clamp(52px, 11vw, 104px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: #f2f7ff;
  text-shadow:
    0 0 26px rgba(147, 197, 253, 0.55),
    0 0 80px rgba(96, 165, 250, 0.28),
    0 10px 44px rgba(0, 0, 0, 0.9);
}

.stars-lead {
  margin: 26px auto 0;
  font-size: clamp(14px, 1.8vw, 19px);
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: #c3d4ef;
}

.stars-hint {
  margin: 26px 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #7f93b8;
}

/* 悬停卡片 */
.stars-tip {
  position: fixed;
  z-index: 20;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 300px;
  padding: 12px 14px;
  border: 1px solid rgba(147, 197, 253, 0.36);
  border-radius: 12px;
  background: rgba(8, 14, 30, 0.94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), 0 0 24px rgba(96, 165, 250, 0.18) inset;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  transform: translate(-50%, -100%);
  transition: opacity 0.12s ease;
  text-align: left;
}

.stars-tip[hidden] {
  display: none;
}

.stars-tip-avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(147, 197, 253, 0.45);
  background: #0b1225;
  object-fit: cover;
}

.stars-tip-body {
  min-width: 0;
}

.stars-tip strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #f4f8ff;
}

.stars-tip span {
  display: block;
  font-size: 12.5px;
  line-height: 1.7;
  color: #a9bde0;
}

.stars-empty {
  position: absolute;
  left: 50%;
  bottom: 9vh;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #6e82a6;
}

.stars-credit {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  margin: 0;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: #5f7396;
}

@keyframes stars-twinkle {
  0%, 100% { opacity: var(--bright, 0.85); }
  50% { opacity: calc(var(--bright, 0.85) * 0.55); }
}

@media (max-width: 720px) {
  .stars-stage {
    min-height: calc(100vh - 56px);
  }

  .stars-copy {
    top: 46%;
  }

  .stars-lead {
    margin-top: 18px;
    line-height: 1.8;
  }

  .stars-hint {
    margin-top: 18px;
  }

  .stars-tip {
    max-width: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .star,
  .stars-dot {
    animation: none;
  }
}
