/* ===== 喜欢cos的妹妹 · 状态栏 & 记忆区专用美化（浅紫甜心版） ===== */
/* 主题色：浅紫、薰衣草、淡粉 · 适配cosplay的梦幻与温馨 */

/* 折叠块整体样式 */
details {
    background: #faf5ff;
    border: 1px solid #e8d8ff;
    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: #fdfaff;
    border-color: #dcc8ff;
    box-shadow: 0 4px 12px rgba(170, 109, 201, 0.08);
}

/* 折叠块标题栏 */
summary {
    cursor: pointer;
    padding: 12px 18px;
    font-size: 0.88rem;
    color: #aa66cc;
    user-select: none;
    list-style: none;
    font-weight: 600;
    background: linear-gradient(135deg, #f3eaff, #f0e4ff);
    border-radius: 24px;
    word-break: break-word;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    border: 1px solid #e8d8ff;
}
summary:hover {
    background: linear-gradient(135deg, #f0e4ff, #e8d8ff);
    color: #8844aa;
    transform: translateX(2px);
    border-color: #dcc8ff;
}
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: #7755aa;
    padding: 14px 16px;
    line-height: 1.7;
    font-size: 0.85rem;
    background: rgba(240, 230, 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 #e0d0ff;
}
.stat-row:last-child {
    border-bottom: none;
}
.stat-row span:first-child {
    min-width: 100px;
    color: #cc88aa;
    font-weight: 500;
}
.stat-row span:last-child {
    min-width: 45px;
    text-align: right;
    color: #dd99bb;
    font-weight: 500;
}

/* 进度条 —— 好感度/cos热情值/依赖值 */
.progress-bar {
    background: #e8d8ff;
    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, #ddbbff, #bb88ee);
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s ease;
    box-shadow: 0 0 4px rgba(170, 109, 201, 0.3);
}

/* 记忆区 · 短期记忆表（coser日记） */
.memory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-top: 8px;
}
.memory-table th {
    background: #f3eaff;
    color: #aa66cc;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddbbff;
}
.memory-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e8d8ff;
    color: #8866aa;
}
.memory-table tr:last-child td {
    border-bottom: none;
}
.memory-table tr:hover td {
    background: rgba(187, 136, 238, 0.08);
}

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

/* 数值变化标识 */
.value-up {
    color: #88aa66;
    font-weight: bold;
}
.value-down {
    color: #dd8866;
    font-weight: bold;
}

/* cos小装饰（星星/魔法棒/假发） */
.cos-icon {
    font-size: 0.9rem;
    margin-right: 6px;
    vertical-align: middle;
}
.glow-text {
    color: #cc88aa;
    font-size: 0.7rem;
    margin-left: 8px;
    animation: softPulse 1.5s ease infinite;
}
@keyframes softPulse {
    0% { opacity: 0.5; text-shadow: 0 0 0 #ddbbff; }
    50% { opacity: 1; text-shadow: 0 0 3px #ddbbff; }
    100% { opacity: 0.5; text-shadow: 0 0 0 #ddbbff; }
}

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

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

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