/* ==================== 核验页面布局 ==================== */
.verify-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #e8eef8 0%, #f0f2f5 50%, #e8eef8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.back-link {
    position: absolute;
    top: 28px;
    left: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.back-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

/* ==================== 核验卡片 ==================== */
.verify-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(68, 114, 196, 0.12);
    padding: 48px 44px 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
}

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

.verify-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #e8eef8, #d4e0f5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.verify-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.verify-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 验证码输入 ==================== */
.verify-input-section {
    text-align: center;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.code-input-wrapper {
    margin-bottom: 20px;
}

.code-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 12px;
    color: var(--text-primary);
    background: #fafbfc;
    transition: all 0.3s;
    outline: none;
    font-family: "SF Mono", "Consolas", "Courier New", monospace;
}

.code-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(68, 114, 196, 0.1);
}

.code-input::placeholder {
    letter-spacing: 2px;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.btn-check {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
}

.verify-hint {
    margin-top: 14px;
    font-size: 14px;
    min-height: 20px;
    transition: all 0.3s;
}

.verify-hint.error {
    color: var(--danger);
}

.verify-hint.success {
    color: var(--success);
}

.verify-hint.info {
    color: var(--primary);
}

/* ==================== 查询结果区域 ==================== */
.verify-result-section {
    text-align: center;
    animation: fadeSlideIn 0.35s ease;
}

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

.result-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.result-card .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.result-card .info-row + .info-row {
    border-top: 1px solid var(--border-color);
}

.result-card .info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.result-card .info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.result-card .info-value.code {
    letter-spacing: 4px;
}

.result-card .info-value.verified {
    color: var(--success);
}

.result-card .info-value.unverified {
    color: var(--warning);
}

/* 已核验红色警示 */
.result-card .already-verified {
    margin-top: 16px;
    padding: 14px 18px;
    background: #fff5f5;
    border: 2px solid #dc3545;
    border-left: 5px solid #dc3545;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #dc3545;
    animation: warningPulse 0.5s ease;
}

.result-card .already-verified .alert-icon {
    font-size: 22px;
    flex-shrink: 0;
}

@keyframes warningPulse {
    0% { transform: scale(0.95); opacity: 0.6; }
    60% { transform: scale(1.03); }
    100% { transform: scale(1); opacity: 1; }
}

/* 核验成功横幅 */
.verify-success-banner {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.verify-success-banner .success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.verify-success-banner h3 {
    font-size: 18px;
    color: #155724;
    margin-bottom: 4px;
}

.verify-success-banner p {
    font-size: 14px;
    color: #155724;
    opacity: 0.8;
}

/* 确认按钮区域 */
.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-confirm {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
}

/* ==================== 加载动画 ==================== */
.verify-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.verify-loading p {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 响应式 ==================== */
@media (max-width: 640px) {
    .verify-card {
        padding: 36px 24px 32px;
    }

    .code-input {
        font-size: 22px;
        letter-spacing: 8px;
    }

    .back-link {
        top: 16px;
        left: 16px;
    }
}

/* ==================== 操作密码弹窗 ==================== */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: overlayFadeIn 0.25s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.password-dialog {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    padding: 36px 36px 28px;
    width: 100%;
    max-width: 400px;
    animation: dialogSlideUp 0.3s ease;
    margin: 0 20px;
}

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

.password-dialog-header {
    text-align: center;
    margin-bottom: 24px;
}

.password-dialog-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    background: #e8eef8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.password-dialog-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.password-dialog-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.password-input-group {
    margin-bottom: 24px;
}

.password-input-field {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    color: var(--text-primary);
    background: #fafbfc;
    outline: none;
    transition: all 0.25s;
    font-family: "SF Mono", "Consolas", "Courier New", monospace;
    letter-spacing: 2px;
}

.password-input-field:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(68, 114, 196, 0.1);
}

.password-input-field::placeholder {
    letter-spacing: 1px;
    font-family: inherit;
}

.password-error {
    margin-top: 10px;
    font-size: 13px;
    color: var(--danger);
    min-height: 18px;
}

.password-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.password-dialog-actions .btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}
