/* css/style.css */

/* 基础样式 */
.required-label::after {
    content: " *";
    color: #dc3545;
}

/* 修复加载图标 */
#loadingSpinner {
    width: 1rem !important;
    height: 1rem !important;
    border-width: 0.15em !important;
    margin-left: 0.5rem;
}

/* 分数段图表容器 */
.score-chart-container {
    position: relative;
    height: 350px;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
}

.score-chart-container:active {
    cursor: grabbing;
}

.score-chart-wrapper {
    min-width: 200px;
    position: relative;
    height: 100%;
}

/* 表格样式 */
.fixed-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fixed-column {
    position: sticky;
    left: 0;
    background: white;
    z-index: 5;
}

.selected-row {
    background-color: #e7f1ff !important;
}

.selected-row .fixed-column {
    background-color: #e7f1ff;
}

/* 拖动句柄 */
.drag-handle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-size: 12px;
    color: #6c757d;
}

.drag-handle:hover {
    background: #e9ecef;
}

/* 加载状态 */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

#loadingText {
    margin-top: 1rem;
    color: #6c757d;
}

/* 错误提示 */
#errorAlert {
    position: fixed;
    top: 150px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    max-width: 400px;
}

/* 专业名称缩进样式 */
.indent-text {
    display: inline-block;
    padding-left: 2em; /* 2个汉字宽度 */
    font-weight: 500;
}
/* 专业组名称样式 - 加粗 */
.group-name {
    font-weight: 700;
    color: #0a58ca; /* 可选：给专业组名称也加个颜色 */
}

/* 专业名称样式 */
.major-name {
    font-weight: normal;
    color: #333;
}
/* 新手指南样式 */
.guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.guide-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.guide-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 18px;
    color: #666;
}

.guide-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
    transform: rotate(90deg);
}

.guide-step {
    padding: 40px;
}

.guide-step-content {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.guide-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.guide-step-text {
    flex: 1;
}

.guide-step-text h4 {
    color: #0d6efd;
    margin-bottom: 15px;
    font-weight: 600;
}

.guide-step-text p {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 0;
}

.guide-step-text strong {
    color: #0d6efd;
    font-weight: 600;
}

.guide-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.guide-nav .btn {
    padding: 10px 24px;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.guide-nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.guide-prev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#guideBtn {
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

#guideBtn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .guide-step {
        padding: 20px;
    }
    
    .guide-step-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .guide-image {
        max-width: 100%;
    }
    
    .guide-step-text h4 {
        font-size: 18px;
    }
    
    .guide-step-text p {
        font-size: 14px;
    }
    
    .guide-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .guide-nav .btn {
        width: 100%;
    }
}