/* ===== 樱吹星语 · 状态栏 & 记忆区专用美化 ===== */
/* 主题：浅樱粉 · 淡珊瑚 · 星光落樱 · 温柔炽热 */
/* 全新浅红体系，保留星辰极光动效，明媚而不刺眼 */

/* 折叠块整体 */
details {
    background: #fff5f6;
    border: 1px solid #f8d8db;
    border-radius: 22px;
    margin: 16px 0;
    width: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(200, 140, 150, 0.12),
                inset 0 1px 0 rgba(255,255,255,0.7);
    position: relative;
    overflow: hidden;
}

/* 散布的樱花星光装饰 */
details::after {
    content: "";
    position: absolute;
    top: -30px;
    right: -20px;
    width: 80px;
    height: 80px;
    background:
        radial-gradient(1.2px 1.2px at 20% 30%, rgba(240,180,180,0.7), transparent),
        radial-gradient(1px 1px at 60% 15%, rgba(250,200,200,0.6), transparent),
        radial-gradient(1.5px 1.5px at 75% 50%, rgba(255,210,180,0.8), transparent),
        radial-gradient(1px 1px at 40% 65%, rgba(240,190,190,0.65), transparent),
        radial-gradient(1.3px 1.3px at 85% 35%, rgba(255,200,200,0.7), transparent);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    animation: starDrift 8s ease-in-out infinite;
}

@keyframes starDrift {
    0%,100% { transform: translate(0,0); }
    25% { transform: translate(-8px,5px); }
    50% { transform: translate(-3px,-4px); }
    75% { transform: translate(-10px,2px); }
}

details[open] {
    padding-bottom: 14px;
    background: #fff8f9;
    border-color: #f0c4c8;
    box-shadow: 0 6px 24px rgba(210, 120, 140, 0.15),
                0 0 0 1px rgba(240,180,190,0.4),
                inset 0 1px 0 rgba(255,255,255,0.9);
}

/* 标题栏 */
summary {
    cursor: pointer;
    padding: 14px 20px;
    font-size: 0.88rem;
    color: #b0686a;
    user-select: none;
    list-style: none;
    font-weight: 600;
    background: linear-gradient(160deg, #ffeff1, #fee8eb 40%, #fff2f4);
    border-radius: 22px;
    word-break: break-word;
    transition: all 0.35s ease;
    letter-spacing: 0.6px;
    border: 1px solid #f5ced2;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 8px rgba(230,170,170,0.3);
}

summary:hover {
    background: linear-gradient(160deg, #fff2f4, #ffecf0 40%, #fff5f6);
    color: #8b4a4e;
    transform: translateX(3px);
    border-color: #ecb0b6;
    text-shadow: 0 0 14px rgba(220,150,160,0.45);
    box-shadow: 0 0 18px rgba(200,130,140,0.18),
                inset 0 1px 0 rgba(255,255,255,0.8);
}

summary::-webkit-details-marker { display: none; }

/* 展开图标：月 → 樱星 */
summary::before {
    content: "🌙";
    font-size: 0.9rem;
    margin-right: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    filter: drop-shadow(0 0 5px rgba(250,210,200,0.7));
    animation: moonGlow 2.5s ease-in-out infinite;
}

@keyframes moonGlow {
    0%,100% { filter: drop-shadow(0 0 3px rgba(250,210,200,0.5)); }
    50% { filter: drop-shadow(0 0 8px rgba(255,220,200,0.8)); }
}

details[open] summary::before {
    content: "🌸";
    animation: sakuraSparkle 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255,180,180,0.8));
}

@keyframes sakuraSparkle {
    0%,100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255,180,180,0.7)); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 12px rgba(255,200,200,1)); }
}

/* 内部内容区 */
details div, details .panel, details .stats-panel {
    color: #7b565a;
    padding: 16px 18px;
    line-height: 1.75;
    font-size: 0.85rem;
    background: rgba(255, 245, 247, 0.8);
    border-radius: 18px;
    margin: 10px 8px 0 8px;
    border: 1px solid rgba(240, 210, 215, 0.7);
    position: relative;
    z-index: 1;
}

/* 状态行 */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px dashed #f2d8dc;
    border-radius: 8px;
    transition: background 0.3s;
}
.stat-row:hover { background: rgba(245, 215, 220, 0.3); }
.stat-row:last-child { border-bottom: none; margin-bottom: 4px; }

.stat-row span:first-child {
    min-width: 100px;
    color: #b47b80;
    font-weight: 500;
}
.stat-row span:last-child {
    min-width: 45px;
    text-align: right;
    color: #8f5b60;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(210,150,160,0.3);
}

/* 进度条 —— 樱色极光渐变 + 柔光扫过 */
.progress-bar {
    background: #fbe4e7;
    border-radius: 20px;
    height: 9px;
    width: 55%;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(190,120,130,0.15),
                0 0 6px rgba(210,130,150,0.12);
    position: relative;
}
.progress-fill {
    background: linear-gradient(90deg, #f0b8b0, #f5c0b8 15%, #f5b0c8 35%, #f0a8c0 55%, #eaa8b8 75%, #f0a0b0);
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(230,140,160,0.4),
                0 0 16px rgba(240,160,180,0.25);
    position: relative;
}
/* 樱风柔光扫过 */
.progress-fill::after {
    content: "";
    position: absolute;
    top: 0; left: -30%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    border-radius: 20px;
    animation: auroraSweep 3.5s ease-in-out infinite;
}
@keyframes auroraSweep {
    0% { left: -40%; }
    100% { left: 120%; }
}

/* 记忆表格 */
.memory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
}
.memory-table th {
    background: #ffeff2;
    color: #ab6e75;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #f2c8cd;
    text-shadow: 0 0 4px rgba(210,150,160,0.25);
}
.memory-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #fce8eb;
    color: #8a646a;
    transition: all 0.25s;
}
.memory-table tr:last-child td { border-bottom: none; }
.memory-table tr:hover td {
    background: rgba(240, 180, 190, 0.15);
    text-shadow: 0 0 3px rgba(210,150,160,0.3);
}

/* 长记忆卡片 */
.long-memory {
    background: linear-gradient(160deg, #fff2f4, #fcedf0);
    border-left: 4px solid #f0a0a8;
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: #7b5058;
    line-height: 1.7;
    box-shadow: 0 2px 10px rgba(200,130,140,0.15),
                inset 0 1px 0 rgba(255,255,255,0.9);
    position: relative;
}
.long-memory::before {
    content: "✿";
    position: absolute;
    top: -8px; left: -6px;
    font-size: 0.7rem;
    color: #f0b8a0;
    animation: starTwinkleCorner 2s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(240,160,140,0.7);
}
@keyframes starTwinkleCorner {
    0%,100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.25); }
}

/* 数值变化标识 */
.value-up { color: #7ea888; font-weight: bold; text-shadow: 0 0 6px rgba(126,168,136,0.35); }
.value-down { color: #cc8080; font-weight: bold; text-shadow: 0 0 6px rgba(204,128,128,0.35); }

/* 小图标 */
.cos-icon { font-size: 0.9rem; margin-right: 7px; vertical-align: middle; filter: drop-shadow(0 0 2px rgba(220,160,170,0.5)); }
.glow-text {
    color: #c09098;
    font-size: 0.7rem;
    margin-left: 8px;
    animation: softPulse 2.2s ease infinite;
}
@keyframes softPulse {
    0%,100% { opacity: 0.6; text-shadow: 0 0 2px rgba(210,150,160,0.35); }
    50% { opacity: 1; text-shadow: 0 0 8px rgba(230,170,180,0.6); }
}

/* 分割线 */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #f2d2d8, #f0b0b0, #f0a8c0, #f0c0b8, #f2d2d8, transparent);
    margin: 14px 0;
    position: relative;
}
.divider::after {
    content: "💮";
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    animation: dividerFloat 3s ease-in-out infinite;
    text-shadow: 0 0 6px rgba(240,170,160,0.6);
}
@keyframes dividerFloat {
    0%,100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.9; transform: translateX(-50%) translateY(-4px); }
}

/* 心跳动画 */
.heart-beat {
    animation: heartPulse 1.6s ease infinite;
}
@keyframes heartPulse {
    0% { text-shadow: 0 0 0 rgba(220,150,160,0.35); }
    50% { text-shadow: 0 0 10px rgba(240,170,180,0.55), 0 0 18px rgba(220,150,160,0.3); transform: scale(1.012); }
    100% { text-shadow: 0 0 0 rgba(220,150,160,0.35); }
}

/* 星星闪烁 */
.star-twinkle {
    display: inline-block;
    animation: starFlicker 2.2s ease-in-out infinite;
}
@keyframes starFlicker {
    0%,100% { opacity: 0.55; text-shadow: 0 0 2px rgba(240,190,190,0.4); }
    30% { opacity: 0.9; text-shadow: 0 0 6px rgba(255,210,210,0.7); }
    60% { opacity: 0.5; text-shadow: 0 0 1px rgba(230,180,180,0.3); }
    80% { opacity: 1; text-shadow: 0 0 10px rgba(255,220,220,0.8); }
}