/* ============================================================
 * 各页面专用样式 - 像素方块风
 * 包含：首页 Hero、状态页、新闻、照片墙、回声洞、排行榜
 * ============================================================ */

/* ========== 首页 Hero ========== */
.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  /* 高度由 JS 设置，配合 transition 实现切换时平滑过渡 */
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 200px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(124, 179, 66, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(77, 208, 225, 0.12), transparent 50%);
  z-index: 0;
}
/* Hero 背景轮播图层 — 所有 slide 层叠堆放，仅 active 可见 */
.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}
.hero-bg-slide.active {
  opacity: 1;
}
/* 轮播图图片 — 完整显示，宽度撑满，高度自适应比例 */
.hero-bg-img {
  display: block;
  width: 100%;
  height: auto;
}
/* 轮播图标题（左下角显示） */
.hero-bg-title {
  position: absolute;
  left: 24px;
  bottom: 24px;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: #e6edf3;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
  letter-spacing: 1px;
  pointer-events: none;
  z-index: 1;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 可点击的标题链接 */
a.hero-bg-title.hero-bg-title-link {
  pointer-events: auto;
  text-decoration: none;
  display: inline-block;
  padding: 6px 10px;
  background: var(--overlay-bg);
  border: 2px solid var(--diamond);
  transition: background 0.15s, color 0.15s;
}
a.hero-bg-title.hero-bg-title-link:hover {
  background: rgba(77, 208, 225, 0.3);
  color: var(--diamond);
}
.hero-bg-link-hint {
  font-size: 12px;
  color: var(--diamond);
}
/* 轮播控件容器 */
.hero-carousel-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none; /* 默认不阻挡 hero-content 中的按钮点击 */
}
.hero-carousel-controls button,
.hero-carousel-controls .hero-dots {
  pointer-events: auto; /* 但控件本身可点击 */
}
/* 左右切换箭头 — 默认隐藏，hover hero 时显示（半透明），hover 按钮时不透明 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--overlay-bg);
  border: 2px solid var(--border);
  color: var(--text);
  font-family: 'VT323', monospace;
  font-size: 24px;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.15s, transform 0.1s;
}
/* 鼠标悬浮在 hero 区域时显示箭头（半透明） */
.hero:hover .hero-arrow {
  opacity: 0.5;
  pointer-events: auto;
}
/* 鼠标悬浮在箭头上时不透明 */
.hero-arrow:hover {
  opacity: 1;
  background: var(--overlay-bg-strong);
}
.hero-prev:hover { transform: translateY(-50%) translateX(-2px); }
.hero-next:hover { transform: translateY(-50%) translateX(2px); }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
/* 指示点 */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.hero-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  padding: 0;
}
.hero-dot.active {
  background: var(--grass);
  border-color: var(--grass);
  box-shadow: 0 0 8px var(--grass);
  transform: scale(1.2);
}
@media (max-width: 700px) {
  .hero-arrow { font-size: 18px; padding: 6px 10px; }
  .hero-bg-title { font-size: 11px; left: 16px; bottom: 16px; }
}

/* ========== Hero 入场动画（依次淡入上滑） ========== */
.hero-content > * {
  opacity: 0;
  animation: slideUp 0.6s ease-out forwards;
}
.hero-content > :nth-child(1) { animation-delay: 0.1s; }
.hero-content > :nth-child(2) { animation-delay: 0.25s; }
.hero-content > :nth-child(3) { animation-delay: 0.4s; }
.hero-content > :nth-child(4) { animation-delay: 0.55s; }
.hero-content > :nth-child(5) { animation-delay: 0.7s; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none; /* 不遮挡图片，按钮单独启用 */
}
.hero-content > * { pointer-events: auto; }
.hero-tag {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--gold);
  background: rgba(255, 213, 79, 0.1);
  border: 2px solid var(--gold);
  padding: 8px 14px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 64px;
  line-height: 1.1;
  color: var(--text);
  text-shadow:
    4px 4px 0 var(--grass-dark),
    8px 8px 0 var(--shadow-color-strong);
  margin-bottom: 24px;
  letter-spacing: 2px;
}
.hero h1 .accent { color: var(--grass); }
.hero-sub {
  font-size: 26px;
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 40px;
}
.hero-sub strong { color: var(--diamond); }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 60px; }

/* 首页状态条 */
.status-bar {
  display: flex;
  gap: 0;
  background: var(--bg-block);
  border: 3px solid var(--border);
  max-width: 720px;
  box-shadow: 6px 6px 0 var(--shadow-color-strong);
}
.status-item {
  flex: 1;
  padding: 18px 20px;
  border-right: 3px solid var(--border);
}
.status-item:last-child { border-right: none; }
.status-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.status-value {
  font-size: 24px;
  color: var(--grass);
}
.status-value.diamond { color: var(--diamond); }
.status-value.gold { color: var(--gold); }
.status-value.offline { color: var(--redstone); }
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--grass);
  margin-right: 8px;
  animation: pulse 1.5s infinite;
}
.status-dot.offline { background: var(--redstone); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ========== 首页：服务器特色卡片 ========== */
.features-section { background: linear-gradient(180deg, transparent, rgba(124, 179, 66, 0.04), transparent); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-block);
  border: 3px solid var(--border);
  padding: 0;
  position: relative;
  transition: all 0.2s;
  box-shadow: 6px 6px 0 var(--shadow-color);
  /* 滚动揭示初始状态 */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--grass);
  border-color: var(--grass);
}
/* 特色配图（可选，无图时不渲染） */
.feature-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--border);
}
.feature-body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.feature-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.4;
}
.feature-card p {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

/* ========== 首页：加入方式 ========== */
.join-section {
  background: linear-gradient(180deg, transparent, rgba(124, 179, 66, 0.08));
  text-align: center;
}
.join-box {
  background: var(--bg-block);
  border: 4px solid var(--grass);
  box-shadow: 10px 10px 0 var(--grass-dark);
  padding: 48px 40px;
  max-width: 760px;
  margin: 0 auto;
  /* 滚动揭示初始状态 */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.join-box.revealed {
  opacity: 1;
  transform: translateY(0);
}
.join-box h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 28px;
  color: var(--grass);
  margin-bottom: 20px;
  text-shadow: 3px 3px 0 var(--grass-dark);
}
.join-box p { font-size: 20px; color: var(--text-dim); margin-bottom: 32px; }
.ip-box {
  background: var(--code-bg);
  border: 3px dashed var(--diamond);
  padding: 24px;
  margin: 24px 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: var(--diamond);
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.15s;
}
.ip-box:hover { background: rgba(77, 208, 225, 0.1); transform: translate(-2px, -2px); }
.ip-box small {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 8px;
  letter-spacing: 1px;
}
.join-meta {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.join-meta div {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--text-dim);
}
.join-meta div span {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-top: 6px;
}

/* ========== 状态页 ========== */
.status-page { padding: 60px 0; }

/* 当前在线 + 玩家列表 合并卡片 */
.status-live-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 40px;
  padding: 0;
  overflow: hidden;
}
.live-left {
  flex-shrink: 0;
  padding: 28px 32px;
  border-right: 3px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 200px;
}
.live-left .stat-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.live-left .stat-value {
  font-size: 36px;
  color: var(--grass);
  text-shadow: 2px 2px 0 var(--shadow-color);
}
.live-left .stat-sub {
  font-size: 16px;
  color: var(--text-dim);
  margin-top: 8px;
}
.live-right {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.live-right-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.player-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  background: rgba(124, 179, 66, 0.15);
  border: 2px solid var(--grass);
  color: var(--grass);
  padding: 8px 12px;
}
.player-tag.admin {
  border-color: var(--gold);
  background: rgba(255, 213, 79, 0.12);
  color: var(--gold);
}
.admin-badge {
  font-size: 8px;
  background: var(--gold);
  color: var(--on-accent);
  padding: 2px 5px;
  margin-left: 4px;
  vertical-align: middle;
}

/* 历史曲线 */
.history-box {
  background: var(--bg-block);
  border: 3px solid var(--border);
  box-shadow: 6px 6px 0 var(--shadow-color);
  padding: 24px;
}
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.history-header h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--diamond);
  letter-spacing: 1px;
}
.range-tabs {
  display: flex;
  gap: 8px;
}
.range-tab {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  background: transparent;
  color: var(--text-dim);
  border: 2px solid var(--border);
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.range-tab:hover { color: var(--diamond); border-color: var(--diamond); }
.range-tab.active {
  background: var(--diamond);
  color: var(--on-accent);
  border-color: var(--diamond);
}
.chart-wrap {
  position: relative;
  width: 100%;
  height: 320px;
}
#historyChart { width: 100%; height: 100%; display: block; }
.auto-refresh-tip {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 12px;
  text-align: right;
}

/* ========== 新闻页 ========== */
.news-page { padding: 60px 0; }
.news-tags-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  justify-content: center;
}
.news-tag-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  background: transparent;
  color: var(--text-dim);
  border: 2px solid var(--border);
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.news-tag-btn:hover { color: var(--text); border-color: var(--grass); }
.news-tag-btn.active {
  background: var(--grass);
  color: var(--on-accent);
  border-color: var(--grass);
}
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--bg-block);
  border: 3px solid var(--border);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--redstone);
  border-color: var(--redstone);
}
.news-card .news-cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border: 2px solid var(--border);
}
.news-card h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
}
.news-card .news-excerpt {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.5;
  flex: 1;
}
.news-card .news-date {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--text-dim);
}
/* 标签徽章 */
.news-tag-badge {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 5px 8px;
  letter-spacing: 1px;
  width: fit-content;
}
.tag-update { background: var(--tag-update); color: #fff; }
.tag-fix { background: var(--tag-fix); color: var(--on-accent); }
.tag-feature { background: var(--tag-feature); color: var(--on-accent); }
.tag-bug { background: var(--tag-bug); color: #fff; }
.tag-other { background: var(--tag-other); color: var(--on-accent); }

/* 新闻详情弹窗 */
.news-detail .modal-box { padding: 32px; }
.news-detail h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 20px;
  line-height: 1.4;
  margin: 16px 0 12px;
  color: var(--text);
}
.news-detail .detail-meta {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.news-detail .detail-cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 20px;
}
.news-detail .detail-content {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.page-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  background: transparent;
  color: var(--text-dim);
  border: 2px solid var(--border);
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.page-btn:hover:not(:disabled) { color: var(--diamond); border-color: var(--diamond); }
.page-btn.active {
  background: var(--diamond);
  color: var(--on-accent);
  border-color: var(--diamond);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ========== 照片墙 ========== */
.gallery-page { padding: 60px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.gallery-frame {
  background: var(--bg-block);
  border: 4px solid var(--dirt);
  box-shadow: 6px 6px 0 var(--dirt-dark), inset 0 0 0 4px var(--bg-block);
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.gallery-frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px solid var(--gold);
  pointer-events: none;
  opacity: 0.4;
}
.gallery-frame:hover {
  transform: translate(-3px, -3px) scale(1.02);
  box-shadow: 9px 9px 0 var(--gold), inset 0 0 0 4px var(--bg-block);
  border-color: var(--gold);
}
.gallery-frame img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.gallery-frame .gallery-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--gold);
  padding: 12px 4px 4px;
  letter-spacing: 1px;
}
.gallery-frame .gallery-desc {
  font-size: 16px;
  color: var(--text-dim);
  padding: 0 4px 4px;
  line-height: 1.4;
}

/* 大图预览 */
.gallery-modal .modal-box { padding: 16px; }
.gallery-modal img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 3px solid var(--border);
}
.gallery-modal .gallery-info {
  padding: 16px 8px 8px;
}
.gallery-modal .gallery-info h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ========== 回声洞 ========== */
.echo-page { padding: 60px 0; }
.echo-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.echo-toolbar h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 24px;
  color: var(--diamond);
  text-shadow: 3px 3px 0 var(--text-shadow-color);
}
.echo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.echo-card {
  padding: 24px;
  position: relative;
  transition: all 0.2s;
  border: 3px solid var(--border);
  box-shadow: 6px 6px 0 var(--shadow-color);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.echo-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--shadow-color-strong); }
.echo-card.theme-grass { background: linear-gradient(135deg, var(--bg-block), rgba(124, 179, 66, 0.18)); border-color: var(--grass); }
.echo-card.theme-diamond { background: linear-gradient(135deg, var(--bg-block), rgba(77, 208, 225, 0.18)); border-color: var(--diamond); }
.echo-card.theme-redstone { background: linear-gradient(135deg, var(--bg-block), rgba(255, 82, 82, 0.18)); border-color: var(--redstone); }
.echo-card.theme-gold { background: linear-gradient(135deg, var(--bg-block), rgba(255, 213, 79, 0.18)); border-color: var(--gold); }
.echo-content {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}
.echo-content::before {
  content: '"';
  font-family: 'Press Start 2P', monospace;
  font-size: 28px;
  color: var(--gold);
  margin-right: 6px;
  vertical-align: -6px;
}
.echo-author {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--text-dim);
  text-align: right;
  letter-spacing: 1px;
}
.echo-author::before { content: '— '; color: var(--diamond); }

/* ========== 排行榜 ========== */
.leaderboard-page { padding: 60px 0; }
.leaderboard-table-wrap {
  background: var(--bg-block);
  border: 4px solid var(--border);
  box-shadow: 8px 8px 0 var(--shadow-color-strong);
  overflow-x: auto;
}
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}
.leaderboard-table thead {
  background: var(--grass);
  color: var(--on-accent);
}
.leaderboard-table th {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  padding: 16px 20px;
  text-align: left;
  letter-spacing: 1px;
  border-right: 2px solid var(--grass-dark);
}
.leaderboard-table th:last-child { border-right: none; }
.leaderboard-table td {
  padding: 14px 20px;
  border-bottom: 2px solid var(--border);
  color: var(--text);
}
.leaderboard-table tbody tr:hover { background: rgba(124, 179, 66, 0.08); }
.leaderboard-table tbody tr:last-child td { border-bottom: none; }
.rank-cell {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  text-align: center;
  width: 80px;
}
.rank-medal {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--on-accent);
}
.rank-medal.gold { background: var(--gold); box-shadow: inset -4px -4px 0 var(--accent-shadow-gold); }
.rank-medal.silver { background: #cfd8dc; box-shadow: inset -4px -4px 0 #78909c; }
.rank-medal.bronze { background: #d7a36f; box-shadow: inset -4px -4px 0 #8b5a2b; }
.name-cell { font-family: 'Press Start 2P', monospace; font-size: 13px; color: var(--diamond); }
.playtime-cell { font-family: 'Press Start 2P', monospace; font-size: 12px; color: var(--grass); }
.last-seen-cell { font-size: 16px; color: var(--text-dim); }

/* ========== 状态条人数弹跳动画 ========== */
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.status-value.pop {
  animation: pop 0.3s ease-out;
}

/* ========== 绑定游戏名页面 ========== */
.binding-page {
  padding: 60px 0;
  display: flex;
  justify-content: center;
}
.binding-box {
  background: var(--bg-block);
  border: 4px solid var(--border);
  box-shadow: 8px 8px 0 var(--shadow-color-strong);
  padding: 40px;
  max-width: 560px;
  width: 100%;
}
.binding-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 22px;
  color: var(--grass);
  text-shadow: 3px 3px 0 var(--text-shadow-color);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.binding-desc {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 32px;
}
.bind-step {
  animation: stepIn 0.3s ease-out;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--diamond);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.step-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 20px;
}
.bind-form {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.bind-form input {
  flex: 1;
  background: var(--bg-deep);
  border: 3px solid var(--border);
  color: var(--text);
  font-family: 'VT323', monospace;
  font-size: 20px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.bind-form input:focus {
  border-color: var(--diamond);
}
.bind-form input::placeholder {
  color: var(--text-dim);
}
.bind-tip {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.4;
}
.bind-tip code {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  padding: 2px 6px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--gold);
}

/* 验证卡片 */
.verify-card {
  background: var(--bg-deep);
  border: 3px solid var(--gold);
  box-shadow: 6px 6px 0 rgba(255, 213, 79, 0.2);
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}
.verify-instruction {
  font-size: 17px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 20px;
}
.verify-code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.verify-code-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--text-dim);
}
.verify-code {
  font-family: 'Press Start 2P', monospace;
  font-size: 28px;
  color: var(--gold);
  letter-spacing: 4px;
  text-shadow: 2px 2px 0 var(--text-shadow-color);
}
.verify-countdown {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--redstone);
}
.verify-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}

/* 绑定成功 */
.bind-success {
  text-align: center;
  padding: 20px 0;
}
.success-icon {
  width: 64px;
  height: 64px;
  line-height: 64px;
  text-align: center;
  background: var(--grass);
  color: var(--on-accent);
  font-family: 'Press Start 2P', monospace;
  font-size: 28px;
  margin: 0 auto 20px;
  box-shadow: 4px 4px 0 var(--grass-dark);
}
.success-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}
.success-game {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: var(--diamond);
  margin-bottom: 24px;
}

/* 错误提示 */
.bind-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255, 82, 82, 0.1);
  border: 2px solid var(--redstone);
  color: var(--redstone);
  font-size: 15px;
  line-height: 1.4;
}

/* ========== 状态页移动端适配 ========== */
@media (max-width: 700px) {
  .status-live-card {
    flex-direction: column;
  }
  .live-left {
    border-right: none;
    border-bottom: 3px solid var(--border);
    min-width: auto;
    padding: 20px 24px;
  }
  .live-right {
    padding: 16px 20px;
  }
}

/* ========== prefers-reduced-motion 兼容 ========== */
@media (prefers-reduced-motion: reduce) {
  .hero-content > * {
    opacity: 1;
    animation: none;
  }
  .feature-card,
  .join-box {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .status-value.pop {
    animation: none;
  }
  .bind-step {
    animation: none;
  }
}
