/* ===== 浅粉终端 · 状态栏 & 记忆区美化 ===== */
/* 风格：粉白面板 · 粉红霓虹边框 · 等宽数据 · 浅粉扫描线 */

details {
    background: #fff5f6;
    border: 1px solid #f0c0c8;
    border-radius: 0;
    margin: 16px 0;
    width: 100%;
    transition: all 0.25s ease;
    box-shadow:
        0 0 0 1px rgba(220, 120, 140, 0.1),
        inset 0 0 30px rgba(220, 120, 140, 0.03);
    position: relative;
    overflow: hidden;
    font-family: 'Courier New', 'Source Code Pro', 'Consolas', monospace;
}

details::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(220, 120, 140, 0.03) 2px,
        rgba(220, 120, 140, 0.03) 4px
    );
    pointer-events: none;
    z-index: 0;
}

details[open] {
    padding-bottom: 14px;
    border-color: #e0a0b0;
    box-shadow:
        0 0 12px rgba(220, 120, 160, 0.2),
        0 0 0 1px rgba(220, 120, 160, 0.25),
        inset 0 0 40px rgba(220, 120, 160, 0.04);
}

summary {
    cursor: pointer;
    padding: 12px 18px;
    font-size: 0.82rem;
    color: #b05060;
    user-select: none;
    list-style: none;
    font-weight: 700;
    background: #fce8ec;
    border-bottom: 1px solid #f0c0c8;
    transition: all 0.2s ease;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

summary:hover {
    background: #fde0e5;
    color: #8a3040;
    border-bottom-color: #e090a0;
    box-shadow: inset 0 -1px 0 rgba(200, 100, 120, 0.25);
    text-shadow: 0 0 6px rgba(200, 100, 120, 0.3);
}

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

summary::before {
    content: ">_";
    font-size: 0.9rem;
    font-weight: 900;
    color: #d06070;
    text-shadow: 0 0 4px rgba(200, 80, 100, 0.4);
    animation: cursorBlinkLight 1.2s step-end infinite;
    display: inline-block;
    margin-right: 4px;
}

@keyframes cursorBlinkLight {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

details[open] summary::before {
    content: "[+]";
    color: #cc5544;
    text-shadow: 0 0 6px rgba(200, 60, 40, 0.4);
    animation: none;
}

details[open] summary {
    border-bottom-color: #cc5544;
    color: #993333;
}

/* 内部内容区 */
details div, details .panel, details .stats-panel {
    color: #4a3038;
    padding: 14px 16px;
    line-height: 1.7;
    font-size: 0.78rem;
    background: rgba(255, 250, 252, 0.8);
    margin: 0;
    border: none;
    border-top: 1px solid #f0d0d8;
    position: relative;
    z-index: 1;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dotted #f0c8d0;
    font-family: 'Courier New', monospace;
}
.stat-row:last-child { border-bottom: none; }

.stat-row span:first-child {
    min-width: 110px;
    color: #886070;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.72rem;
}
.stat-row span:last-child {
    min-width: 50px;
    text-align: right;
    color: #b05060;
    font-weight: 700;
    text-shadow: 0 0 4px rgba(200, 100, 120, 0.25);
}

.progress-bar {
    background: #fce8ec;
    border-radius: 0;
    height: 6px;
    width: 50%;
    overflow: hidden;
    box-shadow:
        inset 0 0 4px rgba(0,0,0,0.1),
        0 0 4px rgba(200, 100, 130, 0.15);
    border: 1px solid #f0c0c8;
}
.progress-fill {
    background: linear-gradient(90deg, #d08090, #e090a0, #e8a0b0);
    height: 100%;
    border-radius: 0;
    transition: width 0.4s ease;
    box-shadow:
        0 0 8px rgba(220, 120, 150, 0.5),
        inset 0 0 4px rgba(255,255,255,0.3);
    position: relative;
}
.progress-fill::after {
    content: "";
    position: absolute;
    top: 0; left: -30%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent);
    animation: liquidFlow 2s ease-in-out infinite;
}
@keyframes liquidFlow {
    0% { left: -40%; }
    100% { left: 120%; }
}

.memory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
    margin-top: 8px;
    border: 1px solid #f0c0c8;
}
.memory-table th {
    background: #fce8ec;
    color: #b05060;
    padding: 8px 10px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #e090a0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.memory-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f8d4dc;
    color: #5a3a44;
    transition: all 0.15s;
}
.memory-table tr:last-child td { border-bottom: none; }
.memory-table tr:hover td {
    background: #fdf0f3;
    color: #2a1018;
    text-shadow: 0 0 2px rgba(200, 100, 120, 0.2);
}

.long-memory {
    background: #fdf3f5;
    border-left: 4px solid #d08090;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 0.78rem;
    color: #4a3038;
    line-height: 1.6;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.03);
    position: relative;
    font-family: 'Courier New', monospace;
}
.long-memory::before {
    content: "[LOG]";
    position: absolute;
    top: -10px; left: 10px;
    background: #fff5f6;
    color: #b05060;
    font-size: 0.6rem;
    font-weight: bold;
    letter-spacing: 1.2px;
    padding: 0 6px;
    border: 1px solid #f0c0c8;
}

.value-up {
    color: #60a070;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(96, 160, 112, 0.4);
}
.value-down {
    color: #cc4455;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(200, 68, 85, 0.4);
}

.cos-icon {
    font-size: 0.85rem;
    margin-right: 6px;
    filter: drop-shadow(0 0 3px rgba(200, 100, 130, 0.4));
}
.glow-text {
    color: #b05060;
    font-size: 0.68rem;
    margin-left: 8px;
    animation: neonFlickerLight 1.8s infinite;
}
@keyframes neonFlickerLight {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 3px rgba(200, 100, 130, 0.5);
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: none;
        opacity: 0.4;
    }
}

.divider {
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        #d08090,
        #e8a0b0,
        #d08090,
        transparent);
    margin: 14px 0;
    box-shadow: 0 0 8px rgba(200, 100, 130, 0.25);
}

.heart-beat {
    animation: alertPulseLight 1.2s ease infinite;
}
@keyframes alertPulseLight {
    0% { text-shadow: 0 0 2px #cc4455; }
    50% { text-shadow: 0 0 10px #cc4455, 0 0 16px #bb3344; }
    100% { text-shadow: 0 0 2px #cc4455; }
}

.star-twinkle {
    display: inline-block;
    animation: dataGlitch 1.5s infinite;
}
@keyframes dataGlitch {
    0%, 100% { opacity: 0.7; transform: translate(0); }
    20% { opacity: 0.3; transform: translate(-1px, 1px); }
    40% { opacity: 0.9; transform: translate(1px, -1px); }
    60% { opacity: 0.5; transform: translate(-1px, -1px); }
    80% { opacity: 0.8; transform: translate(1px, 0); }
}