/**
 * 支付宝实名信息验证样式文件
 * 定义页面的样式和布局
 */

/* 全局样式 */
body {
    background-color: #f5f5f5;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

.container {
    margin-top: 50px;
    margin-bottom: 50px;
}

/* 面板样式 */
.panel {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
}

.panel-heading {
    background: linear-gradient(135deg, #2dbefe 0%, #2dbefe 100%);
    border-radius: 8px 8px 0 0;
    padding: 20px;
}

.panel-title {
    color: white;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

.panel-body {
    padding: 30px;
    background-color: white;
    border-radius: 0 0 8px 8px;
}

/* 表单样式 */
.form-horizontal .form-group {
    margin-bottom: 20px;
}

.form-horizontal .control-label {
    font-weight: 500;
    color: #333;
    padding-top: 10px;
}

.form-control {
    height: 45px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 按钮样式 */
.btn {
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2dbefe 0%, #2dbefe 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2dbefe 0%, #2dbefe 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #4e9a2a 0%, #96d4b8 100%);
    transform: translateY(-1px);
}

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

/* 认证方式显示 */
.certification_type {
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-size: 14px;
    color: #495057;
    display: flex;
    align-items: center;
}

.certification_type img {
    margin-right: 8px;
}

/* 二维码容器 */
#qrcode {
    display: inline-block;
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#qrcode canvas {
    border-radius: 4px;
}

/* 结果页面样式 */
.result-icon {
    margin-bottom: 20px;
}

.result-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.result-info .form-group {
    margin-bottom: 15px;
}

.result-info .control-label {
    font-weight: 600;
    color: #495057;
}

.result-info .text-left {
    padding-top: 7px;
    color: #6c757d;
}

/* 警告框样式 */
.alert {
    border-radius: 6px;
    border: none;
    font-size: 13px;
    line-height: 1.6;
}

.alert-info {
    background-color: #e3f2fd;
    color: #0277bd;
}

.alert-warning {
    background-color: #fff3e0;
    color: #ef6c00;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
}

.alert-success {
    background-color: #e8f5e8;
    color: #2e7d32;
}

/* 步骤指示器 */
.steps {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 15px;
    color: #999;
}

.step.active {
    color: #667eea;
    font-weight: 500;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 12px;
    font-weight: 600;
}

.step.active .step-number {
    background-color: #667eea;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    
    .panel-body {
        padding: 20px 15px;
    }
    
    .form-horizontal .control-label {
        text-align: left;
        margin-bottom: 5px;
    }
    
    .col-sm-offset-3 {
        margin-left: 0;
    }
    
    #qrcode {
        padding: 15px;
    }
    
    .result-info {
        padding: 15px;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        margin: 5px 0;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* 工具提示 */
.tooltip-info {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-info:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* 渐入动画 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* 卡片悬停效果 */
.panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* 输入框图标 */
.input-group-addon {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    color: #6c757d;
}

.input-group .form-control {
    border-radius: 0 6px 6px 0;
}

/* 成功状态样式 */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4caf50;
    stroke-miterlimit: 10;
    margin: 10px auto;
    box-shadow: inset 0px 0px 0px #4caf50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.success-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4caf50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4caf50;
    }
}