/**
 * HistoryRiver Explore V0.1
 * 模态对话框设计（独立小游戏入口、史料详注与史学规范）
 */

.history-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 12, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.history-modal-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.history-modal-dialog {
  background: var(--bg-museum-surface);
  border: 1px solid var(--border-antique);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), var(--shadow-gold-glow);
  width: min(720px, 100%);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: modal-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  0% { transform: scale(0.94) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header-bar {
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--border-antique);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: rgba(14, 19, 27, 0.6);
}

.modal-header-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-header-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-main-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff6e0;
}

.btn-modal-close {
  width: 32px;
  height: 32px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-antique);
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-modal-close:hover {
  background: #283344;
  color: var(--text-primary);
  border-color: #4b5d77;
}

.modal-body-scroll {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.modal-footer-bar {
  padding: 14px 24px;
  border-top: 1px solid var(--border-antique);
  background: rgba(12, 16, 23, 0.8);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* 尼尼微游戏模态框特化样式 */
.game-hero-banner {
  background: linear-gradient(180deg, rgba(92, 32, 26, 0.45) 0%, rgba(20, 26, 36, 0.85) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.game-hero-banner::after {
  content: '𒌷𒉌𒉡𒀀';
  position: absolute;
  right: 15px;
  bottom: -5px;
  font-size: 64px;
  color: rgba(255, 215, 0, 0.05);
  font-weight: 900;
  pointer-events: none;
}

.game-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #ffda73;
  font-weight: 600;
}

.game-synopsis {
  font-size: 13px;
  color: #f2eee4;
  line-height: 1.6;
}

.game-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.game-feature-card {
  background: rgba(22, 29, 41, 0.7);
  border: 1px solid var(--border-antique);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-feature-card h4 {
  font-family: var(--font-serif);
  font-size: 13px;
  color: #ffda73;
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-feature-card p {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* 史实分级说明警示框 */
.veracity-disclosure-box {
  background: rgba(30, 24, 15, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.veracity-disclosure-box strong {
  font-size: 12px;
  color: #ffd666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.veracity-disclosure-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* 游戏开发状态与技术规格卡 */
.game-stage-container {
  margin-top: 6px;
}

.game-dev-card-wrap {
  background: rgba(15, 20, 28, 0.9);
  border: 1px solid #36465d;
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-dev-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #ffd666;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.badge-dot-dev {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd666;
  box-shadow: 0 0 8px rgba(255, 214, 102, 0.8);
}

.dev-info-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: #fff4db;
  margin-bottom: 4px;
}

.dev-info-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.dev-spec-box {
  background: #0b0f16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 4px;
}

.spec-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #9cb3ce;
  display: block;
  margin-bottom: 4px;
}

.spec-code-note {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.dev-code-block {
  background: #06090e;
  border: 1px solid #202b3a;
  border-radius: 4px;
  padding: 10px 12px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
  color: #7ee787;
  overflow-x: auto;
  line-height: 1.5;
}

/* 考古档案专用卡片 */
.archaeology-card {
  background: rgba(22, 29, 41, 0.7);
  border: 1px solid var(--border-antique);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arch-item {
  font-size: 12.5px;
  line-height: 1.5;
}

.arch-item strong {
  color: #d1c5b0;
}

.dossier-subhead {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: #ffd666;
  margin-top: 8px;
}

.dossier-paragraph {
  line-height: 1.7;
}

.dossier-events-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dossier-events-list li {
  font-size: 12.5px;
  line-height: 1.5;
  display: flex;
  gap: 8px;
}

.dossier-event-year {
  color: #ffd666;
  font-family: var(--font-serif);
  white-space: nowrap;
}
