/* ============================================
   初印觀星台 - Stargazing Platform
   深藍星空 × 宋代星圖 × 唐代銅鏡美學
   Prefix: stgz-
============================================ */

.stgz-wrapper *{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.stgz-wrapper::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:0.22;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.55) 0, transparent 60%),
    radial-gradient(1px 1px at 30% 72%, rgba(255,248,230,0.45) 0, transparent 60%),
    radial-gradient(1px 1px at 46% 36%, rgba(255,255,255,0.4) 0, transparent 60%),
    radial-gradient(1px 1px at 62% 58%, rgba(255,255,255,0.35) 0, transparent 60%),
    radial-gradient(1px 1px at 78% 22%, rgba(255,248,230,0.4) 0, transparent 60%),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.38) 0, transparent 60%);
  background-size: 520px 520px;
  animation: stgz-dust-float 10s ease-in-out infinite;
}
@keyframes stgz-dust-float{
  0%,100%{ transform: translateY(0); opacity:0.18; }
  50%{ transform: translateY(-8px); opacity:0.26; }
}
.stgz-wrapper{
  position: relative;
  min-height: 100vh;
  width: 100%;
  color: #e6e6ff;
  font-family: 'Noto Serif TC', 'Source Han Serif TC', 'STSong', 'SimSun', serif;
  line-height: 1.6;

  background:
    linear-gradient(135deg,
      #0a0e2a 0%,
      #1a1f4a 25%,
      #2c3152 50%,
      #3a3f68 75%,
      #4a4f7a 100%),
    radial-gradient(circle at 20% 30%,
      rgba(80, 100, 200, 0.15) 0%,
      transparent 40%),
    radial-gradient(circle at 80% 70%,
      rgba(120, 80, 200, 0.12) 0%,
      transparent 40%),
    radial-gradient(circle at 40% 85%,
      rgba(100, 150, 250, 0.1) 0%,
      transparent 50%);
}

/* 星空背景圖層 - 細密星點 */
.stgz-starfield{
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(3px 3px at 10% 20%, #ffffffe6 0%, #ffffffcc 50%, transparent 70%),
    radial-gradient(2px 2px at 25% 45%, #ffffffcc 0%, #ffffff99 50%, transparent 70%),
    radial-gradient(4px 4px at 40% 15%, #fff8e6e6 0%, #fff0c8b3 50%, transparent 70%),
    radial-gradient(2px 2px at 55% 75%, #ffffffb3 0%, #ffffffb3 50%, transparent 70%),
    radial-gradient(3px 3px at 70% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 50%, transparent 70%),
    radial-gradient(2px 2px at 85% 60%, rgba(255, 248, 230, 0.8) 0%, rgba(255, 240, 200, 0.6) 50%, transparent 70%),
    radial-gradient(3px 3px at 95% 85%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 50%, transparent 70%),
    radial-gradient(1px 1px at 15% 35%, rgba(255, 255, 255, 0.6) 0%, transparent 70%),
    radial-gradient(1px 1px at 30% 65%, rgba(255, 255, 255, 0.6) 0%, transparent 70%),
    radial-gradient(1px 1px at 45% 25%, rgba(255, 255, 255, 0.6) 0%, transparent 70%),
    radial-gradient(1px 1px at 60% 55%, rgba(255, 255, 255, 0.6) 0%, transparent 70%),
    radial-gradient(1px 1px at 75% 85%, rgba(255, 255, 255, 0.6) 0%, transparent 70%),
    radial-gradient(1px 1px at 90% 45%, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
  background-size: 400px 400px, 300px 300px, 350px 350px, 450px 450px;
  z-index:0;
  opacity:0.82
  pointer-events: none;
  animation: stgz-star-twinkle 8s ease-in-out infinite;
}

@keyframes stgz-star-twinkle{
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

/* 月亮元素 */
.stgz-moon{
  position: absolute;
  top: 100px;
  right: 8%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(circle at 35% 35%,
      rgba(255, 248, 230, 0.95) 0%,
      rgba(255, 240, 200, 0.85) 20%,
      rgba(255, 235, 180, 0.6) 40%,
      rgba(255, 230, 170, 0.3) 60%,
      transparent 80%),
    radial-gradient(circle at 65% 65%,
      rgba(255, 245, 210, 0.3) 0%,
      transparent 50%);
  filter: blur(1.5px) brightness(1.1);
  opacity: 0.85;
  box-shadow:
    0 0 60px rgba(255, 248, 230, 0.4),
    0 0 120px rgba(255, 240, 200, 0.2),
    inset 0 0 30px rgba(255, 255, 255, 0.3);

  animation: stgz-moon-float 20s ease-in-out infinite;
}

@keyframes stgz-moon-float{
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.85; }
  25% { transform: translateY(-15px) rotate(1deg); opacity: 0.9; }
  50% { transform: translateY(0) rotate(0deg); opacity: 0.85; }
  75% { transform: translateY(10px) rotate(-1deg); opacity: 0.8; }
}

/* 月光暈染效果 */
.stgz-moon-glow{
  position: absolute;
  top: 60px;
  right: calc(8% - 50px);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(circle,
      rgba(255, 248, 230, 0.25) 0%,
      rgba(255, 240, 200, 0.15) 30%,
      rgba(255, 235, 180, 0.08) 50%,
      transparent 70%);
  filter: blur(15px);
  animation: stgz-glow-pulse 12s ease-in-out infinite;
}

@keyframes stgz-glow-pulse{
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

/* 星軌動畫容器 */
.stgz-star-trail{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.stgz-trail-path{
  position: absolute;
  width: 1.5px;
  height: 120px;
  background:
    linear-gradient(to bottom,
      transparent,
      rgba(100, 150, 255, 0.6),
      rgba(150, 100, 255, 0.4),
      transparent);
  filter: blur(0.5px);
  transform-origin: top center;
  animation: stgz-trail-fall linear infinite;
}

@keyframes stgz-trail-fall{
  0% { transform: translateY(-120px) rotate(var(--rotation, 10deg)) scaleX(var(--width, 1)); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(calc(100vh + 120px)) rotate(var(--rotation, 10deg)) scaleX(var(--width, 1)); opacity: 0; }
}
.stgz-scroll-container{
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 40px;
  z-index: 2;

  background:
    linear-gradient(rgba(26, 31, 74, 0.58) 0%,
      rgba(26, 31, 74, 0.8) 100%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 Q25,30 50,50 T100,50' stroke='rgba(60,70,120,0.1)' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");

  border-radius: 4px;
  border: 1px solid rgba(80, 90, 150, 0.3);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* 卷軸軸心 */
.stgz-scroll-container::before,
.stgz-scroll-container::after{
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: -1;
  pointer-events: none;

  background:
    linear-gradient(90deg, #c0a0801a 0%, transparent 100%),
    url("data:image/svg+xml,%3Csvg width='40' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20,0 Q30,20 20,40 T20,100' stroke='rgba(192,160,128,0.2)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}

.stgz-scroll-container::before{
  left: -20px;
  border-radius: 4px 0 0 4px;
  box-shadow: inset 5px 0 10px rgba(0, 0, 0, 0.2);
}

.stgz-scroll-container::after{
  right: -20px;
  transform: rotate(180deg);
  border-radius: 0 4px 4px 0;
  box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.2);
}

.stgz-page-title{
  text-align: center;
  margin: 40px 0 50px;
  position: relative;
  padding: 40px 0;
}

/* 掛繩（移到 page-title，避免覆蓋 title-main 的裝飾符號） */
.stgz-page-title::before{
  content: '';
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background:
    linear-gradient(90deg,
      transparent 18%,
      rgba(192, 160, 128, 0.38) 18%,
      rgba(192, 160, 128, 0.38) 82%,
      transparent 82%),
    radial-gradient(circle at 50% 0,
      rgba(192, 160, 128, 0.55) 0%,
      transparent 70%);
  border-radius: 10px 10px 0 0;
  opacity: 0.9;
}

.stgz-title-main{
  font-size: 3.5rem;
  font-weight: 400;
  color: #fff8e6;
  letter-spacing: 12px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding: 20px 60px;

  background: linear-gradient(145deg,
    rgba(40, 45, 90, 0.8) 0%,
    rgba(35, 40, 85, 0.6) 100%);
  border: 2px solid rgba(192, 160, 128, 0.4);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 15px 30px rgba(0, 0, 0, 0.4);

  text-shadow:
    0 0 10px rgba(255, 248, 230, 0.5),
    0 0 20px rgba(255, 248, 230, 0.3),
    0 0 30px rgba(100, 150, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 牌匾左右裝飾 */
.stgz-title-main::before,
.stgz-title-main::after{
  content: '❈';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #c0a080;
  opacity: 0.7;
  text-shadow: 0 0 10px rgba(192, 160, 128, 0.5);
  animation: stgz-decoration-spin 10s linear infinite;
}
.stgz-title-main::before{ left: 15px; }
.stgz-title-main::after{ right: 15px; }

@keyframes stgz-decoration-spin{
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

.stgz-title-sub{
  font-size: 1.4rem;
  color: #b8c4e6;
  font-style: italic;
  letter-spacing: 6px;
  margin-top: 20px;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: inline-block;
  padding: 10px 40px;
  background: rgba(30, 35, 70, 0.5);
  border-radius: 4px;
  border: 1px solid rgba(100, 150, 255, 0.2);
}

.stgz-intro-box{
  background:
    linear-gradient(145deg,
      rgba(26, 31, 74, 0.85) 0%,
      rgba(40, 46, 90, 0.7) 100%),
    url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='100' cy='100' r='95' stroke='rgba(192,160,128,0.1)' stroke-width='2' fill='none' stroke-dasharray='5,5'/%3E%3C/svg%3E");
  border: 2px solid rgba(192, 160, 128, 0.4);
  border-radius: 8px;
  padding: 50px 60px;
  margin: 60px auto;
  max-width: 760px;
  position: relative;

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

.stgz-intro-box::before{
  content: '';
  position: absolute;
  inset: -15px;
  background-image:
    url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,40 Q20,0 40,40 T80,40 M40,0 Q60,20 40,40 T20,80' stroke='%23c0a080' stroke-width='0.8' fill='none' opacity='0.15'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 Q15,0 30,30 T60,30' stroke='%23c0a080' stroke-width='0.6' fill='none' opacity='0.1'/%3E%3C/svg%3E");
  background-size: 80px 80px, 60px 60px;
  background-position: center;
  border-radius: 12px;
  z-index: -1;
  opacity: 0.4;
  filter: blur(1px);
}

.stgz-intro-box::after{
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(192, 160, 128, 0.6);
  background: radial-gradient(circle,
    rgba(192, 160, 128, 0.4) 0%,
    rgba(160, 140, 120, 0.3) 50%,
    transparent 70%);
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.2),
    0 0 10px rgba(192, 160, 128, 0.3);
}


.stgz-record-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 35px;
  margin: 70px 0;
  padding: 0 20px;
}
.stgz-record-card{
  background:
    linear-gradient(145deg,
      rgba(30, 35, 70, 0.82) 0%,
      rgba(45, 50, 90, 0.65) 100%);
  border: 1px solid rgba(100, 150, 255, 0.25);
  border-radius: 6px;
  padding: 35px 30px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  min-height: 220px;
  backdrop-filter: blur(3px);

  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stgz-record-card::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity 0.6s ease, transform 0.6s ease;
  background-repeat: no-repeat;
}

.stgz-record-card:hover::before{
  opacity: 0.75;
  transform: scale(1.05);
}

.stgz-record-card:hover{
  transform: translateY(-8px) rotateX(5deg) rotateY(-2deg);
  border-color: rgba(192, 160, 128, 0.6);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(192, 160, 128, 0.15),
    inset 0 0 40px rgba(100, 150, 255, 0.08),
    0 0 30px rgba(100, 150, 255, 0.2);
  z-index: 10;
}

/* 5 種星圖變體（配合 data-index="0~4"） */
.stgz-record-card[data-index="0"]::before{
  background:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,0.18) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 68% 16%, rgba(255,248,230,0.16) 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 40% 72%, rgba(255,255,255,0.12) 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 82% 60%, rgba(255,255,255,0.08) 0 1px, transparent 2px);
}
.stgz-record-card[data-index="1"]::before{
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.14) 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 78% 28%, rgba(255,248,230,0.16) 0 1.7px, transparent 2.7px),
    radial-gradient(circle at 62% 80%, rgba(255,255,255,0.12) 0 1.3px, transparent 2.3px),
    radial-gradient(circle at 16% 70%, rgba(255,255,255,0.09) 0 1px, transparent 2px);
}
.stgz-record-card[data-index="2"]::before{
  background:
    radial-gradient(circle at 32% 34%, rgba(255,255,255,0.15) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 72% 22%, rgba(255,248,230,0.18) 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 58% 66%, rgba(255,255,255,0.12) 0 1.3px, transparent 2.3px),
    radial-gradient(circle at 14% 52%, rgba(255,255,255,0.08) 0 1px, transparent 2px);
}
.stgz-record-card[data-index="3"]::before{
  background:
    radial-gradient(circle at 18% 40%, rgba(255,255,255,0.16) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 82% 14%, rgba(255,248,230,0.17) 0 1.7px, transparent 2.7px),
    radial-gradient(circle at 70% 72%, rgba(255,255,255,0.11) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 28% 78%, rgba(255,255,255,0.09) 0 1px, transparent 2px);
}
.stgz-record-card[data-index="4"]::before{
  background:
    radial-gradient(circle at 26% 20%, rgba(255,255,255,0.17) 0 1.7px, transparent 2.7px),
    radial-gradient(circle at 74% 40%, rgba(255,248,230,0.15) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 50% 82%, rgba(255,255,255,0.12) 0 1.3px, transparent 2.3px),
    radial-gradient(circle at 10% 60%, rgba(255,255,255,0.08) 0 1px, transparent 2px);
}

/* 卡片標題 */
.stgz-record-title{
  font-size: 1.5rem;
  color: #fff8e6;
  margin-bottom: 20px;
  padding-right: 60px;
  position: relative;
  line-height: 1.4;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.stgz-record-title a{
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  display: inline-block;
}
.stgz-record-title a:hover{
  color: #c0a080;
  text-shadow: 0 0 10px rgba(192, 160, 128, 0.5);
}
.stgz-record-title a::after{
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(192, 160, 128, 0.8),
    rgba(100, 150, 255, 0.8));
  transition: width 0.3s ease;
}
.stgz-record-title a:hover::after{ width: 100%; }

/* 星標記號 */
.stgz-record-title::before{
  content: '✦';
  position: absolute;
  left: -35px;
  top: 50%;
  transform: translateY(-50%);
  color: #c0a080;
  font-size: 1.3rem;
  opacity: 0.8;
  text-shadow: 0 0 10px rgba(192, 160, 128, 0.5);
  animation: stgz-star-twinkle-alt 3s ease-in-out infinite;
}
@keyframes stgz-star-twinkle-alt{
  0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

/* 記錄描述/摘要 */
.stgz-record-desc{
  color: #b8c4e6;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 20px;
  z-index: 1;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stgz-record-excerpt{
  color: #a0a8d0;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 25px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.stgz-record-date{
  font-size: 0.9rem;
  color: #8895d6;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed rgba(192, 160, 128, 0.3);
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

/* 日期 icon：統一 📜 */
.stgz-record-date::before{
  content: "📜";
  opacity: 0.85;
  font-size: 1rem;
}

/* time  */
.stgz-record-date time{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Noto Serif TC", serif;
  letter-spacing: 0.5px;
}

/* 讓 ::before 當成 time 的同列元素感 */
.stgz-record-date::before{ margin-right: 0; }

/* chips 行置中 */
.stgz-record-date .stgz-zodiac{
  display: flex;
  justify-content: center;
  width: 100%;
}

.stgz-initmeta{
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.stgz-initchip{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1.2;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(2px);

  white-space: nowrap;
  word-break: keep-all;
  line-break: strict;
}

.stgz-initchip--type{ border-color: rgba(120, 180, 255, 0.35); }
.stgz-initchip--deity{ border-color: rgba(192, 160, 128, 0.45); }
.stgz-initchip--kicker{ opacity: 0.9; }

/* zodiac 容器外觀（保留你原本風格） */
.stgz-zodiac{
  display: inline-block;
  padding: 3px 8px;
  background: rgba(192, 160, 128, 0.1);
  border: 1px solid rgba(192, 160, 128, 0.3);
  border-radius: 4px;
  font-size: 0.8rem;
  color: #c0a080;
}

.stgz-record-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.stgz-tag{
  padding: 5px 12px;
  background: rgba(30, 35, 70, 0.6);
  border: 1px solid rgba(100, 150, 255, 0.3);
  border-radius: 4px;
  font-size: 0.9rem;
  color: #b8c4e6;
  transition: all 0.3s ease;
}
.stgz-tag:hover{
  background: rgba(192, 160, 128, 0.2);
  border-color: #c0a080;
  color: #fff8e6;
  transform: translateY(-2px);
}
.stgz-divider{
  height: 2px;
  background:
    linear-gradient(90deg,
      transparent,
      rgba(192, 160, 128, 0.4),
      rgba(100, 150, 255, 0.4),
      rgba(192, 160, 128, 0.4),
      transparent);
  margin: 70px auto;
  max-width: 700px;
  position: relative;
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(100, 150, 255, 0.2);
}

.stgz-divider::before,
.stgz-divider::after{
  content: '❈';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #c0a080;
  font-size: 1.5rem;
  text-shadow: 0 0 10px rgba(192, 160, 128, 0.5);
  animation: stgz-divider-spin 20s linear infinite;
}
.stgz-divider::before{ left: -40px; }
.stgz-divider::after{ right: -40px; }

@keyframes stgz-divider-spin{
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

/* 返回按鈕 */
.stgz-back-btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 40px;
  margin-top: 40px;

  background:
    linear-gradient(145deg,
      rgba(40, 46, 90, 0.85) 0%,
      rgba(26, 31, 74, 0.9) 100%);
  border: 2px solid rgba(192, 160, 128, 0.5);
  border-radius: 4px;

  color: #e6e6ff;
  text-decoration: none;
  font-size: 1.1rem;
  text-align: center;

  position: relative;
  overflow: hidden;
  backdrop-filter: blur(3px);
  box-shadow:
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stgz-back-btn::before{
  content: '←';
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}
.stgz-back-btn:hover::before{ transform: translateX(-5px); }

.stgz-back-btn::after{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent);
  transition: left 0.6s ease;
}
.stgz-back-btn:hover::after{ left: 100%; }

.stgz-back-btn:hover{
  border-color: #c0a080;
  color: #fff8e6;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(192, 160, 128, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateX(-8px);
  padding-left: 45px;
  padding-right: 35px;
}

/* 文章導航 */
.stgz-article-nav{
  display: flex;
  justify-content: space-between;
  margin: 70px 0;
  padding: 30px 0;
  border-top: 2px dashed rgba(192, 160, 128, 0.3);
  border-bottom: 2px dashed rgba(192, 160, 128, 0.3);
}

.stgz-nav-prev,
.stgz-nav-next{
  color: #b8c4e6;
  text-decoration: none;
  padding: 15px 30px;
  border: 1px solid rgba(192, 160, 128, 0.3);
  border-radius: 4px;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  background: rgba(30, 35, 70, 0.6);
  backdrop-filter: blur(3px);

  position: relative;
  transition: all 0.4s ease;
}

.stgz-nav-prev::before{ content: '←'; margin-right: 10px; transition: transform 0.3s ease; }
.stgz-nav-next::after{ content: '→'; margin-left: 10px; transition: transform 0.3s ease; }
.stgz-nav-prev:hover::before{ transform: translateX(-5px); }
.stgz-nav-next:hover::after{ transform: translateX(5px); }

.stgz-nav-prev:hover,
.stgz-nav-next:hover{
  border-color: #c0a080;
  color: #fff8e6;
  background: rgba(192, 160, 128, 0.1);
  box-shadow:
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.stgz-nav-prev:hover{ transform: translateX(-5px) translateY(-2px); }
.stgz-nav-next:hover{ transform: translateX(5px) translateY(-2px); }
.stgz-article-content::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:0.18;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.22) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 72% 18%, rgba(255,248,230,0.18) 0 1.3px, transparent 2.3px),
    radial-gradient(circle at 42% 68%, rgba(255,255,255,0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 62%, rgba(255,255,255,0.12) 0 1px, transparent 2px);
  background-size: 260px 260px;
}
.stgz-article-content{
  background:
    linear-gradient(145deg,
      rgba(20, 25, 60, 0.9) 0%,
      rgba(35, 40, 80, 0.8) 100%),
    url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20,180 Q100,20 180,180' stroke='rgba(100,150,255,0.05)' stroke-width='1' fill='none'/%3E%3C/svg%3E");

  border: 2px solid rgba(192, 160, 128, 0.3);
  border-radius: 8px;
  padding: 60px 70px;
  margin: 50px 0;
  position: relative;
  overflow: hidden;
  line-height: 1.9;
  font-size: 1.2rem;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

.stgz-article-body{
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

.stgz-article-body p{
  margin-bottom: 2em;
  text-align: justify;
  position: relative;
  color: #d8e0ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stgz-article-body h2,
.stgz-article-body h3{
  color: #fff8e6;
  margin: 2.5em 0 1.2em;
  border-left: 4px solid #c0a080;
  padding-left: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.stgz-article-body h2::before,
.stgz-article-body h3::before{
  content: '✦';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  color: #c0a080;
  font-size: 1.2rem;
  opacity: 0.7;
}

/* blockquote */
.stgz-article-body blockquote{
  border-left: 5px solid rgba(100, 150, 255, 0.6);
  padding: 35px 45px;
  margin: 40px 0;
  background:
    linear-gradient(90deg,
      rgba(50, 60, 120, 0.4) 0%,
      transparent 100%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org2000/svg'%3E%3Ccircle cx='50' cy='50' r='2' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
  border-radius: 0 8px 8px 0;
  font-style: italic;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.3);
}

.stgz-article-body blockquote::before{
  content: '「';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 5rem;
  color: rgba(192, 160, 128, 0.4);
  font-family: 'STKaiti', 'KaiTi', serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.stgz-article-body blockquote::after{
  content: '」';
  position: absolute;
  bottom: -40px;
  right: 20px;
  font-size: 5rem;
  color: rgba(192, 160, 128, 0.4);
  font-family: 'STKaiti', 'KaiTi', serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.stgz-article-body blockquote p{
  position: relative;
  z-index: 1;
  text-indent: 0;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #e6e6ff;
}

/* single meta chips */
.stgz-article-meta{
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 50px;
  color: #b8c4e6;
  font-size: 1rem;
  flex-wrap: wrap;
}

.stgz-meta-tags,
.stgz-meta-date{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(30, 35, 70, 0.6);
  border: 1px solid rgba(192, 160, 128, 0.2);
  border-radius: 4px;
  backdrop-filter: blur(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.2);
}
.stgz-mainstory-back{
  margin: 56px auto 10px;
  padding: 34px 26px;
  text-align: center;
  position: relative;

  background: rgba(30, 35, 70, 0.55);
  border: 1px solid rgba(192, 160, 128, 0.28);
  border-radius: 10px;
  backdrop-filter: blur(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.28);
}

.stgz-mainstory-back::before{
  content: "✦";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  opacity: 0.85;
  color: rgba(255, 248, 230, 0.9);
  text-shadow: 0 0 12px rgba(255, 248, 230, 0.25);
}

.stgz-mainstory-back::after{
  content: "";
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(192,160,128,0) 0%,
    rgba(192,160,128,0.55) 50%,
    rgba(192,160,128,0) 100%
  );
  opacity: 0.9;
}

.stgz-mainstory-kicker{
  margin-top: 14px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #b8c4e6;
  letter-spacing: 4px;
  opacity: 0.92;
}

.stgz-mainstory-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto;
  max-width: 560px;
  width: auto;

  gap: 10px;
  padding: 14px 28px;

  color: #fff8e6;
  text-decoration: none;

  background: linear-gradient(145deg,
    rgba(40, 46, 90, 0.86) 0%,
    rgba(26, 31, 74, 0.94) 100%);

  border: 2px solid rgba(192, 160, 128, 0.48);
  border-radius: 8px;

  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  word-break: keep-all;
  line-break: strict;
  overflow-wrap: normal;
  text-align: center;
}

.stgz-mainstory-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(192, 160, 128, 0.78);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.36),
    0 0 20px rgba(192, 160, 128, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* 星座連線裝飾 */
.stgz-constellation{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.stgz-constellation-line{
  position: fixed;
  border: 1px solid rgba(100, 150, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 20px rgba(100, 150, 255, 0.1);
}

/* 星雲 */
.stgz-nebula{
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(100, 150, 255, 0.1) 0%,
    transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.stgz-nebula.nebula-1{
  top: 20%;
  left: 10%;
  background: radial-gradient(circle,
    rgba(100, 150, 255, 0.15) 0%,
    transparent 70%);
}
.stgz-nebula.nebula-2{
  bottom: 30%;
  right: 15%;
  background: radial-gradient(circle,
    rgba(192, 160, 128, 0.1) 0%,
    transparent 70%);
}

/* 標題裝飾 */
.stgz-title-decoration{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.stgz-astrolabe{
  width: 50px;
  height: 50px;
  border: 2px solid rgba(192, 160, 128, 0.5);
  border-radius: 50%;
  position: relative;
  animation: stgz-astrolabe-rotate 20s linear infinite;
}
.stgz-astrolabe.reverse{ animation-direction: reverse; }
.stgz-astrolabe::before,
.stgz-astrolabe::after{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(192, 160, 128, 0.3);
  border-radius: 50%;
}
.stgz-astrolabe::before{ width: 70%; height: 70%; }
.stgz-astrolabe::after{ width: 40%; height: 40%; }

@keyframes stgz-astrolabe-rotate{
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 天文儀器分隔線 */
.stgz-astronomy-divider{
  position: relative;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(192, 160, 128, 0.4),
    rgba(100, 150, 255, 0.4),
    rgba(192, 160, 128, 0.4),
    transparent);
  margin: 50px auto;
  max-width: 700px;
}
.stgz-armillary-sphere{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 2px solid rgba(192, 160, 128, 0.6);
  border-radius: 50%;
}
.stgz-armillary-sphere::before,
.stgz-armillary-sphere::after{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(192, 160, 128, 0.4);
  border-radius: 50%;
}
.stgz-armillary-sphere::before{ width: 70%; height: 70%; }
.stgz-armillary-sphere::after{ width: 30%; height: 30%; }

/* 星軌時間線 */
.stgz-timeline{
  position: relative;
  height: 4px;
  background: linear-gradient(90deg,
    rgba(192, 160, 128, 0.4),
    rgba(100, 150, 255, 0.4));
  margin: 60px auto;
  max-width: 600px;
  border-radius: 2px;
}
.stgz-timeline-track{
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 12px
  );
  border-radius: 2px;
}
.stgz-timeline-start,
.stgz-timeline-end{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(192, 160, 128, 0.6);
  border-radius: 50%;
  background: rgba(30, 35, 70, 0.8);
}
.stgz-timeline-start{ left: -10px; }
.stgz-timeline-end{ right: -10px; }
.stgz-timeline-marker{
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  font-size: 0.9rem;
  color: #8895d6;
  white-space: nowrap;
}

/* 星等標記 */
.stgz-magnitude{
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 10px;
  background: rgba(30, 35, 70, 0.8);
  border: 1px solid rgba(100, 150, 255, 0.3);
  border-radius: 12px;
  font-size: 0.8rem;
  color: #b8c4e6;
  z-index: 2;
}

/* 星座點裝飾 */
.stgz-constellation-dot{
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #c0a080;
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 8px rgba(192, 160, 128, 0.5);
  animation: stgz-pulse 2s ease-in-out infinite;
}
@keyframes stgz-pulse{
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* 空觀測台 */
.stgz-empty-observatory{
  text-align: center;
  padding: 100px 30px;
  color: #8895d6;
  font-style: italic;
  background: rgba(30, 35, 70, 0.5);
  border-radius: 8px;
  border: 2px dashed rgba(100, 150, 255, 0.3);
  margin: 60px auto;
  max-width: 600px;
}
.stgz-telescope{
  font-size: 4rem;
  margin-bottom: 30px;
  opacity: 0.5;
  animation: stgz-telescope-scan 6s ease-in-out infinite;
}
.stgz-empty-hint{
  font-size: 1.1rem;
  opacity: 0.8;
  margin-top: 15px;
}
@keyframes stgz-telescope-scan{
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(30deg); }
  75% { transform: rotate(-30deg); }
}

/* =========================================================
   14. RWD
========================================================= */

@media (max-width: 1000px){
  .stgz-scroll-container{ padding: 54px 34px; }
  .stgz-title-main{ font-size: 3.4rem; padding: 18px 52px; }
  .stgz-intro-box{ padding: 44px 46px; }
  .stgz-record-list{ gap: 28px; }
  .stgz-initchip{ padding: 4px 9px; font-size: 0.84rem; }
  .stgz-mainstory-back{ margin: 44px auto 10px; padding: 26px 22px; }
  .stgz-mainstory-kicker{ font-size: 0.92rem; letter-spacing: 3px; margin-bottom: 12px; }
  .stgz-mainstory-btn{ padding: 12px 24px; gap: 8px; }
}

@media (max-width: 768px){
  .stgz-scroll-container{ padding: 46px 22px; }
  .stgz-title-main{ font-size: 2.7rem; letter-spacing: 10px; padding: 16px 40px; }
  .stgz-title-sub{ font-size: 1.2rem; letter-spacing: 5px; padding: 10px 28px; }
  .stgz-intro-box{ padding: 38px 28px; }
  .stgz-record-list{ grid-template-columns: 1fr; padding: 0 10px; }
  .stgz-article-content{ padding: 44px 34px; }
  .stgz-article-nav{ flex-direction: column; gap: 14px; }
  .stgz-nav-prev, .stgz-nav-next{ max-width: 100%; }
  .stgz-mainstory-back{ margin: 38px auto 8px; padding: 22px 18px; }
  .stgz-mainstory-kicker{ font-size: 0.9rem; letter-spacing: 3px; margin-bottom: 10px; }
  .stgz-mainstory-btn{ padding: 12px 20px; gap: 8px; }
}

@media (max-width: 480px){
  .stgz-title-main{ font-size: 2.2rem; letter-spacing: 8px; padding: 14px 28px; }
  .stgz-page-title::before{ top: 24px; width: 100px; }
  .stgz-starfield{ opacity: 0.72; }
  .stgz-wrapper::before{ opacity: 0.16; }
  .stgz-article-content::before{ opacity: 0.12; }
  .stgz-record-card{ padding: 28px 22px; }
  .stgz-intro-box{ padding: 28px 18px; }
  .stgz-article-content{ padding: 34px 18px; font-size: 1.1rem; }
  .stgz-mainstory-back{ margin: 30px auto 8px; padding: 18px 14px; }
  .stgz-mainstory-kicker{ font-size: 0.88rem; letter-spacing: 2px; margin-bottom: 10px; }
  .stgz-mainstory-btn{
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    gap: 8px;
    justify-content: center;
    white-space: normal; /* 小螢幕允許整句換行 */
  }
}

@media (max-width: 360px){
  .stgz-title-main{ font-size: 2rem; letter-spacing: 7px; padding: 12px 22px; }
  .stgz-record-card{ padding: 26px 18px; }
  .stgz-initchip{ font-size: 0.8rem; padding: 4px 8px; }
  .stgz-mainstory-back{ margin: 26px auto 8px; padding: 16px 12px; }
  .stgz-mainstory-kicker{ font-size: 0.86rem; letter-spacing: 2px; margin-bottom: 8px; }
  .stgz-mainstory-btn{
    width: 100%;
    max-width: 100%;
    padding: 11px 12px;
    gap: 8px;
    font-size: 0.95rem;
    word-break: keep-all;
    line-break: strict;
  }
}