/* =========================================
   Khora v11.0 终极完全体 UI 美化 (状态栏 + 双视图)
========================================= */

/* -----------------------------------------
   Part 1: 状态栏 UI (幕后主宰档案、引擎状态等)
----------------------------------------- */
.world-status details, .memory-zone details {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(148, 163, 184, 0.08);
    overflow: hidden;
    padding-bottom: 4px;
}

.world-status summary, .memory-zone summary {
    padding: 10px 14px;
    font-size: 0.95em;
    font-weight: 700;
    color: #1e293b;
    background-color: #f8fafc;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.world-status summary::-webkit-details-marker, .memory-zone summary::-webkit-details-marker {
    display: none;
}

.world-status summary::after, .memory-zone summary::after {
    content: "▼";
    float: right;
    font-size: 0.8em;
    color: #94a3b8;
    transform: rotate(-90deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.world-status details[open] summary, .memory-zone details[open] summary {
    border-bottom: 1px solid #e2e8f0;
    background-color: #ffffff;
    margin-bottom: 8px;
}

.world-status details[open] summary::after, .memory-zone details[open] summary::after {
    transform: rotate(0deg);
}

.world-status summary:hover, .memory-zone summary:hover {
    background-color: #f1f5f9;
}

/* 状态栏内部标签美化 */
.world-status sec, .memory-zone sec {
    display: block;
    margin-top: 12px;
    padding: 12px 14px 0 14px;
    border-top: 1px solid rgba(203, 213, 225, 0.4); 
}
.world-status sec:first-child, .memory-zone sec:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 4px;
}

.world-status sec::before, .memory-zone sec::before {
    content: attr(t); 
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.08em; 
    color: #475569; 
    text-transform: uppercase;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); 
    padding: 3px 10px;
    border-radius: 4px;
    border-left: 3px solid #94a3b8; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.world-status f, .memory-zone f {
    display: block;
    font-weight: 600;
    color: #7f1d1d; 
    font-size: 1.05em;
    margin-bottom: 6px;
    padding-left: 2px;
    letter-spacing: 0.02em;
}

.world-status d, .memory-zone d {
    display: block;
    font-size: 0.9em;
    line-height: 1.6; 
    color: #334155; 
    padding-left: 14px;
    position: relative;
    margin-bottom: 4px;
}

.world-status d::before, .memory-zone d::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.65em; 
    width: 4px;
    height: 4px;
    background-color: #cbd5e1;
    border-radius: 1px;
    transform: rotate(45deg); 
}

.world-status item {
    display: inline-flex;
    align-items: baseline;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px; 
    padding: 3px 8px;
    margin: 3px 4px 3px 0;
    font-size: 0.85em;
    box-shadow: 0 2px 4px rgba(148, 163, 184, 0.05); 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.world-status item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(148, 163, 184, 0.1);
}

.world-status item n {
    font-weight: 600;
    color: #1e3a8a; 
    margin-right: 6px;
}

.world-status item info {
    color: #64748b; 
    font-style: italic; 
}

/* -----------------------------------------
   Part 2: 双视图正文阅读区 UI
----------------------------------------- */
.khora-native-views {
    margin-bottom: 16px;
}

.view-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(148, 163, 184, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.view-card:hover {
    box-shadow: 0 4px 8px rgba(148, 163, 184, 0.12);
    border-color: #cbd5e1;
}

.view-btn {
    display: block;
    padding: 14px 18px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    list-style: none; 
    user-select: none;
    background-color: #f8fafc;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.view-btn::-webkit-details-marker {
    display: none;
}

.act-btn {
    color: #475569;
    border-left: 4px solid #94a3b8; 
}

.wld-btn {
    color: #115e59;
    border-left: 4px solid #5eead4;
}

.view-card[open] .act-btn {
    background: linear-gradient(to right, #eff6ff, #ffffff);
    border-bottom: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6; 
    color: #1e40af;
}

.view-card[open] .wld-btn {
    background: linear-gradient(to right, #f0fdfa, #ffffff);
    border-bottom: 1px solid #e2e8f0;
    border-left: 4px solid #10b981; 
    color: #047857;
}

.view-btn::after {
    content: "＋";
    float: right;
    color: #94a3b8;
    font-weight: 400;
    font-size: 1.2em;
    line-height: 1;
    transition: transform 0.3s ease;
}
.view-card[open] .view-btn::after {
    content: "－";
    transform: rotate(180deg);
    color: #64748b;
}

.view-body {
    padding: 16px 20px;
    background-color: #ffffff;
}

.narrative-stream p {
    margin-top: 0;
    margin-bottom: 14px; 
    line-height: 1.75; 
    color: #334155;
    font-size: 0.98em;
    text-align: justify; 
    letter-spacing: 0.02em;
}
.narrative-stream p:last-child {
    margin-bottom: 0;
}