/* ========================================
   SheerID 验证工具 - 样式表
   ======================================== */

/* CSS 变量 */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 600px;
}

/* 头部 */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 卡片样式 */
.form-card,
.progress-card,
.result-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

/* 表单组 */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
}

.label-icon {
    font-size: 1.1rem;
}

.badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 9999px;
    background: var(--border-color);
    color: var(--text-secondary);
    font-weight: 400;
}

.badge.required {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

/* 输入框和选择框 */
input,
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--bg-dark);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

input::placeholder {
    color: var(--text-secondary);
}

select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.help-text {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 按钮 */
.btn-primary {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-gradient);
    color: white;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.2rem;
}

/* 进度卡片 */
.progress-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.section-icon {
    font-size: 1.2rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 6px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

#progress-percent {
    font-weight: 600;
    color: #667eea;
}

#progress-message {
    color: var(--text-secondary);
}

/* 结果卡片 */
.result-success {
    padding: 24px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success-color);
    border-radius: 12px;
}

.result-success h4 {
    color: var(--success-color);
    font-size: 1.3rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-error {
    padding: 24px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--error-color);
    border-radius: 12px;
}

.result-error h4 {
    color: var(--error-color);
    font-size: 1.3rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-pending {
    padding: 24px;
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid var(--warning-color);
    border-radius: 12px;
}

.result-pending h4 {
    color: var(--warning-color);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.result-details {
    margin-top: 16px;
}

.result-details p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.result-details strong {
    color: var(--text-primary);
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 动画 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 响应式 */
@media (max-width: 640px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .form-card,
    .progress-card,
    .result-card {
        padding: 20px;
    }
    
    input,
    select,
    .btn-primary {
        padding: 12px;
        font-size: 1rem;
    }
}
