:root {
  --bg-main: #65656b; /* 主背景，深邃黑 */
  --bg-panel: #5c5c69; /* 面板背景，暗炭黑 */
  --bg-panel-trans: rgba(26, 26, 29, 0.95); /* 半透明面板背景 */
  --color-primary-red: #E50914; /* 主色，血红色 */
  --color-accent-gold: #FFB800; /* 强调色，赏金金 */
  --text-main: #F0F0F0; /* 主要文字，柔和白 */
  --text-secondary: #f2fa7a; /* 次要文字，黄色标签 */
  --border-color: rgba(255, 184, 0, 0.2); /* 边框色，暗金色 */
  --glow-red: 0 0 8px rgba(229, 9, 20, 0.7);
  --glow-gold: 0 0 8px rgba(255, 184, 0, 0.6);
  --font-body: 'Segoe UI', 'Roboto', system-ui, sans-serif;
  --font-title: 'Orbitron', 'Teko', sans-serif; /* 引入一个科技感字体（如果可用） */
  --transition-speed: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- 基础样式重置 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
}

/* --- 核心布局 --- */
.road {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
}

ai {
  display: block;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-panel-trans);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 184, 0, 0.1);
  overflow: hidden;
}

/* --- 叙事与对话区 --- */
h2 {
  font-family: var(--font-title);
  color: var(--color-primary-red);
  font-size: 1.8rem;
  text-align: center;
  padding: 1.5rem 1rem 1rem;
  letter-spacing: 2px;
  text-shadow: var(--glow-red);
}

article {
  padding: 0 2rem 1rem;
}

article p {
  margin-bottom: 1rem;
  text-align: justify;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(164, 164, 164, 0.2);
  border-left: 4px solid var(--color-primary-red);
  border-radius: 0 8px 8px 0;
}

blockquote strong {
  color: var(--color-primary-red);
  font-family: var(--font-title);
  margin-right: 0.5em;
}

blockquote p {
  display: inline;
  margin: 0;
}

/* --- 可折叠面板 (核心UI) --- */
.p3-fold {
  border-top: 1px solid var(--border-color);
}

summary {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  font-family: var(--font-title);
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--color-accent-gold);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--transition-speed);
}

summary:hover {
  background: rgba(255, 184, 0, 0.05);
}

summary::before {
  content: '▶';
  font-size: 0.8em;
  margin-right: 0.75rem;
  color: var(--color-accent-gold);
  transform: rotate(0deg);
  transition: transform var(--transition-speed);
}

details[open] > summary::before {
  transform: rotate(90deg);
}

.fold-content {
  padding: 0.5rem 1.5rem 1.5rem;
  background: rgba(0,0,0,0.2);
}

/* --- 状态网格 --- */
.status-grid, .npc-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.status-grid d, .npc-details d {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  background: var(--bg-main);
  border-radius: 6px;
  border: 1px solid #222;
}

.status-grid k, .npc-details k {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.status-grid v, .npc-details v {
  font-size: 1rem;
  color: var(--text-main);
}
.status-grid v[k*="赏金"], .npc-details v[k*="赏金"] {
  color: var(--color-accent-gold);
  font-weight: bold;
}
.status-grid v[k*="堕落"], .npc-details v[k*="崩坏"] {
  color: var(--color-primary-red);
  font-weight: bold;
}


/* --- NPC卡片 --- */
.npc-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-panel);
  margin-bottom: 1rem;
  box-shadow: var(--glow-gold, 0 0 5px rgba(255,184,0,0.1));
  overflow: hidden;
}
.npc-card:last-child {
  margin-bottom: 0;
}

.npc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: linear-gradient(to right, rgba(229,9,20,0.2), transparent);
}

.npc-name {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--text-main);
}

.npc-relation {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.npc-section-header {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 0.5rem 0;
  background: var(--bg-main);
}

.npc-details {
  padding: 1rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 500px) {
  .npc-details { grid-template-columns: 1fr; }
}


/* --- 记忆区 --- */
.memory-section {
  margin-top: 1rem;
}
.memory-section .npc-section-header{
  margin-bottom: 0.5rem;
}
.long-term-memory {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 0.5rem;
}
.memory-list {
  list-style: none;
  padding-left: 0.5rem;
}
.memory-list li {
  font-size: 0.9rem;
  color: #a0a0a0;
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1rem;
}
.memory-list li::before {
  content: '■';
  position: absolute;
  left: 0;
  top: 0.35rem;
  font-size: 0.5em;
  color: var(--color-accent-gold);
}


/* --- 行动选项 --- */
.action-panel {
  padding: 1.5rem;
  background: rgba(0,0,0,0.3);
}

.action-title {
  font-family: var(--font-title);
  color: var(--color-accent-gold);
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.action-list {
  list-style: none;
}

.action-list li {
  background: var(--bg-panel);
  margin-bottom: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition-speed);
}
.action-list li:hover {
  background: var(--bg-main);
  border-left-color: var(--color-primary-red);
  transform: translateX(5px);
  color: var(--text-main);
}