/* ===== 暴雨天敲响你家大门的少女 · 状态栏 & 记忆区专用美化（浅色治愈版） ===== */
/* 浅蓝/雨雾 · 温柔治愈 · 仅美化折叠块/状态栏/记忆区 */

/* 折叠块整体样式 */
details {
    background: rgba(250, 252, 255, 0.95);
    border: 1px solid #d8e4ec;
    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, 255, 255, 0.98);
    border-color: #b8d0e0;
    box-shadow: 0 4px 10px rgba(100, 140, 180, 0.08);
}

/* 折叠块标题栏 */
summary {
    cursor: pointer;
    padding: 12px 18px;
    font-size: 0.88rem;
    color: #6a8aaa;
    user-select: none;
    list-style: none;
    font-weight: 500;
    background: linear-gradient(135deg, #f0f6fc, #e8f0f8);
    border-radius: 20px;
    word-break: break-word;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    border: 1px solid #e0e8f0;
}
summary:hover {
    background: linear-gradient(135deg, #e8f0f8, #e0e8f0);
    color: #5a7a9a;
    transform: translateX(2px);
    border-color: #c8d8e8;
}
summary::-webkit-details-marker { display: none; }

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

/* 折叠块内部内容 */
details div, details .panel, details .stats-panel {
    color: #7a8a9a;
    padding: 14px 16px;
    line-height: 1.7;
    font-size: 0.85rem;
    background: rgba(240, 248, 255, 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 #e0e8f0;
}
.stat-row:last-child {
    border-bottom: none;
}
.stat-row span:first-child {
    min-width: 90px;
    color: #8aa0b0;
    font-weight: 500;
}
.stat-row span:last-child {
    min-width: 45px;
    text-align: right;
    color: #8aaec0;
    font-weight: 500;
}

/* 进度条美化 */
.progress-bar {
    background: #e0e8f0;
    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, #8aaec0, #aac8dc);
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s ease;
    box-shadow: 0 0 4px rgba(138, 174, 192, 0.3);
}

/* 记忆区 · 短期记忆表 */
.memory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-top: 8px;
}
.memory-table th {
    background: #f0f6fc;
    color: #6a8aaa;
    padding: 8px 10px;
    text-align: left;
    font-weight: 500;
    border-bottom: 2px solid #8aaec0;
}
.memory-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e0e8f0;
    color: #8a9aaa;
}
.memory-table tr:last-child td {
    border-bottom: none;
}
.memory-table tr:hover td {
    background: rgba(138, 174, 192, 0.08);
}

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

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

/* 雨夜专属装饰 */
.rain-icon {
    font-size: 0.9rem;
    margin-right: 6px;
    vertical-align: middle;
}
.rain-warning {
    color: #8aaec0;
    font-size: 0.7rem;
    margin-left: 8px;
    animation: gentleFade 2s ease infinite;
}
@keyframes gentleFade {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

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

/* 信任度心跳效果 */
.trust-heart {
    animation: heartPulse 1.5s ease infinite;
}
@keyframes heartPulse {
    0% { text-shadow: 0 0 0 #8aaec0; }
    50% { text-shadow: 0 0 6px #8aaec0; }
    100% { text-shadow: 0 0 0 #8aaec0; }
}