/* ===== 深夜敲响我家门的女孩 · 状态栏 & 记忆区专用美化（暖米治愈版） ===== */
/* 主题色：暖米白 + 淡紫粉 · 适配温柔邂逅与屋檐下的温情 */

/* 折叠块整体样式 */
details {
    background: rgba(255, 250, 245, 0.96);
    border: 1px solid #e6ddd5;
    border-radius: 20px;
    margin: 14px 0;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
details[open] {
    padding-bottom: 12px;
    background: rgba(255, 252, 248, 0.98);
    border-color: #d9c8bc;
    box-shadow: 0 4px 12px rgba(100, 70, 60, 0.06);
}

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

/* 折叠块展开图标（门/月亮） */
summary::before {
    content: "🚪 ";
    font-size: 0.85rem;
    transition: transform 0.2s ease;
    display: inline-block;
}
details[open] summary::before {
    content: "🌙 ";
    transform: rotate(0deg);
}

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

/* 进度条 —— 信任/依赖指标 */
.progress-bar {
    background: #f0e4dc;
    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, #d9b0a0, #c28c7a);
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s ease;
    box-shadow: 0 0 4px rgba(200, 130, 110, 0.2);
}

/* 记忆区 · 短期记忆表 */
.memory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-top: 8px;
}
.memory-table th {
    background: #fef5ef;
    color: #a0716c;
    padding: 8px 10px;
    text-align: left;
    font-weight: 500;
    border-bottom: 2px solid #d9b0a0;
}
.memory-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0e4dc;
    color: #8a7268;
}
.memory-table tr:last-child td {
    border-bottom: none;
}
.memory-table tr:hover td {
    background: rgba(217, 176, 160, 0.08);
}

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

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

/* 雨滴/门装饰 */
.rain-icon {
    font-size: 0.9rem;
    margin-right: 6px;
    vertical-align: middle;
}
.glow-text {
    color: #c28c7a;
    font-size: 0.7rem;
    margin-left: 8px;
    animation: softGlow 1.5s ease infinite;
}
@keyframes softGlow {
    0% { opacity: 0.5; text-shadow: 0 0 0 #d9b0a0; }
    50% { opacity: 1; text-shadow: 0 0 3px #d9b0a0; }
    100% { opacity: 0.5; text-shadow: 0 0 0 #d9b0a0; }
}

/* 分割线（暖灰） */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #efded4, #d9b0a0, #efded4, transparent);
    margin: 12px 0;
}

/* 心动/依赖动画 */
.heart-beat {
    animation: softBeat 1.4s ease infinite;
}
@keyframes softBeat {
    0% { text-shadow: 0 0 0 #d9b0a0; }
    50% { text-shadow: 0 0 5px #d9b0a0; transform: scale(1.01); }
    100% { text-shadow: 0 0 0 #d9b0a0; }
}

/* 画笔画笔闪烁 */
.paint-twinkle {
    display: inline-block;
    animation: paintFlicker 1.8s ease-in-out infinite;
}
@keyframes paintFlicker {
    0%, 100% { opacity: 0.5; text-shadow: 0 0 0 #e0c8bc; }
    50% { opacity: 1; text-shadow: 0 0 3px #e0c8bc; }
}