
/* === 基本設定 === */
body {
  position: relative;
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 加一个伪元素来作为飞碟背景图 */
body::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(200px); /* 如果你飞碟图偏右上，这个偏移也要一样 */
  width: 800px;
  height: auto;
  aspect-ratio: 1 / 1;
  background-image: url("bg.webp");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.3;
  z-index: 1; /* 飞碟在上层 */
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  top: -300px; /* 向上移，保持中心与飞碟一致 */
  left: 50%;
  transform: translateX(200px); /* 适度调整位置使中心一致 */
  width: 1000px; /* 更大半径的光圈 */
  height: 1000px;
  background-image: conic-gradient(from 0deg, #00e5ff, transparent, #00e5ff);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
  animation: rotateBorder 16s linear infinite;
}

@keyframes rotateBorder {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === 主標題 === */
#page-title {
  text-align: center;
  font-size: 2.8em;
  color: #00e5ff;
  margin: 40px 20px 20px;
  text-shadow: 0 0 10px #00e5ff;
}

/* === 語言切換區 === */
#lang-switcher {
  text-align: center;
  padding: 20px;
}
#lang-switcher button {
  background: transparent;
  border: 2px solid #00e5ff;
  color: #00e5ff;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  padding: 8px 18px;
  margin: 0 10px;
  border-radius: 30px;
  transition: 0.3s ease;
}
#lang-switcher button:hover {
  background: #00e5ff;
  color: #0f2027;
  box-shadow: 0 0 12px #00e5ff;
}

/* === 簡介與活動區 === */
.intro {
  max-width: 1200px;
  margin: 30px auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(0,229,255,0.2);
}
.intro h2,
.intro h3 {
  color: #1de9b6;
  text-shadow: 0 0 5px #1de9b6;
}
.intro ul {
  padding-left: 20px;
}

#pool-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px; /* 控制卡片之间的间距，改为较小值 */
  padding: 10px; /* 减小整体内边距 */
}

/* === 礦池卡片 === */
.pool-card {
  flex: 1 1 calc(50% - 20px); /* 让每行最多放两个卡片 */
  max-width: 595px;
  margin: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.pool-card h2 {
  margin-top: 0;
  color: #00e5ff;
}
.pool-card p {
  margin: 6px 0;
}
.epoch-table {
  margin-top: 16px;
}
.epoch-table h4 {
  margin-bottom: 10px;
  color: #1de9b6;
}
.epoch-table table {
  width: 100%;
  border-collapse: collapse;
}
.epoch-table th, .epoch-table td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px;
  text-align: center;
}
.epoch-table thead {
  background: rgba(255,255,255,0.1);
}

/* === 影片區 === */
.video-section h2 {
  text-align: center;
  margin-top: 60px;
  font-size: 1.8em;
  color: #00e5ff;
}
.video-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.video-card {
  flex: 1 1 calc(33.333% - 20px); /* 3列布局，留出间隙 */
  box-sizing: border-box;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(0,229,255,0.3);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  border-radius: 12px;
}

.video-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.video-card .title {
  margin-top: 8px;
  color: #e0f7fa;
  font-size: 0.95em;
}


/* === 推薦連結區 === */
.recommend-links {
  max-width: 1200px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.link-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0,229,255,0.2);
  border: 1px solid rgba(0, 229, 255, 0.15);
  transition: all 0.3s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0,229,255,0.4);
}

.link-card a {
  font-size: 1.3em;
  font-weight: bold;
  color: #00e5ff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
}

.link-card a:hover {
  text-shadow: 0 0 8px #00e5ff;
}

.link-card p {
  color: #e0f7fa;
  font-size: 0.95em;
  margin: 0;
}

/* === 加入社群按鈕 === */
/* === 加入社群浮动按鈕（右下角懸浮） === */
#join-community {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #00e5ff;
  color: #0f2027;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  transition: all 0.3s ease;
}
#join-community:hover {
  background-color: #1de9b6;
  box-shadow: 0 0 20px #1de9b6;
  transform: scale(1.05);
}

.epoch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.epoch-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px 20px;
  flex: 1 1 calc(25% - 16px);   /* 改為每行最多4個卡片 */
  min-width: 140px;             /* 最小寬度降低 */
  max-width: 180px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
}

.epoch-title {
  font-size: 18px;
  font-weight: 700;
  color: #00f9ff;
  margin-bottom: 10px;
}

.epoch-blocks,
.epoch-roa {
  font-size: 14px;
  color: #8deaff;
}

.progress-bar-inline {
  display: inline-block;
  width: 100px;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin: 0 8px;
  vertical-align: middle;
  overflow: hidden;
}

.progress-fill-inline {
  display: block; /* ← 必须是 block 才能撑满高度 */
  height: 100%;
  width: 60%; /* 这个值会被 JS 动态设置 */
  background: linear-gradient(90deg, #00f9ff, #007bff);
  border-radius: 6px;
  transition: width 0.5s ease-in-out;
}

.progress-text-inline {
  font-size: 12px;
  color: #8deaff;
  font-family: 'Orbitron', sans-serif;
  vertical-align: middle;
}

.separator {
  margin: 0 30px;
  color: rgba(255, 255, 255, 0.4); /* 淡淡的灰色分隔 */
}

.pool-card strong::after {
  content: ":";
  margin-left: 0.25em;
  margin-right: 1em; /* ← 增加這裡的間距 */
}
.pool-card strong {
  margin-right: 0; /* 避免強調文字本身增加距離 */
}

.glow-text-animate {
  color: #00e5ff;
  text-shadow: 0 0 5px #00e5ff, 0 0 10px #00e5ff, 0 0 20px #00e5ff, 0 0 40px #00bcd4;
  animation: glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from {
    text-shadow: 0 0 2px #00e5ff, 0 0 4px #00e5ff;
  }
  to {
    text-shadow: 0 0 10px #00e5ff, 0 0 20px #00bcd4;
  }
}

body, html {
  max-width: 100vw;
  overflow-x: hidden;
}

/* 限制所有元素不突破容器 */
* {
  box-sizing: border-box;
}

