/* === 展厅样式 === */

/* 展厅主题色 */
.room-theme-room1 { --room-color: #8b7355; }
.room-theme-room2 { --room-color: #6b5b95; }
.room-theme-room3 { --room-color: #2c5f7c; }
.room-theme-room4 { --room-color: #8b4513; }
.room-theme-room5 { --room-color: #4a4a4a; }
.room-theme-room6 { --room-color: #556b2f; }
.room-theme-room7 { --room-color: #4169e1; }

/* 展厅入口页 */
.room-intro {
  padding: 20px 0;
}

.room-header {
  text-align: center;
  margin-bottom: 24px;
}

.room-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--room-color, #1a1a1a);
  margin-bottom: 4px;
}

.room-header .room-subtitle {
  font-size: 14px;
  color: #888;
  font-style: italic;
}

.room-header .room-year {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}

/* 展品卡片 */
.exhibit-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.exhibit-card:active {
  background: #fafafa;
  border-color: var(--room-color, #2563eb);
}

.exhibit-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.exhibit-info {
  flex: 1;
  min-width: 0;
}

.exhibit-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exhibit-hint {
  font-size: 12px;
  color: #999;
}

.exhibit-status {
  font-size: 16px;
  flex-shrink: 0;
}

/* 谜题区域 */
.puzzle-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #e0e0e0;
}

.puzzle-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--room-color, #333);
  margin-bottom: 12px;
}

.puzzle-card {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.puzzle-question {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 12px;
}

.puzzle-input-group {
  display: flex;
  gap: 8px;
}

.puzzle-input-group .input-field {
  flex: 1;
}

.puzzle-input-group .btn-submit {
  padding: 0 20px;
  height: 44px;
  background: var(--room-color, #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.puzzle-input-group .btn-submit:active {
  opacity: 0.8;
}

/* 谜题状态 */
.puzzle-solved {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.puzzle-solved .puzzle-question {
  color: #059669;
}

.puzzle-solved .puzzle-status {
  color: #059669;
  font-weight: 500;
}

/* 墙上的铭文 */
.wall-inscription {
  background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  font-size: 14px;
  line-height: 2;
  color: #555;
  font-style: italic;
}

.wall-inscription::before {
  content: '📜';
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

/* 展厅完成提示 */
.room-complete {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-radius: 12px;
  margin-top: 20px;
}

.room-complete .check-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.room-complete h3 {
  font-size: 18px;
  color: #059669;
  margin-bottom: 8px;
}

.room-complete p {
  font-size: 14px;
  color: #047857;
}

/* 展厅选择器 */
.room-selector {
  margin: 20px 0;
}

.room-selector h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.room-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.room-item:active {
  background: #fafafa;
}

.room-item.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.room-item.locked:active {
  background: #fff;
}

.room-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-right: 12px;
  flex-shrink: 0;
}

.room-item.completed .room-number {
  background: #059669;
  color: #fff;
}

.room-item.current .room-number {
  background: #2563eb;
  color: #fff;
}

.room-item-info {
  flex: 1;
}

.room-item-name {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
}

.room-item-sub {
  font-size: 12px;
  color: #888;
}

.room-item-status {
  font-size: 18px;
}

/* 入口页 */
.museum-intro {
  text-align: center;
  padding: 40px 20px;
}

.museum-intro .museum-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.museum-intro h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.museum-intro .museum-subtitle {
  font-size: 14px;
  color: #888;
  font-style: italic;
  margin-bottom: 24px;
}

.museum-intro .intro-letter {
  text-align: left;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 2;
  color: #444;
}

.museum-intro .intro-letter p {
  margin-bottom: 12px;
}

.museum-intro .intro-letter .signature {
  text-align: right;
  color: #888;
  font-style: italic;
}

/* 结局页 */
.ending-screen {
  text-align: center;
  padding: 40px 20px;
}

.ending-screen .ending-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.ending-screen h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.ending-screen .ending-text {
  font-size: 14px;
  line-height: 2;
  color: #444;
  white-space: pre-line;
  margin-bottom: 30px;
}

.ending-screen.true-ending h2 {
  color: #059669;
}

.ending-screen.partial-ending h2 {
  color: #b45309;
}

/* 日记页 */
.diary-page {
  background: #fffef5;
  border: 1px solid #e8e0c8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.diary-page .diary-title {
  font-size: 14px;
  font-weight: 600;
  color: #8b7355;
  margin-bottom: 8px;
}

.diary-page .diary-text {
  font-size: 13px;
  line-height: 1.9;
  color: #555;
  white-space: pre-line;
}

.diary-page .diary-clue {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #d0c8a8;
  font-size: 12px;
  color: #8b7355;
  font-style: italic;
}
