
/* --- 落樱甜心公寓主题 UI (最终完美整合版) by 兴趣使然的人 --- */

/* 1. 全局气泡包裹层 */
.chat-wrapper {
    background: linear-gradient(135deg, #fff0f5 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(255, 182, 193, 0.3);
    border: 1px solid rgba(255, 192, 203, 0.5);
}

.main-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 2. 模块化卡片 <details> & <summary> 基础样式 */
details {
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff; /* [修改] 内容区背景已改为白色 */
    border: 1px solid #ffdde5;
    transition: all 0.3s ease;
}

summary {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #ff85a2, #ffb3c1);
    cursor: pointer;
    list-style: none;
    transition: all 0.3s ease;
    position: relative;
}

summary:hover {
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
    transform: translateY(-2px);
}

summary::after {
    content: '▼';
    font-size: 20px;
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
}

details[open] > summary::after {
    transform: rotate(180deg);
}

details[open] > summary {
    background: linear-gradient(45deg, #ff6b81, #ff9aab);
    border-bottom: 1px solid #ffdde5;
}

details > div {
    padding: 15px 20px;
}

/* 3. 角色状态模块特殊美化 */
.character-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}
.character-image-container img {
    max-width: 80%;
    border-radius: 10px;
    border: 4px solid #ff85a2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.character-sheet p {
    margin: 8px 0;
}

/* 4. 状态栏和选项栏美化 */
.status-block, .options-block {
    background-color: #ffffff; /* [修改] 内容区背景已改为白色 */
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2em;
    line-height: 1.6;
    border: 1px solid #ffe3e9;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 5. 记忆区表格美化 */
.memory-tables table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.memory-tables th, .memory-tables td {
    border: 1px solid #ffdde5;
    padding: 8px 12px;
    text-align: left;
}
.memory-tables th {
    background-color: #fff0f5;
    color: #c72c48;
    font-weight: bold;
}
.memory-tables tr:nth-child(even) {
    background-color: #fff9fb;
}

/* 6. --- 移动端APP兼容性修复 (重要！) --- */
details > div {
    color: #333333 !important;
}
.memory-tables th, .memory-tables td {
    color: #333333 !important;
}
.memory-tables th {
    color: #c72c48 !important;
}
