body {
    background: linear-gradient(135deg, #1a0a2e 0%, #0f0520 100%) !important;
    color: #e8d5ff !important;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif !important;
    line-height: 1.8 !important;
}

.rev-main {
    background: linear-gradient(180deg, rgba(30, 15, 50, 0.6) 0%, rgba(20, 10, 40, 0.7) 100%) !important;
    border: 1px solid rgba(255, 0, 110, 0.3) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin: 20px 0 !important;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.15), inset 0 0 30px rgba(40, 20, 60, 0.4) !important;
    color: #e8d5ff !important;
    font-size: 14px !important;
}

.char-dialogue {
    color: #ff006e !important;
    padding: 2px 6px !important;
    background: rgba(255, 0, 110, 0.1) !important;
    border-left: 2px solid #ff006e !important;
    display: inline-block !important;
    margin: 2px 0 !important;
}

.inner-thought {
    color: #00d9ff !important;
    padding: 2px 6px !important;
    background: rgba(0, 217, 255, 0.08) !important;
    border-left: 2px solid #00d9ff !important;
    display: inline-block !important;
    margin: 2px 0 !important;
    font-style: italic !important;
}

.system-alert {
    background: rgba(255, 0, 110, 0.15) !important;
    border: 1px solid #ff006e !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    color: #ff006e !important;
    text-align: center !important;
    font-weight: 500 !important;
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.2) !important;
}

.coser-panel {
    background: rgba(40, 20, 60, 0.85) !important;
    border: 2px solid #ff006e !important;
    border-radius: 10px !important;
    margin: 15px 0 !important;
    padding: 0 !important;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.25), inset 0 0 25px rgba(20, 10, 40, 0.5) !important;
    transition: all 0.3s ease !important;
}

.coser-panel:hover {
    border-color: #ff006e !important;
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.4), inset 0 0 25px rgba(20, 10, 40, 0.5) !important;
}

.coser-panel summary {
    padding: 15px 20px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ff006e !important;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.5) !important;
    letter-spacing: 1px !important;
    user-select: none !important;
    list-style: none !important;
    transition: all 0.3s ease !important;
}

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

.coser-panel summary::before {
    content: "â–¶ " !important;
    display: inline-block !important;
    transition: transform 0.3s ease !important;
}

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

.coser-panel summary:hover {
    color: #ff3388 !important;
    text-shadow: 0 0 15px rgba(255, 0, 110, 0.8) !important;
    background: rgba(255, 0, 110, 0.1) !important;
}

.coser-panel > *:not(summary) {
    padding: 20px !important;
    color: #e8d5ff !important;
    border-top: 1px solid rgba(255, 0, 110, 0.2) !important;
}

.thinking-panel {
    border-color: #9d4edd !important;
}

.thinking-panel summary {
    color: #9d4edd !important;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.5) !important;
}

.scene-panel summary {
    color: #00d9ff !important;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5) !important;
}

.scene-panel {
    border-color: #00d9ff !important;
}

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

.player-panel summary {
    color: #ff006e !important;
}

.hypno-panel summary {
    color: #ff006e !important;
}

.npc-panel summary {
    color: #ff006e !important;
}

.coser-panel table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 10px 0 !important;
}

.coser-panel table th {
    background: rgba(255, 0, 110, 0.2) !important;
    color: #ff006e !important;
    padding: 10px !important;
    text-align: left !important;
    border-bottom: 2px solid #ff006e !important;
    font-weight: 600 !important;
}

.coser-panel table td {
    padding: 10px !important;
    border-bottom: 1px solid rgba(255, 0, 110, 0.1) !important;
    color: #e8d5ff !important;
}

.coser-panel table tr:hover {
    background: rgba(255, 0, 110, 0.05) !important;
}

hr {
    border: none !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent 0%, #ff006e 50%, transparent 100%) !important;
    margin: 25px 0 !important;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.3) !important;
}

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

.coser-panel li {
    margin: 8px 0 !important;
    color: #e8d5ff !important;
    line-height: 1.6 !important;
}

.coser-panel strong {
    color: #00d9ff !important;
    font-weight: 600 !important;
}

.coser-panel em {
    color: #ff006e !important;
    font-style: normal !important;
}

.coser-panel h3, .coser-panel h4 {
    color: #ff006e !important;
    margin: 15px 0 10px 0 !important;
    font-weight: 600 !important;
    text-shadow: 0 0 8px rgba(255, 0, 110, 0.4) !important;
}

.coser-panel code {
    background: rgba(0, 217, 255, 0.1) !important;
    color: #00d9ff !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-family: "Consolas", "Monaco", monospace !important;
}

a {
    color: #ff006e !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
    transition: all 0.3s ease !important;
}

a:hover {
    color: #ff3388 !important;
    border-bottom: 1px solid #ff006e !important;
    text-shadow: 0 0 8px rgba(255, 0, 110, 0.6) !important;
}

::selection {
    background: rgba(255, 0, 110, 0.3) !important;
    color: #ffffff !important;
}

::-webkit-scrollbar {
    width: 10px !important;
    height: 10px !important;
}

::-webkit-scrollbar-track {
    background: rgba(20, 10, 40, 0.5) !important;
    border-radius: 5px !important;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff006e 0%, #9d4edd 100%) !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff3388 0%, #b565f5 100%) !important;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.5) !important;
}
