/* ───── 区块卡片 ───── */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent-cyan));
  margin: 0.5rem 0 1.5rem;
  border-radius: 2px;
}

/* ───── 表格 ───── */
.table-custom {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
  --bs-table-hover-color: #fff;
  margin-bottom: 0;
}
.table-custom thead th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--gold);
  border-bottom: 2px solid var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 1rem 0.75rem;
}
.table-custom tbody td {
  border-color: rgba(212, 168, 67, 0.15);
  padding: 0.85rem 0.75rem;
  vertical-align: middle;
}
#verTable tbody td {
  white-space: nowrap;
}
.table-custom tbody td:first-child {
  text-align: center;
  width: 56px;
}
.table-custom tbody tr {
  transition: all 0.3s ease;
}
.table-custom tbody tr:hover {
  background: rgba(212, 168, 67, 0.08);
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.15);
}
.rarity-5 td {
  background: rgba(212, 168, 67, 0.06);
  border-left: 3px solid var(--gold);
}
.rarity-5:hover td {
  background: rgba(212, 168, 67, 0.12) !important;
}
.table-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  display: inline-block;
  vertical-align: middle;
}
.rarity-5 .table-avatar { border-color: var(--gold); }
.rarity-4 .table-avatar { border-color: #c85cff; }
.table-avatar-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ───── 表单 ───── */
.form-custom .form-control,
.form-custom .form-select {
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
}
.form-custom .form-control:focus,
.form-custom .form-select:focus {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
  color: #fff;
}
.form-custom .form-control::placeholder { color: #b0c0d0; }
.form-custom .form-control::-ms-input-placeholder { color: #b0c0d0; }
.form-custom .form-label { color: var(--gold-light); font-weight: 500; font-size: 0.9rem; }
.form-custom .invalid-feedback { color: #ff6b6b; font-size: 0.85rem; }
.form-custom .was-validated .form-control:invalid,
.form-custom .form-control.is-invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  border: none;
  color: #0a1628;
  font-weight: 700;
  padding: 0.75rem 2.5rem;
  border-radius: 10px;
  transition: all 0.3s;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4);
  color: #0a1628;
}

/* ───── 轮播 ───── */
#heroCarousel {
  max-width: 90vw;
  margin: 0 auto;
}
.carousel-placeholder {
  aspect-ratio: 16 / 9;
  max-height: 90vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.carousel-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.25));
  pointer-events: none;
}
.carousel-caption {
  position: absolute;
  z-index: 2;
  text-align: center;
}
.carousel-indicators [data-bs-target] {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(255,255,255,0.35) !important;
  opacity: 1 !important;
  margin: 0 6px !important;
  padding: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  background-clip: unset !important;
  transition: background 0.4s, transform 0.3s;
  text-indent: -9999px;
  flex: none;
}
.carousel-indicators .active {
  background: var(--gold) !important;
  transform: scale(1.3);
}

/* ───── 导航栏 ───── */
.navbar {
  background: rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glow);
}
.navbar-brand { color: var(--gold) !important; font-size: 1.4rem; }
.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold) !important;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* ───── 页脚 ───── */
.footer {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-glow);
  padding: 2rem 0;
  margin-top: 3rem;
}

/* ───── 星星评分 ───── */
.star-rating {
  display: flex;
  gap: 6px;
}
.star-rating .star {
  font-size: 2.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  user-select: none;
}
.star-rating .star.active {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(212, 168, 67, 0.6);
  transform: scale(1.1);
}

.attribute-icon {
  width: 24px; height: 24px;
  vertical-align: middle;
  margin-right: 4px;
}

/* ───── 响应式 ───── */
@media (max-width: 768px) {
  .carousel-placeholder { aspect-ratio: 16 / 9; max-height: 50vh; }
  .section-card { padding: 1.5rem; }
  .glitch { font-size: 2rem !important; }
  .table-custom { font-size: 0.85rem; }
}

/* ───── 评论区 ───── */
.avatar-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.3rem; }
.avatar-sm { width: 34px; height: 34px; font-size: 0.85rem; }
.avatar-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0a1628;
  font-weight: 700;
}
.hot-topic-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--gold-dark);
  background: rgba(0,0,0,0.15);
  border-radius: 0 8px 8px 0;
  margin-bottom: 0.5rem;
  transition: background 0.2s;
  cursor: default;
}
.hot-topic-item:hover { background: rgba(212,168,67,0.08); }
.hot-topic-item .topic-body { flex: 1; min-width: 0; }
.hot-topic-item .topic-author { color: var(--gold); font-weight: 600; font-size: 0.85rem; display: block; }
.hot-topic-item .topic-text { color: var(--text-secondary); font-size: 0.9rem; display: block; margin-top: 2px; }
.comment-item {
  display: flex;
  gap: 12px;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(212,168,67,0.1);
}
.comment-item:last-child { border-bottom: none; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { color: var(--text-secondary); font-size: 0.8rem; display: flex; gap: 8px; align-items: center; }
.comment-author { color: var(--gold-light); font-weight: 600; }
.comment-time { color: rgba(138,155,181,0.6); }
.comment-content { color: var(--text-primary); margin-top: 4px; line-height: 1.6; font-size: 0.95rem; }
.comment-actions { margin-top: 6px; display: flex; gap: 12px; align-items: center; }
.reply-btn, .reply-toggle, .reply-sub-btn {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}
.reply-btn:hover, .reply-toggle:hover, .reply-sub-btn:hover { color: #66eaff; }
.reply-sub-btn { font-size: 0.75rem; display: inline-block; margin-top: 4px; }
.comment-replies {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid rgba(212,168,67,0.2);
}
.comment-reply {
  display: flex;
  gap: 8px;
  padding: 6px 0;
}
.comment-reply .reply-body { flex: 1; min-width: 0; }
.reply-input-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.reply-input {
  flex: 1;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 6px;
  color: #fff;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  outline: none;
}
.reply-input:focus { border-color: var(--gold); }
.reply-input::placeholder { color: #8899aa; }
.reply-send {
  background: var(--gold);
  border: none;
  border-radius: 6px;
  color: #0a1628;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.reply-send:hover { background: var(--gold-light); }

/* ───── @提及金色 ───── */
.mention-gold { color: var(--gold); font-weight: 600; }

/* ───── 实用类 ───── */
.text-gold { color: var(--gold); }
.text-cyan { color: var(--accent-cyan); }
.glow-gold { box-shadow: 0 0 20px rgba(212, 168, 67, 0.2); }

/* ───── Badge 标签 ───── */
.badge-version {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0a1628;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* ───── 梦州彩蛋触发器 ───── */
.mengzhou-trigger { cursor: default; }

/* ───── 页面切换 ───── */
.page-content { display: none; }
