/* ===== 晴空星海 · 状态栏 & 记忆区专用美化 ===== */
/* 主题：浅空蓝 · 淡青 · 流云星光 · 澄澈透明 */
/* 独立浅蓝体系，与浅紫、浅红、深色版全然不同 */

/* 折叠块整体 */
details {
    background: #f2f7ff;
    border: 1px solid #d0e0f8;
    border-radius: 22px;
    margin: 16px 0;
    width: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(120, 160, 210, 0.1),
                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(170,200,240,0.7), transparent),
        radial-gradient(1px 1px at 60% 15%, rgba(190,215,245,0.6), transparent),
        radial-gradient(1.5px 1.5px at 75% 50%, rgba(200,220,250,0.8), transparent),
        radial-gradient(1px 1px at 40% 65%, rgba(180,210,245,0.65), transparent),
        radial-gradient(1.3px 1.3px at 85% 35%, rgba(195,225,248,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: #f7faff;
    border-color: #b8cdf0;
    box-shadow: 0 6px 24px rgba(100, 140, 200, 0.12),
                0 0 0 1px rgba(160, 200, 240, 0.35),
                inset 0 1px 0 rgba(255,255,255,0.9);
}

/* 标题栏 */
summary {
    cursor: pointer;
    padding: 14px 20px;
    font-size: 0.88rem;
    color: #5a7d9a;
    user-select: none;
    list-style: none;
    font-weight: 600;
    background: linear-gradient(160deg, #eaf3fe, #e2edfb 40%, #f0f6ff);
    border-radius: 22px;
    word-break: break-word;
    transition: all 0.35s ease;
    letter-spacing: 0.6px;
    border: 1px solid #cadbf5;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 8px rgba(160,190,230,0.25);
}

summary:hover {
    background: linear-gradient(160deg, #eff6ff, #e8f1fd 40%, #f5faff);
    color: #3d6080;
    transform: translateX(3px);
    border-color: #a0bde0;
    text-shadow: 0 0 14px rgba(140,170,220,0.4);
    box-shadow: 0 0 18px rgba(100,140,200,0.15),
                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(200,220,240,0.6));
    animation: cloudFloat 2.8s ease-in-out infinite;
}

@keyframes cloudFloat {
    0%,100% { filter: drop-shadow(0 0 3px rgba(200,220,240,0.5)); transform: translateY(0); }
    50% { filter: drop-shadow(0 0 8px rgba(220,235,250,0.8)); transform: translateY(-2px); }
}

details[open] summary::before {
    content: "☀️";
    animation: sunSparkle 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255,220,140,0.7));
}

@keyframes sunSparkle {
    0%,100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255,220,140,0.6)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 12px rgba(255,230,160,0.9)); }
}

/* 内部内容区 */
details div, details .panel, details .stats-panel {
    color: #4a6a84;
    padding: 16px 18px;
    line-height: 1.75;
    font-size: 0.85rem;
    background: rgba(245, 249, 255, 0.8);
    border-radius: 18px;
    margin: 10px 8px 0 8px;
    border: 1px solid rgba(195, 215, 235, 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 #d0e0f2;
    border-radius: 8px;
    transition: background 0.3s;
}
.stat-row:hover { background: rgba(210, 225, 245, 0.25); }
.stat-row:last-child { border-bottom: none; margin-bottom: 4px; }

.stat-row span:first-child {
    min-width: 100px;
    color: #6c8aa5;
    font-weight: 500;
}
.stat-row span:last-child {
    min-width: 45px;
    text-align: right;
    color: #507290;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(140,170,200,0.2);
}

/* 进度条 —— 海天极光渐变 + 柔光扫过 */
.progress-bar {
    background: #dce8f5;
    border-radius: 20px;
    height: 9px;
    width: 55%;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(100,130,170,0.15),
                0 0 6px rgba(120,150,190,0.1);
    position: relative;
}
.progress-fill {
    background: linear-gradient(90deg, #8cc8e0, #9bc8f0 15%, #a0b8f8 35%, #a8c0f8 55%, #b0c8e8 75%, #a8b8e0);
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(130,170,220,0.4),
                0 0 16px rgba(150,180,230,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: #eef4fc;
    color: #5d7d9a;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #c5d8f0;
    text-shadow: 0 0 4px rgba(140,170,200,0.2);
}
.memory-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6eff8;
    color: #5f768d;
    transition: all 0.25s;
}
.memory-table tr:last-child td { border-bottom: none; }
.memory-table tr:hover td {
    background: rgba(180, 200, 230, 0.15);
    text-shadow: 0 0 3px rgba(140,160,200,0.25);
}

/* 长记忆卡片 */
.long-memory {
    background: linear-gradient(160deg, #f4f8ff, #edf3fd);
    border-left: 4px solid #7eb8d8;
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: #4a6880;
    line-height: 1.7;
    box-shadow: 0 2px 10px rgba(100,140,180,0.12),
                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: #a0c8e8;
    animation: starTwinkleCorner 2s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(130,180,210,0.6);
}
@keyframes starTwinkleCorner {
    0%,100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.25); }
}

/* 数值变化标识 */
.value-up { color: #5a9888; font-weight: bold; text-shadow: 0 0 6px rgba(90,152,136,0.35); }
.value-down { color: #c07a7a; font-weight: bold; text-shadow: 0 0 6px rgba(192,122,122,0.35); }

/* 小图标 */
.cos-icon { font-size: 0.9rem; margin-right: 7px; vertical-align: middle; filter: drop-shadow(0 0 2px rgba(150,190,220,0.5)); }
.glow-text {
    color: #7b99b8;
    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(150,180,210,0.35); }
    50% { opacity: 1; text-shadow: 0 0 8px rgba(180,200,230,0.6); }
}

/* 分割线 */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #c8daf0, #8ec8e0, #a8c0f0, #b0c8e0, #c8daf0, 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(150,200,230,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(140,180,210,0.35); }
    50% { text-shadow: 0 0 10px rgba(170,200,230,0.55), 0 0 18px rgba(140,180,210,0.3); transform: scale(1.012); }
    100% { text-shadow: 0 0 0 rgba(140,180,210,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(180,210,240,0.4); }
    30% { opacity: 0.9; text-shadow: 0 0 6px rgba(210,230,250,0.7); }
    60% { opacity: 0.5; text-shadow: 0 0 1px rgba(170,200,230,0.3); }
    80% { opacity: 1; text-shadow: 0 0 10px rgba(220,240,255,0.8); }
}