/* ===== 翠林晨露 · 状态栏 & 记忆区专用美化 ===== */
/* 风格：浅绿 · 奶油白 · 木质棕 · 叶脉纹理 · 自然呼吸 */
/* 完全脱离科幻/梦幻，打造森系治愈体验 */

/* 折叠块整体 —— 仿树皮纹理质感 */
details {
    background: #f9faf6;
    border: 1px solid #c8d6b8;
    border-radius: 20px;
    margin: 16px 0;
    width: 100%;
    transition: all 0.4s ease;
    box-shadow:
        0 2px 8px rgba(100, 120, 80, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}

/* 散布的晨露光点 */
details::after {
    content: "";
    position: absolute;
    top: -25px;
    right: -15px;
    width: 70px;
    height: 70px;
    background:
        radial-gradient(1.5px 1.5px at 25% 35%, rgba(180, 210, 140, 0.7), transparent),
        radial-gradient(1px 1px at 55% 20%, rgba(160, 200, 120, 0.6), transparent),
        radial-gradient(1.8px 1.8px at 70% 55%, rgba(200, 220, 150, 0.8), transparent),
        radial-gradient(1px 1px at 35% 70%, rgba(170, 200, 130, 0.65), transparent),
        radial-gradient(1.3px 1.3px at 80% 40%, rgba(190, 215, 145, 0.7), transparent);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    animation: dewFloat 7s ease-in-out infinite;
}

@keyframes dewFloat {
    0%,100% { transform: translate(0,0); opacity: 0.8; }
    50% { transform: translate(-5px, -4px); opacity: 1; }
}

details[open] {
    padding-bottom: 14px;
    background: #fcfdf9;
    border-color: #b0c898;
    box-shadow: 0 6px 20px rgba(80, 100, 60, 0.12),
                0 0 0 1px rgba(140, 180, 100, 0.3),
                inset 0 1px 0 rgba(255,255,255,0.9);
}

/* 标题栏 —— 仿木板/叶片 */
summary {
    cursor: pointer;
    padding: 14px 20px;
    font-size: 0.88rem;
    color: #5a6e3e;
    user-select: none;
    list-style: none;
    font-weight: 600;
    background: linear-gradient(160deg, #f2f6ec, #edf3e4 40%, #f8faf3);
    border-radius: 20px;
    word-break: break-word;
    transition: all 0.35s ease;
    letter-spacing: 0.5px;
    border: 1px solid #d2e0c0;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 6px rgba(150, 180, 100, 0.2);
}

summary:hover {
    background: linear-gradient(160deg, #f5f9ef, #f0f6e7 40%, #fbfdf7);
    color: #3d4e26;
    transform: translateX(2px);
    border-color: #a8c080;
    text-shadow: 0 0 10px rgba(130, 160, 80, 0.35);
    box-shadow: 0 0 16px rgba(100, 140, 60, 0.15),
                inset 0 1px 0 rgba(255,255,255,0.8);
}

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

/* 展开图标：嫩叶 → 四叶草 */
summary::before {
    content: "🌱";
    font-size: 0.95rem;
    margin-right: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    filter: drop-shadow(0 0 4px rgba(140, 190, 90, 0.5));
    animation: sproutWiggle 3s ease-in-out infinite;
}

@keyframes sproutWiggle {
    0%,100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}

details[open] summary::before {
    content: "🍀";
    animation: cloverSpin 2s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(120, 180, 70, 0.8));
}

@keyframes cloverSpin {
    0%,100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(10deg); }
}

/* 内部内容区 */
details div, details .panel, details .stats-panel {
    color: #4a5a34;
    padding: 16px 18px;
    line-height: 1.75;
    font-size: 0.85rem;
    background: rgba(250, 252, 245, 0.85);
    border-radius: 16px;
    margin: 10px 8px 0 8px;
    border: 1px solid rgba(190, 210, 160, 0.6);
    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 #c8d6b0;
    border-radius: 8px;
    transition: background 0.3s;
}
.stat-row:hover { background: rgba(210, 225, 180, 0.2); }
.stat-row:last-child { border-bottom: none; margin-bottom: 4px; }

.stat-row span:first-child {
    min-width: 100px;
    color: #6d7f52;
    font-weight: 500;
}
.stat-row span:last-child {
    min-width: 45px;
    text-align: right;
    color: #4a5e2e;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(120, 150, 80, 0.25);
}

/* 进度条 —— 叶脉生长感 */
.progress-bar {
    background: #e8f0da;
    border-radius: 20px;
    height: 9px;
    width: 55%;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(80, 100, 50, 0.15),
                0 0 6px rgba(100, 140, 70, 0.1);
    position: relative;
}
.progress-fill {
    background: linear-gradient(90deg, #8cb04a, #9fc45a, #b0d86a);
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
    box-shadow: 0 0 6px rgba(140, 190, 70, 0.4),
                0 0 14px rgba(160, 210, 80, 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.45), transparent);
    border-radius: 20px;
    animation: dewSlide 3s ease-in-out infinite;
}
@keyframes dewSlide {
    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: #f0f5e8;
    color: #5d6e3e;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #b8d090;
    text-shadow: 0 0 4px rgba(130, 160, 80, 0.2);
}
.memory-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2ecce;
    color: #5a6c3e;
    transition: all 0.25s;
}
.memory-table tr:last-child td { border-bottom: none; }
.memory-table tr:hover td {
    background: rgba(180, 210, 130, 0.12);
    text-shadow: 0 0 3px rgba(110, 150, 70, 0.2);
}

/* 长记忆卡片 —— 仿树皮信笺 */
.long-memory {
    background: linear-gradient(160deg, #f7faf0, #f2f6e8);
    border-left: 4px solid #8cb04a;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: #4a5a32;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(90, 110, 60, 0.1),
                inset 0 1px 0 rgba(255,255,255,0.9);
    position: relative;
}
.long-memory::before {
    content: "🌿";
    position: absolute;
    top: -8px; left: -4px;
    font-size: 0.75rem;
    animation: leafSway 2.5s ease-in-out infinite;
    text-shadow: 0 0 4px rgba(130, 180, 70, 0.6);
}
@keyframes leafSway {
    0%,100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

/* 数值变化标识 */
.value-up { color: #6a9a4a; font-weight: bold; text-shadow: 0 0 5px rgba(106,154,74,0.35); }
.value-down { color: #c07a5a; font-weight: bold; text-shadow: 0 0 5px rgba(192,122,90,0.35); }

/* 小图标 */
.cos-icon { font-size: 0.9rem; margin-right: 7px; vertical-align: middle; filter: drop-shadow(0 0 2px rgba(130, 170, 80, 0.5)); }
.glow-text {
    color: #7a9a52;
    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(130, 160, 80, 0.3); }
    50% { opacity: 1; text-shadow: 0 0 7px rgba(150, 180, 90, 0.55); }
}

/* 分割线 —— 藤蔓装饰 */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #b0c898, #8cb04a, #b0c898, transparent);
    margin: 14px 0;
    position: relative;
}
.divider::after {
    content: "🌾";
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    animation: dividerFloat 3s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(140, 180, 80, 0.5);
}
@keyframes dividerFloat {
    0%,100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.9; transform: translateX(-50%) translateY(-3px); }
}

/* 心跳动画 —— 改为自然呼吸 */
.heart-beat {
    animation: breath 2s ease-in-out infinite;
}
@keyframes breath {
    0%,100% { text-shadow: 0 0 2px rgba(100, 140, 60, 0.3); }
    50% { text-shadow: 0 0 10px rgba(130, 170, 70, 0.5), 0 0 16px rgba(110, 150, 60, 0.3); }
}

/* 星星闪烁 —— 改为萤火虫微光 */
.star-twinkle {
    display: inline-block;
    animation: fireflyGlow 2.4s ease-in-out infinite;
}
@keyframes fireflyGlow {
    0%,100% { opacity: 0.4; text-shadow: 0 0 2px rgba(170, 210, 100, 0.4); }
    50% { opacity: 0.9; text-shadow: 0 0 8px rgba(190, 230, 110, 0.8); }
}