/* ===== 攻略·尖酸刻薄的女上司 · 状态栏 & 记忆区专用美化（浅灰职场版） ===== */
/* 主题色：浅灰、卡其、暗金 · 适配理性与情感交织的职场叙事 */

/* 折叠块整体样式 */
details {
    background: #f8f7f4;
    border: 1px solid #ddd2c0;
    border-radius: 20px;
    margin: 14px 0;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
details[open] {
    padding-bottom: 12px;
    background: #fffdf9;
    border-color: #cbb894;
    box-shadow: 0 4px 12px rgba(100, 70, 40, 0.08);
}

/* 折叠块标题栏 */
summary {
    cursor: pointer;
    padding: 12px 18px;
    font-size: 0.88rem;
    color: #a8895c;
    user-select: none;
    list-style: none;
    font-weight: 600;
    background: linear-gradient(135deg, #f5f2ec, #ede7de);
    border-radius: 20px;
    word-break: break-word;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    border: 1px solid #ddd2c0;
}
summary:hover {
    background: linear-gradient(135deg, #ede7de, #e6ddd2);
    color: #8c6e4a;
    transform: translateX(2px);
    border-color: #d4c4ac;
}
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: #6f6352;
    padding: 14px 16px;
    line-height: 1.7;
    font-size: 0.85rem;
    background: rgba(245, 242, 235, 0.8);
    border-radius: 16px;
    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 solid #e6ddd0;
}
.stat-row:last-child {
    border-bottom: none;
}
.stat-row span:first-child {
    min-width: 90px;
    color: #b88c5c;
    font-weight: 500;
}
.stat-row span:last-child {
    min-width: 45px;
    text-align: right;
    color: #c99060;
    font-weight: 500;
}

/* 进度条 —— 好感度/冷漠值/脆弱值 */
.progress-bar {
    background: #ece2d4;
    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, #dbbc8c, #b88c5c);
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s ease;
    box-shadow: 0 0 4px rgba(180, 120, 60, 0.2);
}

/* 记忆区 · 短期记忆表（职场日记） */
.memory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-top: 8px;
}
.memory-table th {
    background: #f5f2ec;
    color: #a8895c;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dbbc8c;
}
.memory-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e6ddd0;
    color: #7f6e58;
}
.memory-table tr:last-child td {
    border-bottom: none;
}
.memory-table tr:hover td {
    background: rgba(219, 188, 140, 0.08);
}

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

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

/* 办公/职场装饰 */
.office-icon {
    font-size: 0.9rem;
    margin-right: 6px;
    vertical-align: middle;
}
.glow-text {
    color: #b88c5c;
    font-size: 0.7rem;
    margin-left: 8px;
    animation: softPulse 1.5s ease infinite;
}
@keyframes softPulse {
    0% { opacity: 0.5; text-shadow: 0 0 0 #dbbc8c; }
    50% { opacity: 1; text-shadow: 0 0 3px #dbbc8c; }
    100% { opacity: 0.5; text-shadow: 0 0 0 #dbbc8c; }
}

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

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

/* 文件夹/文件图标闪烁 */
.file-flicker {
    display: inline-block;
    animation: flicker 1.8s ease-in-out infinite;
}
@keyframes flicker {
    0%, 100% { opacity: 0.5; text-shadow: 0 0 0 #e0ccb0; }
    50% { opacity: 1; text-shadow: 0 0 3px #e0ccb0; }
}