/* ===== 无家可归的精神小妹 · 状态栏 & 记忆区专用美化 ===== */
/* 暖粉/浅橙 · 温馨治愈 · 仅美化折叠块/状态栏/记忆区 */

/* 折叠块整体样式 */
details {
    background: rgba(255, 250, 248, 0.95);
    border: 1px solid #f0d8e0;
    border-radius: 20px;
    margin: 14px 0;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
details[open] {
    padding-bottom: 12px;
    background: rgba(255, 252, 250, 0.98);
    border-color: #e8c0d0;
    box-shadow: 0 4px 10px rgba(240, 176, 200, 0.08);
}

/* 折叠块标题栏 */
summary {
    cursor: pointer;
    padding: 12px 18px;
    font-size: 0.88rem;
    color: #d87090;
    user-select: none;
    list-style: none;
    font-weight: 600;
    background: linear-gradient(135deg, #fff0ec, #ffe8e0);
    border-radius: 20px;
    word-break: break-word;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    border: 1px solid #f0d8e0;
}
summary:hover {
    background: linear-gradient(135deg, #ffe8e0, #ffe0d8);
    color: #c86080;
    transform: translateX(2px);
    border-color: #e8c0d0;
}
summary::-webkit-details-marker { display: none; }

/* 折叠块展开图标 */
summary::before {
    content: "💋 ";
    font-size: 0.75rem;
    color: #f0b0c8;
    transition: transform 0.2s ease;
    display: inline-block;
}
details[open] summary::before {
    content: "💋 ";
    transform: rotate(0deg);
}

/* 折叠块内部内容 */
details div, details .panel, details .stats-panel {
    color: #7a5a6a;
    padding: 14px 16px;
    line-height: 1.7;
    font-size: 0.85rem;
    background: rgba(255, 248, 245, 0.6);
    border-radius: 16px;
    margin: 8px 6px 0 6px;
}

/* 状态栏内行样式 */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed #f0d8e0;
}
.stat-row:last-child {
    border-bottom: none;
}
.stat-row span:first-child {
    min-width: 100px;
    color: #e890a8;
    font-weight: 500;
}
.stat-row span:last-child {
    min-width: 45px;
    text-align: right;
    color: #f0b0c8;
    font-weight: 500;
}

/* 进度条美化 */
.progress-bar {
    background: #f0d8e4;
    border-radius: 20px;
    height: 8px;
    width: 55%;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}
.progress-fill {
    background: linear-gradient(90deg, #f0b0c8, #e890a8);
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s ease;
    box-shadow: 0 0 4px rgba(240, 176, 200, 0.3);
}

/* 记忆区 · 短期记忆表 */
.memory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-top: 8px;
}
.memory-table th {
    background: #fff0ec;
    color: #d87090;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #f0b0c8;
}
.memory-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0d8e4;
    color: #a88090;
}
.memory-table tr:last-child td {
    border-bottom: none;
}
.memory-table tr:hover td {
    background: rgba(240, 176, 200, 0.08);
}

/* 记忆区 · 长记忆摘要卡片 */
.long-memory {
    background: linear-gradient(135deg, #fff0ec, #ffe8e0);
    border-left: 4px solid #f0b0c8;
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #7a5a6a;
    line-height: 1.6;
}

/* 数值变化标识 */
.value-up {
    color: #8ab88a;
    font-weight: bold;
}
.value-down {
    color: #d08a6a;
    font-weight: bold;
}

/* 精神小妹专属装饰 */
.sister-icon {
    font-size: 0.9rem;
    margin-right: 6px;
    vertical-align: middle;
}
.sister-attitude {
    color: #e890a8;
    font-size: 0.7rem;
    margin-left: 8px;
    animation: shake 1.2s ease infinite;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* 分割线装饰 */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #f0d8e0, #f0b0c8, #f0d8e0, transparent);
    margin: 12px 0;
}

/* 嘴硬心软效果 */
.tsundere-text {
    animation: blushPulse 1.8s ease infinite;
}
@keyframes blushPulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; text-shadow: 0 0 2px #f0b0c8; }
    100% { opacity: 0.7; }
}