/**
 * 全站用户提示样式
 * 漂亮的浮动提示框
 */

.user-notice-container {
    position: fixed;
    bottom: -250px;
    right: 30px;
    width: 450px;
    max-width: 95vw;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

.user-notice-container.show {
    bottom: 30px;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.user-notice-container.hide {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.user-notice-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 25px 50px rgba(102, 126, 234, 0.4),
        0 12px 30px rgba(0, 0, 0, 0.15);
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.user-notice-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.notice-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    animation: icon-bounce 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.notice-text {
    flex: 1;
    min-width: 0;
}

.notice-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.notice-message {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
}

.notice-message strong {
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.price-highlight {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    padding: 4px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    animation: price-glow 2s ease-in-out infinite alternate;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes price-glow {
    0% { box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3); }
    100% { box-shadow: 0 4px 16px rgba(255, 107, 53, 0.6); }
}

.notice-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.notice-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.notice-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    width: 0;
    border-radius: 0 0 16px 16px;
}

@keyframes progress-countdown {
    from { width: 100%; }
    to { width: 0%; }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .user-notice-container {
        right: 15px;
        left: 15px;
        width: auto;
        max-width: none;
    }
    
    .user-notice-content {
        padding: 16px;
        gap: 12px;
    }
    
    .notice-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .notice-title {
        font-size: 15px;
    }
    
    .notice-message {
        font-size: 13px;
    }
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
    .user-notice-content {
        box-shadow: 
            0 20px 40px rgba(102, 126, 234, 0.2),
            0 8px 24px rgba(0, 0, 0, 0.3);
    }
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    .user-notice-container,
    .notice-icon,
    .price-highlight,
    .notice-close {
        animation: none;
        transition: none;
    }
    
    .user-notice-container.show {
        transition: opacity 0.3s ease;
    }
}
