/**
 * 学员信息模块样式
 * Student Information Styles
 * Version: 2.0
 */

/* ==================== 完善信息提示框 ==================== */
.student-info-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg, 12px);
    padding: var(--spacing-xl, 30px);
    margin-bottom: var(--spacing-xl, 30px);
    box-shadow: var(--shadow-lg, 0 8px 16px rgba(0, 0, 0, 0.16));
    animation: slideDown 0.5s ease-out;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg, 24px);
    flex-wrap: wrap;
}

.notice-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-round, 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-white, #ffffff);
    backdrop-filter: blur(10px);
}

.notice-text {
    flex: 1;
    min-width: 300px;
}

.notice-text h3 {
    margin: 0 0 var(--spacing-sm, 8px) 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white, #ffffff);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notice-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.notice-text p strong {
    color: var(--text-white, #ffffff);
    font-weight: 700;
}

.notice-text ul {
    margin: var(--spacing-sm, 8px) 0 0 20px;
    padding: 0;
    list-style: none;
}

.notice-text ul li {
    margin: 4px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
}

.notice-text ul li::before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    margin-right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

.notice-action {
    flex-shrink: 0;
}

.notice-action .but {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md, 8px);
    box-shadow: var(--shadow-md, 0 4px 8px rgba(0, 0, 0, 0.12));
    transition: all var(--transition-base, 0.25s);
    white-space: nowrap;
}

.notice-action .but:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg, 0 8px 16px rgba(0, 0, 0, 0.16));
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 学员信息模态框 ==================== */
.student-info-form {
    width: 100%;
    max-width: 100%;
}

.student-info-form .form-section {
    width: 100%;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-light, #e9ecef);
}

.student-info-form .form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.student-info-form .section-title {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
}

.student-info-form .section-title i {
    font-size: 18px;
    color: #667eea;
}

.student-info-form .form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 24px;
}

.student-info-form .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.student-info-form .form-group {
    margin-bottom: 0;
}

.student-info-form .form-group-full {
    grid-column: 1 / -1;
}

.student-info-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.4;
}

.student-info-form .required {
    color: #e74c3c;
    font-weight: 700;
    margin-left: 2px;
}

.student-info-form .line-form-input {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    color: #1a1a1a !important;
    background: #ffffff !important;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: all 0.25s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.student-info-form .line-form-input::placeholder {
    color: #999999 !important;
    opacity: 1;
}

.student-info-form .line-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #ffffff !important;
    color: #1a1a1a !important;
}

.student-info-form .line-form-input:disabled,
.student-info-form .line-form-input[readonly] {
    background: #f5f5f5 !important;
    color: #666666 !important;
    cursor: not-allowed;
    border-color: #d0d0d0;
}

/* Select 下拉选择器特殊样式 */
.student-info-form select.line-form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 35px;
    cursor: pointer;
}

.student-info-form select.line-form-input option {
    color: #1a1a1a;
    background: #ffffff;
    padding: 8px 12px;
}

.student-info-form select.line-form-input:disabled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    cursor: not-allowed;
}

.student-info-form .form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666666;
    line-height: 1.5;
}

.student-info-form .form-help i {
    color: #667eea;
    margin-right: 4px;
}

.student-info-form .form-help-inline {
    font-size: 12px;
    color: #666666;
    font-weight: normal;
}

/* 技能复选框 */
.student-info-form .skills-checkbox {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 16px;
}

.student-info-form .checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s;
}

.student-info-form .checkbox-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.student-info-form .checkbox-item.checked {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.15);
}

.student-info-form .checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.student-info-form .checkbox-item input[type="checkbox"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.student-info-form .checkbox-item span {
    color: #333333;
    font-size: 14px;
    line-height: 1.4;
    user-select: none;
}

/* 模态框样式增强 */
#studentInfoModal .modal-dialog,
#userCenterStudentModal .modal-dialog {
    max-width: 1100px !important;
    width: 90% !important;
    margin: 30px auto !important;
}

#studentInfoModal .modal-content,
#userCenterStudentModal .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-lg, 12px);
    border: none;
    box-shadow: var(--shadow-lg, 0 8px 16px rgba(0, 0, 0, 0.16));
}

#studentInfoModal .modal-header,
#userCenterStudentModal .modal-header {
    width: 100%;
    background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: var(--text-white, #ffffff);
    border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
    padding: 20px 30px;
    border-bottom: none;
}

#studentInfoModal .modal-title,
#userCenterStudentModal .modal-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-white, #ffffff);
    display: flex;
    align-items: center;
    gap: 10px;
}

#studentInfoModal .modal-title i,
#userCenterStudentModal .modal-title i {
    font-size: 24px;
}

#studentInfoModal .close,
#userCenterStudentModal .close {
    color: var(--text-white, #ffffff);
    opacity: 0.9;
    text-shadow: none;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

#studentInfoModal .close:hover,
#userCenterStudentModal .close:hover {
    opacity: 1;
    color: var(--text-white, #ffffff);
}

#studentInfoModal .modal-body,
#userCenterStudentModal .modal-body {
    width: 100%;
    padding: 30px 40px;
    background: var(--bg-white, #ffffff);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    box-sizing: border-box;
}

#studentInfoModal .modal-footer,
#userCenterStudentModal .modal-footer {
    width: 100%;
    padding: 20px 40px;
    background: var(--bg-light, #f8f9fa);
    border-radius: 0 0 var(--radius-lg, 12px) var(--radius-lg, 12px);
    border-top: 1px solid var(--border-light, #dee2e6);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    box-sizing: border-box;
}

#studentInfoModal .modal-footer .but,
#userCenterStudentModal .modal-footer .but {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm, 4px);
    transition: all var(--transition-base, 0.25s);
    min-width: 100px;
}

#studentInfoModal .modal-footer .but:hover,
#userCenterStudentModal .modal-footer .but:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ==================== 期次选择器 ==================== */
.period-selector-group {
    position: relative;
}

.period-selector-group .form-help {
    display: flex;
    align-items: center;
    gap: 4px;
}

.period-selector-group .period-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-color, #667eea);
    color: var(--text-white, #ffffff);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
    #studentInfoModal .modal-dialog,
    #userCenterStudentModal .modal-dialog {
        max-width: 95%;
        width: 95%;
    }
    
    .student-info-form .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .student-info-form .skills-checkbox {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .student-info-notice {
        padding: var(--spacing-lg, 20px);
    }
    
    .notice-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md, 16px);
    }
    
    .notice-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }
    
    .notice-text {
        min-width: auto;
    }
    
    .notice-text h3 {
        font-size: 20px;
    }
    
    .notice-text p {
        font-size: 14px;
    }
    
    .notice-action .but {
        width: 100%;
    }
    
    .student-info-form .form-grid,
    .student-info-form .form-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .student-info-form .skills-checkbox {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #studentInfoModal .modal-dialog,
    #userCenterStudentModal .modal-dialog {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
    
    #studentInfoModal .modal-body,
    #userCenterStudentModal .modal-body {
        padding: 20px;
        max-height: calc(100vh - 150px);
    }
    
    #studentInfoModal .modal-footer,
    #userCenterStudentModal .modal-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .notice-text ul {
        margin-left: 15px;
    }
    
    .notice-text ul li {
        font-size: 13px;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .student-info-notice,
    #studentInfoModal,
    #userCenterStudentModal {
        display: none !important;
    }
}

