/* /usr/share/nginx/html/verify/style.css */
* {
    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;
}

.container {
    width: 100%;
    max-width: 480px;
}

.verify-card, .blocked-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.verify-header {
    text-align: center;
    margin-bottom: 30px;
}

.verify-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.verify-header p {
    color: #666;
    font-size: 14px;
}

.verify-body {
    margin: 20px 0;
}

/* 滑块验证 */
.slider-container {
    margin: 20px 0;
}

.slider-track {
    position: relative;
    height: 48px;
    background: #f0f0f0;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s;
}

.slider-track.active {
    border-color: #667eea;
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 24px;
    width: 0%;
    transition: width 0.1s;
}

.slider-thumb {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #667eea;
    transition: left 0.1s;
    cursor: grab;
}

.slider-thumb:active {
    cursor: grabbing;
}

.slider-thumb.success {
    background: #4CAF50;
    color: white;
}

.slider-thumb.error {
    background: #f44336;
    color: white;
}

.slider-hint {
    text-align: center;
    margin-top: 12px;
    color: #999;
    font-size: 14px;
}

/* 验证状态 */
.verify-status {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.verify-status.show {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 验证结果 */
.verify-result {
    text-align: center;
    padding: 20px;
    display: none;
}

.verify-result.show {
    display: block;
}

.result-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.result-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
}

/* 按钮 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

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

/* 错误信息 */
.error-message {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    margin: 16px 0;
}

.error-message.show {
    display: flex;
}

.error-icon {
    font-size: 20px;
}

/* 被阻止卡片 */
.blocked-card {
    text-align: center;
    display: none;
}

.blocked-card.show {
    display: block;
}

.blocked-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.blocked-card h2 {
    color: #333;
    margin-bottom: 12px;
}

.blocked-card p {
    color: #666;
    margin: 8px 0;
}

.verify-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.verify-footer p {
    color: #999;
    font-size: 13px;
    margin: 4px 0;
}

.verify-footer .small {
    font-size: 12px;
    color: #bbb;
}

/* 响应式 */
@media (max-width: 480px) {
    .verify-card, .blocked-card {
        padding: 24px;
    }
    
    .verify-header h1 {
        font-size: 24px;
    }
    
    .slider-track {
        height: 40px;
    }
    
    .slider-thumb {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}