/* 认证中心样式 */
:root {
    --primary-color: #00823C;
    --primary-light: #e0f2e9;
    --primary-dark: #006e33;
    
    --blue-color: #1976D2;
    --blue-light: #E3F2FD;
    
    --purple-color: #7B1FA2;
    --purple-light: #F3E5F5;
    
    --orange-color: #FF7043;
    --orange-light: #FBE9E7;
    
    --green-color: #43A047;
    --green-light: #E8F5E9;
    
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #F44336;
}

/* 认证中心容器 */
.certification-container {
    padding: 15px;
}

/* 认证类型选择区域 */
.cert-type-section {
    margin-bottom: 30px;
}

.cert-type-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* 隐藏原始单选按钮 */
.cert-type-option {
    flex: 1;
    min-width: 180px;
    position: relative;
    cursor: pointer;
}

.cert-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 卡片样式 */
.cert-type-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #EAEDF2;
}

/* 卡片颜色 */
.cert-type-card[data-type="enterprise"] {
    background: linear-gradient(135deg, #F5F9FF 0%, #E6F0FB 100%);
    border: 1px solid #E1EAF5;
}

.cert-type-card[data-type="dealer"] {
    background: linear-gradient(135deg, #F8F5FC 0%, #F0E8F7 100%);
    border: 1px solid #E8E0F0;
}

.cert-type-card[data-type="agent"] {
    background: linear-gradient(135deg, #FFF8F5 0%, #FAEEE9 100%);
    border: 1px solid #F5E8E2;
}

/* 卡片图标 */
.cert-type-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.cert-type-card[data-type="enterprise"] .cert-type-icon {
    color: #3E7BFA;
    box-shadow: 0 3px 6px rgba(62, 123, 250, 0.15);
}

.cert-type-card[data-type="dealer"] .cert-type-icon {
    color: #8E5ED4;
    box-shadow: 0 3px 6px rgba(142, 94, 212, 0.15);
}

.cert-type-card[data-type="agent"] .cert-type-icon {
    color: #F97E50;
    box-shadow: 0 3px 6px rgba(249, 126, 80, 0.15);
}

.cert-type-icon i {
    font-size: 32px;
}

/* 卡片名称 */
.cert-type-name {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

/* 选中状态标记 */
.cert-type-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.cert-type-check i {
    font-size: 14px;
}

/* 选中状态样式 */
.cert-type-option input[type="radio"]:checked + .cert-type-card {
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 130, 60, 0.1);
    transform: translateY(-3px);
}

.cert-type-option input[type="radio"]:checked + .cert-type-card .cert-type-check {
    opacity: 1;
    transform: scale(1);
}

.cert-type-option input[type="radio"]:checked + .cert-type-card .cert-type-icon {
    transform: scale(1.05);
}

/* 悬停效果 */
.cert-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cert-type-option input[type="radio"]:focus + .cert-type-card {
    box-shadow: 0 0 0 2px rgba(0, 130, 60, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 认证表单区域 */
.cert-section {
    background-color: white;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.selected-type {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    margin-left: 8px;
}

/* 表单样式 */
.cert-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: #555;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}
.form-group.clear-border input[type="text"],
.form-group.clear-border input[type="email"],
.form-group.clear-border input[type="tel"] {
    width: 100%;
    padding: 0;
    border: unset;
}

.form-group input:hover {
    border-color: #bbb;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 130, 60, 0.1);
    outline: none;
}

/* 单选按钮样式 */
.radio-group {
    display: flex;
    gap: 30px;
}

.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-mark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: all 0.2s;
}

.radio-container:hover input ~ .radio-mark {
    border-color: #ccc;
}

.radio-container input:checked ~ .radio-mark {
    border-color: var(--primary-color);
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
}

.radio-container input:checked ~ .radio-mark:after {
    display: block;
}

.radio-text {
    font-size: 16px;
    color: #333;
}

/* 带按钮的输入框 */
.input-with-button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-with-button input {
    flex: 1;
}

.btn-ocr {
    background-color: var(--blue-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.btn-ocr i {
    margin-right: 5px;
}

.btn-ocr:hover {
    background-color: #1565C0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.2);
}

/* 文件上传区域 */
.file-upload-container {
    width: 100%;
}

.file-upload-box {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.file-upload-box:hover {
    border-color: var(--blue-color);
    background-color: #f5f5f5;
}

.file-upload-box i {
    font-size: 36px;
    color: #999;
    margin-bottom: 10px;
}

.file-upload-box p {
    font-size: 16px;
    color: #555;
    margin-bottom: 5px;
}

.file-format {
    font-size: 14px;
    color: #999;
}

/* 文件预览区域 */
.file-preview {
    margin-top: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.preview-filename {
    font-size: 14px;
    color: #555;
}

.btn-remove-file {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: all 0.2s;
}

.btn-remove-file:hover {
    transform: scale(1.1);
}

.preview-image {
    padding: 15px;
    text-align: center;
}

.preview-image img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

/* 按钮样式 */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.btn-primary, 
.btn-secondary {
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 130, 60, 0.2);
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background-color: #eee;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* OCR模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.btn-close:hover {
    color: #666;
}

.modal-body {
    padding: 20px;
}

.ocr-upload-container {
    margin-bottom: 20px;
}

.ocr-upload-box {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.ocr-upload-box:hover {
    border-color: var(--blue-color);
    background-color: #f5f5f5;
}

.ocr-upload-box i {
    font-size: 36px;
    color: #999;
    margin-bottom: 10px;
}

.ocr-upload-box p {
    font-size: 16px;
    color: #555;
    margin-bottom: 5px;
}

.ocr-upload-box span {
    font-size: 14px;
    color: #999;
}

.ocr-preview {
    margin-top: 15px;
    text-align: center;
}

.ocr-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.ocr-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .cert-type-options {
        gap: 15px;
    }
    
    .cert-type-card {
        padding: 20px;
        min-width: 150px;
    }
    
    .cert-type-icon {
        font-size: 30px;
    }
    
    .cert-type-name {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .input-with-button {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-ocr {
        width: 100%;
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .btn-primary, 
    .btn-secondary {
        width: 100%;
    }
} 

/* 代理地区选择器样式 */
.region-selector {
    margin-top: 8px;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.region-option {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    background: white;
    font-size: 14px;
    font-weight: 500;
}

.region-option:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 130, 60, 0.15);
}

.region-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 130, 60, 0.3);
}

.region-option.disabled {
    border-color: #ccc;
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    position: relative;
}

.region-option.disabled::after {
    content: "已代理";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.region-option.disabled:hover {
    border-color: #ccc;
    background: #f5f5f5;
    transform: none;
    box-shadow: none;
}

.region-tip {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    color: #856404;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.region-tip i {
    color: #f39c12;
    font-size: 16px;
}

.required {
    color: #ff6b6b;
    font-weight: 600;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .region-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .region-option {
        padding: 10px 6px;
        font-size: 13px;
    }
    
    .region-option.disabled::after {
        font-size: 9px;
        padding: 1px 4px;
        top: -6px;
        right: -6px;
    }
}