/* ==================== 友链：流星来信（对齐参考站） ==================== */

.observatory {
  position: relative;
  isolation: isolate;
  height: min(650px, 72svh);
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(52, 70, 82, 0.18);
  border-radius: 8px;
  background: rgba(239, 244, 246, 0.76);
  box-shadow: 0 24px 60px rgba(35, 54, 65, 0.12);
  color: #1b2a34;
  container-type: inline-size;
}

.observatory::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url('/img/hero.jpg') 48% 42% / cover no-repeat;
  content: '';
  filter: saturate(0.48) contrast(0.82) brightness(1.08);
  opacity: 0.16;
  transform: scale(1.04);
}

.observatory::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: inherit;
  box-shadow: inset 0 0 72px rgba(63, 98, 111, 0.08);
  content: '';
  pointer-events: none;
}

/* —— 顶部条 —— */
.obs-header {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(52, 70, 82, 0.14);
  padding: 22px 28px;
  background: rgba(247, 249, 249, 0.58);
  backdrop-filter: blur(12px) saturate(105%);
}
.obs-header span,
.obs-footer {
  color: rgba(63, 82, 93, 0.62);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}
.obs-header h2 {
  margin: 4px 0 0;
  font-family: Georgia, 'Noto Serif SC', 'Songti SC', serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}
.obs-header p { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.obs-header p strong { font-family: Georgia, serif; font-size: 30px; font-weight: 400; }

/* —— 星空 —— */
.obs-sky { position: absolute; z-index: 1; inset: 0; overflow: hidden; }
.obs-sky::before,
.obs-sky::after { position: absolute; inset: 0; content: ''; pointer-events: none; }
.obs-sky::before {
  background-image:
    radial-gradient(circle, rgba(63, 98, 111, 0.42) 0 1px, transparent 1.3px),
    radial-gradient(circle, rgba(91, 137, 151, 0.34) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(151, 116, 134, 0.26) 0 0.8px, transparent 1.1px);
  background-position: 18px 26px, 53px 61px, 31px 12px;
  background-size: 71px 67px, 113px 127px, 157px 139px;
  opacity: 0.4;
}
.obs-sky::after {
  z-index: 0;
  background: linear-gradient(180deg, rgba(247, 249, 249, 0.32) 0, rgba(220, 231, 235, 0.1) 42%, rgba(207, 219, 224, 0.24) 100%);
}

.obs-starfield,
.obs-ambient-layer,
.obs-meteors { position: absolute; inset: 0; }
.obs-starfield { z-index: 1; pointer-events: none; }

.obs-star {
  position: absolute;
  top: var(--star-top);
  left: var(--star-left);
  width: var(--star-size);
  height: var(--star-size);
  border-radius: 50%;
  background: rgb(var(--star-rgb));
  box-shadow: 0 0 8px rgba(var(--star-rgb), 0.72);
  opacity: var(--star-opacity);
  animation: obs-star-twinkle var(--star-duration) ease-in-out var(--star-delay) infinite;
}
.obs-star.is-bright { width: calc(var(--star-size) + 2px); height: calc(var(--star-size) + 2px); }
.obs-star.is-bright::before,
.obs-star.is-bright::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: linear-gradient(90deg, transparent, rgba(var(--star-rgb), 0.9), transparent);
  content: '';
  opacity: 0.72;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.obs-star.is-bright::before { width: 28px; height: 1px; }
.obs-star.is-bright::after {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(var(--star-rgb), 0.9), transparent);
}

/* —— 环境流星 —— */
.obs-ambient-layer { z-index: 2; overflow: hidden; pointer-events: none; }
.obs-ambient {
  position: absolute;
  top: var(--ambient-top);
  left: var(--ambient-left);
  width: 28px;
  height: 28px;
  opacity: 0;
  will-change: opacity, transform;
  animation: obs-ambient-fall var(--ambient-duration) linear var(--ambient-delay) infinite;
}
.obs-ambient::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ambient-tail);
  height: 1px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--ambient-color), transparent 100%);
  box-shadow: 0 0 6px var(--ambient-color);
  content: '';
  transform: rotate(var(--ambient-angle));
  transform-origin: 0 50%;
}
.obs-ambient::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ambient-size);
  height: var(--ambient-size);
  background: var(--ambient-color);
  box-shadow: 0 0 7px var(--ambient-color), 0 0 15px var(--ambient-color);
  clip-path: polygon(50% 0, 58% 39%, 86% 14%, 62% 43%, 100% 50%, 62% 57%, 86% 86%, 58% 61%, 50% 100%, 42% 61%, 14% 86%, 38% 57%, 0 50%, 38% 43%, 14% 14%, 42% 39%);
  content: '';
  transform: translate(-50%, -50%);
}

/* —— 流星节点 —— */
.obs-meteors { z-index: 3; margin: 0; padding: 0; list-style: none; }

.obs-meteor {
  --obs-star-primary: polygon(50% 0, 58% 37%, 100% 50%, 58% 63%, 50% 100%, 42% 63%, 0 50%, 42% 37%);
  --obs-star-secondary: polygon(50% 0, 57% 34%, 85% 15%, 66% 41%, 100% 50%, 66% 59%, 85% 85%, 57% 66%, 50% 100%, 43% 66%, 15% 85%, 34% 59%, 0 50%, 34% 41%, 15% 15%, 43% 34%);
  --obs-star-tilt: -2deg;
  --obs-star-flash: 8.6s;
  position: absolute;
  z-index: 3;
  top: var(--meteor-top);
  left: var(--meteor-left);
  width: 320px;
  height: 140px;
}
.obs-meteor:nth-child(3n + 2) {
  --obs-star-flash: 9.4s;
  --obs-star-primary: polygon(50% 0, 58% 36%, 93% 25%, 66% 50%, 93% 75%, 58% 64%, 50% 100%, 42% 64%, 7% 75%, 34% 50%, 7% 25%, 42% 36%);
  --obs-star-secondary: polygon(50% 2%, 61% 37%, 96% 50%, 61% 63%, 50% 98%, 39% 63%, 4% 50%, 39% 37%);
  --obs-star-tilt: 4deg;
}
.obs-meteor:nth-child(3n) {
  --obs-star-flash: 7.9s;
  --obs-star-primary: polygon(50% 0, 56% 35%, 72% 8%, 65% 40%, 100% 28%, 70% 47%, 100% 64%, 66% 57%, 76% 96%, 56% 65%, 50% 100%, 44% 65%, 24% 96%, 34% 57%, 0 64%, 30% 47%, 0 28%, 35% 40%, 28% 8%, 44% 35%);
  --obs-star-secondary: polygon(50% 0, 60% 36%, 88% 12%, 68% 42%, 100% 50%, 68% 58%, 88% 88%, 60% 64%, 50% 100%, 40% 64%, 12% 88%, 32% 58%, 0 50%, 32% 42%, 12% 12%, 40% 36%);
  --obs-star-tilt: -5deg;
}

.obs-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  outline: none;
  transform: scale(var(--meteor-scale));
  transform-origin: 52px 52px;
  text-decoration: none;
}

.obs-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 108px;
  height: 108px;
  transform-origin: 52px 52px;
  animation: obs-body-sway var(--meteor-duration) ease-in-out var(--meteor-delay) infinite;
}
/* 星光一闪 */
.obs-body::after {
  position: absolute;
  z-index: 0;
  top: 52px;
  left: 52px;
  width: 132px;
  height: 132px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.86) 0 5%, rgba(var(--meteor-rgb), 0.46) 18%, rgba(var(--meteor-rgb), 0.12) 46%, transparent 70%);
  clip-path: var(--obs-star-primary);
  content: '';
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.68);
  animation: obs-stellar-flash var(--obs-star-flash) cubic-bezier(0.16, 0.72, 0.2, 1) var(--meteor-delay) infinite;
}

/* 拖尾：固定朝左上方 225° */
.obs-beam {
  position: absolute;
  z-index: 0;
  top: 43px;
  left: 52px;
  width: var(--meteor-tail);
  height: 20px;
  border-radius: 48% 12% 12% 48%;
  background: linear-gradient(90deg, rgba(var(--meteor-rgb), 0.92) 0, rgba(var(--meteor-rgb), 0.5) 20%, rgba(var(--meteor-rgb), 0.12) 62%, transparent 100%);
  box-shadow: 0 0 13px rgba(var(--meteor-rgb), 0.42);
  clip-path: polygon(0 42%, 100% 5%, 100% 95%, 0 58%);
  filter: blur(0.2px);
  transform: rotate(225deg);
  transform-origin: 0 50%;
  transition: width 420ms cubic-bezier(0.2, 0.72, 0.2, 1), filter 220ms ease;
  animation: obs-tail-breathe var(--meteor-pulse-duration) ease-in-out var(--meteor-pulse-delay) infinite;
}
.obs-beam::before,
.obs-beam::after {
  position: absolute;
  top: 50%;
  left: 0;
  content: '';
  transform: translateY(-50%);
}
.obs-beam::before {
  width: 66%;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(var(--meteor-rgb), 0.34), transparent);
  filter: blur(0.6px);
}
.obs-beam::after {
  width: 118%;
  height: 1px;
  background: linear-gradient(90deg, #fff, rgba(var(--meteor-rgb), 0.56), transparent);
  box-shadow: 0 0 5px rgba(var(--meteor-rgb), 0.62);
}

/* 粒子流 */
.obs-stream { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.obs-particle {
  position: absolute;
  top: var(--particle-top);
  left: var(--particle-left);
  width: var(--particle-size);
  height: var(--particle-size);
  border-radius: 50%;
  background: rgba(var(--meteor-rgb), 0.94);
  box-shadow: 0 0 7px rgba(var(--meteor-rgb), 0.86);
  opacity: 0;
  animation: obs-particle-flow var(--particle-duration) ease-in-out var(--particle-delay) infinite;
}

/* 光晕双层 */
.obs-halo-outer,
.obs-halo-inner { position: absolute; z-index: 1; pointer-events: none; }
.obs-halo-outer {
  top: -10px;
  left: -10px;
  width: 124px;
  height: 124px;
  background: radial-gradient(circle, rgba(var(--meteor-rgb), 0.23) 0 12%, rgba(var(--meteor-rgb), 0.1) 34%, transparent 68%);
  clip-path: var(--obs-star-primary);
  filter: blur(4px) drop-shadow(0 0 18px rgba(var(--meteor-rgb), 0.22));
  animation: obs-halo-outer-breathe var(--meteor-pulse-duration) ease-in-out var(--meteor-pulse-delay) infinite;
}
.obs-halo-inner {
  top: 2px;
  left: 2px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.44) 0 8%, rgba(var(--meteor-rgb), 0.22) 26%, rgba(var(--meteor-rgb), 0.05) 58%, transparent 72%);
  clip-path: var(--obs-star-secondary);
  filter: blur(1.2px) drop-shadow(0 0 10px rgba(var(--meteor-rgb), 0.26));
  animation: obs-halo-inner-breathe var(--meteor-pulse-duration) ease-in-out var(--meteor-pulse-delay) infinite;
}

/* 核心：星芒 + 能量环 + 射线 + 头像 */
.obs-core {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 0 10px rgba(var(--meteor-rgb), 0.38));
  isolation: isolate;
  transition: filter 220ms ease;
  animation: obs-core-breathe var(--meteor-pulse-duration) ease-in-out var(--meteor-pulse-delay) infinite;
}
.obs-core::before,
.obs-core::after {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  content: '';
  pointer-events: none;
  animation: obs-rays-breathe var(--meteor-pulse-duration) ease-in-out var(--meteor-pulse-delay) infinite;
}
.obs-core::before {
  width: 98px;
  height: 98px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 10%, rgba(var(--meteor-rgb), 0.78) 22%, rgba(var(--meteor-rgb), 0.28) 47%, transparent 68%);
  clip-path: var(--obs-star-primary);
  filter: drop-shadow(0 0 8px rgba(var(--meteor-rgb), 0.5));
}
.obs-core::after {
  width: 84px;
  height: 84px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 16%, rgba(var(--meteor-rgb), 0.56) 34%, rgba(var(--meteor-rgb), 0.08) 62%, transparent 72%);
  clip-path: var(--obs-star-secondary);
  filter: drop-shadow(0 0 6px rgba(var(--meteor-rgb), 0.36));
  animation-name: obs-facet-breathe;
}

.obs-ring {
  position: absolute;
  z-index: 0;
  inset: -19px;
  background: radial-gradient(circle, transparent 0 38%, rgba(var(--meteor-rgb), 0.2) 48%, transparent 64%);
  clip-path: var(--obs-star-secondary);
  filter: drop-shadow(0 0 5px rgba(var(--meteor-rgb), 0.3));
  pointer-events: none;
  animation: obs-ring-sway var(--meteor-duration) ease-in-out var(--meteor-pulse-delay) infinite;
}

.obs-rays {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  pointer-events: none;
  animation: obs-diagonal-breathe var(--meteor-pulse-duration) ease-in-out var(--meteor-pulse-delay) infinite;
}
.obs-rays::before,
.obs-rays::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: linear-gradient(90deg, transparent, rgba(var(--meteor-rgb), 0.72), rgba(255, 255, 255, 0.9), rgba(var(--meteor-rgb), 0.72), transparent);
  content: '';
  transform: translate(-50%, -50%);
}
.obs-rays::before { width: 110px; height: 1px; }
.obs-rays::after {
  width: 1px;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(var(--meteor-rgb), 0.72), rgba(255, 255, 255, 0.9), rgba(var(--meteor-rgb), 0.72), transparent);
}

.obs-avatar {
  position: relative;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #edf4f5;
  box-shadow: 0 0 0 1px rgba(var(--meteor-rgb), 0.28), 0 0 9px rgba(255, 255, 255, 0.9), 0 0 16px rgba(var(--meteor-rgb), 0.34);
}
.obs-avatar > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 50%;
  background: #edf4f5;
  color: #243b46;
  font-family: Georgia, 'Noto Serif SC', serif;
  font-size: 14px;
  font-weight: 700;
}
.obs-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 文字：无底色，左侧一条彩色细竖线 */
.obs-copy {
  position: absolute;
  top: 25px;
  left: 108px;
  display: grid;
  width: 190px;
  min-height: 60px;
  align-content: center;
  border-left: 1px solid rgba(var(--meteor-rgb), 0.5);
  padding: 7px 0 7px 13px;
  filter: drop-shadow(0 2px 4px rgba(247, 249, 249, 0.72));
  transition: border-color 260ms ease, transform 260ms ease;
}
.obs-copy strong {
  overflow: hidden;
  font-family: Georgia, 'Noto Serif SC', 'Songti SC', serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.obs-copy em {
  overflow: hidden;
  margin-top: 2px;
  color: rgba(var(--meteor-rgb), 0.68);
  font-size: 9px;
  font-style: normal;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 220ms ease, opacity 220ms ease;
}
.obs-copy > span {
  display: -webkit-box;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: rgba(52, 70, 82, 0.72);
  font-size: 10px;
  line-height: 1.55;
  opacity: 0;
  transition: max-height 260ms ease, margin-top 260ms ease, opacity 260ms ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.obs-copy small {
  display: flex;
  max-height: 0;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  color: rgba(40, 65, 77, 0.9);
  font-size: 8px;
  font-weight: 700;
  opacity: 0;
  transition: max-height 240ms ease, margin-top 240ms ease, opacity 240ms ease;
}

/* —— 交互 —— */
.obs-link:hover .obs-body::after,
.obs-link:focus-visible .obs-body::after { animation: obs-hover-pulse 920ms cubic-bezier(0.16, 0.72, 0.2, 1) 1; }
.obs-link:hover .obs-beam,
.obs-link:focus-visible .obs-beam { width: calc(var(--meteor-tail) + 48px); filter: brightness(1.24); }
.obs-link:hover .obs-core,
.obs-link:focus-visible .obs-core,
.obs-link:hover .obs-halo-outer,
.obs-link:focus-visible .obs-halo-outer,
.obs-link:hover .obs-halo-inner,
.obs-link:focus-visible .obs-halo-inner { filter: brightness(1.24); animation-duration: 2.2s; }
.obs-link:hover .obs-particle,
.obs-link:focus-visible .obs-particle { animation-duration: 1.25s; }
.obs-link:focus-visible .obs-core { filter: brightness(1.24) drop-shadow(0 0 13px rgba(var(--meteor-rgb), 0.78)); }
.obs-link:hover .obs-copy,
.obs-link:focus-visible .obs-copy { border-color: rgba(var(--meteor-rgb), 0.94); transform: translateX(5px); }
.obs-link:hover .obs-copy em,
.obs-link:focus-visible .obs-copy em { color: rgba(var(--meteor-rgb), 0.96); }
.obs-link:hover .obs-copy > span,
.obs-link:focus-visible .obs-copy > span { max-height: 34px; margin-top: 4px; opacity: 1; }
.obs-link:hover .obs-copy small,
.obs-link:focus-visible .obs-copy small { max-height: 18px; margin-top: 5px; opacity: 1; }

.obs-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(63, 82, 93, 0.6);
  font-size: 13px;
}

/* —— 底部 —— */
.obs-footer {
  position: absolute;
  z-index: 5;
  right: 26px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.obs-footer i { width: 34px; height: 1px; background: rgba(52, 70, 82, 0.24); }

/* ==================== 动效 ==================== */
@keyframes obs-body-sway {
  0%, 100% { transform: translate3d(-2px, -2px, 0) rotate(-1.2deg); }
  46% { transform: translate3d(var(--meteor-drift-x), var(--meteor-drift-y), 0) rotate(1deg); }
  72% { transform: translate3d(5px, 7px, 0) rotate(-0.3deg); }
}
@keyframes obs-core-breathe {
  0%, 100% { filter: brightness(0.92) drop-shadow(0 0 8px rgba(var(--meteor-rgb), 0.32)); transform: scale(0.96) rotate(calc(var(--obs-star-tilt) - 0.8deg)); }
  42% { filter: brightness(1.18) drop-shadow(0 0 15px rgba(var(--meteor-rgb), 0.62)); transform: scale(1.055) rotate(calc(var(--obs-star-tilt) + 0.9deg)); }
  72% { filter: brightness(1.03) drop-shadow(0 0 11px rgba(var(--meteor-rgb), 0.44)); transform: scale(1.005) rotate(var(--obs-star-tilt)); }
}
@keyframes obs-halo-outer-breathe {
  0%, 100% { opacity: 0.18; transform: scale(0.82) rotate(calc(var(--obs-star-tilt) - 2deg)); }
  48% { opacity: 0.6; transform: scale(1.16) rotate(calc(var(--obs-star-tilt) + 2deg)); }
  72% { opacity: 0.34; transform: scale(1.01) rotate(var(--obs-star-tilt)); }
}
@keyframes obs-halo-inner-breathe {
  0%, 100% { opacity: 0.3; transform: scale(0.9) rotate(calc(var(--obs-star-tilt) + 2deg)); }
  43% { opacity: 0.82; transform: scale(1.1) rotate(calc(var(--obs-star-tilt) - 2deg)); }
  74% { opacity: 0.5; transform: scale(1.01) rotate(var(--obs-star-tilt)); }
}
@keyframes obs-tail-breathe {
  0%, 100% { filter: blur(0.5px) brightness(0.78); opacity: 0.46; transform: rotate(225deg) scaleX(0.86) scaleY(0.84); }
  58% { filter: blur(0.1px) brightness(1.26); opacity: 0.98; transform: rotate(225deg) scaleX(1.09) scaleY(1.06); }
  78% { opacity: 0.72; transform: rotate(225deg) scaleX(1.01) scaleY(0.94); }
}
@keyframes obs-rays-breathe {
  0%, 100% { filter: blur(0.3px); opacity: 0.46; transform: translate(-50%, -50%) rotate(calc(var(--obs-star-tilt) - 1deg)) scale(0.92); }
  44% { filter: blur(0); opacity: 0.94; transform: translate(-50%, -50%) rotate(calc(var(--obs-star-tilt) + 1deg)) scale(1.06); }
  76% { opacity: 0.62; transform: translate(-50%, -50%) rotate(var(--obs-star-tilt)) scale(1); }
}
@keyframes obs-facet-breathe {
  0%, 100% { opacity: 0.34; transform: translate(-50%, -50%) rotate(calc(var(--obs-star-tilt) + 5deg)) scale(0.9); }
  48% { opacity: 0.78; transform: translate(-50%, -50%) rotate(calc(var(--obs-star-tilt) - 4deg)) scale(1.08); }
  74% { opacity: 0.52; transform: translate(-50%, -50%) rotate(var(--obs-star-tilt)) scale(1); }
}
@keyframes obs-diagonal-breathe {
  0%, 100% { opacity: 0.24; transform: translate(-50%, -50%) rotate(42deg) scale(0.74); }
  46% { opacity: 0.88; transform: translate(-50%, -50%) rotate(47deg) scale(1.18); }
  75% { opacity: 0.46; transform: translate(-50%, -50%) rotate(44deg) scale(0.96); }
}
@keyframes obs-ring-sway {
  0%, 100% { opacity: 0.24; transform: rotate(calc(var(--obs-star-tilt) - 4deg)) scale(0.92); }
  50% { opacity: 0.66; transform: rotate(calc(var(--obs-star-tilt) + 5deg)) scale(1.08); }
}
@keyframes obs-particle-flow {
  0%, 100% { opacity: 0; transform: translate3d(3px, 3px, 0) scale(0.58); }
  32% { opacity: var(--particle-opacity); transform: translate3d(0, 0, 0) scale(1); }
  68% { opacity: 0.24; }
  86% { opacity: 0; transform: translate3d(-9px, -9px, 0) scale(1.26); }
}
@keyframes obs-hover-pulse {
  0% { filter: brightness(1.25); opacity: 0.86; transform: translate(-50%, -50%) rotate(var(--obs-star-tilt)) scale(0.62); }
  100% { filter: brightness(1); opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--obs-star-tilt) + 3deg)) scale(1.76); }
}
@keyframes obs-stellar-flash {
  0%, 42%, 56%, 100% { filter: brightness(1); opacity: 0; transform: translate(-50%, -50%) rotate(var(--obs-star-tilt)) scale(0.7); }
  47% { filter: brightness(1.35); opacity: 0.72; transform: translate(-50%, -50%) rotate(calc(var(--obs-star-tilt) + 1deg)) scale(1.02); }
  50% { filter: brightness(1.6); opacity: 0.92; transform: translate(-50%, -50%) rotate(calc(var(--obs-star-tilt) - 1deg)) scale(1.28); }
}
@keyframes obs-star-twinkle {
  0%, 100% { filter: brightness(0.72); opacity: 0.16; transform: scale(0.72); }
  46% { filter: brightness(1.45); opacity: var(--star-opacity); transform: scale(1.18); }
}
@keyframes obs-ambient-fall {
  0% { opacity: 0; transform: translate3d(-10px, -10px, 0) scale(0.76); }
  7%, 68% { opacity: var(--ambient-opacity); }
  84%, 100% { opacity: 0; transform: translate3d(var(--ambient-distance-x), var(--ambient-distance-y), 0) scale(1); }
}

/* ==================== 暗色 ==================== */
[data-theme='dark'] .observatory {
  border-color: rgba(120, 174, 184, 0.22);
  background: rgba(16, 23, 29, 0.86);
  color: #e6eff2;
}
[data-theme='dark'] .observatory::before { opacity: 0.1; filter: saturate(0.42) contrast(0.8) brightness(0.5); }
[data-theme='dark'] .observatory::after { border-color: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 72px rgba(0, 0, 0, 0.4); }
[data-theme='dark'] .obs-header { background: rgba(12, 20, 27, 0.62); border-bottom-color: rgba(160, 195, 210, 0.14); }
[data-theme='dark'] .obs-header span,
[data-theme='dark'] .obs-footer { color: rgba(190, 214, 222, 0.6); }
[data-theme='dark'] .obs-sky::before { opacity: 0.55; }
[data-theme='dark'] .obs-sky::after { background: linear-gradient(180deg, rgba(12, 20, 27, 0.3) 0, rgba(12, 20, 27, 0.12) 42%, rgba(12, 20, 27, 0.34) 100%); }
[data-theme='dark'] .obs-copy { filter: drop-shadow(0 2px 5px rgba(6, 12, 17, 0.9)); }
[data-theme='dark'] .obs-copy strong { color: #eef5f7; }
[data-theme='dark'] .obs-copy > span { color: rgba(198, 220, 227, 0.7); }
[data-theme='dark'] .obs-copy small { color: rgba(214, 232, 237, 0.9); }
[data-theme='dark'] .obs-avatar { background: #1a2530; }
[data-theme='dark'] .obs-avatar > span { background: #1a2530; color: #dfeef2; }
[data-theme='dark'] .obs-footer i { background: rgba(160, 195, 210, 0.24); }

/* ==================== 响应式 ==================== */
@media (max-width: 800px) {
  .observatory { height: 590px; min-height: 0; }
  .obs-header { min-height: 86px; padding: 18px 20px; }
  .obs-header h2 { font-size: 21px; }
  .obs-header p strong { font-size: 26px; }
  .obs-meteor { top: var(--meteor-mobile-top); left: var(--meteor-mobile-left); width: 280px; height: 132px; }
  .obs-copy { left: 102px; width: min(156px, 38vw); }
}
@media (max-width: 520px) {
  .observatory { height: 540px; }
  .obs-header { min-height: 78px; padding: 16px; }
  .obs-header > div > span,
  .obs-header p > span,
  .obs-footer span:first-child,
  .obs-footer i { display: none; }
  .obs-header h2 { margin-top: 0; font-size: 20px; }
  .obs-header p strong { font-size: 24px; }
  .obs-meteor { width: 252px; height: 124px; }
  .obs-link { scale: 0.84; }
  .obs-beam { width: min(var(--meteor-tail), 170px); }
  .obs-ambient::before { width: min(var(--ambient-tail), 112px); }
  .obs-copy { top: 28px; left: 98px; width: min(122px, 33vw); }
  .obs-copy > span,
  .obs-copy small { display: none; }
  .obs-footer { right: 16px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .obs-body { animation-duration: 18s; }
  .obs-ambient { animation-duration: 30s; }
  .obs-star, .obs-beam, .obs-halo-outer, .obs-halo-inner, .obs-core, .obs-core::before, .obs-core::after, .obs-rays, .obs-ring, .obs-particle { animation-duration: 6.4s; }
  .obs-beam, .obs-halo-outer, .obs-halo-inner, .obs-core, .obs-copy, .obs-copy > span, .obs-copy small { transition: none; }
}