/* ===== 互换的身体 · 女友与妹妹 · 状态栏 & 记忆区专用美化（浅蓝清新版） ===== */
/* 主题色：浅蓝、水蓝、银白 · 适配身体互换的轻喜剧与温情 */

/* 折叠块整体样式 */
details {
    background: #f0f8ff;
    border: 1px solid #cce5f0;
    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: #f5faff;
    border-color: #aad0e8;
    box-shadow: 0 4px 12px rgba(100, 150, 180, 0.08);
}

/* 折叠块标题栏 */
summary {
    cursor: pointer;
    padding: 12px 20px;
    font-size: 0.88rem;
    color: #4a8aaa;
    user-select: none;
    list-style: none;
    font-weight: 600;
    background: linear-gradient(135deg, #e6f4ff, #dceefa);
    border-radius: 24px;
    word-break: break-word;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    border: 1px solid #cce5f0;
}
summary:hover {
    background: linear-gradient(135deg, #dceefa, #cde6f5);
    color: #2e6a8a;
    transform: translateX(2px);
    border-color: #aad0e8;
}
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: #3a6a7a;
    padding: 14px 18px;
    line-height: 1.7;
    font-size: 0.85rem;
    background: rgba(230, 244, 255, 0.7);
    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 #cce0ec;
}
.stat-row:last-child {
    border-bottom: none;
}
.stat-row span:first-child {
    min-width: 100px;
    color: #5a8aaa;
    font-weight: 500;
}
.stat-row span:last-child {
    min-width: 45px;
    text-align: right;
    color: #7aaacc;
    font-weight: 500;
}

/* 进度条 —— 适应度/风险/感情值 */
.progress-bar {
    background: #d4e8f2;
    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, #7ab3cc, #4a8aaa);
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s ease;
    box-shadow: 0 0 4px rgba(70, 130, 160, 0.2);
}

/* 记忆区 · 短期记忆表（互换日记） */
.memory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-top: 8px;
}
.memory-table th {
    background: #e6f4ff;
    color: #4a8aaa;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #7ab3cc;
}
.memory-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #d4e8f2;
    color: #4a7a8a;
}
.memory-table tr:last-child td {
    border-bottom: none;
}
.memory-table tr:hover td {
    background: rgba(122, 179, 204, 0.08);
}

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

/* 数值变化标识 */
.value-up {
    color: #6a9e6a;
    font-weight: bold;
}
.value-down {
    color: #d98a6a;
    font-weight: bold;
}

/* 互换/旋转装饰 */
.swap-icon {
    font-size: 0.9rem;
    margin-right: 6px;
    vertical-align: middle;
}
.glow-text {
    color: #5a8aaa;
    font-size: 0.7rem;
    margin-left: 8px;
    animation: softPulse 1.5s ease infinite;
}
@keyframes softPulse {
    0% { opacity: 0.5; text-shadow: 0 0 0 #7ab3cc; }
    50% { opacity: 1; text-shadow: 0 0 3px #7ab3cc; }
    100% { opacity: 0.5; text-shadow: 0 0 0 #7ab3cc; }
}

/* 分割线（水蓝渐变） */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #cce0ec, #7ab3cc, #cce0ec, transparent);
    margin: 12px 0;
}

/* 心跳/羁绊动画 */
.bond-beat {
    animation: bondPulse 1.4s ease infinite;
}
@keyframes bondPulse {
    0% { text-shadow: 0 0 0 #7ab3cc; }
    50% { text-shadow: 0 0 5px #7ab3cc; transform: scale(1.01); }
    100% { text-shadow: 0 0 0 #7ab3cc; }
}

/* 水纹闪烁特效 */
.water-twinkle {
    display: inline-block;
    animation: waterFlicker 1.8s ease-in-out infinite;
}
@keyframes waterFlicker {
    0%, 100% { opacity: 0.5; text-shadow: 0 0 0 #b0d4e8; }
    50% { opacity: 1; text-shadow: 0 0 3px #b0d4e8; }
}