/**
 * 自定义弹窗样式 - Google I/O 2025 风格
 */

:root {
    --dialog-google-blue: #4285f4;
    --dialog-google-red: #ea4335;
    --dialog-google-yellow: #fbbc04;
    --dialog-google-green: #34a853;
}

/* 弹窗容器 */
.custom-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-dialog.show {
    opacity: 1;
}

/* 遮罩层 */
.custom-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* 弹窗内容 */
.custom-dialog-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    min-width: 320px;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-align: center;
    animation: dialogSlideUp 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.custom-dialog.show .custom-dialog-content {
    transform: scale(1);
}

@keyframes dialogSlideUp {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* 图标 */
.custom-dialog-icon {
    font-size: 4em;
    margin-bottom: 20px;
    line-height: 1;
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 消息文本 */
.custom-dialog-message {
    font-size: 1.1em;
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
    word-break: break-word;
}

/* 按钮容器 */
.custom-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* 按钮样式 */
.custom-dialog-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 24px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.custom-dialog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.custom-dialog-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* 主要按钮 */
.custom-dialog-btn-primary {
    background: linear-gradient(135deg, var(--dialog-google-blue) 0%, #3367d6 100%);
    color: white;
}

.custom-dialog-btn-primary:hover {
    background: linear-gradient(135deg, #3367d6 0%, #2451b7 100%);
}

/* 次要按钮 */
.custom-dialog-btn-secondary {
    background: white;
    color: #666;
    border: 2px solid #ddd;
    box-shadow: none;
}

.custom-dialog-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* 响应式 */
@media (max-width: 768px) {
    .custom-dialog-content {
        min-width: 280px;
        max-width: 90%;
        padding: 30px 20px;
    }
    
    .custom-dialog-icon {
        font-size: 3em;
        margin-bottom: 15px;
    }
    
    .custom-dialog-message {
        font-size: 1em;
        margin-bottom: 20px;
    }
    
    .custom-dialog-btn {
        padding: 10px 24px;
        font-size: 0.95em;
        min-width: 80px;
    }
}

