/* 全局废土像素风基础 */
body {
    background-color: #0a0a0a !important;
    color: #6B8E23 !important;
    font-family: 'Courier New', monospace !important;
    line-height: 1.8 !important;
}

/* 正文区域 - 像素边框+扫描线效果 */
.rev-main {
    background: linear-gradient(to bottom, #1a1a1a 0%, #0f0f0f 100%) !important;
    border: 3px solid #6B8E23 !important;
    border-style: dashed !important;
    padding: 20px !important;
    margin: 15px 0 !important;
    color: #6B8E23 !important;
    font-size: 14px !important;
    box-shadow: 
        0 0 10px rgba(107, 142, 35, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.8) !important;
    position: relative !important;
}

.rev-main::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: repeating-linear-gradient(
        0deg,
        rgba(107, 142, 35, 0.03) 0px,
        rgba(107, 142, 35, 0.03) 1px,
        transparent 1px,
        transparent 2px
    ) !important;
    pointer-events: none !important;
}

/* 角色对话 - 赛博橙高亮 */
.char-dialogue {
    color: #FF6B00 !important;
    font-weight: bold !important;
    text-shadow: 0 0 5px rgba(255, 107, 0, 0.5) !important;
}

/* 内心独白 - 钢铁蓝 */
.inner-thought {
    color: #00D4FF !important;
    font-style: italic !important;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.4) !important;
}

/* 系统提示 - 警报橙+像素边框 */
.system-alert {
    background: #1a1a1a !important;
    border: 2px solid #FF6B00 !important;
    border-style: double !important;
    padding: 12px !important;
    margin: 10px 0 !important;
    color: #FF6B00 !important;
    font-weight: bold !important;
    text-align: center !important;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4) !important;
}

/* 特殊界面模拟 - 终端荧光屏效果 */
.sim-ui {
    background: #000000 !important;
    border: 3px solid #00D4FF !important;
    border-radius: 0 !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    color: #00D4FF !important;
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.6),
        inset 0 0 50px rgba(0, 212, 255, 0.1) !important;
}

.sim-ui * {
    color: revert !important;
}

/* 状态栏面板统一样式 - 像素游戏UI框架 */
.coser-panel {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%) !important;
    border: 2px solid #6B8E23 !important;
    border-style: solid !important;
    margin: 10px 0 !important;
    padding: 0 !important;
    box-shadow: 
        0 0 10px rgba(107, 142, 35, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.9) !important;
}

.coser-panel summary {
    background: #0f0f0f !important;
    color: #6B8E23 !important;
    padding: 12px 15px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    border-bottom: 2px solid #6B8E23 !important;
    user-select: none !important;
    text-shadow: 0 0 8px rgba(107, 142, 35, 0.6) !important;
    font-family: 'Courier New', monospace !important;
}

.coser-panel summary::before {
    content: "▶ " !important;
    color: #FF6B00 !important;
    margin-right: 5px !important;
}

.coser-panel[open] summary::before {
    content: "▼ " !important;
}

.coser-panel summary:hover {
    background: #1a1a1a !important;
    box-shadow: inset 0 0 15px rgba(107, 142, 35, 0.2) !important;
}

/* 面板内容区域 */
.coser-panel > *:not(summary) {
    padding: 15px !important;
    color: #6B8E23 !important;
}

/* 思维链面板特殊样式 */
.thinking-panel summary {
    color: #00D4FF !important;
    border-bottom-color: #00D4FF !important;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.6) !important;
}

/* 场景信息面板 */
.scene-panel summary {
    color: #6B8E23 !important;
}

/* NPC档案面板 */
.npc-archive-panel summary {
    color: #FF6B00 !important;
    border-bottom-color: #FF6B00 !important;
    text-shadow: 0 0 8px rgba(255, 107, 0, 0.6) !important;
}

/* 记忆面板 */
.memory-panel summary {
    color: #00D4FF !important;
    border-bottom-color: #00D4FF !important;
}

/* 玩家面板 */
.player-panel summary {
    color: #6B8E23 !important;
}

/* 威胁监测面板 */
.threat-panel summary {
    color: #FF6B00 !important;
    border-bottom-color: #FF6B00 !important;
    text-shadow: 0 0 8px rgba(255, 107, 0, 0.6) !important;
}

/* NPC互动面板 */
.npc-panel summary {
    color: #6B8E23 !important;
}

/* 表格样式 - 像素化网格 */
table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 2px !important;
    margin: 10px 0 !important;
}

th, td {
    border: 1px solid #6B8E23 !important;
    padding: 8px !important;
    color: #6B8E23 !important;
    background: #0a0a0a !important;
}

th {
    background: #1a1a1a !important;
    font-weight: bold !important;
    text-shadow: 0 0 5px rgba(107, 142, 35, 0.5) !important;
}

/* 分隔线 - 像素点阵 */
hr {
    border: none !important;
    height: 3px !important;
    background: repeating-linear-gradient(
        90deg,
        #6B8E23 0px,
        #6B8E23 5px,
        transparent 5px,
        transparent 10px
    ) !important;
    margin: 20px 0 !important;
    box-shadow: 0 0 10px rgba(107, 142, 35, 0.3) !important;
}

/* 选项系统 - 像素按钮风格 */
.coser-panel + hr + * {
    background: #0f0f0f !important;
    border: 2px solid #FF6B00 !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4) !important;
}

/* 链接样式 */
a {
    color: #00D4FF !important;
    text-decoration: none !important;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5) !important;
}

a:hover {
    color: #FF6B00 !important;
    text-shadow: 0 0 8px rgba(255, 107, 0, 0.7) !important;
}

/* 列表样式 - 像素化标记 */
ul, ol {
    padding-left: 25px !important;
}

li {
    margin: 5px 0 !important;
    color: #6B8E23 !important;
}

li::marker {
    color: #FF6B00 !important;
}

/* 强制覆盖任何可能的浅色文字 */
* {
    color: inherit !important;
}

p, span, div:not(.sim-ui):not(.sim-ui *) {
    color: #6B8E23 !important;
}

/* 滚动条像素化 */
::-webkit-scrollbar {
    width: 12px !important;
    background: #0a0a0a !important;
}

::-webkit-scrollbar-track {
    background: #1a1a1a !important;
    border: 1px solid #6B8E23 !important;
}

::-webkit-scrollbar-thumb {
    background: #6B8E23 !important;
    border: 1px solid #0a0a0a !important;
    box-shadow: 0 0 5px rgba(107, 142, 35, 0.5) !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF6B00 !important;
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.7) !important;
}

/* 代码块样式 */
code, pre {
    background: #000000 !important;
    border: 1px solid #00D4FF !important;
    padding: 2px 6px !important;
    color: #00D4FF !important;
    font-family: 'Courier New', monospace !important;
}

/* 引用块 */
blockquote {
    border-left: 4px solid #FF6B00 !important;
    padding-left: 15px !important;
    margin: 10px 0 !important;
    color: #6B8E23 !important;
    background: rgba(255, 107, 0, 0.05) !important;
}
