/* ==================== 基础重置 ==================== */
think, cot {
    display: none !important;
}

/* ==================== 顶部坐标栏 ==================== */
.status-bar-top {
    display: block;
    max-width: 780px;
    width: 100%;
    margin: 0 auto 24px;
    background: linear-gradient(160deg, #0e0510 0%, #120818 100%);
    border: 1px solid rgba(255, 45, 120, 0.2);
    border-radius: 3px;
    padding: 14px 20px;
    font-family: 'Segoe UI', 'Roboto', system-ui, sans-serif;
    color: #c8b0c0;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.02);
    position: relative;
}

.status-bar-top::after {
    content: '';
    position: absolute;
    top: 12px; right: 14px;
    width: 7px; height: 7px;
    background: #ff2d78;
    border-radius: 50%;
    box-shadow: 0 0 6px #ff2d78, 0 0 12px rgba(255, 45, 120, 0.6);
    animation: coord-dot 1.5s ease-in-out infinite;
}

@keyframes coord-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* ==================== 正文区域 ==================== */
.narrative-text {
    display: block;
    max-width: 780px;
    width: 100%;
    margin: 0 auto 24px;
    font-family: 'Segoe UI', 'Roboto', system-ui, sans-serif;
    color: #d0c8d8;
    background: linear-gradient(160deg, #0e0510 0%, #120818 100%);
    padding: 26px 28px;
    border: 1px solid rgba(255, 45, 120, 0.15);
    border-radius: 3px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.02);
    line-height: 1.85;
    position: relative;
}

.narrative-text::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 16px; height: 16px;
    border-top: 1px solid rgba(255, 45, 120, 0.4);
    border-left: 1px solid rgba(255, 45, 120, 0.4);
    pointer-events: none;
}

.narrative-text::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 16px; height: 16px;
    border-bottom: 1px solid rgba(224, 176, 64, 0.4);
    border-right: 1px solid rgba(224, 176, 64, 0.4);
    pointer-events: none;
}

.narrative-text p {
    margin-bottom: 1.2em;
    font-size: 0.98rem;
    line-height: 1.85;
    letter-spacing: 0.3px;
}

/* ==================== 角色对话颜色 ==================== */
user-talk {
    color: #e0b040;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(224, 176, 64, 0.3);
}

npc-talk {
    color: #d0a0c0;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(200, 150, 180, 0.3);
}

/* ==================== 状态栏折叠面板 ==================== */
details {
    max-width: 780px;
    width: 100%;
    margin: 0 auto 10px;
    background: linear-gradient(160deg, #0e0510 0%, #120818 100%);
    border: 1px solid rgba(255, 45, 120, 0.15);
    border-radius: 3px;
    overflow: visible;
    box-shadow: 0 4px 18px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.02);
    transition: all 0.3s;
    position: relative;
}

details::before {
    content: '';
    position: absolute;
    top: 14px; right: 14px;
    width: 6px; height: 6px;
    background: #ff2d78;
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 4px #ff2d78, 0 0 8px rgba(255, 45, 120, 0.5);
    animation: detail-dot 2s ease-in-out infinite;
}

@keyframes detail-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

details[open] {
    border-color: rgba(255, 45, 120, 0.4);
    box-shadow: 0 0 18px rgba(255, 45, 120, 0.12), 0 6px 24px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.03);
}

/* 折叠标题 */
summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 14px 40px 14px 20px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #c0b0c8;
    background: rgba(8, 4, 12, 0.9);
    border-bottom: 1px solid rgba(255, 45, 120, 0.1);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

summary::after {
    content: '';
    position: absolute;
    bottom: 0; left: -100%;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, #ff2d78, transparent);
    animation: summary-sweep 3s linear infinite;
}

@keyframes summary-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 12px;
    font-size: 0.85rem;
    transition: transform 0.25s;
    color: #ff2d78;
    text-shadow: 0 0 6px rgba(255, 45, 120, 0.5);
}

details[open] > summary::before {
    transform: rotate(90deg);
}

summary:hover {
    background: rgba(15, 8, 22, 0.95);
    color: #d8c8e0;
}

details[open] > summary {
    border-bottom-color: rgba(255, 45, 120, 0.3);
    background: rgba(12, 6, 18, 0.95);
    color: #e0d0e8;
}

/* ==================== 面板内容 ==================== */
details p {
    padding: 8px 20px;
    margin: 0;
    font-size: 0.85rem;
    color: #c8b8d0;
    line-height: 1.6;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255, 45, 120, 0.06);
}

details p:last-child {
    border-bottom: none;
}

/* 数值高亮 */
details strong {
    color: #e0b040;
    font-weight: 700;
}

/* 思维链面板 */
details:has(summary:contains('🧠')) summary {
    color: #b050e0;
}
details:has(summary:contains('🧠')) summary::before {
    color: #b050e0;
    text-shadow: 0 0 6px rgba(176, 80, 224, 0.4);
}
details:has(summary:contains('🧠'))[open] {
    border-color: rgba(176, 80, 224, 0.4);
}

/* ==================== 特定面板配色 ==================== */
/* 玩家档案 */
details:has(summary:contains('👤')) summary { color: #e0b040; }
details:has(summary:contains('👤')) summary::before { color: #e0b040; text-shadow: 0 0 6px rgba(224, 176, 64, 0.5); }

/* 街头盲盒 */
details:has(summary:contains('🌸')) summary { color: #ff2d78; }
details:has(summary:contains('🌸')) summary::before { color: #ff2d78; text-shadow: 0 0 6px rgba(255, 45, 120, 0.5); }
details:has(summary:contains('🌸'))[open] { border-color: rgba(255, 45, 120, 0.5); }

/* 专属猎物 */
details:has(summary:contains('🔒')) summary { color: #00e5ff; }
details:has(summary:contains('🔒')) summary::before { color: #00e5ff; text-shadow: 0 0 8px rgba(0, 229, 255, 0.5); }
details:has(summary:contains('🔒'))[open] { border-color: rgba(0, 229, 255, 0.4); box-shadow: 0 0 18px rgba(0, 229, 255, 0.1); }

/* 环境与记忆 */
details:has(summary:contains('🌍')) summary { color: #b050e0; }
details:has(summary:contains('🌍')) summary::before { color: #b050e0; text-shadow: 0 0 6px rgba(176, 80, 224, 0.4); }

/* 行动指令 */
details:has(summary:contains('💡')) summary { color: #00e5ff; }
details:has(summary:contains('💡')) summary::before { color: #00e5ff; text-shadow: 0 0 6px rgba(0, 229, 255, 0.5); }
details:has(summary:contains('💡'))[open] {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

/* 行动选项可点击样式 */
details:has(summary:contains('💡'))[open] p {
    padding: 12px 20px;
    margin: 4px 16px;
    background: rgba(10, 5, 16, 0.8);
    border: 1px solid rgba(255, 45, 120, 0.1);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.25s;
}
details:has(summary:contains('💡'))[open] p:hover {
    background: rgba(20, 8, 28, 0.95);
    border-color: rgba(255, 45, 120, 0.4);
    transform: translateX(4px);
}
details:has(summary:contains('💡'))[open] p:nth-of-type(1) { border-left: 3px solid #ff2d78; }
details:has(summary:contains('💡'))[open] p:nth-of-type(2) { border-left: 3px solid #e0b040; }
details:has(summary:contains('💡'))[open] p:nth-of-type(3) { border-left: 3px solid #00e5ff; }
details:has(summary:contains('💡'))[open] p:nth-of-type(4) { border-left: 3px solid #b050e0; }

/* ==================== 响应式 ==================== */
@media (max-width: 600px) {
    .status-bar-top { padding: 12px 16px; font-size: 0.8rem; }
    .narrative-text { padding: 16px 14px; }
    summary { padding: 12px 38px 12px 14px; font-size: 0.8rem; }
    details p { padding: 6px 14px; font-size: 0.8rem; }
}