/* ===== 开学意外·被分到初中女宿 · 状态栏 & 记忆区专用美化（浅绿清新版） ===== */
/* 主题色：嫩绿、草绿、奶油白 · 适配女宿男生的校园轻喜剧 */

/* 折叠块整体样式 */
details {
    background: #f5fff0;
    border: 1px solid #cce0c0;
    border-radius: 24px;
    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: #fcfff8;
    border-color: #b0d8a0;
    box-shadow: 0 4px 12px rgba(100, 150, 80, 0.08);
}

/* 折叠块标题栏 */
summary {
    cursor: pointer;
    padding: 12px 18px;
    font-size: 0.88rem;
    color: #5a9e6a;
    user-select: none;
    list-style: none;
    font-weight: 600;
    background: linear-gradient(135deg, #eaf8e4, #e0f0d8);
    border-radius: 24px;
    word-break: break-word;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    border: 1px solid #cce0c0;
}
summary:hover {
    background: linear-gradient(135deg, #e0f0d8, #d4e8c8);
    color: #3a7a4a;
    transform: translateX(2px);
    border-color: #b0d8a0;
}
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: #5a7a5a;
    padding: 14px 16px;
    line-height: 1.7;
    font-size: 0.85rem;
    background: rgba(235, 250, 225, 0.8);
    border-radius: 20px;
    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 #d0e4c0;
}
.stat-row:last-child {
    border-bottom: none;
}
.stat-row span:first-child {
    min-width: 90px;
    color: #7aae7a;
    font-weight: 500;
}
.stat-row span:last-child {
    min-width: 45px;
    text-align: right;
    color: #9ac88a;
    font-weight: 500;
}

/* 进度条 —— 好感度/友谊值 */
.progress-bar {
    background: #e0ecd8;
    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, #8ac87a, #5aae6a);
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s ease;
    box-shadow: 0 0 4px rgba(80, 160, 70, 0.2);
}

/* 记忆区 · 短期记忆表（305爆笑日记） */
.memory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-top: 8px;
}
.memory-table th {
    background: #eaf8e4;
    color: #5a9e6a;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #8ac87a;
}
.memory-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #d0e4c0;
    color: #6a8e62;
}
.memory-table tr:last-child td {
    border-bottom: none;
}
.memory-table tr:hover td {
    background: rgba(138, 200, 122, 0.08);
}

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

/* 数值变化标识 */
.value-up {
    color: #7aae7a;
    font-weight: bold;
}
.value-down {
    color: #e08a6a;
    font-weight: bold;
}

/* 小草/宿舍装饰 */
.leaf-icon {
    font-size: 0.9rem;
    margin-right: 6px;
    vertical-align: middle;
}
.glow-text {
    color: #7aae7a;
    font-size: 0.7rem;
    margin-left: 8px;
    animation: softPulse 1.5s ease infinite;
}
@keyframes softPulse {
    0% { opacity: 0.5; text-shadow: 0 0 0 #8ac87a; }
    50% { opacity: 1; text-shadow: 0 0 3px #8ac87a; }
    100% { opacity: 0.5; text-shadow: 0 0 0 #8ac87a; }
}

/* 分割线（嫩绿渐变） */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #d0e4c0, #8ac87a, #d0e4c0, transparent);
    margin: 12px 0;
}

/* 心跳/友谊动画 */
.friend-beat {
    animation: bondPulse 1.4s ease infinite;
}
@keyframes bondPulse {
    0% { text-shadow: 0 0 0 #8ac87a; }
    50% { text-shadow: 0 0 5px #8ac87a; transform: scale(1.01); }
    100% { text-shadow: 0 0 0 #8ac87a; }
}

/* 宿舍门牌闪烁特效 */
.door-sign {
    display: inline-block;
    animation: signFlicker 1.8s ease-in-out infinite;
}
@keyframes signFlicker {
    0%, 100% { opacity: 0.6; text-shadow: 0 0 0 #c0dca8; }
    50% { opacity: 1; text-shadow: 0 0 3px #c0dca8; }
}