/* ========== 状态栏容器类（请用 <div class="status-card"> 包裹每个 <details>） ========== */
.status-card {
    background: rgba(255, 250, 248, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 220, 230, 0.8);
    overflow: hidden;
    transition: all 0.2s;
}
.status-card summary {
    background: #ffeef4;
    padding: 12px 18px;
    font-weight: 600;
    color: #c27f99;
    border-radius: 24px;
    cursor: pointer;
    list-style: none;
    font-size: 1rem;
    transition: 0.2s;
    font-family: 'Segoe UI', 'Poppins', system-ui, sans-serif;
}
.status-card summary::-webkit-details-marker {
    display: none;
}
.status-card summary::before {
    content: "🪞 ";
    font-size: 0.9rem;
}
.status-card[open] summary {
    background: #ffe2ec;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.status-card .status-content {
    padding: 16px 20px;
    color: #4a3b44;
    font-size: 0.9rem;
    line-height: 1.5;
    background: rgba(255, 248, 245, 0.6);
}
/* 状态栏内部表格美化成柔边风格 */
.status-card .info-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 245, 245, 0.5);
    border-radius: 16px;
    overflow: hidden;
}
.status-card .info-table td,
.status-card .info-table th {
    padding: 8px 12px;
    border-bottom: 1px solid #ffdae5;
    vertical-align: top;
    text-align: left;
}
.status-card .info-table tr:last-child td {
    border-bottom: none;
}
/* ========== 聊天消息颜色规则（需给消息容器添加类 .message-son 或 .message-mother） ========== */
/* 儿子说的话（蓝色字体，右对齐气泡） */
.message-son {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}
.message-son .msg-bubble {
    background: #e6f4ff;
    border: 1px solid #b8d9f0;
    border-radius: 20px 20px 6px 20px;
    padding: 10px 16px;
    max-width: 80%;
    color: #2c6e9e !important;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
/* 妈妈说的话（粉色字体，左对齐气泡） */
.message-mother {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 14px;
}
.message-mother .msg-bubble {
    background: #fff0f5;
    border: 1px solid #ffcfdf;
    border-radius: 20px 20px 20px 6px;
    padding: 10px 16px;
    max-width: 80%;
    color: #c45f7a !important;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
/* 可选：消息头像（与颜色配合使用） */
.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffe0e8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.message-son .msg-avatar {
    order: 2;
    margin-left: 10px;
    margin-right: 0;
}