/* 基础布局与全局样式 */
.overlord-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f0f0f0;
  color: #000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border: 2px solid #8b0000;
  box-shadow: 0 0 15px rgba(139, 0, 0, 0.3);
  position: relative;
}

/* 标题横幅 */
.header-banner {
  background: linear-gradient(to right, #8b0000, #500000);
  padding: 15px 20px;
  border-bottom: 3px solid #5a0000;
  text-align: center;
  margin-bottom: 20px;
}
.title-text {
  color: #ffd700;
  text-shadow: 2px 2px 4px #000;
  letter-spacing: 1px;
  margin: 0;
}

/* 状态显示面板 */
.status-display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}
.status-item {
  background: #fff;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.status-item .icon {
  font-size: 1.2em;
  margin-right: 5px;
}

/* 叙述内容区域 */
.narrative-section {
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 25px;
  max-height: 700px;
  overflow-y: auto;
}
.narrative-header {
  background: #8b0000;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px 5px 0 0;
  margin: -20px -20px 15px -20px;
  font-weight: bold;
}

/* 玩家选择区域 */
.player-choices-container {
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 25px;
}
.choices-header {
  background: #2f4f4f;
  color: #fff;
  padding: 8px 15px;
  margin: -15px -15px 15px -15px;
  border-radius: 5px 5px 0 0;
}
.choices-list {
  display: grid;
  gap: 12px;
}
.choice-item {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: all 0.3s;
  cursor: pointer;
}
.choice-item:hover {
  background-color: #f9f9f9;
  border-color: #8b0000;
  transform: translateX(5px);
}
.choice-letter {
  font-weight: bold;
  color: #8b0000;
  margin-right: 8px;
}

/* 记忆日志 */
.memory-log-container {
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 25px;
}
details summary {
  cursor: pointer;
  font-weight: bold;
  color: #8b0000;
}
.memory-content {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #ccc;
}
.memory-subsection {
  margin-bottom: 15px;
}
.memory-item {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.memory-id {
  font-weight: bold;
  color: #8b0000;
}
.relation-status {
  display: block;
  margin-bottom: 5px;
}

/* 侧边栏位置调整 - 向左移动 */
.sidebar-container {
  position: fixed;
  right: 60px; /* 向右移动40px避免遮挡 */
  top: 80px; 
  z-index: 1000;
}

/* 按钮增强 */
.sidebar-button {
  background: #8b0000;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8em;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

/* 脉动动画效果 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(139, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(139, 0, 0, 0);
  }
}

.sidebar-button:hover {
  transform: scale(1.1);
  background: #a00;
}

/* 面板增强 */
.sidebar-panel {
  position: absolute;
  top: 60px;
  right: 0;
  width: 320px;
  background: #fff;
  border: 3px solid #8b0000;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  padding: 20px;
  display: none;
  z-index: 1001;
  animation: slideIn 0.3s ease-out;
  
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #8b0000 #f0f0f0;
  
  /* 新增悬停延迟效果 */
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: auto;
}

/* 自定义滚动条 */
.sidebar-panel::-webkit-scrollbar {
  width: 8px;
}
.sidebar-panel::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}
.sidebar-panel::-webkit-scrollbar-thumb {
  background: #8b0000;
  border-radius: 4px;
}
.sidebar-panel::-webkit-scrollbar-thumb:hover {
  background: #a00;
}

/* 滑入动画 */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 修复悬停问题 */
.sidebar-container:hover .sidebar-panel {
  display: block;
  animation: slideIn 0.3s ease-out;
}

/* 新增悬停留存效果 */
.sidebar-panel {
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-container:hover .sidebar-panel,
.sidebar-panel:hover {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.2s;
}

/* 面板标题增强 */
.sidebar-panel h2, .sidebar-panel h3 {
  color: #8b0000;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 8px;
  margin-top: 0;
}

/* 角色信息 */
.char-section {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ccc;
}
.char-section:last-child {
  border-bottom: none;
}
.char-desc {
  color: #555;
  margin: 5px 0;
}
.char-appearance {
  font-size: 0.9em;
  color: #666;
}

/* 进度条 */
.level-bar-container,
.justice-bar-container {
  margin: 10px 0;
}
.level-bar-bg,
.justice-bar-bg {
  height: 20px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 5px;
}
.level-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #8b0000, #ff4500);
  border-radius: 10px;
}
.justice-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #006400, #00aa00);
  border-radius: 10px;
}

/* 物品列表 */
.equip-list,
.inventory-list {
  padding-left: 20px;
  margin: 10px 0;
}
.equip-list li,
.inventory-list li {
  margin-bottom: 5px;
}

/* 统计网格 */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-item {
  background: #f5f5f5;
  padding: 8px;
  border-radius: 4px;
}

/* 货币显示 */
.currency-display p {
  margin: 8px 0;
  font-weight: bold;
}
/* 男性角色文字样式 */
span[style*="color:00BFFF;"] {
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 4px;
  background-color: rgba(0, 191, 255, 0.1);
  display: inline-block;
  line-height: 1.4;
}

/* 女性角色文字样式 */
span[style*="color: #FF007F;"] {
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 4px;
  background-color: rgba(255, 0, 127, 0.1);
  display: inline-block;
  line-height: 1.4;
}

/* 通用对话效果增强 */
span[style*="color:00BFFF;"]::before {
  content: "“";
  font-size: 1.2em;
}
span[style*="color: #FF007F;"]::after {
  content: "”";
  font-size: 1.2em;
}
/* 装备品质颜色样式 */
.item-common { color: #A9A9A9; }       /* 一般（灰） */
.item-uncommon { color: #FFFFFF; }     /* 普通（白） */
.item-rare { color: #1EFF00; }         /* 精良（绿） */
.item-epic { color: #0070FF; }         /* 优秀（蓝） */
.item-legendary { color: #A335EE; }    /* 史诗（紫） */
.item-mythic { color: #FF8000; }       /* 传说（橙） */
.item-divine { color: #FF3333; }       /* 神话（红） */

/* 通用装备样式增强 */
[class^="item-"] {
  font-weight: bold;
  text-shadow: 0 0 2px rgba(0,0,0,0.7);
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
}

/* 白色装备特殊处理（增加深色边框） */
.item-uncommon {
  border: 1px solid #D0D0D0;
  background-color: rgba(255,255,255,0.15);
}
【css】
/* NPC状态栏样式 */
.npc-status-bar {
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.npc-status-header {
  background: #8b0000;
  color: #fff;
  padding: 8px 15px;
  margin: -15px -15px 15px -15px;
  border-radius: 5px 5px 0 0;
  font-weight: bold;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.npc-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.npc-status-item {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}

.npc-status-item.full-width {
  grid-column: span 2;
}

.npc-label {
  font-weight: bold;
  color: #8b0000;
  min-width: 70px;
  margin-right: 10px;
}

.npc-value {
  color: #333;
  flex-grow: 1;
}
 /* 成就提示栏容器 */
        .achievement-notification {
            position: fixed;
            top: -100px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 600px;
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            color: white;
            padding: 20px 25px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            display: flex;
            align-items: center;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            animation: slideInFadeOut 5s forwards;
        }

        /* 图标区域 */
        .achievement-icon {
            font-size: 2.5rem;
            margin-right: 20px;
            background: rgba(255, 255, 255, 0.2);
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        /* 内容区域 */
        .achievement-content {
            flex-grow: 1;
        }

        .achievement-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 8px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .achievement-description {
            font-size: 1.1rem;
            line-height: 1.5;
            opacity: 0.9;
        }

        /* 进度条 */
        .achievement-progress {
            height: 5px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 3px;
            margin-top: 15px;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            width: 75%;
            background: #ffd700;
            border-radius: 3px;
            animation: progressShimmer 2s infinite;
        }

        /* 动画定义 */
        @keyframes slideInFadeOut {
            0% {
                top: -100px;
                opacity: 0;
            }
            15% {
                top: 30px;
                opacity: 1;
            }
            80% {
                top: 30px;
                opacity: 1;
            }
            100% {
                top: 30px;
                opacity: 0;
                visibility: hidden;
            }
        }

        @keyframes progressShimmer {
            0% {
                background-position: -200px 0;
            }
            100% {
                background-position: 200px 0;
            }
        }

        /* 响应式设计 */
        @media (max-width: 600px) {
            .achievement-notification {
                width: 95%;
                padding: 15px;
            }
            
            .achievement-icon {
                width: 50px;
                height: 50px;
                font-size: 1.8rem;
                margin-right: 15px;
            }
            
            .achievement-title {
                font-size: 1.3rem;
            }
            
            .achievement-description {
                font-size: 1rem;
            }
        }
