/* 微信小程序认证验证样式 */

/* 提示框样式 */
.verification-notice {
    margin-bottom: 0;
    padding: 0;
    animation: slideDown 0.3s ease-out;
    display: flex;
    justify-content: center;
    background: transparent;
}

.verification-notice .container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 1rem 0.75rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: none;
    border-bottom: 1px solid #ffc107;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.verification-notice-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.verification-notice-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    color: #ff9800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-notice-icon svg {
    width: 100%;
    height: 100%;
}

.verification-notice-text {
    flex: 1;
    min-width: 200px;
}

.verification-notice-text p {
    margin: 0;
    color: #856404;
    font-size: 0.875rem;
    line-height: 1.6;
}

.verification-notice-btn {
    flex-shrink: 0;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.verification-notice-btn:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

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

/* 认证弹窗样式 */
.verification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

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

.verification-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

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

.verification-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.verification-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.verification-modal-close {
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.verification-modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.verification-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.verification-modal-body {
    padding: 2rem;
    text-align: center;
}

/* 加载状态 */
.verification-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

.verification-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.verification-loading p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* 二维码容器 */
.verification-qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.verification-qrcode-wrapper {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
}

.verification-qrcode-wrapper img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.verification-tip {
    margin: 0;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verification-tip::before {
    content: "📱";
    font-size: 1.125rem;
}

/* 错误状态 */
.verification-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    color: #dc2626;
}

.verification-error svg {
    width: 3rem;
    height: 3rem;
}

.verification-error p {
    margin: 0;
    font-size: 0.875rem;
    color: #dc2626;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .verification-notice-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .verification-notice-btn {
        width: 100%;
    }

    .verification-modal {
        padding: 0.5rem;
    }

    .verification-modal-content {
        max-width: 100%;
    }

    .verification-modal-header {
        padding: 1.25rem;
    }

    .verification-modal-body {
        padding: 1.5rem;
    }

    .verification-qrcode-wrapper img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .verification-notice {
        padding: 0.875rem 1rem;
    }

    .verification-notice-text p {
        font-size: 0.8125rem;
    }

    .verification-notice-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .verification-qrcode-wrapper img {
        width: 160px;
        height: 160px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .verification-notice {
        background: linear-gradient(135deg, #3d2e0f 0%, #4a3a1a 100%);
        border-color: #ff9800;
    }

    .verification-notice-text p {
        color: #ffd54f;
    }

    .verification-modal-content {
        background: #1f2937;
    }

    .verification-modal-header {
        background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
        border-color: #4b5563;
    }

    .verification-modal-header h3 {
        color: #f9fafb;
    }

    .verification-modal-close {
        color: #9ca3af;
    }

    .verification-modal-close:hover {
        background: #374151;
        color: #f9fafb;
    }

    .verification-loading p {
        color: #9ca3af;
    }

    .verification-qrcode-wrapper {
        background: #374151;
        border-color: #4b5563;
    }

    .verification-tip {
        background: #374151;
        color: #e5e7eb;
    }
}

