/* ===== 密室逃脱 · 主容器 ===== */
.密室 {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #ffffff;
  background: #000000;
  line-height: 1.7;
  padding: 4px 2px;
}

/* ===== 思维链状态栏（不可展开） ===== */
.密室 .think-block {
  pointer-events: none;
  user-select: none;
  margin-bottom: 10px;
}

.密室 .think-block summary {
  cursor: default;
  padding: 8px 14px;
  font-size: 0.8em;
  color: rgba(255,255,255,0.45);
  background: rgba(20, 12, 12, 0.6);
  border: 1px solid #2a1515;
  border-radius: 6px;
  letter-spacing: 1px;
  font-family: "Courier New", monospace;
  list-style: none;
}

.密室 .think-block summary::-webkit-details-marker {
  display: none;
}

.密室 .think-block summary::before {
  content: "◆ ";
  font-size: 0.7em;
  margin-right: 4px;
  opacity: 0.5;
}

.密室 .think-block .think-hidden {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ===== 顶部状态栏 ===== */
.密室 .room-header {
  background: linear-gradient(135deg, #1a0a0a 0%, #2d1117 50%, #1a0a0a 100%);
  border: 1px solid #5c1a1a;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.密室 .room-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff3333, transparent);
  animation: scanline 4s linear infinite;
}

@keyframes scanline {
  0% { left: -100%; }
  100% { left: 100%; }
}

.密室 .round-info {
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(255, 60, 60, 0.4);
}

.密室 .env-bar {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.密室 .env-item {
  background: rgba(0, 0, 0, 0.5);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.85em;
  color: #ffffff;
  border: 1px solid #333;
}

.密室 .tension-bar {
  text-align: center;
  font-size: 0.9em;
  color: #ff4444;
  font-weight: bold;
  letter-spacing: 2px;
  animation: pulse-tension 2s ease-in-out infinite;
}

@keyframes pulse-tension {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; text-shadow: 0 0 12px rgba(255, 50, 50, 0.6); }
}

/* ===== 正文区域 ===== */
.密室 text {
  display: block;
  background: linear-gradient(180deg, rgba(15, 5, 5, 0.6) 0%, rgba(20, 8, 8, 0.3) 100%);
  border-left: 3px solid #5c1a1a;
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 0 6px 6px 0;
  font-size: 1em;
  line-height: 1.85;
}

.密室 text p {
  margin: 0 0 12px 0;
  text-indent: 2em;
  color: #ffffff;
}

.密室 text p:last-child {
  margin-bottom: 0;
}

/* ===== 折叠状态块 ===== */
.密室 .status-block {
  background: rgba(15, 5, 5, 0.5);
  border: 1px solid #3a1515;
  border-radius: 6px;
  margin: 8px 0;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.密室 .status-block:hover {
  border-color: #7a2a2a;
}

.密室 .status-block summary {
  cursor: pointer;
  padding: 10px 16px;
  font-weight: bold;
  font-size: 0.95em;
  color: #ffffff;
  background: rgba(40, 15, 15, 0.6);
  user-select: none;
  transition: background 0.3s ease, color 0.3s ease;
  list-style: none;
}

.密室 .status-block summary::-webkit-details-marker {
  display: none;
}

.密室 .status-block summary::before {
  content: "▶ ";
  font-size: 0.7em;
  transition: transform 0.3s ease;
  display: inline-block;
  margin-right: 4px;
}

.密室 .status-block[open] summary::before {
  transform: rotate(90deg);
}

.密室 .status-block summary:hover {
  background: rgba(60, 20, 20, 0.7);
  color: #ffffff;
}

/* 思维链块覆盖通用状态块hover */
.密室 .think-block:hover {
  border-color: #2a1515;
}

/* ===== 通用状态表格 ===== */
.密室 .status-table,
.密室 .body-table,
.密室 .clue-table,
.密室 .memory-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 0.88em;
}

.密室 .status-table td,
.密室 .body-table td,
.密室 .clue-table td,
.密室 .clue-table th,
.密室 .memory-table td,
.密室 .memory-table th {
  padding: 6px 10px;
  border: 1px solid #2a1010;
  color: #ffffff;
  word-break: break-word;
}

.密室 .status-table tr td:first-child,
.密室 .body-table tr td:first-child {
  width: 28%;
  color: #ffffff;
  font-weight: bold;
  background: rgba(30, 10, 10, 0.5);
  white-space: nowrap;
}

.密室 .status-table tr td:last-child,
.密室 .body-table tr td:last-child {
  background: rgba(20, 8, 8, 0.3);
}

/* ===== 身体状态表格特殊样式 ===== */
.密室 .body-table {
  margin-top: 4px;
  border-top: 2px solid #4a1a2a;
}

.密室 .body-table tr td:first-child {
  color: #ffffff;
  background: rgba(40, 10, 20, 0.5);
}

/* ===== 线索表格 ===== */
.密室 .clue-table th {
  background: rgba(40, 15, 15, 0.7);
  color: #ffffff;
  font-weight: bold;
  text-align: left;
}

.密室 .clue-table tr:nth-child(even) td {
  background: rgba(25, 10, 10, 0.4);
}

.密室 .clue-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  padding: 10px;
  font-size: 0.85em;
}

/* ===== 记忆回廊 ===== */
.密室 .memory-block summary {
  color: #ffffff;
  background: rgba(20, 10, 35, 0.6);
}

.密室 .memory-block:hover {
  border-color: #5a3a7a;
}

.密室 .memory-block summary:hover {
  background: rgba(30, 15, 50, 0.7);
  color: #ffffff;
}

.密室 .memory-section {
  padding: 4px 10px;
  margin: 6px 0;
}

.密室 .memory-title {
  font-weight: bold;
  font-size: 0.9em;
  color: #ffffff;
  margin: 8px 0 4px 0;
  padding-bottom: 3px;
  border-bottom: 1px solid #3a2255;
}

.密室 .memory-table th {
  background: rgba(30, 15, 40, 0.7);
  color: #ffffff;
  font-weight: bold;
  text-align: left;
  font-size: 0.85em;
}

.密室 .memory-table td {
  font-size: 0.85em;
  color: #ffffff;
}

.密室 .memory-table tr:nth-child(even) td {
  background: rgba(20, 10, 30, 0.3);
}

/* ===== 行动推荐 ===== */
.密室 .action-suggest {
  background: linear-gradient(135deg, #0a1520 0%, #152030 100%);
  border: 1px solid #1a3550;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
}

.密室 .suggest-title {
  font-weight: bold;
  font-size: 1em;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 0 6px rgba(100, 170, 220, 0.3);
}

.密室 .suggest-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.密室 .suggest-item {
  background: rgba(15, 30, 50, 0.5);
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 3px solid #3388bb;
  color: #ffffff;
  font-size: 0.9em;
  transition: background 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.密室 .suggest-item:hover {
  background: rgba(20, 40, 65, 0.7);
  border-left-color: #55bbee;
  color: #ffffff;
}

/* ===== 移动端适配 ===== */
@media screen and (max-width: 768px) {
  .密室 .env-bar {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .密室 .env-item {
    width: 80%;
    text-align: center;
  }

  .密室 text {
    padding: 12px 14px;
    font-size: 0.95em;
  }

  .密室 .status-table td,
  .密室 .body-table td,
  .密室 .memory-table td,
  .密室 .memory-table th,
  .密室 .clue-table td,
  .密室 .clue-table th {
    padding: 5px 6px;
    font-size: 0.82em;
  }

  .密室 .status-table tr td:first-child,
  .密室 .body-table tr td:first-child {
    width: 30%;
  }

  .密室 .suggest-item {
    font-size: 0.85em;
    padding: 6px 10px;
  }

  .密室 .think-block summary {
    font-size: 0.72em;
    padding: 6px 10px;
  }
}