css
/* ═══ 顶部状态栏 ═══ */
top-bar {
  display: block;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #f0e6d2;
  padding: 14px 22px;
  border-radius: 0 0 6px 6px;
  margin-bottom: 20px;
  border: 2px solid #d4af37;
  border-top: none;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255,255,255,0.08);
  font-size: 14px;
  font-weight: 600;
  position: relative;
  font-family: "KaiTi","楷体",serif;
}

top-bar::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 22px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 10px solid #1a1a2e;
}

top-bar::after {
  content: '⚔️';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

top-bar p {
  margin: 0;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
  letter-spacing: 1px;
}

/* ═══ 正文区域 ═══ */
text {
  display: block;
  line-height: 1.75;
  font-size: 15px;
  color: #2c2416;
  background: linear-gradient(to bottom, #fdfbf7 0%, #f5f1e8 100%);
  padding: 8px 12px;
  margin-bottom: 20px;
  border: 3px double #d4a574;
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12), inset 0 0 30px rgba(212,165,116,0.04);
  position: relative;
  font-family: "SimSun","宋体",serif;
}

text::before {
  content: "📜";
  font-size: 22px;
  opacity: 0.25;
  position: absolute;
  top: 10px;
  left: 12px;
}

text::after {
  content: "📜";
  font-size: 22px;
  opacity: 0.25;
  position: absolute;
  bottom: 10px;
  right: 12px;
}

text p {
  margin: 10px 0;
  text-indent: 2em;
  color: #2c2416;
}

/* ═══ 普通折叠栏 ═══ */
details {
  background: none;
  border: none;
  margin-bottom: 12px;
}

summary {
  font-family: "KaiTi","楷体",serif;
  font-size: 16px;
  font-weight: bold;
  color: #ffd700;
  cursor: pointer;
  padding: 10px 15px;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  border-radius: 6px;
  border: 2px solid #d4af37;
  margin-bottom: 8px;
  user-select: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "📖 ";
  font-size: 17px;
  margin-right: 8px;
}

details[open] summary::before {
  content: "📕 ";
}

summary:hover {
  background: linear-gradient(135deg, #1a1640 0%, #3d3570 50%, #2e2e50 100%);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

details p {
  padding: 8px 15px;
  margin: 5px 0;
  line-height: 1.75;
  font-size: 14px;
  color: #1a1a1a;
  background: rgba(240, 230, 210, 0.5);
  border-left: 3px solid #d4af37;
  border-radius: 0 4px 4px 0;
  transition: all 0.2s ease;
  font-family: "SimSun","宋体",serif;
}

details p:hover {
  background: rgba(255, 248, 220, 0.7);
  border-left-color: #ffd700;
  padding-left: 20px;
}

details p strong {
  color: #d4af37;
  font-weight: 700;
}

/* ═══ 血条/蓝条/经验条 ═══ */
hp-bar, mp-bar, exp-bar {
  display: block;
  margin: 10px 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

hp-bar { border-color: #8b0000; }
mp-bar { border-color: #00008b; }
exp-bar { border-color: #9400d3; }

hp-label, mp-label, exp-label {
  display: block;
  color: #1a1a1a;
  font-size: 13px;
  margin: 8px 0 4px 0;
  font-weight: bold;
}

hp-fill {
  display: block;
  height: 24px;
  background: linear-gradient(90deg, #ff0000 0%, #ff6666 100%);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
  text-align: center;
  line-height: 24px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: width 0.5s ease;
}

mp-fill {
  display: block;
  height: 24px;
  background: linear-gradient(90deg, #0000ff 0%, #6666ff 100%);
  box-shadow: 0 0 10px rgba(0, 0, 255, 0.8);
  text-align: center;
  line-height: 24px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: width 0.5s ease;
}

exp-fill {
  display: block;
  height: 24px;
  background: linear-gradient(90deg, #9400d3 0%, #ba55d3 100%);
  box-shadow: 0 0 10px rgba(148, 0, 211, 0.8);
  text-align: center;
  line-height: 24px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: width 0.5s ease;
}

/* ═══ 按钮组 ═══ */
btn-group {
  display: flex;
  gap: 8px;
  margin: 15px 0;
  justify-content: center;
  flex-wrap: nowrap;
}

/* ═══ 模态触发器样式 ═══ */
.modal-trigger {
  background: none;
  border: none;
  margin: 0;
  flex: 0 1 auto;
}

.modal-trigger summary {
  padding: 8px 12px;
  background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
  color: #1a1a2e;
  font-size: 13px;
  border: 2px solid #ffd700;
  margin: 0;
  white-space: nowrap;
}

.modal-trigger summary::before {
  content: '';
  margin: 0;
}

.modal-trigger summary:hover {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  transform: translateY(-2px);
}

.modal-trigger[open] summary {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  padding: 0;
  border: none;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: #ffd700;
}

/* ═══ 模态内容 ═══ */
.modal-trigger modal-content {
  display: none;
}

.modal-trigger[open] modal-content {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 100%);
  border: 3px solid #d4af37;
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  z-index: 9999;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translate(-50%, -60%); opacity: 0; }
  to { transform: translate(-50%, -50%); opacity: 1; }
}

close-btn {
  display: block;
  text-align: center;
  color: #ff6347;
  font-size: 14px;
  margin-bottom: 15px;
  cursor: pointer;
  font-family: "KaiTi","楷体",serif;
}

modal-content p {
  margin: 10px 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid #d4af37;
  border-radius: 4px;
  color: #f0e6d2;
}

/* ═══ NPC卡片 ═══ */
npc-card {
  display: block;
  background: rgba(240, 230, 210, 0.3);
  border: 2px solid #d4a574;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
}

npc-name {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #8b4513;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(212, 165, 116, 0.3);
}

/* ═══ 身体部位详情 ═══ */
body-details {
  display: block;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px dashed rgba(212, 165, 116, 0.4);
}

body-part {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin: 6px 0;
  background: rgba(240, 230, 210, 0.4);
  border-left: 3px solid #d4a574;
  border-radius: 0 6px 6px 0;
  transition: all 0.3s ease;
}

body-part:hover {
  background: rgba(255, 248, 220, 0.6);
  padding-left: 15px;
  border-left-color: #d4af37;
}

part-icon {
  font-size: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}

part-name {
  font-weight: bold;
  color: #8b4513;
  min-width: 60px;
  font-size: 14px;
  font-family: "KaiTi","楷体",serif;
}

part-state {
  color: #1a1a1a;
  font-size: 13px;
  margin-left: 10px;
  font-family: "SimSun","宋体",serif;
}

/* ═══ 行动推荐 ═══ */
action-list {
  display: block;
  padding: 10px 0;
}

action-item {
  display: block;
  padding: 12px 15px;
  margin: 8px 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 215, 0, 0.08) 100%);
  border-left: 4px solid #d4af37;
  border-radius: 0 8px 8px 0;
  color: #1a1a1a;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-family: "KaiTi","楷体",serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

action-item::before {
  content: '▶';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #d4af37;
  font-size: 12px;
  opacity: 0;
  transition: all 0.3s ease;
}

action-item:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 237, 78, 0.15) 100%);
  border-left-color: #ffd700;
  padding-left: 20px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transform: translateX(5px);
}

action-item:hover::before {
  opacity: 1;
  right: 10px;
}

action-item:active {
  transform: translateX(3px) scale(0.98);
}

action-item.custom-action {
  background: linear-gradient(135deg, rgba(147, 112, 219, 0.15) 0%, rgba(138, 43, 226, 0.08) 100%);
  border-left-color: #9370db;
  font-style: italic;
}

action-item.custom-action:hover {
  background: linear-gradient(135deg, rgba(147, 112, 219, 0.25) 0%, rgba(186, 85, 211, 0.15) 100%);
  border-left-color: #ba55d3;
}

action-item.custom-action::before {
  color: #9370db;
}

/* ═══ 表格 ═══ */
details table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  background: rgba(240, 230, 210, 0.3);
  font-family: "SimSun","宋体",serif;
  font-size: 13px;
}

details table thead {
  background: linear-gradient(135deg, #d4a574 0%, #c19a6b 100%);
}

details table th {
  color: #1a1a1a;
  padding: 10px;
  border: 1px solid #d4af37;
  font-weight: bold;
  font-family: "KaiTi","楷体",serif;
  font-size: 14px;
}

details table td {
  padding: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #1a1a1a;
  background: rgba(255, 248, 220, 0.3);
}

details table tbody tr:hover td {
  background: rgba(255, 248, 220, 0.6);
}

/* ═══ 标题 ═══ */
details h3 {
  font-family: "KaiTi","楷体",serif;
  color: #8b4513;
  margin: 12px 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid #d4af37;
  font-size: 15px;
  font-weight: bold;
}

/* ═══ 响应式 ═══ */
@media (max-width: 768px) {
  text {
    padding: 6px 10px;
    font-size: 14px;
  }
  
  btn-group {
    gap: 6px;
  }
  
  .modal-trigger summary {
    padding: 7px 10px;
    font-size: 12px;
  }
  
  .modal-trigger[open] modal-content {
    padding: 20px;
    width: 95%;
  }
}

/* ═══ 滚动条 ═══ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f5f1e8;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
  border-radius: 5px;
  border: 2px solid #f5f1e8;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}css
/* ═══ 亲密关系 ═══ */
relationship-list {
  display: block;
  margin: 10px 0;
}

relationship-item {
  display: flex;
  flex-direction: column;
  padding: 12px 15px;
  margin: 8px 0;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.2) 0%, rgba(255, 105, 180, 0.1) 100%);
  border-left: 4px solid #ff69b4;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
  transition: all 0.3s ease;
}

relationship-item:hover {
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.3) 0%, rgba(255, 105, 180, 0.15) 100%);
  border-left-color: #ff1493;
  padding-left: 20px;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
  transform: translateX(5px);
}

rel-name {
  font-size: 16px;
  font-weight: bold;
  color: #ff1493;
  margin-bottom: 6px;
  font-family: "KaiTi","楷体",serif;
  text-shadow: 0 1px 2px rgba(255, 20, 147, 0.2);
}

rel-status {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  font-family: "SimSun","宋体",serif;
  padding-left: 20px;
  position: relative;
}

rel-status::before {
  content: '📍';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
}