body, .message, .mes_text {
    background-color: #0a0a0a !important;
    color: #d4a574 !important;
    font-family: "思源宋体", "Source Han Serif SC", "Noto Serif SC", "PingFang SC", serif !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    letter-spacing: 0.3px !important;
}

.mes_text {
    padding: 16px !important;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) !important;
    border-left: 2px solid #c8102e !important;
    box-shadow: 0 0 20px rgba(200, 16, 46, 0.15) inset !important;
}

.mes_text p {
    color: #d4a574 !important;
    margin: 12px 0 !important;
    text-align: justify !important;
}

.mes_text hr {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent 0%, #c8102e 20%, #c8102e 80%, transparent 100%) !important;
    margin: 20px 0 !important;
    box-shadow: 0 0 8px rgba(200, 16, 46, 0.5) !important;
}

.rev-main {
    background: rgba(10, 10, 10, 0.6) !important;
    padding: 18px 20px !important;
    border: 1px solid #2a0a0e !important;
    border-left: 3px solid #c8102e !important;
    margin: 16px 0 !important;
    color: #d4a574 !important;
    position: relative !important;
}

.rev-main::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 40px !important;
    height: 2px !important;
    background: #c8102e !important;
    box-shadow: 0 0 10px #c8102e !important;
}

.rev-main::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 40px !important;
    height: 2px !important;
    background: #c8102e !important;
    box-shadow: 0 0 10px #c8102e !important;
}

.char-dialogue {
    color: #c8102e !important;
    font-weight: 600 !important;
    text-shadow: 0 0 6px rgba(200, 16, 46, 0.4) !important;
    letter-spacing: 0.5px !important;
}

.inner-thought {
    color: #8b6f47 !important;
    font-style: italic !important;
    letter-spacing: 0.4px !important;
    opacity: 0.92 !important;
}

.system-alert {
    background: rgba(191, 0, 255, 0.08) !important;
    border: 1px solid #bf00ff !important;
    border-left: 4px solid #bf00ff !important;
    color: #bf00ff !important;
    padding: 10px 14px !important;
    margin: 14px 0 !important;
    font-family: "Consolas", "Monaco", monospace !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    text-shadow: 0 0 4px rgba(191, 0, 255, 0.6) !important;
    box-shadow: 0 0 12px rgba(191, 0, 255, 0.2) !important;
}

.coser-panel {
    background: rgba(10, 10, 10, 0.95) !important;
    border: 1px solid #2a0a0e !important;
    margin: 14px 0 !important;
    padding: 0 !important;
    position: relative !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(200, 16, 46, 0.15) !important;
    transition: all 0.3s ease !important;
}

.coser-panel:hover {
    border-color: #c8102e !important;
    box-shadow: 0 2px 16px rgba(200, 16, 46, 0.3), 0 0 0 1px rgba(200, 16, 46, 0.4) !important;
}

.coser-panel summary {
    background: linear-gradient(90deg, #1a0509 0%, #0a0a0a 100%) !important;
    color: #c8102e !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    cursor: pointer !important;
    border-bottom: 1px solid #2a0a0e !important;
    text-shadow: 0 0 8px rgba(200, 16, 46, 0.5) !important;
    list-style: none !important;
    position: relative !important;
    user-select: none !important;
}

.coser-panel summary::-webkit-details-marker {
    display: none !important;
}

.coser-panel summary::before {
    content: "▶" !important;
    color: #c8102e !important;
    margin-right: 10px !important;
    font-size: 10px !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
}

.coser-panel[open] summary::before {
    transform: rotate(90deg) !important;
}

.coser-panel[open] summary {
    border-bottom: 2px solid #c8102e !important;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3) !important;
}

.coser-panel > *:not(summary) {
    padding: 14px 20px !important;
    color: #d4a574 !important;
    font-size: 13px !important;
    line-height: 1.9 !important;
}

.coser-panel hr {
    border: none !important;
    height: 1px !important;
    background: #2a0a0e !important;
    margin: 12px 0 !important;
}

.thinking-panel summary {
    background: linear-gradient(90deg, #14001a 0%, #0a0a0a 100%) !important;
    color: #bf00ff !important;
    text-shadow: 0 0 8px rgba(191, 0, 255, 0.5) !important;
}

.thinking-panel summary::before {
    color: #bf00ff !important;
}

.thinking-panel {
    border-color: #2a0033 !important;
}

.thinking-panel:hover {
    border-color: #bf00ff !important;
    box-shadow: 0 2px 16px rgba(191, 0, 255, 0.3), 0 0 0 1px rgba(191, 0, 255, 0.4) !important;
}

.scene-panel {
    border-left: 3px solid #c8102e !important;
}

.scene-panel > *:not(summary) {
    font-family: "Consolas", "Monaco", "思源黑体", monospace !important;
    font-size: 13px !important;
    color: #d4a574 !important;
}

.player-panel {
    border-left: 3px solid #bf00ff !important;
}

.player-panel summary {
    background: linear-gradient(90deg, #14001a 0%, #1a0509 100%) !important;
}

.player-panel > *:not(summary) {
    font-family: "Consolas", "Monaco", monospace !important;
    font-size: 13px !important;
    color: #d4a574 !important;
}

.suli-panel {
    border-left: 3px solid #c8102e !important;
    background: linear-gradient(135deg, #0a0a0a 0%, #14000a 100%) !important;
}

.suli-panel summary {
    background: linear-gradient(90deg, #2a0510 0%, #0a0a0a 100%) !important;
    color: #c8102e !important;
    font-size: 15px !important;
    letter-spacing: 3px !important;
}

.suli-panel > *:not(summary) {
    color: #d4a574 !important;
}

.memory-panel {
    border-left: 3px solid #bf00ff !important;
}

.memory-panel summary {
    background: linear-gradient(90deg, #14001a 0%, #0a0a0a 100%) !important;
    color: #bf00ff !important;
    text-shadow: 0 0 8px rgba(191, 0, 255, 0.5) !important;
    font-family: "Consolas", "Monaco", monospace !important;
}

.memory-panel summary::before {
    color: #bf00ff !important;
}

.memory-panel table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 8px 0 !important;
    font-family: "Consolas", "Monaco", monospace !important;
    font-size: 12px !important;
}

.memory-panel table th {
    background: #14001a !important;
    color: #bf00ff !important;
    padding: 8px 10px !important;
    text-align: left !important;
    border: 1px solid #2a0033 !important;
    text-shadow: 0 0 4px rgba(191, 0, 255, 0.5) !important;
    letter-spacing: 1px !important;
}

.memory-panel table td {
    background: rgba(20, 0, 26, 0.3) !important;
    color: #d4a574 !important;
    padding: 7px 10px !important;
    border: 1px solid #2a0033 !important;
}

.memory-panel table tr:hover td {
    background: rgba(191, 0, 255, 0.08) !important;
}

.coser-panel ul, .coser-panel ol {
    padding-left: 24px !important;
    margin: 8px 0 !important;
}

.coser-panel li {
    color: #d4a574 !important;
    margin: 4px 0 !important;
    line-height: 1.8 !important;
}

.coser-panel li::marker {
    color: #c8102e !important;
}

.coser-panel strong, .coser-panel b {
    color: #c8102e !important;
    font-weight: 700 !important;
    text-shadow: 0 0 4px rgba(200, 16, 46, 0.3) !important;
}

.mes_text > p:has(> em:contains("🎯")), 
.mes_text p:contains("🎯 你的选择") {
    background: linear-gradient(135deg, #1a0509 0%, #0a0a0a 100%) !important;
    border: 1px solid #c8102e !important;
    border-left: 4px solid #c8102e !important;
    padding: 14px 18px !important;
    margin: 16px 0 !important;
    color: #c8102e !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-shadow: 0 0 8px rgba(200, 16, 46, 0.5) !important;
}

.mes_text code, .coser-panel code {
    background: #14001a !important;
    color: #bf00ff !important;
    padding: 2px 6px !important;
    font-family: "Consolas", "Monaco", monospace !important;
    border: 1px solid #2a0033 !important;
    font-size: 12px !important;
}

::selection {
    background: rgba(200, 16, 46, 0.5) !important;
    color: #ffffff !important;
    text-shadow: 0 0 6px rgba(200, 16, 46, 0.8) !important;
}

.mes_text blockquote {
    border-left: 3px solid #c8102e !important;
    background: rgba(200, 16, 46, 0.05) !important;
    padding: 10px 16px !important;
    margin: 12px 0 !important;
    color: #b8956a !important;
    font-style: italic !important;
}

.coser-panel summary:hover {
    background: linear-gradient(90deg, #2a0510 0%, #1a0509 100%) !important;
    text-shadow: 0 0 12px rgba(200, 16, 46, 0.8) !important;
}

.thinking-panel summary:hover {
    background: linear-gradient(90deg, #2a0033 0%, #1a001f 100%) !important;
    text-shadow: 0 0 12px rgba(191, 0, 255, 0.8) !important;
}

.memory-panel summary:hover {
    background: linear-gradient(90deg, #2a0033 0%, #1a001f 100%) !important;
    text-shadow: 0 0 12px rgba(191, 0, 255, 0.8) !important;
}
