/* notification-manager.css - 通知系统专用样式
 * 功能: 提供通知系统的完整样式定义
 * 影响: 全局通知框、复制提示等UI元素
 * 
 * 使用说明:
 * - 此文件包含notification-manager.js所需的所有样式
 * - 子网页只需加载此文件即可使用通知系统
 * - 不需要加载完整的main.css
 */

/* 导入基础变量 */
@import url('./variables.css');

/* ===== 通知系统样式 ===== */

/* 通知容器 */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    pointer-events: none;
}

/* 通知框基础样式 */
.notification-box {
    background: linear-gradient(135deg, rgba(45, 45, 55, 0.95) 0%, rgba(35, 35, 45, 0.98) 100%);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
    overflow: hidden;
}

/* 通知框内部光晕效果 */
.notification-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    pointer-events: none;
}

/* 通知框移除动画 */
.notification-box.removing {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* 通知内容 */
.notification-content {
    flex: 1;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

/* 错误代码样式 - 醒目的红色 */
.notification-content .error-code {
    color: #ff4444;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 68, 68, 0.2);
    display: inline-block;
    margin-right: 8px;
}

/* 复制按钮 */
.notification-copy {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.notification-copy:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    transform: scale(1.05);
}

.notification-copy i {
    font-size: 16px;
}

/* 不同类型的通知样式 */
.notification-box.success {
    border-left: 4px solid var(--success-color);
}

.notification-box.success::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--success-color);
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.5);
}

.notification-box.error {
    border-left: 4px solid var(--error-color);
}

.notification-box.error::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--error-color);
    box-shadow: 0 0 12px rgba(244, 67, 54, 0.5);
}

.notification-box.warning {
    border-left: 4px solid #ff9800;
}

.notification-box.warning::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ff9800;
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.5);
}

.notification-box.info {
    border-left: 4px solid var(--primary-color);
}

.notification-box.info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    box-shadow: 0 0 12px rgba(187, 134, 252, 0.5);
}

/* 通知动画 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* 固定位置复制提示样式 */
.copy-toast-fixed {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(12px);
}

.copy-toast-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.copy-toast-text {
    font-weight: 500;
}

/* 旧版通知样式兼容 */
.notification {
    display: none;
}