
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #05080f;
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== Canvas背景 ===== */
#starCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== 右上角黑洞画布 ===== */
#blackHoleCanvas {
  position: fixed;
  top: 55px;
  right: 20px;
  width: 260px;
  height: 260px;
  z-index: 15;

  background: transparent !important;
  border-radius: 50%;
}

/* ===== 星空流星雨画布（点击小熊触发） ===== */
#meteorCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 16;

  display: none;
}

/* ===== 顶部导航 ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: rgba(10,14,26,0.75);
  backdrop-filter: blur(12px);
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #e0e0e0;
}
.bear-bar-left {
  font-size: 30px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 12px;
  line-height: 1;
  opacity: 0.7;
  transition: transform .2s;
}
.bear-bar-left:active { transform: scale(0.85); }
.nav-left .brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  display: inline-block;
  perspective: 200px;
  animation: brandSpin 4s linear infinite;
}
@keyframes brandSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
.nav-left .brand-name .en { color: #00a8ff; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #889;
  letter-spacing: 1px;
}
.nav-right .dot { color: #00a8ff; font-size: 8px; margin: 0 4px; }
.nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0;
}
.nav-tabs .tab-item {
  padding: 8px 18px;
  font-size: 14px;
  margin: 0 2px;
  background: none;
  border-radius: 0;
  letter-spacing: 4px;
  text-shadow:
    0 0 6px rgba(160,200,255,0.4),
    0 0 20px rgba(100,160,255,0.2),
    0 0 40px rgba(60,140,255,0.1);
  transition: text-shadow .3s, color .3s;
}
.nav-tabs .tab-item.active {
  background: none;
  color: #e8f4ff;
  text-shadow:
    0 0 8px rgba(160,200,255,0.7),
    0 0 24px rgba(100,160,255,0.4),
    0 0 50px rgba(60,140,255,0.2),
    0 0 80px rgba(40,100,200,0.1);
}
.nav-tabs .tab-item.active::after {
  display: none;
}
.nav-tabs .bear-bar-left {
  width: 36px; height: 36px;
  font-size: 24px;
  margin: 0 6px;
}
.nav-tabs .bear-trigger {
  width: 36px; height: 36px;
  margin: 0 6px;
  font-size: 24px;
}

/* ===== 内容区 ===== */
.main {
  position: relative;
  z-index: 5;
  padding-top: 60px;
  height: calc(100vh - 80px);
  min-height: calc(100vh - 80px);
}

/* 首页欢迎 */
.home-view {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 首页宣传视频 Hero 区 */
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(2,2,10,0.5) 0%, rgba(5,8,22,0.35) 50%, rgba(2,2,10,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: auto;
}

.hero-title {
  font-size: 56px;
  color: #e0f0ff;
  text-shadow: 0 0 20px rgba(140,200,255,0.6), 0 0 60px rgba(80,160,255,0.3);
  margin-bottom: 8px;
  letter-spacing: 10px;
  font-weight: 300;
}

.hero-sub {
  font-size: 20px;
  color: #8ab;
  text-shadow: 0 0 10px rgba(140,200,255,0.4);
  letter-spacing: 6px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-btn {
  padding: 10px 28px;
  border: 1px solid rgba(140,200,255,0.25);
  border-radius: 30px;
  color: rgba(180,210,255,0.8);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  background: rgba(10,14,36,0.5);
}

.hero-btn:hover {
  border-color: rgba(249,115,22,0.6);
  color: #fff;
  background: rgba(249,115,22,0.12);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  font-size: 13px;
  color: rgba(140,180,230,0.35);
  animation: bobDown 2s ease-in-out infinite;
  letter-spacing: 4px;
}

@keyframes bobDown {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(6px); opacity: 0.7; }
}
.home-welcome {
  margin-top: 60px;
}
.home-welcome h1 {
  font-size: 48px;
  color: #e0f0ff;
  text-shadow: 0 0 15px rgba(140,200,255,0.6), 0 0 40px rgba(80,160,255,0.3), 0 0 80px rgba(60,140,255,0.15);
  margin-bottom: 12px;
  letter-spacing: 6px;
  font-weight: 300;
}
.home-sub {
  font-size: 18px;
  color: #8ab;
  text-shadow: 0 0 8px rgba(140,200,255,0.4);
  letter-spacing: 8px;
}
.fade-in {
  animation: fadeUp 1.2s ease-out;
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.main p, .main h2, .main h3 {
  text-shadow: 0 0 6px rgba(160,200,255,0.4), 0 0 18px rgba(100,160,255,0.15);
}

/* ===== 标签导航 ===== */
.tab-bar {
  /* 留空占位，tab已移到顶部导航 */
}
.tab-item {
  padding: 10px 28px;
  font-size: 15px;
  cursor: pointer;
  color: #9ab;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(120,180,255,0.5), 0 0 30px rgba(60,140,255,0.2);
  background: rgba(20,30,55,0.3);
  border-radius: 8px;
  margin: 0 4px;
  transition: all .3s;
  border-radius: 0;
  position: relative;
  user-select: none;
}
.tab-item.active { color: #e0f0ff; text-shadow: 0 0 10px rgba(140,200,255,0.8), 0 0 30px rgba(80,160,255,0.4), 0 0 60px rgba(60,140,255,0.15); background: rgba(20,35,70,0.4); }
.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: #00a8ff;
  border-radius: 2px;
}

/* ===== 小熊触发器 ===== */
.bear-trigger {
  width: 44px; height: 44px;
  margin: 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: transform .2s;
  user-select: none;
  position: relative;
}
.bear-trigger:active { transform: scale(0.85); }
.bear-trigger .bear-emoji { 
  display: inline-block; 
  transition: transform .15s;
  line-height: 1;
}
.bear-trigger .bear-emoji:active {
  animation: bearBounce .3s ease;
}
@keyframes bearBounce {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* ===== 行星系统 - 星空散落 ===== */
.planet-system {
  position: relative;
  width: 100%;
  height: 68vh;
  min-height: 480px;
  max-height: 760px;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
}

/* 3D 场景下隐藏黑暗角落的底色 */
.planet-system::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: -1;
}

/* 3D 场景容器 */
.planet-system canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* CSS2D 标签 - 行星名称 */
.planet-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(200,220,255,0.7);
  font-size: 11px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0,0,0,0.8), 0 0 3px rgba(0,0,0,0.6);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transition: opacity 0.2s;
  transform: translateY(-50%);
}
.planet-label .pl-icon {
  font-size: 13px;
  opacity: 0.8;
}
.planet-label .pl-name {
  font-weight: 400;
}

/* 悬浮信息面板 - 由 planet3d.js 动态创建 */
#planetTooltip {
  animation: tooltipFadeIn 0.15s ease-out;
}
@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 行星入场 */
.planet-enter {
  animation: planetFlyIn 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes planetFlyIn {
  0% { opacity: 0; transform: scale(0.05); }
  40% { opacity: 0.3; }
  100% { opacity: 1; transform: scale(1); }
}

/* 行星 */
.planet {
  position: absolute;
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .35s ease;
  text-align: center;
}
.planet:hover { transform: scale(1.25) !important; z-index: 10; }
.planet:hover .planet-name { opacity: 1; }
.planet:active { transform: scale(0.9) !important; }

/* 行星本体 - Canvas写实球体 */
.planet .sphere {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
  overflow: hidden;
  background: transparent;
}
.planet .sphere canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* 行星名称 - 默认隐藏，hover显示 */
.planet .planet-name {
  position: relative;
  z-index: 3;
  color: #bcc;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0,0,0,0.9);
  opacity: 0;
  transition: opacity .3s ease;
  max-width: 70px;
  line-height: 1.3;

}

/* 彩色光晕 - 行星外围光圈 */
.planet .halo {
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(15px);
  z-index: -1;
  transition: all .4s;

}
.planet:hover .halo {
  opacity: 0.35;
  filter: blur(18px);
  transform: scale(1.1);
}

/* 光圈描边 */
.planet .aura {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.04);
  opacity: 0.3;
  transition: all .4s;

}
.planet:hover .aura {
  opacity: 0.6;
  transform: scale(1.08);
}

/* 土星环 */
.planet .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  height: 30px;
  transform: translate(-50%, -50%) rotateX(75deg);
  border: 2.5px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  opacity: 0.2;
  transition: opacity .3s;

}

.learn-layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 28px;
  min-height: 400px;
  animation: learnFadeIn .35s ease;
}
@keyframes learnFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.learn-side {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1px solid rgba(100,180,255,0.06);
  padding-right: 20px;
}
.learn-tag {
  position: relative;
  padding: 9px 12px 9px 24px;
  cursor: pointer;
  color: rgba(180,200,240,0.35);
  font-size: 13px;
  transition: all .3s ease;
  border-radius: 6px;
  line-height: 1.4;
}
.learn-tag::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  margin-top: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(100,180,255,0.08);
  transition: all .3s ease;
}
.learn-tag:hover {
  color: rgba(180,200,240,0.7);
  background: rgba(100,180,255,0.03);
}
.learn-tag:hover::before {
  background: rgba(100,180,255,0.3);
  box-shadow: 0 0 6px rgba(100,180,255,0.15);
}
.learn-tag.active {
  color: rgba(200,220,255,0.85);
  background: rgba(80,160,255,0.05);
}
.learn-tag.active::before {
  background: rgba(80,160,255,0.6);
  box-shadow: 0 0 8px rgba(80,160,255,0.3);
}
.learn-main {
  flex: 1;
  min-height: 300px;
}
.learn-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #556;
  font-size: 14px;
  letter-spacing: 1px;
}
.learn-detail {
  padding: 0;
}
.learn-detail h3 {
  font-size: 20px;
  font-weight: 500;
  color: rgba(200,220,255,0.85);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 20px rgba(100,180,255,0.1);
}
.learn-detail .field {
  background: rgba(60,120,220,0.02);
  border: 1px solid rgba(100,180,255,0.04);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
  transition: border-color .3s;
}
.learn-detail .field:hover {
  border-color: rgba(100,180,255,0.08);
}
.learn-detail .field .label {
  font-size: 11px;
  color: rgba(180,200,240,0.2);
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.learn-detail .field .value {
  font-size: 13px;
  color: rgba(180,200,240,0.6);
  line-height: 1.7;
}
.learn-detail .field .value a {
  color: rgba(80,160,255,0.7);
  text-decoration: none;
  transition: color .3s;
}
.learn-detail .field .value a:hover {
  color: rgba(80,160,255,1);
  text-decoration: underline;
}
.learn-detail .risk-list {
  margin: 0;
  padding-left: 16px;
}
.learn-detail .risk-list li {
  font-size: 13px;
  color: rgba(180,200,240,0.55);
  margin-bottom: 4px;
  line-height: 1.6;
}

/* ===== 翻书组件 ===== */
.book-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 350px;
  padding: 30px 20px 50px;
}

/* 卡片网格模式（星空浮卡）*/
.book-tab.card-mode {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  min-height: calc(100vh - 140px);
  overflow: hidden;
}

.book-tab.fullpage {
  display: block;
  padding: 0;
  min-height: calc(100vh - 80px);
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 5;
  background: #0a0e1a;
}
@keyframes bookFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.book-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* 书的三维框架 */
.book-shape {
  position: relative;
  width: 400px;
  height: 500px;
  margin: 0 auto;
  perspective: 600px;
}

/* █ 书的投影（在地面上） */
.book-shape .book-shadow {
  position: absolute;
  left: 2px;
  top: 4px;
  right: -10px;
  bottom: -8px;
  z-index: 0;
  pointer-events: none;

  background: transparent;
  border-radius: 6px 16px 16px 6px;
  box-shadow:
    0 0 8px rgba(80,160,255,0.04),
    0 0 2px rgba(100,180,255,0.02);
}

/* █ 右侧面（纸页堆叠垂直面，40px） */
.book-shape .book-right-face {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 30px;
  width: 30px;
  z-index: 1;

  border-radius: 0 4px 0 0;
  background: linear-gradient(180deg,
    rgba(180,200,240,0.3) 0%,
    rgba(160,185,230,0.25) 50%,
    rgba(140,170,220,0.2) 100%);
  box-shadow:
    inset 1px 0 0 rgba(220,225,240,0.04),
    inset 2px 0 0 rgba(215,222,238,0.03),
    inset 3px 0 0 rgba(210,218,235,0.025),
    inset 0 2px 0 rgba(220,225,240,0.01),
    inset 0 4px 0 rgba(220,225,240,0.008),
    inset 0 6px 0 rgba(220,225,240,0.006);
}
.book-shape .book-right-face::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.01) 60%,
    transparent 100%);

}

/* █ 前面（纸页堆叠水平面，40px） */
.book-shape .book-bottom-face {
  position: absolute;
  left: 0;
  right: 30px;
  bottom: 0;
  height: 30px;
  z-index: 1;

  border-radius: 0 0 0 4px;
  background: linear-gradient(90deg,
    rgba(180,200,240,0.25) 0%,
    rgba(160,185,230,0.2) 50%,
    rgba(140,170,220,0.15) 100%);
  box-shadow:
    inset 0 1px 0 rgba(220,225,240,0.04),
    inset 0 2px 0 rgba(215,222,238,0.03),
    inset 0 3px 0 rgba(210,218,235,0.02),
    inset 2px 0 0 rgba(220,225,240,0.01),
    inset 4px 0 0 rgba(220,225,240,0.008),
    inset 6px 0 0 rgba(220,225,240,0.006);
}
.book-shape .book-bottom-face::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(0deg,
    rgba(0,0,0,0.04) 0%,
    rgba(0,0,0,0.005) 60%,
    transparent 100%);

}

/* █ 右侧面和前面的交界 */
.book-shape .book-corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  z-index: 2;

  background: rgba(160,185,230,0.2);
  border-radius: 0 0 4px 0;
}

/* █ 封面（上表面） */
.book-cover {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  cursor: pointer;
  user-select: none;
  border-radius: 4px 16px 16px 4px;
  background: linear-gradient(165deg,
    rgba(18,45,90,0.85) 0%,
    rgba(20,50,100,0.8) 35%,
    rgba(15,40,85,0.75) 65%,
    rgba(12,30,65,0.82) 100%);
  border: 1px solid rgba(100,180,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: none;
  box-shadow:
    0 3px 12px rgba(0,0,0,0.12),
    0 0 20px rgba(0,0,0,0.06),
    inset 0 0 40px rgba(40,80,160,0.006);
}

/* 封面翻开3D动画 — 2.5秒 */
.book-cover.flipping {
  animation: coverFlip 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  transform-origin: left center;
  backface-visibility: hidden;
}
@keyframes coverFlip {
  0%   { transform: rotateY(0deg); opacity: 1; }
  10%  { transform: rotateY(-15deg); opacity: 1; }
  25%  { transform: rotateY(-40deg); opacity: 0.9; }
  40%  { transform: rotateY(-65deg); opacity: 0.5; }
  55%  { transform: rotateY(-90deg); opacity: 0.15; }
  70%  { transform: rotateY(-110deg); opacity: 0.05; }
  100% { transform: rotateY(-180deg); opacity: 0; visibility: hidden; }
}

/* 翻开后封面 */
.book-cover.hidden {
  opacity: 0;

}

/* 翻开书本后关闭3D面/投影 */
.book-shape.book-open .book-shadow,
.book-shape.book-open .book-right-face,
.book-shape.book-open .book-bottom-face,
.book-shape.book-open .book-corner,
.book-shape.book-open .cover-spine {
  opacity: 0;

  transition: opacity 0.2s ease;
}

/* 装饰边框 */
.book-cover .cover-frame {
  position: absolute;
  left: 3px;
  top: 3px;
  right: 3px;
  bottom: 3px;

  border: 1px solid rgba(80,130,220,0.015);
  border-radius: 2px 12px 12px 2px;
}
.book-cover .cover-frame2 {
  position: absolute;
  left: 6px;
  top: 6px;
  right: 6px;
  bottom: 6px;

  border: 1px solid rgba(80,130,220,0.008);
  border-radius: 1px 8px 8px 1px;
}

/* 书脊（左面凸起） */
.book-cover .cover-spine {
  position: absolute;
  left: -14px;
  top: -1px;
  bottom: -1px;
  width: 17px;
  z-index: 6;

  border-radius: 10px 2px 2px 10px;
  background: linear-gradient(135deg,
    rgba(4,6,14,0.95) 0%,
    rgba(6,10,22,0.9) 25%,
    rgba(8,14,30,0.82) 50%,
    rgba(12,20,42,0.6) 70%,
    rgba(16,25,48,0.3) 85%,
    transparent 100%);
  box-shadow:
    -5px 0 18px rgba(0,0,0,0.4),
    -2px 0 6px rgba(0,0,0,0.2),
    3px 0 8px rgba(0,0,0,0.06);
}
.book-cover .cover-spine::after {
  content: '';
  position: absolute;
  right: 0;
  top: 8%;
  bottom: 8%;
  width: 5px;
  background: linear-gradient(90deg, transparent, rgba(60,120,220,0.015));
  border-radius: 0 2px 2px 0;
}

/* 折痕 */
.book-cover .cover-hinge {
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 2px;
  z-index: 5;

  background: linear-gradient(180deg,
    transparent 0%,
    rgba(60,100,200,0.015) 20%,
    rgba(60,100,200,0.025) 50%,
    rgba(60,100,200,0.015) 80%,
    transparent 100%);
}
.book-cover .cover-hinge::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    transparent, rgba(40,80,160,0.008), transparent);
}

/* 书签带 */
.book-cover .cover-bookmark {
  position: absolute;
  right: 18px;
  bottom: -12px;
  width: 4px;
  height: 16px;
  z-index: 7;
  background: linear-gradient(180deg, rgba(200,140,70,0.1), rgba(200,140,70,0.02));
  border-radius: 0 0 2px 2px;

}
.book-cover .cover-bookmark::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: -2px;
  right: -2px;
  height: 2px;
  background: rgba(200,150,80,0.04);
  border-radius: 50%;
}

/* 封面内容 */
.book-cover .cover-icon {
  position: relative;
  z-index: 4;
  font-size: 24px;
  margin-bottom: 6px;
  opacity: 0.08;
  filter: drop-shadow(0 0 10px rgba(80,160,255,0.04));
}
.book-cover .cover-title {
  position: relative;
  z-index: 4;
  font-size: 32px;
  letter-spacing: 12px;
  color: #d4a837;
  margin-bottom: 12px;
  font-weight: 700;
  text-shadow:
    0 0 6px rgba(255,215,0,0.5),
    0 0 16px rgba(255,215,0,0.25),
    0 0 32px rgba(255,200,0,0.12),
    2px 2px 4px rgba(0,0,0,0.4);
  background: linear-gradient(180deg,
    #fae27a 0%,
    #d4a837 30%,
    #b8922b 50%,
    #c49b30 70%,
    #e8c84a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.book-cover .cover-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,215,0,0.6) 20%,
    rgba(255,215,0,0.8) 50%,
    rgba(255,215,0,0.6) 80%,
    transparent 100%);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(255,215,0,0.3);
}
.book-cover .cover-hint {
  position: relative;
  z-index: 4;
  font-size: 10px;
  letter-spacing: 6px;
  color: rgba(160,190,240,0.015);
  animation: coverHint 2.5s ease-in-out infinite;
}
@keyframes coverHint {
  0%, 100% { opacity: 0.015; }
  50% { opacity: 0.15; text-shadow: 0 0 6px rgba(80,160,255,0.01); }
}

/* 封面翻开 */


/* ============= 展开的书页 ============= */
.book-spread {
  position: absolute;
  left: 50%;
  top: 0;
  width: 800px;
  height: 500px;
  margin-left: -400px;
  z-index: 3;
  opacity: 0;

  perspective: 600px;
  perspective-origin: center center;
}
.book-spread.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  animation: spreadFadeIn 0.4s ease backwards;
}

@keyframes spreadFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 展开页容器 — 3D V形 */
.book-spread-inner {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
  transform-style: preserve-3d;
}

/* 展开后的书脊内侧阴影 */
.book-spread .spread-spine {
  position: absolute;
  left: -6px;
  top: 0;
  bottom: 0;
  width: 14px;
  z-index: 5;

  background: linear-gradient(90deg,
    rgba(60,120,200,0.25) 0%,
    rgba(40,90,170,0.18) 20%,
    rgba(30,70,140,0.1) 40%,
    rgba(20,50,100,0.06) 60%,
    rgba(16,28,52,0.06) 75%,
    rgba(20,32,60,0.08) 85%,
    transparent 100%);
  border-radius: 6px 0 0 6px;
}
/* 书脊内侧凸起弧面 */
.book-spread .spread-spine::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4%;
  bottom: 4%;
  width: 8px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg,
    rgba(40,60,100,0.08) 0%,
    transparent 100%);
  box-shadow: inset -1px 0 2px rgba(20,40,80,0.06);
}

/* 展开后的底部纸页厚度 */
.book-spread .spread-bottom {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -3px;
  height: 3px;
  z-index: 5;

  background: rgba(210,220,240,0.012);
  border-radius: 0 0 2px 2px;
  box-shadow:
    0 1px 0 rgba(210,220,240,0.008),
    0 2px 0 rgba(205,215,235,0.005);
}

/* 左页 */
.book-left {
  flex: 0 0 50%;
  transform: rotateY(8deg);
  transform-origin: right center;
  background: linear-gradient(135deg,
    rgba(200,218,240,0.08) 0%,
    rgba(205,222,245,0.05) 100%);
  border-radius: 3px 0 0 3px;
  position: relative;
  overflow: hidden;
}
.book-left::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 10px;
  right: 10px;
  bottom: 14px;
  border: 1px solid rgba(100,150,220,0.005);
  border-radius: 2px;
}
/* 左页右边阴影（翻折阴影到书脊方向） */
.book-left::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  width: 12px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04));

  border-radius: 0 2px 2px 0;
}

/* 左页内容 */
.book-left-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 14px 14px 12px 16px;
  z-index: 1;
}
.book-left-content .bc-page { flex: 1; }

/* 目录样式 */
.toc-heading {
  font-size: 13px;
  color: rgba(255,215,0,0.7);
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 14px;
  text-shadow: 0 0 6px rgba(255,215,0,0.2);
}
.toc-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
  color: rgba(200,220,255,0.5);
  font-size: 11px;
  line-height: 1.5;
}
.toc-item:hover {
  background: rgba(255,215,0,0.06);
  color: rgba(255,215,0,0.6);
}
.toc-item.toc-active {
  color: rgba(255,215,0,0.8);
  text-shadow: 0 0 4px rgba(255,215,0,0.15);
}
.toc-num {
  flex-shrink: 0;
  color: rgba(255,215,0,0.4);
  font-size: 10px;
  min-width: 16px;
  text-align: right;
}

/* 左页旧内容（上一页的灰化版本） */
.book-left-content .bc-old { filter: brightness(0.75); opacity: 0.85; }
.book-left-content .bc-old .bc-title { font-size: 11px; color: rgba(200,220,255,0.55); }
.book-left-content .bc-old .bc-label { color: rgba(200,220,255,0.4); }
.book-left-content .bc-old .bc-value { color: rgba(200,220,255,0.45); }
.book-right {
  flex: 0 0 50%;
  transform: rotateY(-8deg);
  transform-origin: left center;
  background: linear-gradient(135deg,
    rgba(205,222,245,0.1) 0%,
    rgba(195,215,240,0.06) 100%);
  border-radius: 0 3px 3px 0;
  position: relative;
  padding: 20px 16px 14px 22px;
  overflow-y: auto;
  scrollbar-width: none;
}
.book-right::-webkit-scrollbar { display: none; }
/* 右页左边阴影（翻折阴影到书脊方向） */
.book-right::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 12px;
  z-index: 2;
  background: linear-gradient(270deg, transparent, rgba(0,0,0,0.04));

  border-radius: 2px 0 0 2px;
}

/* 中缝 */
.book-spine-line {
  position: absolute;
  left: -3px;
  top: 18px;
  bottom: 18px;
  width: 6px;
  z-index: 3;
  background: linear-gradient(90deg,
    rgba(120,170,240,0.008) 0%,
    rgba(100,150,220,0.012) 30%,
    rgba(80,130,200,0.015) 50%,
    rgba(100,150,220,0.012) 70%,
    rgba(120,170,240,0.008) 100%);
  border-radius: 3px;
}

/* 翻页 */
.book-spread.flipping {
  animation: pageFlip .5s ease-in-out forwards;
}
@keyframes pageFlip {
  0% { transform: rotateY(0deg); transform-origin: left center; }
  35% { transform: rotateY(-120deg); transform-origin: left center; }
  55% { transform: rotateY(-125deg); transform-origin: left center; opacity: 0.5; }
  100% { transform: rotateY(0deg); transform-origin: left center; }
}
.book-spread.flipping-back {
  animation: pageFlipBack .5s ease-in-out forwards;
}
@keyframes pageFlipBack {
  0% { transform: rotateY(0deg); transform-origin: left center; }
  35% { transform: rotateY(120deg); transform-origin: left center; }
  55% { transform: rotateY(125deg); transform-origin: left center; opacity: 0.5; }
  100% { transform: rotateY(0deg); transform-origin: left center; }
}

/* 内容样式 */
.book-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bc-title {
  font-size: 14px;
  color: rgba(220,235,255,0.75);
  letter-spacing: 1px;
  margin-bottom: 10px;
  line-height: 1.35;
}
.bc-section { margin-bottom: 7px; }
.bc-label {
  font-size: 10px;
  color: rgba(200,220,255,0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.bc-value {
  font-size: 12px;
  color: rgba(200,215,235,0.55);
  line-height: 1.5;
}
.bc-value a {
  color: rgba(80,160,255,0.35);
  text-decoration: none;
  transition: color .3s;
}
.bc-value a:hover { color: rgba(80,160,255,0.65); }
.bc-list { margin: 0; padding-left: 12px; }
.bc-list li {
  font-size: 12px;
  color: rgba(180,200,240,0.25);
  line-height: 1.5;
  margin-bottom: 1px;
}
@keyframes paraAppear {
  0% { opacity: 0; transform: translateY(3px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 导航 */
.book-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity .5s;
  min-height: 20px;
}
.book-footer.show { opacity: 1; }
.book-arrow {
  cursor: pointer;
  font-size: 14px;
  color: rgba(200,220,255,0.5);
  transition: all .3s;
  user-select: none;
  padding: 2px 6px;
  line-height: 1;
}
.book-arrow:hover { color: rgba(255,215,0,0.7); }
.book-arrow.disabled { color: rgba(200,220,255,0.15); cursor: default; }
.book-next {
  cursor: pointer;
  font-size: 11px;
  color: rgba(255,215,0,0.55);
  transition: all .3s;
  user-select: none;
  padding: 2px 6px;
  line-height: 1;
  text-align: right;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-next:hover { color: rgba(255,215,0,0.85); }
.book-next.end { color: rgba(200,220,255,0.2); cursor: default; }
.book-close {
  cursor: pointer;
  font-size: 12px;
  color: rgba(200,220,255,0.35);
  transition: all .3s;
  user-select: none;
  padding: 2px 6px;
  line-height: 1;
}
.book-close:hover { color: rgba(255,215,0,0.6); }
.book-home {
  cursor: pointer;
  font-size: 12px;
  color: rgba(200,220,255,0.35);
  transition: all .3s;
  user-select: none;
  padding: 2px 6px;
  line-height: 1;
}
.book-home:hover { color: rgba(255,215,0,0.6); }
.book-pos {
  font-size: 10px;
  color: rgba(200,220,255,0.4);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: center;
}
.book-empty {
  color: rgba(180,200,240,0.02);
  font-size: 12px;
  letter-spacing: 2px;
  text-align: center;
  padding: 50px 0;
}

/* 无字天书：逐字动画 */
.book-content .ch {
  display: inline;
  white-space: pre;
}
/* ===== 底部 ===== */
/* 无字天书：逐字动画 */
.book-content .ch {
  display: inline;
  white-space: pre;
}
/* ===== 底部 ===== */

/* 书签带 */
.footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 30px 20px;
  color: #445;
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
  letter-spacing: 1px;
}
.footer .links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}
.footer .links a { color: #556; text-decoration: none; transition: color .2s; }
.footer .links a:hover { color: #00a8ff; }

/* ===== 树洞 - 黑洞丢文字 ===== */
#treeholeOverlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
#treeholeOverlay.active { display: flex; }
.treehole-box {
  position: relative;
  width: 420px;
  max-width: 90vw;
  margin-top: -60px;
  background: rgba(5,8,18,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(100,160,255,0.06);
  border-radius: 18px;
  padding: 30px 28px 24px;
  text-align: center;
}
.treehole-box .title {
  color: rgba(180,200,240,0.7);
  font-size: 13px;
  letter-spacing: 4px;
  margin-bottom: 18px;
}
.treehole-box textarea {
  width: 100%;
  height: 160px;
  background: rgba(0,0,0,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(100,160,255,0.05);
  border-radius: 10px;
  color: #c8a060;
  font-size: 14px;
  line-height: 1.7;
  padding: 14px;
  resize: none;
  outline: none;
  transition: border-color .25s;
  font-family: inherit;
}
.treehole-box textarea:focus {
  border-color: rgba(200,160,96,0.2);
}
.treehole-box textarea::placeholder {
  color: #c8a060;
}
.treehole-box .actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.treehole-btn-drop {
  background: rgba(80,50,120,0.3);
  border: 1px solid rgba(140,100,200,0.2);
  border-radius: 24px;
  padding: 8px 28px;
  color: rgba(200,180,240,0.7);
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .3s;
}
.treehole-btn-drop:hover {
  background: rgba(80,50,120,0.5);
  border-color: rgba(160,120,220,0.4);
  color: rgba(220,200,255,0.9);
}
.treehole-btn-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 8px 20px;
  color: rgba(255,255,255,0.25);
  font-size: 13px;
  cursor: pointer;
  transition: all .3s;
}
.treehole-btn-close:hover {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
}

/* 被吞噬的动画容器 */
#treeholeSwallowEffect {
  position: fixed;
  inset: 0;
  z-index: 1001;

  display: none;
}

#bearOverlay {
  position: fixed;
  inset: 0;
  z-index: 1002;

}
.swallow-particle {
  position: absolute;
  color: #FFD700;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;

  text-shadow:
    0 0 6px rgba(255,215,0,0.9),
    0 0 14px rgba(255,200,50,0.6),
    0 0 25px rgba(255,180,30,0.3);
  white-space: nowrap;
}
.swallow-particle::before {
  content: '';
  position: absolute;
  inset: -6px -10px;
  border-radius: 50%;
  background: radial-gradient(rgba(255,215,0,0.15), transparent 70%);

}

/* ===== 隐藏工具 ===== */
.hidden { display: none !important; }

/* ===== 滚动公告 ===== */
#newsTicker {
  position: relative;
  z-index: 6;
  height: 28px;
  line-height: 28px;
  background: rgba(10,14,26,0.5);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(100,180,255,0.05);
  margin-top: 56px;
  text-align: center;
}
#newsTicker .ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: rgba(180,200,240,0.55);
  letter-spacing: 0.5px;
  opacity: 1;
  transition: opacity 0.8s ease;
}
#newsTicker .ticker-item.fading {
  opacity: 0;
}
#newsTicker .ticker-item .ticker-star {
  color: rgba(255,215,0,0.35);
  font-size: 9px;
}


/* ===== 北斗七星 ===== */
.bear-star {
  position: fixed;
  z-index: 15;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.6s ease;
  pointer-events: auto;
}
.bear-star::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 200%; height: 200%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
  animation: starPulse 2.5s ease-in-out infinite;
  border: 0.5px solid rgba(180,200,240,0.06);
}
.bear-star.collected {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, rgba(255,215,0,0.7) 0%, rgba(255,180,50,0.25) 50%, transparent 75%);
  box-shadow: 0 0 14px rgba(255,215,0,0.5), 0 0 35px rgba(255,215,0,0.12);

}
.bear-star.collected::after {
  display: none;
}
@keyframes starPulse {
  0%, 100% { box-shadow: 0 0 2px rgba(180,200,240,0.08); }
  50% { box-shadow: 0 0 8px rgba(200,220,255,0.15); }
}
.star-1 { top: 14%; left: 12%; }
.star-2 { top: 20%; left: 82%; }
.star-3 { top: 38%; left: 45%; }
.star-4 { top: 52%; left: 20%; }
.star-5 { top: 60%; left: 70%; }
.star-6 { top: 72%; left: 50%; }
.star-7 { top: 85%; left: 30%; }

.star-line-path {
  stroke: rgba(255,215,0,0.1);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 5,5;
  transition: all 0.5s ease;
}

/* 解锁提示 */

/* 北斗七星粒子出场动画 */
#bigDipperParticleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 100;

  display: none;
}
#bigDipperParticleCanvas.show {
  display: block;
  animation: particleFadeIn 0.3s ease;
}
@keyframes particleFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
/* merged #starUnlockMsg block */
#starUnlockMsg.show { display: block; animation: unlockPop 0.5s ease; }
@keyframes unlockPop {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
#starUnlockMsg h3 {
  color: rgba(255,215,0,0.7);
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 400;
  letter-spacing: 2px;
}
#starUnlockMsg p {
  color: rgba(180,200,240,0.5);
  font-size: 12px;
  margin: 0 0 20px;
  letter-spacing: 1px;
}

/* 星星进度 */
#starProgress {
  position: fixed;
  top: 52px; left: 10px;
  z-index: 200;
  font-size: 10px;
  color: rgba(180,200,240,0.15);
  letter-spacing: 1px;

  transition: color 0.5s ease;
}
#starUnlockMsg textarea {
  width: 100%;
  height: 80px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: 10px;
  padding: 10px 12px;
  color: rgba(180,200,240,0.7);
  font-size: 12px;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  line-height: 1.6;
}
#starUnlockMsg textarea:focus {
  border-color: rgba(255,215,0,0.25);
}
#starUnlockMsg input[type="text"] {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: 10px;
  padding: 8px 12px;
  color: rgba(180,200,240,0.7);
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
  margin: 0 0 12px;
}
#starUnlockMsg input:focus {
  border-color: rgba(255,215,0,0.25);
}
#starUnlockMsg .btn-submit {
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 20px;
  padding: 7px 28px;
  color: rgba(255,215,0,0.5);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  margin-top: 6px;
}
#starUnlockMsg .btn-submit:hover {
  background: rgba(255,215,0,0.15);
  border-color: rgba(255,215,0,0.3);
  color: rgba(255,215,0,0.7);
}
#starUnlockMsg .btn-close {
  position: absolute;
  top: 8px; right: 12px;
  background: none;
  border: none;
  color: rgba(180,200,240,0.2);
  font-size: 18px;
  cursor: pointer;
}
#starUnlockMsg .btn-close:hover { color: rgba(180,200,240,0.4); }
#starUnlockMsg .msg-thanks {
  color: rgba(255,215,0,0.4);
  font-size: 12px;
  margin-top: 14px;
  letter-spacing: 1px;
}
#starUnlockMsg .msg-count {
  color: rgba(180,200,240,0.35);
  font-size: 10px;
  letter-spacing: 0.5px;
  margin-top: 3px;
}
/* ===== 趴趴熊 ===== */
#bearCorner {
  position: fixed;
  bottom: 18px;
  right: 20px;
  z-index: 100;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.5s ease, transform 0.3s ease;
}
#bearCorner:hover {
  opacity: 1;
  transform: scale(1.08);
}
#bearCorner svg {
  width: 90px;
  height: 75px;
  display: block;
}
/* 无内容时隐藏 */
#newsTicker.empty { display: none; }


/* 星1测试：hover放大效果 */
.star-1:hover {
  transform: scale(2);
  background: radial-gradient(circle, rgba(200,220,255,0.5) 0%, rgba(200,220,255,0.15) 40%, transparent 70%) !important;
}
/* 背景音乐按钮 */
#musicToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  background: transparent;
  transition: all .3s;
  user-select: none;
  margin-right: 6px;
}
#musicToggle:hover {
  background: rgba(255,255,255,0.1);
}
#musicToggle.playing {

  color: #d0eaff;
  box-shadow: 0 0 25px rgba(100,180,255,0.3);
  animation: musicPulse 3s ease-in-out infinite;
}
@keyframes musicPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(80,140,220,0.2); }
  50% { box-shadow: 0 0 35px rgba(100,180,255,0.4); }
}

/* ===== 滚动公告 ===== */
#newsTicker {
  position: relative;
  z-index: 6;
  height: 28px;
  line-height: 28px;
  background: rgba(10,14,26,0.5);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(100,180,255,0.05);
  margin-top: 56px;
  text-align: center;
}
#newsTicker .ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: rgba(180,200,240,0.55);
  letter-spacing: 0.5px;
  opacity: 1;
  transition: opacity 0.8s ease;
}
#newsTicker .ticker-item.fading {
  opacity: 0;
}
#newsTicker .ticker-item .ticker-star {
  color: rgba(255,215,0,0.35);
  font-size: 9px;
}


/* ===== 北斗七星 ===== */
.bear-star {
  position: fixed;
  z-index: 15;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.6s ease;
  pointer-events: auto;
}
.bear-star::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 200%; height: 200%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
  animation: starPulse 2.5s ease-in-out infinite;
  border: 0.5px solid rgba(180,200,240,0.06);
}
.bear-star.collected {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, rgba(255,215,0,0.7) 0%, rgba(255,180,50,0.25) 50%, transparent 75%);
  box-shadow: 0 0 14px rgba(255,215,0,0.5), 0 0 35px rgba(255,215,0,0.12);

}
.bear-star.collected::after {
  display: none;
}
@keyframes starPulse {
  0%, 100% { box-shadow: 0 0 2px rgba(180,200,240,0.08); }
  50% { box-shadow: 0 0 8px rgba(200,220,255,0.15); }
}
.star-1 { top: 14%; left: 12%; }
.star-2 { top: 20%; left: 82%; }
.star-3 { top: 38%; left: 45%; }
.star-4 { top: 52%; left: 20%; }
.star-5 { top: 60%; left: 70%; }
.star-6 { top: 72%; left: 50%; }
.star-7 { top: 85%; left: 30%; }

.star-line-path {
  stroke: rgba(255,215,0,0.1);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 5,5;
  transition: all 0.5s ease;
}

/* 解锁提示 */

/* 北斗七星粒子出场动画 */
#bigDipperParticleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 100;

  display: none;
}
#bigDipperParticleCanvas.show {
  display: block;
  animation: particleFadeIn 0.3s ease;
}
@keyframes particleFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* merged #starUnlockMsg block */
#starUnlockMsg {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  background: linear-gradient(135deg, rgba(10,15,30,0.96) 0%, rgba(15,20,45,0.94) 100%);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,215,0,0.08);
  border-radius: 18px;
  padding: 28px 0 24px;
  width: 700px;
  max-width: 92vw;
  text-align: center;
  box-shadow: 0 6px 80px rgba(255,215,0,0.02), 0 0 0 1px rgba(255,215,0,0.03) inset;
}
#starUnlockMsg.show { display: flex; flex-direction: column; animation: unlockPop 0.5s ease; }
@keyframes unlockPop {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
#starUnlockMsg .star-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
#starUnlockMsg .star-left {
  flex: 0 0 300px;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
#starUnlockMsg .star-right {
  flex: 1;
  padding: 0 20px 0 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255,215,0,0.06);
  min-height: 0;
}
#starUnlockMsg h3 {
  color: rgba(255,215,0,0.7);
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 400;
  letter-spacing: 2px;
}
#starUnlockMsg p {
  font-size: 12px;
  color: rgba(180,200,240,0.4);
  margin: 0 0 14px;
  line-height: 1.5;
}
#starUnlockMsg input[type="text"] {
  width: 100%;
  padding: 8px 12px;
  margin: 0 0 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,215,0,0.06);
  background: rgba(255,255,255,0.02);
  color: rgba(180,200,240,0.6);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border 0.3s;
  box-sizing: border-box;
  flex-shrink: 0;
}
#starUnlockMsg textarea {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,215,0,0.06);
  background: rgba(255,255,255,0.02);
  color: rgba(180,200,240,0.7);
  font-size: 13px;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border 0.3s;
  box-sizing: border-box;
  line-height: 1.5;
  flex: 1;
  min-height: 60px;
}
#starUnlockMsg textarea:focus,
#starUnlockMsg input:focus {
  border-color: rgba(255,215,0,0.12);
}
#starUnlockMsg .btn-submit {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 10px;
  background: rgba(255,215,0,0.04);
  border: 1px solid rgba(255,215,0,0.06);
  color: rgba(255,215,0,0.3);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
  flex-shrink: 0;
}
#starUnlockMsg .btn-submit:hover {
  background: rgba(255,215,0,0.08);
  border-color: rgba(255,215,0,0.12);
  color: rgba(255,215,0,0.5);
}
#starUnlockMsg .btn-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(180,200,240,0.12);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 100;
}
#starUnlockMsg .btn-close:hover { color: rgba(180,200,240,0.4); }
#starUnlockMsg .msg-thanks {
  font-size: 11px;
  margin-top: 6px;
  min-height: 18px;
  flex-shrink: 0;
}
#starUnlockMsg .msg-count {
  font-size: 11px;
  color: rgba(180,200,240,0.1);
  margin-top: 4px;
  flex-shrink: 0;
}/* merged #starUnlockMsg block */
#starUnlockMsg.show { display: block; animation: unlockPop 0.5s ease; }
@keyframes unlockPop {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
#starUnlockMsg h3 {
  color: rgba(255,215,0,0.7);
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 400;
  letter-spacing: 2px;
}
#starUnlockMsg p {
  color: rgba(180,200,240,0.5);
  font-size: 12px;
  margin: 0 0 20px;
  letter-spacing: 1px;
}

/* 星星进度 */
#starProgress {
  position: fixed;
  top: 52px; left: 10px;
  z-index: 200;
  font-size: 10px;
  color: rgba(180,200,240,0.15);
  letter-spacing: 1px;

  transition: color 0.5s ease;
}
#starUnlockMsg textarea {
  width: 100%;
  height: 80px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: 10px;
  padding: 10px 12px;
  color: rgba(180,200,240,0.7);
  font-size: 12px;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  line-height: 1.6;
}
#starUnlockMsg textarea:focus {
  border-color: rgba(255,215,0,0.25);
}
#starUnlockMsg input[type="text"] {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: 10px;
  padding: 8px 12px;
  color: rgba(180,200,240,0.7);
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
  margin: 0 0 12px;
}
#starUnlockMsg input:focus {
  border-color: rgba(255,215,0,0.25);
}
#starUnlockMsg .btn-submit {
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 20px;
  padding: 7px 28px;
  color: rgba(255,215,0,0.5);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  margin-top: 6px;
}
#starUnlockMsg .btn-submit:hover {
  background: rgba(255,215,0,0.15);
  border-color: rgba(255,215,0,0.3);
  color: rgba(255,215,0,0.7);
}
#starUnlockMsg .btn-close {
  position: absolute;
  top: 8px; right: 12px;
  background: none;
  border: none;
  color: rgba(180,200,240,0.2);
  font-size: 18px;
  cursor: pointer;
}
#starUnlockMsg .btn-close:hover { color: rgba(180,200,240,0.4); }
#starUnlockMsg .msg-thanks {
  color: rgba(255,215,0,0.4);
  font-size: 12px;
  margin-top: 14px;
  letter-spacing: 1px;
}
#starUnlockMsg .msg-count {
  color: rgba(180,200,240,0.35);
  font-size: 10px;
  letter-spacing: 0.5px;
  margin-top: 3px;
}
/* ===== 趴趴熊 ===== */
#bearCorner {
  position: fixed;
  bottom: 18px;
  right: 20px;
  z-index: 100;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.5s ease, transform 0.3s ease;
}
#bearCorner:hover {
  opacity: 1;
  transform: scale(1.08);
}
#bearCorner svg {
  width: 90px;
  height: 75px;
  display: block;
}
/* 无内容时隐藏 */
#newsTicker.empty { display: none; }


/* 星1测试：hover放大效果 */
.star-1:hover {
  transform: scale(2);
  background: radial-gradient(circle, rgba(200,220,255,0.5) 0%, rgba(200,220,255,0.15) 40%, transparent 70%) !important;
}
      .b-fill { fill: rgba(180,200,240,0.08); stroke: rgba(180,200,240,0.25); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
      .b-eye { fill: rgba(180,200,240,0.4); }
      .b-line { fill: none; stroke: rgba(180,200,240,0.25); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
      @keyframes bBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.02) translateY(-1px); } }
      @keyframes bBlink { 0%,90%,100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
      @keyframes bTickle { 0%,100% { transform: rotate(0deg); } 20% { transform: rotate(6deg) translateY(-2px); } 40% { transform: rotate(0deg); } }
      .b-grp { animation: bBreathe 4s ease-in-out infinite; transform-origin: 60px 50px; }
      .b-el, .b-er { animation: bBlink 3.5s ease-in-out infinite; }
      .b-er { animation-delay: 0.15s; }
      .b-pl { animation: bTickle 7s ease-in-out infinite; transform-origin: 42px 88px; }
      #bearCorner.wave .b-pl { animation: bTickle 0.4s ease-in-out 2; }
      @keyframes bHappy { 0% { transform: rotate(0deg); } 25% { transform: rotate(-5deg) translateY(-3px); } 50% { transform: rotate(0deg); } 75% { transform: rotate(5deg) translateY(-3px); } 100% { transform: rotate(0deg); } }
      #bearCorner.happy .b-grp { animation: bHappy 0.6s ease-in-out; }
    
/* 星1测试：hover放大效果 */
.star-1:hover {
  transform: scale(2);
  background: radial-gradient(circle, rgba(200,220,255,0.5) 0%, rgba(200,220,255,0.15) 40%, transparent 70%) !important;
}

#bearOverlay {
  pointer-events: none;
}
