/* 测评问卷样式 */
.assessment-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* 进度条 */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #e0e0e0;
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    position: fixed;
    top: 15px;
    right: 20px;
    background: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    color: #667eea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
}

/* 介绍页 */
.assessment-intro {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.intro-content {
    max-width: 800px;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease;
}

.intro-icon {
    font-size: 80px;
    text-align: center;
    margin-bottom: 30px;
}

.intro-content h1 {
    font-size: 32px;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
}

.intro-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.intro-desc strong {
    color: #667eea;
    font-weight: 700;
}

.intro-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.info-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.info-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.info-text {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.intro-tips {
    background: #f0f4ff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.intro-tips h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.intro-tips ul {
    list-style: none;
    padding: 0;
}

.intro-tips li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
    line-height: 1.6;
}

.intro-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* 测评问题页 */
.assessment-questions {
    min-height: 100vh;
    padding: 80px 20px 40px;
}

.assessment-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.question-main {
    flex: 1;
    min-width: 0;
}

.question-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    animation: fadeInRight 0.5s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-number {
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.question-text {
    font-size: 24px;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.5;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-button {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    padding: 20px 25px;
    border-radius: 12px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.option-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s;
    z-index: 0;
}

.option-button span {
    position: relative;
    z-index: 1;
}

.option-button:hover {
    border-color: #667eea;
    transform: translateX(5px);
}

.option-button.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.option-button.selected::before {
    width: 100%;
}

/* 文本输入 */
.text-input,
.select-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

.text-input:focus,
.select-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 导航按钮 */
.navigation-buttons {
    max-width: 900px;
    margin: 30px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-warning {
    background: #ff9800;
    color: white;
    border: none;
}

.btn-warning:hover {
    background: #f57c00;
}

/* 右侧状态栏 */
.question-status-sidebar {
    width: 280px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar-header h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.progress-stats {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.progress-stats span {
    color: #667eea;
}

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

.status-item {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.status-item.unanswered {
    background: #ffebee;
    color: #c62828;
}

.status-item.answered {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-item.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.status-item:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sidebar-legend {
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-dot.answered {
    background: #e8f5e9;
    border: 2px solid #2e7d32;
}

.legend-dot.unanswered {
    background: #ffebee;
    border: 2px solid #c62828;
}

.legend-dot.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 继续测评提示 */
.continue-hint {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

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

.hint-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease;
}

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

.hint-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 20px;
}

.hint-content p {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.hint-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hint-buttons .btn {
    flex: 1;
    min-width: 150px;
}

/* 加载页面 */
.loading-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.loading-content {
    max-width: 600px;
    text-align: center;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

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

.loading-content h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.loading-steps {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.step-item {
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #999;
    transition: all 0.3s;
}

.step-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.02);
}

/* 未完成题目弹窗 */
.incomplete-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease;
}

.modal-icon {
    font-size: 60px;
    text-align: center;
    margin-bottom: 20px;
}

.modal-content h2 {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.modal-message {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
}

.unanswered-list {
    margin-bottom: 30px;
}

.unanswered-items {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.unanswered-items li {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.unanswered-items li:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.unanswered-items li.more-items {
    cursor: default;
    background: #fff3cd;
    color: #856404;
    justify-content: center;
}

.unanswered-items li.more-items:hover {
    transform: none;
    background: #fff3cd;
}

.question-num {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.question-preview {
    color: #666;
    font-size: 14px;
    flex: 1;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-buttons .btn {
    flex: 1;
    max-width: 200px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .intro-content {
        padding: 30px 25px;
    }

    .intro-content h1 {
        font-size: 24px;
    }

    .intro-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .question-card {
        padding: 30px 25px;
    }

    .question-text {
        font-size: 20px;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    .navigation-buttons .btn {
        width: 100%;
    }

    .hint-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .hint-buttons {
        flex-direction: column;
    }

    .hint-buttons .btn {
        width: 100%;
    }

    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons .btn {
        max-width: 100%;
        width: 100%;
    }

    /* 移动端隐藏状态栏 */
    .assessment-layout {
        flex-direction: column;
    }

    .question-status-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 20px;
    }

    .status-grid {
        grid-template-columns: repeat(9, 1fr);
    }
}

@media (max-width: 480px) {
    .intro-content {
        padding: 25px 20px;
    }

    .intro-icon {
        font-size: 60px;
    }

    .intro-content h1 {
        font-size: 22px;
    }

    .question-card {
        padding: 25px 20px;
    }

    .question-text {
        font-size: 18px;
    }

    .option-button {
        padding: 15px 20px;
        font-size: 15px;
    }
}
