/**
 * HistoryRiver Explore V0.1
 * 博物馆历史图集设计系统与全局基础样式
 */

:root {
  /* 博物馆历史色盘 */
  --bg-deep-space: #0c1017;
  --bg-museum-surface: #131922;
  --bg-surface-elevated: #1a2230;
  --bg-card-parchment: #1e2736;
  --border-antique: #2c384a;
  --border-gold-subtle: rgba(212, 175, 55, 0.28);

  /* 文字与排版 */
  --text-primary: #f0ede6;
  --text-secondary: #c2cbd6;
  --text-muted: #8391a3;
  --text-parchment: #e9e3d5;

  /* 历史文明特征色 */
  --color-gold: #d4af37;
  --color-gold-hover: #e6c555;
  --color-bronze: #ab7f45;
  --color-crimson: #c83b2b;
  --color-lapis: #2070b4;
  --color-persian: #d49b20;
  --color-egypt: #9c7538;
  --color-greece: #2a8b9a;
  --color-success: #2ea043;
  --color-danger: #cf222e;

  /* 阴影与转场 */
  --shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-gold-glow: 0 0 20px rgba(212, 175, 55, 0.3);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", "Cinzel", "Playfair Display", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep-space);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

/* 主应用容器 */
#app-root {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* 顶部博物馆级导航栏 */
.museum-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(14, 19, 27, 0.98) 0%, rgba(14, 19, 27, 0.88) 100%);
  border-bottom: 1px solid var(--border-antique);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-icon {
  width: 34px;
  height: 34px;
  background: radial-gradient(circle, #3a2c14 0%, #171c26 100%);
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-title-main {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-parchment);
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-v-badge {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-gold);
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

/* 顶部操作按钮区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-antique);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-header-action:hover {
  background: #232c3d;
  color: var(--text-primary);
  border-color: #3b495f;
}

/* 重点突出：尼尼微游戏入口按钮 */
.btn-nineveh-featured {
  background: linear-gradient(135deg, rgba(200, 59, 43, 0.22) 0%, rgba(212, 175, 55, 0.28) 100%);
  border: 1px solid var(--color-gold);
  color: #fff1d0;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
  position: relative;
}

.btn-badge-dev-inline {
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: #ffd666;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 2px;
}

.btn-nineveh-featured:hover {
  background: linear-gradient(135deg, rgba(200, 59, 43, 0.35) 0%, rgba(212, 175, 55, 0.4) 100%);
  color: #ffffff;
  border-color: #ffd666;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
}

.featured-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #ffd666;
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* 主工作区 */
.main-workspace {
  flex: 1;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: calc(100% - 58px);
}
