*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  background: #02040A;
  color: rgba(244,248,255,0.96);
  overflow-x: hidden;
}

/* 背景 canvas */
#universe-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
}

/* 右上角 trio.mp4 */
.hero-video-widget {
  position: fixed;
  top: 20px;
  right: 26px;
  width: 160px;
  padding: 3px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,210,240,0.4), rgba(150,195,255,0.35));
  box-shadow: 0 0 28px rgba(255,190,230,0.5);
  z-index: 5;
}

.hero-video-widget video {
  width: 100%;
  display: block;
  border-radius: 10px;
}

/* 右側工具列 */
.side-nav {
  position: fixed;
  right: 26px;
  top: 24%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 6;
}

.nav-item {
  width: 46px;
  height: 46px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 16px rgba(100,150,220,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.nav-item img {
  width: 72%;
  pointer-events: none;
}

.nav-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(160,210,255,0.8);
}

/* 按下才出字 */
.nav-item:active::after {
  content: attr(data-label);
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8,10,25,0.85);
  backdrop-filter: blur(10px);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background-image: linear-gradient(135deg, #ffbddc, #9dd1ff);
  -webkit-background-clip: text;
  color: transparent;
}

/* HERO */
.hero {
  padding: 150px 60px 80px;
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 960px;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  line-height: 1.25;
}

.h1-main {
  font-size: 3.6rem;
  background: linear-gradient(140deg, #ffffff, #d6f0ff, #9bd6ff);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(150,200,255,0.9);
}

.h1-sub1 {
  font-size: 1.05rem;
  margin-top: 14px;
  opacity: 0.9;
}

.h1-sub2 {
  font-size: 0.95rem;
  margin-top: 6px;
  opacity: 0.78;
  font-style: italic;
}

.hero-subtitle {
  margin-top: 26px;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  color: rgba(255,225,240,0.95);
  position: relative;
}

/* 星球生活後的小彗星 */
.subtitle-comet {
  position: absolute;
  right: -34px;
  top: 50%;
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,180,220,0), rgba(255,180,220,1));
  animation: comet-move 7s ease-in-out infinite;
}

@keyframes comet-move {
  0% { transform: translateX(-18px); opacity: 0; }
  30% { opacity: 1; }
  70% { transform: translateX(12px); opacity: 1; }
  100% { transform: translateX(18px); opacity: 0; }
}

/* 金句漂浮 */
.hero-quotes {
  margin-top: 30px;
  font-size: 0.98rem;
  line-height: 1.9;
  color: rgba(232,240,255,0.9);
}

.hero-quotes .q1 {
  animation: float1 9s ease-in-out infinite alternate;
}

.hero-quotes .q2 {
  margin-left: 24px;
  animation: float2 11s ease-in-out infinite alternate;
}

@keyframes float1 {
  0% { transform: translateY(0); opacity: 0.92; }
  100% { transform: translateY(-8px); opacity: 1; }
}
@keyframes float2 {
  0% { transform: translateY(0); opacity: 0.92; }
  100% { transform: translateY(8px); opacity: 1; }
}

/* SECTION 基本 */
.section {
  position: relative;
  z-index: 1;
  padding: 40px 60px 80px;
}

.section-inner {
  max-width: 1040px;
}

/* STARLINK 標題 */
.section-starlink .section-en {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.2em;
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-starlink .section-en-sub {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  opacity: 0.8;
  margin-bottom: 16px;
}

.section-zh {
  font-size: 0.95rem;
  line-height: 1.6;
}

.starlink-line1 {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 連線呼吸訊號 ━ */
.signal-line {
  display: inline-block;
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(157,209,255,0.2), rgba(157,209,255,1));
  animation: signal-breathe 3s ease-in-out infinite;
}

@keyframes signal-breathe {
  0% { transform: scaleX(0.5); opacity: 0.2; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0.5); opacity: 0.2; }
}

.starlink-line2 {
  margin-left: 18px;
  opacity: 0.9;
}

/* COSMIC GALLERY 排版 */
.section-gallery {
  padding-bottom: 120px;
}

.gallery-header {
  margin-bottom: 28px;
}

.gallery-en {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.18em;
  font-size: 1.8rem;
  text-transform: uppercase;
}

.g-en-1 {
  display: block;
}

.g-en-2 {
  display: block;
  margin-left: 36px;
}

.gallery-en-sub {
  margin-top: 10px;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  opacity: 0.82;
}

.gallery-main {
  position: relative;
  height: 320px;
  margin-bottom: 32px;
}

/* 主圖 */
.gallery-photo-main {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 55%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7),
              0 0 30px rgba(150,210,255,0.7);
}
.gallery-photo-main img {
  display: block;
  width: 100%;
  height: auto;
}

/* 前景圖 */
.gallery-photo-front {
  position: absolute;
  right: 14%;
  top: 24%;
  width: 32%;
  border-radius: 18px;
  overflow: hidden;
  opacity: 0.74;
}
.gallery-photo-front img {
  width: 100%;
}

/* 後景圖 */
.gallery-photo-back {
  position: absolute;
  left: 10%;
  bottom: 6%;
  width: 30%;
  border-radius: 18px;
  overflow: hidden;
  opacity: 0.35;
  filter: blur(3px);
}
.gallery-photo-back img {
  width: 100%;
}

/* 中文 caption + ⋄⟵ 漂浮 */
.gallery-caption {
  position: relative;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(230,238,255,0.9);
  max-width: 720px;
}

.gallery-symbol {
  position: absolute;
  right: 0;
  bottom: -4px;
  font-size: 1rem;
  color: rgba(255,215,240,0.9);
  animation: symbol-float 6s ease-in-out infinite alternate;
}

@keyframes symbol-float {
  0% { transform: translate(0,0); opacity: 0.7; }
  100% { transform: translate(4px,-6px); opacity: 1; }
}

/* RWD 簡易 */
@media (max-width: 900px) {
  .hero {
    padding: 130px 24px 60px;
  }
  .hero-inner {
    max-width: 100%;
  }
  .h1-main {
    font-size: 2.6rem;
  }
  .section {
    padding: 32px 20px 64px;
  }
  .gallery-main {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .gallery-photo-main,
  .gallery-photo-front,
  .gallery-photo-back {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    filter: none;
  }
  .gallery-caption {
    margin-top: 10px;
  }
}