/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

/* 主容器 */
.container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* 安全检查卡片 */
.security-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.security-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* 图标容器 */
.icon-wrapper {
    margin-bottom: 25px;
}

.security-icon {
    width: 80px;
    height: 80px;
    color: #667eea;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 标题 */
.title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

/* 描述文字 */
.description {
    font-size: 16px;
    color: #718096;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-bar.show {
    opacity: 1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

/* 安全检查按钮 */
.security-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
}

.security-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.security-btn:active {
    transform: translateY(0);
}

.security-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 按钮文字 */
.btn-text {
    transition: opacity 0.3s ease;
}

.security-btn.loading .btn-text {
    opacity: 0;
}

/* 加载动画 */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.security-btn.loading .loading-spinner {
    opacity: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 状态消息 */
.status-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.status-message.show {
    opacity: 1;
    transform: translateY(0);
}

.status-message.success {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

.status-message.error {
    background: #fed7d7;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

.status-message.info {
    background: #ebf8ff;
    color: #3182ce;
    border: 1px solid #90cdf4;
}

/* 页脚 */
.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.footer p {
    font-size: 13px;
    color: #a0aec0;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .security-card {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .description {
        font-size: 15px;
    }
    
    .security-btn {
        font-size: 16px;
        padding: 14px 20px;
    }
    
    .security-icon {
        width: 60px;
        height: 60px;
    }
}

/* 成功跳转动画 */
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

.security-card.fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

/* 检查完成状态 */
.security-btn.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.security-btn.error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

/* 安全图标动画 */
.security-icon.checking {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}