.content{width:1440px;margin:20px auto;}
.tab-bar{height:48px;line-height:48px;text-align:center; box-shadow: 8px 8px 20px 0 rgba(55,99,170,.1); display:flex;align-items:center; background:#fff;padding:10px; padding-bottom: 0; border-radius:5px;}
.tab-bar .tab-bar-item{min-width:120px;height:48px;margin-right: 20px; line-height:48px;text-align:center;overflow:hidden;clear:both;position:relative;}
.tab-bar .tab-bar-item a{display:block;width:100%;height:100%;text-align:center;overflow:hidden;clear:both; font-size:16px;color:#333;font-weight:bold;}
.tab-bar .tab-bar-item a:hover{color:#0052d9;}
.tab-bar .tab-bar-item.active a{color:#0052d9;}
.tab-bar .tab-bar-item.active a:hover{color:#0052d9;}
.tab-bar .tab-bar-item.active::after{content:"";display:block;width:100%;height:3px;background:#0052d9;position:absolute;bottom:0;left:0;}
.tab-content-box-1{padding-top:20px;}
.tab-content-box-1-item-title{font-size:24px;color:#333;font-weight:bold;text-align:center; margin-bottom:30px;}
.tab-content-box-1-item-content{font-size:14px;color:#333;line-height:24px;text-indent:2em;padding:0 20px;box-sizing: border-box;}
.tab-content-box-1-item-content a{color:#0052d9;text-decoration:underline;}
.tab-content-box-1-item-content a:hover{color:#0052d9;}
.tab-content-box-1-item-content a:active{color:#0052d9;}
.tab-content-box-1-item-content a:visited{color:#0052d9;}
.tab-content-box-1-item-content a:link{color:#0052d9;}

/* 测评窗口样式 */
.assessment-action {
    margin-top: 100px;
    margin-bottom: 100px;
    display: flex;
    justify-content: center;
}

.assessment-window {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 82, 217, 0.1);
    border: 1px solid #e6f0ff;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.assessment-header {
    background: linear-gradient(135deg, #0052d9 0%, #0066ff 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.assessment-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.assessment-info {
    background: #f8f9fa;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.info-value {
    font-size: 16px;
    color: #666;
}

.status-progress {
    color: #f39c12 !important;
    font-weight: bold;
}

.assessment-buttons {
    padding: 25px 30px 30px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.btn-start-assessment {
    background: linear-gradient(135deg, #0052d9 0%, #0066ff 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 82, 217, 0.3);
}

.btn-start-assessment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 217, 0.4);
    background: linear-gradient(135deg, #0066ff 0%, #0052d9 100%);
}

.btn-start-assessment:active {
    transform: translateY(0);
}

/* 答题系统样式 */
.tab-content-box-2 {
    padding-top: 30px;
    display: none;
}

.tab-content-box-2.active {
    display: block;
}

.quiz-container {
    display: flex;
    gap: 20px;
    min-height: 560px;
}

/* 左侧分类导航 */
.quiz-sidebar {
    width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.category-list {
    padding: 0;
}

/* 主分类样式 */
.main-category-item {
    border-bottom: 1px solid #f0f0f0;
}

.main-category-header {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-category-header:hover {
    background: #e6f0ff;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.expand-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
}

/* 子分类列表 */
.sub-category-list {
    background: #fff;
    display: none;
}

.sub-category-item {
    padding: 12px 20px 12px 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}

.sub-category-item:hover {
    background: #f8f9fa;
}

.sub-category-item.active {
    background: #e6f0ff;
    color: #0052d9;
    border-left: 4px solid #0052d9;
}

.sub-category-item.active::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #0052d9;
    border-radius: 50%;
}

.sub-category-name {
    font-size: 13px;
    font-weight: 500;
}

.sub-question-count {
    font-size: 11px;
    color: #999;
    margin-left: 5px;
}

/* 中间答题区域 */
.quiz-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
}

.quiz-header {
    background: #fff9e6;
    padding: 15px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.auto-save-notice {
    display: flex;
    align-items: center;
    color: #d48806;
    font-size: 14px;
}

.notice-icon {
    margin-right: 8px;
    font-size: 16px;
}

.question-container {
    padding: 25px;
    max-height: 500px;
    overflow-y: auto;
}

.loading-state,
.error-state,
.no-questions {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.loading-state {
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDMuMzMzMzdWMTBNMjAgMzBWMzYuNjY2N00zNi42NjY3IDIwSDMwTTEwIDIwSDMuMzMzMzdNMzIuMDcxMSA3LjkyODk2TDI3Ljk5ODQgMTIuMDAxNk0xMi4wMDE2IDI3Ljk5ODRMOS45Mjg5NiAzMi4wNzExTTMyLjA3MTEgMzIuMDcxMUwyNy45OTg0IDI3Ljk5ODRNMTIuMDAxNiAxMi4wMDE2TDcuOTI4OTYgNy45Mjg5NiIgc3Ryb2tlPSIjMDA1MkQ5IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4K') no-repeat center top;
    background-size: 24px 24px;
    padding-top: 80px;
}

.error-state {
    color: #ff4d4f;
}

.no-questions {
    color: #999;
}

.question-item {
    margin-bottom: 40px;
}

.question-item:last-child {
    margin-bottom: 20px;
}

.question-item.highlight {
    background: #fff9e6;
    border: 2px solid #ffa940;
    border-radius: 8px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 169, 64, 0.3);
}

.question-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.question-type {
    color: #666;
    font-weight: normal;
    font-size: 14px;
}

.question-options {
    space-y: 15px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 4px;
    padding-left: 12px;
    padding-right: 12px;
}

.option-item:hover {
    background: #f8f9fa;
}

.option-item input[type="checkbox"],
.option-item input[type="radio"] {
    margin-right: 12px;
    margin-top: 4px;
    min-width: 16px;
    height: 16px;
    accent-color: #0052d9;
}

.option-text {
    flex: 1;
    line-height: 1.5;
    color: #333;
    font-size: 14px;
}

/* 自定义输入项样式 */
.custom-option {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin: 10px 0;
}

.custom-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-text {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.custom-option input[type="text"],
.custom-option input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
    box-sizing: border-box;
    min-width: 200px;
}

.custom-option input[type="text"]:focus,
.custom-option input[type="number"]:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 无选项状态 */
.no-options {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* 分类导航题目数量 */
.question-count {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

/* 当前分类标题样式 */
.current-category-header {
    margin: 0 0 20px 0;
    padding: 15px 0;
    border-bottom: 2px solid #0052d9;
    background: linear-gradient(90deg, #e6f0ff 0%, transparent 100%);
}

.current-category-header h3 {
    margin: 0;
    color: #0052d9;
    font-size: 18px;
    font-weight: bold;
}

.quiz-navigation {
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
}

.btn-prev,
.btn-submit {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-prev {
    background: #f0f0f0;
    color: #999;
}

.btn-prev:not([disabled]):hover {
    background: #e0e0e0;
    color: #666;
}

.btn-submit {
    background: #0052d9;
    color: white;
}

.btn-submit:hover {
    background: #0066ff;
}

/* 右侧统计区域 */
.quiz-stats {
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.stats-header h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.stats-summary {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.answered,
.unanswered {
    font-size: 14px;
    font-weight: 600;
}

.answered {
    color: #52c41a;
}

.unanswered {
    color: #ff4d4f;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.grid-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f0f0f0;
    color: #999;
}

.grid-item:hover {
    background: #e0e0e0;
    color: #666;
}

.grid-item.answered {
    background: #52c41a;
    color: white;
}

.grid-item.current {
    background: #0052d9;
    color: white;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.3);
}

.grid-item.disabled {
    background: #f5f5f5;
    color: #ddd;
    cursor: not-allowed;
}

.grid-item.disabled:hover {
    background: #f5f5f5;
    color: #ddd;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .content {
        width: 100%;
        margin: 20px;
        max-width: none;
    }

    .quiz-container {
        flex-direction: column;
    }

    .quiz-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .category-list {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
    }

    .category-item {
        flex-shrink: 0;
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
    }

    .quiz-stats {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .assessment-window {
        margin: 0 20px;
    }
    
    .assessment-header,
    .assessment-info,
    .assessment-buttons {
        padding: 20px;
    }
    
    .btn-start-assessment {
        padding: 12px 30px;
        font-size: 16px;
    }

    .quiz-container {
        gap: 15px;
    }

    .question-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .quiz-stats {
        padding: 20px;
    }
}

/* 企业认证弹窗样式 */
.enterprise-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0052d9 0%, #0066ff 100%);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
}

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

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

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.required {
    color: #ff4d4f;
    margin-left: 2px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.form-select {
    cursor: pointer;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: #f8f9fa;
}

.btn-cancel,
.btn-confirm {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.btn-cancel:hover {
    background: #e0e0e0;
    color: #333;
}

.btn-confirm {
    background: linear-gradient(135deg, #0052d9 0%, #0066ff 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 82, 217, 0.3);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 217, 0.4);
}

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

/* 企业搜索样式 */
.search-input-wrapper {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item.active {
    background-color: #e7f3ff;
}

.company-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.company-credit {
    font-size: 12px;
    color: #666;
}

.search-loading {
    padding: 12px 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.search-empty {
    padding: 12px 16px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.search-error {
    padding: 12px 16px;
    text-align: center;
    color: #ff4d4f;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 0 auto;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .btn-cancel,
    .btn-confirm {
        width: 100%;
    }
}