/* ===== 我的妹妹怎么能这么可爱 · 状态栏 & 记忆区专用美化 ===== */
/* 浅粉/白色 · 温柔治愈 · 傲娇甜系 */

/* 折叠块整体样式 */
details {
    background: rgba(255, 250, 252, 0.95);
    border: 1px solid #f5e0e8;
    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, 254, 0.98);
    border-color: #f0d0e0;
    box-shadow: 0 4px 10px rgba(240, 192, 208, 0.1);
}

/* 折叠块标题栏 */
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, #fff0f5, #ffe8f0);
    border-radius: 20px;
    word-break: break-word;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    border: 1px solid #f5e0e8;
}
summary:hover {
    background: linear-gradient(135deg, #ffe8f0, #ffe0ec);
    color: #c86080;
    transform: translateX(2px);
    border-color: #e8d0e0;
}
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: #a87890;
    padding: 14px 16px;
    line-height: 1.7;
    font-size: 0.85rem;
    background: rgba(255, 245, 248, 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 #f5e0e8;
}
.stat-row:last-child {
    border-bottom: none;
}
.stat-row span:first-child {
    min-width: 80px;
    color: #e890a8;
    font-weight: 500;
}
.stat-row span:last-child {
    min-width: 45px;
    text-align: right;
    color: #f0b0c8;
    font-weight: 500;
}

/* 进度条美化 */
.progress-bar {
    background: #f5e8f0;
    border-radius: 20px;
    height: 8px;
    width: 60%;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}
.progress-fill {
    background: linear-gradient(90deg, #f0b0c8, #f8c8dc);
    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: #fff0f5;
    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 #f5e8f0;
    color: #a87890;
}
.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, #fff0f5, #ffe8f0);
    border-left: 4px solid #f0b0c8;
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #a87890;
    line-height: 1.6;
}

/* 数值变化标识 */
.value-up {
    color: #9ab89a;
    font-weight: bold;
}
.value-down {
    color: #d8a080;
    font-weight: bold;
}

/* 傲娇/可爱专属装饰 */
.tsundere-icon {
    font-size: 0.9rem;
    margin-right: 6px;
    vertical-align: middle;
}
.tsundere-blush {
    color: #e890a8;
    font-size: 0.7rem;
    margin-left: 8px;
    animation: blushPulse 1.5s ease infinite;
}
@keyframes blushPulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

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

/* 心跳装饰 */
.heart-beat {
    animation: heartPulse 1.2s ease;
}
@keyframes heartPulse {
    0% { text-shadow: 0 0 0 #f0b0c8; }
    50% { text-shadow: 0 0 6px #f0b0c8; }
    100% { text-shadow: 0 0 0 #f0b0c8; }
}