/* ===== 暴露癖同桌 · 状态栏 & 记忆区专用美化（草莓甜心版） ===== */
/* 主题色：粉红、草莓红、奶油白 · 适配心跳加速的校园暧昧 */

/* 折叠块整体样式 */
details {
    background: rgba(255, 250, 252, 0.98);
    border: 1px solid #f5ced8;
    border-radius: 24px;
    margin: 14px 0;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
details[open] {
    padding-bottom: 12px;
    background: #fffafc;
    border-color: #f0b8c8;
    box-shadow: 0 4px 12px rgba(240, 176, 200, 0.1);
}

/* 折叠块标题栏 */
summary {
    cursor: pointer;
    padding: 12px 18px;
    font-size: 0.9rem;
    color: #e87a9a;
    user-select: none;
    list-style: none;
    font-weight: 600;
    background: linear-gradient(135deg, #fff0f4, #ffe8ee);
    border-radius: 24px;
    word-break: break-word;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    border: 1px solid #f5ced8;
}
summary:hover {
    background: linear-gradient(135deg, #ffe8ee, #ffe0e8);
    color: #d46080;
    transform: translateX(2px);
    border-color: #f0b8c8;
}
summary::-webkit-details-marker { display: none; }

/* 折叠块展开图标（草莓/爱心） */
summary::before {
    content: "🎀 ";
    font-size: 0.9rem;
    transition: transform 0.2s ease;
    display: inline-block;
}
details[open] summary::before {
    content: "💗 ";
    transform: rotate(0deg);
}

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

/* 进度条 —— 好感度/大胆指数 */
.progress-bar {
    background: #ffe0e8;
    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, #f0a0b8, #e87a9a);
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s ease;
    box-shadow: 0 0 4px rgba(232, 122, 154, 0.3);
}

/* 记忆区 · 短期记忆表（同桌日记） */
.memory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-top: 8px;
}
.memory-table th {
    background: #fff0f4;
    color: #e87a9a;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #f0b8c8;
}
.memory-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f5d8e2;
    color: #a07080;
}
.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, #fff0f4, #ffe8ee);
    border-left: 4px solid #f0a0b8;
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #8a6070;
    line-height: 1.6;
}

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

/* 草莓/爱心装饰 */
.strawberry-icon {
    font-size: 0.9rem;
    margin-right: 6px;
    vertical-align: middle;
}
.glow-text {
    color: #e87a9a;
    font-size: 0.7rem;
    margin-left: 8px;
    animation: sweetPulse 1.5s ease infinite;
}
@keyframes sweetPulse {
    0% { opacity: 0.5; text-shadow: 0 0 0 #f0a0b8; }
    50% { opacity: 1; text-shadow: 0 0 3px #f0a0b8; }
    100% { opacity: 0.5; text-shadow: 0 0 0 #f0a0b8; }
}

/* 分割线（草莓渐变） */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #f5ced8, #f0a0b8, #f5ced8, transparent);
    margin: 12px 0;
}

/* 心跳/暧昧动画 */
.heart-beat {
    animation: heartPulse 1.4s ease infinite;
}
@keyframes heartPulse {
    0% { text-shadow: 0 0 0 #f0a0b8; }
    50% { text-shadow: 0 0 5px #f0a0b8; transform: scale(1.01); }
    100% { text-shadow: 0 0 0 #f0a0b8; }
}

/* 草莓闪烁特效 */
.strawberry-twinkle {
    display: inline-block;
    animation: twinkle 1.8s ease-in-out infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.6; text-shadow: 0 0 0 #ffc0d0; }
    50% { opacity: 1; text-shadow: 0 0 3px #ffc0d0; }
}