#message-container {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: 100%;
    max-height: 100vh;
    overflow: hidden;
    padding: 20px;
    pointer-events: none;
}

/* 基础消息卡片 */
.message {
    padding: 20px;
    border-radius: 14px;
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    animation: slideIn 0.5s forwards;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    pointer-events: auto;
}

/* 消息标题部分 */
.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.message-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-icon {
    font-size: 1.8rem;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
}

.close-btn:hover {
    color: #e74c3c;
}

/* 消息内容部分 */
.message-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #2c3e50;
    text-align: left;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    width: 100%;
    transform-origin: left;
    animation: progress linear;
}

/* 基础消息类型样式 */
.message.success {
    background: rgba(46, 204, 113, 0.15);
}

.message.success .message-icon {
    color: #27ae60;
}

.message.error {
    background: rgba(231, 76, 60, 0.15);
}

.message.error .message-icon {
    color: #c0392b;
}

.message.warning {
    background: rgba(243, 156, 18, 0.15);
}

.message.warning .message-icon {
    color: #d35400;
}

.message.info {
    background: rgba(52, 152, 219, 0.15);
}

.message.info .message-icon {
    color: #2980b9;
}

/* 富媒体消息卡片 */
.message.rich-media {
    padding: 0;
    overflow: hidden;
    pointer-events: auto;
}

.rich-media-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rich-media-content {
    padding: 20px;
    background: white;
}

.rich-media.success .rich-media-header {
    background: rgba(46, 204, 113, 0.3);
}

.rich-media.error .rich-media-header {
    background: rgba(231, 76, 60, 0.3);
}

.rich-media.warning .rich-media-header {
    background: rgba(243, 156, 18, 0.3);
}

.rich-media.info .rich-media-header {
    background: rgba(52, 152, 219, 0.3);
}

.rich-media-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
    max-height: 200px;
    object-fit: cover;
}

/* 可交互按钮 */
.action-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    margin-top: 15px;
    text-align: center;
    text-decoration: none;
}

.action-btn.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.action-btn.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.action-btn.warning {
    background: linear-gradient(135deg, #f39c12, #d35400);
    color: white;
}

.action-btn.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.message.exiting {
    animation: slideOut 0.5s forwards !important;
}

/* 动画 */
@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}