/* 
   龙城·业火地狱 UI Theme 
   风格：复古港风 + 医学恐怖 + 赛博宗教
   配色：深渊黑、动脉红、手术绿、香灰金
*/


.lung-city-ui {
  --bg-color: #080808;
  --panel-bg: #121212;
  --text-main: #c0c0c0;
  --text-dim: #666;
  --accent-red: #b30000; /* 动脉红 */
  --accent-green: #008f6b; /* 手术室绿 */
  --accent-gold: #c5a059; /* 佛像金 */
  --border-color: #333;
  --scanline: rgba(0, 0, 0, 0.5);
  
  font-family: "Songti SC", "SimSun", "Courier New", serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  border: 2px solid var(--border-color);
  padding: 10px;
  max-width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
  position: relative;
  overflow: hidden;
  line-height: 1.6;
}

/* CRT 扫描线效果 */
.lung-city-ui::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

/* 折叠栏样式 */
.lung-city-ui details {
  background: var(--panel-bg);
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lung-city-ui summary {
  background: linear-gradient(90deg, #1a1a1a, #0d0d0d);
  color: var(--accent-gold);
  padding: 8px 12px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 2px;
  text-shadow: 0 0 2px rgba(197, 160, 89, 0.3);
  list-style: none; /* 隐藏默认三角 */
  position: relative;
}

.lung-city-ui summary::after {
  content: "▼";
  position: absolute;
  right: 15px;
  color: var(--accent-red);
  font-size: 0.8em;
  transition: transform 0.3s;
}

.lung-city-ui details[open] summary::after {
  transform: rotate(180deg);
}

.lung-city-ui summary:hover {
  background: #222;
  color: #fff;
  text-shadow: 0 0 5px var(--accent-red);
}

/* 内容区域 */
.panel-content, .status-grid, .memory-log, .action-list {
  padding: 12px;
  font-size: 0.95em;
  position: relative;
  z-index: 3; /* 位于扫描线之上 */
}

/* 顶部网格 */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  color: var(--accent-green);
  font-family: "Courier New", monospace;
}

/* 进度条 */
.bar-container {
  margin: 8px 0;
}
.bar-label {
  font-size: 0.8em;
  color: var(--text-dim);
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
}
.progress-track {
  height: 8px;
  background: #111;
  border: 1px solid #444;
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  transition: width 0.5s ease;
}
.vit-fill { background: linear-gradient(90deg, #550000, var(--accent-red)); }
.karma-fill { background: linear-gradient(90deg, #333, var(--accent-gold)); }
.bar-value {
  font-size: 0.75em;
  text-align: right;
  color: var(--text-dim);
}

/* 文本块与装饰 */
.info-block {
  margin-top: 10px;
  padding: 5px;
  border-left: 2px solid var(--border-color);
  background: rgba(0,0,0,0.2);
}

.highlight-red {
  border-left-color: var(--accent-red);
  color: #ffcccc;
  background: rgba(179, 0, 0, 0.1);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: 10px 0;
}

.quote-style {
  font-style: italic;
  font-family: "KaiTi", serif;
  color: var(--accent-gold);
}

/* NPC 身体部位列表 */
.body-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}
.body-part {
  background: #1a0505;
  border: 1px solid #330000;
  padding: 3px 6px;
  font-size: 0.85em;
  color: #a86666;
}
.body-part span {
  color: #ff3333;
  margin-right: 3px;
}

/* 记忆表格 */
.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
  font-family: "Courier New", monospace;
  margin-bottom: 10px;
}
.log-table th {
  text-align: left;
  border-bottom: 1px solid var(--accent-green);
  color: var(--accent-green);
  padding: 4px;
}
.log-table td {
  padding: 4px;
  border-bottom: 1px solid #222;
  color: #888;
}

/* 选项按钮 */
.action-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.action-btn {
  background: #0f0f0f;
  border: 1px solid #444;
  padding: 8px 10px;
  color: #ccc;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.action-btn::before {
  content: "符";
  position: absolute;
  right: -5px;
  bottom: -10px;
  font-size: 2em;
  color: rgba(255, 255, 255, 0.03);
  font-family: "KaiTi";
  pointer-events: none;
}
.action-btn:hover {
  border-color: var(--accent-red);
  color: #fff;
  background: linear-gradient(90deg, #1a0000, #0f0f0f);
  box-shadow: 0 0 8px rgba(179, 0, 0, 0.4);
  transform: translateX(2px);
}

/* 滚动条美化 */
.lung-city-ui ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.lung-city-ui ::-webkit-scrollbar-track {
  background: #000;
}
.lung-city-ui ::-webkit-scrollbar-thumb {
  background: #333;
  border: 1px solid #000;
}
.lung-city-ui ::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* 移动端适配 */
@media (max-width: 600px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
}