/* A ART Museum - 艺术展风格主题 v2 */
/* 恢复自 https://229665bd.a-art-museum.pages.dev/ */

:root {
  --bg-primary: #0a0a12;
  --bg-secondary: #12121f;
  --bg-tertiary: #1a1a2e;
  --bg-card: #151525;
  --gold: #d4af37;
  --gold-light: #ffd700;
  --gold-dark: #b8941f;
  --gold-muted: #8b7355;
  --text: #f5f5f0;
  --text-muted: #9a9a8a;
  --danger: #c9302c;
  --success: #2d5a27;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 艺术展聚光灯效果 */
.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
  z-index: 0;
}

/* 画框效果 */
.art-frame {
  position: relative;
  background: linear-gradient(135deg, #2a2520 0%, #1a1815 50%, #2a2520 100%);
  padding: 12px;
  border-radius: 4px;
  box-shadow: 
    inset 0 0 0 1px rgba(212, 175, 55, 0.3),
    inset 0 0 0 4px #1a1815,
    inset 0 0 0 5px rgba(212, 175, 55, 0.2),
    0 10px 40px rgba(0, 0, 0, 0.5);
}

.art-frame::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  pointer-events: none;
}

/* 博物馆导航 */
.museum-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  color: var(--bg-primary);
  font-family: 'Times New Roman', serif;
}

.nav-logo-text {
  font-size: 28px;
  font-weight: normal;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 主内容区 */
.museum-main {
  padding-top: 70px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Hero 区域 */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.hero-ganzhi {
  font-size: 14px;
  color: var(--gold-muted);
  letter-spacing: 4px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 120px;
  font-weight: normal;
  letter-spacing: 20px;
  line-height: 1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  display: block;
  font-size: 48px;
  letter-spacing: 12px;
  margin-top: 16px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  letter-spacing: 4px;
  margin-bottom: 48px;
}

.hero-cta {
  display: flex;
  gap: 24px;
  margin-bottom: 80px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1000px;
}

.hero-feature-value {
  font-size: 48px;
  color: var(--gold);
  font-family: 'Times New Roman', serif;
  margin-bottom: 8px;
}

.hero-feature-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-feature-desc {
  font-size: 12px;
  color: var(--gold-muted);
  margin-top: 8px;
}

/* 展厅标题 */
.hall-header {
  text-align: center;
  padding: 60px 40px 40px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  margin-bottom: 40px;
}

.hall-subtitle {
  font-size: 12px;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hall-title {
  font-size: 48px;
  font-weight: normal;
  letter-spacing: 8px;
  margin-bottom: 16px;
}

.hall-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* 展厅统计 */
.hall-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 36px;
  color: var(--gold);
  font-family: 'Times New Roman', serif;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* 艺术品网格 */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
  padding: 40px;
  max-width: 1600px;
  margin: 0 auto;
}

/* 艺术品卡片 */
.artwork-card {
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.artwork-card:hover {
  transform: translateY(-8px);
}

.artwork-card:hover .art-frame {
  box-shadow: 
    inset 0 0 0 1px rgba(212, 175, 55, 0.5),
    inset 0 0 0 4px #1a1815,
    inset 0 0 0 5px rgba(212, 175, 55, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(212, 175, 55, 0.1);
}

.artwork-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--bg-tertiary);
}

.artwork-info {
  padding: 20px 12px 12px;
}

.artwork-title {
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.artwork-creator {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-style: italic;
}

/* 评分标签 */
.artwork-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
}

.score-value {
  color: var(--gold);
  font-weight: bold;
}

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

/* 干支标签 */
.ganzhi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 115, 85, 0.2);
  border: 1px solid var(--gold-muted);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--gold-muted);
  margin-left: 8px;
}

/* 排名标签 */
.rank-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.rank-badge.safe {
  background: linear-gradient(135deg, #2d5a27, #1e3d1a);
  color: var(--text);
}

.rank-badge.danger {
  background: linear-gradient(135deg, #c9302c, #8b1e1a);
  color: var(--text);
}

/* 淘汰倒计时 */
.elimination-timer {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(201, 48, 44, 0.9);
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(201, 48, 44, 0.3);
  z-index: 100;
}

.timer-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.9;
}

.timer-value {
  font-size: 24px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* 评分弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.modal-title {
  font-size: 24px;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.modal-subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* 六十进制评分器 */
.score-selector {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.score-option {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Times New Roman', serif;
  font-size: 14px;
}

.score-option:hover {
  transform: scale(1.1);
  border-color: var(--gold);
  color: var(--gold);
}

.score-option.selected {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

/* 表单 */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.error-message {
  color: #f87171;
  font-size: 14px;
  margin-top: 8px;
}

.success-message {
  color: #4ade80;
  font-size: 14px;
  margin-top: 8px;
}

/* 响应式 */
@media (max-width: 768px) {
  .museum-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero-title { font-size: 60px; letter-spacing: 10px; }
  .hero-title span { font-size: 24px; letter-spacing: 6px; }
  .hero-features { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-feature-value { font-size: 32px; }
  .hall-title { font-size: 32px; letter-spacing: 4px; }
  .artwork-grid { grid-template-columns: 1fr; padding: 20px; gap: 30px; }
  .hall-stats { flex-direction: column; gap: 20px; }
  .elimination-timer { bottom: 15px; right: 15px; padding: 10px 14px; }
  .timer-label { font-size: 9px; }
  .timer-value { font-size: 16px; }
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.5;
}

/* 加载动画 */
.loading {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}
