/* MEM课程表生成器 - 样式文件 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.info {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    gap: 20px;
}

/* 左侧课程选择区域 */
.course-selection {
    flex: 0.6;
    min-width: 250px;
    height: fit-content;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: visible;
    align-self: flex-start;
}

/* 导入课程面板样式 */
.import-panel {
    background-color: #f8f9fa;
    border-radius: 10px 10px 0 0;
    padding: 15px;
    flex-shrink: 0;
    border-bottom: 1px solid #e9ecef;
}

.import-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.import-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.import-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.toggle-btn {
    padding: 6px 12px;
    background: #f1f3f4;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    color: #5f6368;
    font-weight: 500;
    font-size: 0.9rem;
}

.toggle-btn.active {
    background: #e8f0fe;
    color: #1a73e8;
    border: 1px solid #dadce0;
}

.course-textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 10px;
    resize: vertical;
}

.import-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.import-btn {
    padding: 8px 16px;
    background: #e8f5e8;
    color: #137333;
    border: 1px solid #ceead6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.9rem;
}

.import-btn:hover {
    background: #d4edda;
    border-color: #c3e6cb;
}

.clear-btn {
    padding: 8px 16px;
    background: #fce8e6;
    color: #d93025;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.9rem;
}

.clear-btn:hover {
    background: #f8d7da;
    border-color: #f1b0b7;
}

.format-example {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 8px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    line-height: 1.4;
}

.hidden {
    display: none;
}

/* 搜索和筛选区域 */
.search-box {
    margin-bottom: 10px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 10px;
    color: #7f8c8d;
    font-size: 14px;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 6px 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    color: #495057;
    font-weight: 500;
}

.filter-btn.active {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.filter-btn.active:hover {
    background: #bbdefb;
    border-color: #90caf9;
}

/* 课程列表容器 */
.course-list-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 15px 15px 15px;
    min-height: 0; /* 重要：确保flex子元素可以收缩 */
    max-height: calc(80vh - 200px); /* 限制高度，确保不会让页面过长 */
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* 自定义滚动条样式 */
.course-list-container::-webkit-scrollbar {
    width: 8px;
}

.course-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.course-list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.course-list-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

#courseListDescription {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #6c757d;
}

/* 课程列表样式 */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
}

.course-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.course-item input {
    margin-right: 12px;
}

.course-info {
    flex: 1;
}

.course-name {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 15px;
}

.course-details {
    font-size: 12px;
    color: #666;
}

.course-detail-item {
    margin-bottom: 2px;
}

.course-item.selected {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border: 2px solid rgba(147, 51, 234, 0.6);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
    transform: translateY(-1px);
    position: relative;
    overflow: hidden;
}

.course-item.selected::after {
    content: "✨";
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 16px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

.course-item.conflict {
    background-color: #f8f9fa;
    opacity: 0.6;
    border-left: 4px solid #e0e0e0;
    position: relative;
}

.course-item.same-course {
    background-color: #f8f9fa;
    opacity: 0.6;
    border-left: 4px solid #e0e0e0;
    position: relative;
}

.course-item.time-conflict {
    background-color: #f8f9fa;
    opacity: 0.6;
    border-left: 4px solid #e0e0e0;
    position: relative;
}

.course-item.conflict::after {
    content: "冲突";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.course-item.same-course::after {
    content: "已选该课";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff9800;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.course-item.time-conflict::after {
    content: "时间冲突";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.course-item.recommended {
    background-color: #e8f5e8;
    border: 1px solid #ceead6;
    border-radius: 8px;
    position: relative;
}

.course-item.recommended::after {
    content: "搭配推荐";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #137333;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.course-item.selected .course-name {
    color: #7c3aed;
    font-weight: 700;
}

.course-item.selected .course-details {
    color: #8b5cf6;
    font-weight: 500;
}

.course-item.conflict .course-name,
.course-item.conflict .course-details,
.course-item.same-course .course-name,
.course-item.same-course .course-details,
.course-item.time-conflict .course-name,
.course-item.time-conflict .course-details {
    color: #999;
}

.no-course {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

/* 课程列表标题和切换按钮样式 */
.course-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.course-list-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-toggle-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    min-width: 80px;
}

.selected-toggle-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selected-toggle-btn.active {
    background: #e8f5e8;
    border-color: #28a745;
    color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.selected-toggle-btn.active:hover {
    background: #d4edda;
    border-color: #1e7e34;
    color: #1e7e34;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.selected-toggle-btn i {
    font-size: 16px;
}

.toggle-text {
    font-size: 13px;
    font-weight: 600;
}

/* 导出已选课程按钮样式 */
.export-selected-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.export-selected-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.export-selected-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

.export-selected-btn i {
    font-size: 16px;
}

/* 查询筛选区域固定样式 */
.search-filters-container {
    background: #f8f9fa;
    border-radius: 0;
    padding: 10px 15px;
    margin-bottom: 0;
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.search-filters-container.sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0;
    margin-bottom: 0;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e9ecef;
}

.search-filters-container.sticky .search-box {
    max-width: 100%;
}

.search-filters-container.sticky .filter-section {
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* 右侧课程表区域 */
.timetable-section {
    flex: 2;
    min-width: 0;
}

/* 操作区域 - 不固定 */
.timetable-header {
    width: 100%;
    padding: 15px 0;
    margin-bottom: 10px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn,
.export-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover,
.export-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.export-btn {
    background: #e8f5e8;
    color: #137333;
    border-color: #ceead6;
}

.export-btn:hover {
    background: #d4edda;
    border-color: #c3e6cb;
}

.help-btn {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-btn:hover {
    background: #bbdefb;
    border-color: #90caf9;
    transform: translateY(-1px);
}

.help-btn i {
    font-size: 16px;
}

.clear-btn {
    background: #fce8e6;
    color: #d93025;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
}

.clear-btn:hover {
    background: #f8d7da;
    border-color: #f1b0b7;
}

/* 可水平滚动的课程表 */
.timetable-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    white-space: nowrap;
}

th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

.time-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    min-width: 100px;
    position: sticky;
    left: 0;
    z-index: 5;
    border: 1px solid #90caf9;
}

.date-header {
    min-width: 130px;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.week-number {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #1976d2;
    color: white;
    border-radius: 8px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
}

.am-slot,
.pm-slot {
    height: 120px;
    vertical-align: top;
    position: relative;
    border: 1px solid #e9ecef;
}

.am-slot {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.pm-slot {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.evening-slot {
    height: 120px;
    vertical-align: top;
    position: relative;
    border: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.course {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 8px;
    margin: 4px 0;
    display: block;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.1);
    height: 100%;
    font-size: 13px;
    font-weight: 500;
}

.course:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.15);
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
}

.course-name-small {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1565c0;
}

.course-teacher {
    font-size: 11px;
    color: #1976d2;
    opacity: 0.8;
}

.current-week {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    border: 1px solid #ffc107 !important;
}

.no-class {
    color: #6c757d;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 12px;
}

.error-message {
    color: #e74c3c;
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
    padding: 10px;
}

.success-message {
    color: #27ae60;
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
    padding: 10px;
}

.conflict-warning {
    background: linear-gradient(135deg, #fce8e6 0%, #f8d7da 100%) !important;
    color: #d93025 !important;
    border: 1px solid #f5c6cb !important;
}

.special-course {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    color: #856404 !important;
    border: 1px solid #ffc107 !important;
}

.special-note {
    color: #856404 !important;
    font-weight: 600 !important;
    font-size: 11px !important;
}

/* 现代Toast样式 */
.modern-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.modern-toast.hide {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
}

.modern-toast.success {
    border-left: 4px solid #10b981;
}

.modern-toast.info {
    border-left: 4px solid #3b82f6;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    color: #374151;
}

/* 意见反馈区域样式 */
.feedback-section {
    margin-top: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

.feedback-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.feedback-container h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.feedback-container h3 i {
    color: #3498db;
    font-size: 1.2rem;
}

.feedback-container p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.feedback-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    border: none;
    cursor: pointer;
}

.feedback-link:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

.feedback-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.feedback-link i {
    font-size: 0.9rem;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

/* 警告弹窗特殊样式 */
.alert-modal {
    max-width: 450px;
}

.alert-modal .modal-header {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-bottom: 1px solid #ffc107;
}

.alert-modal .modal-header h3 {
    color: #856404;
}

.alert-modal .modal-header h3 i {
    color: #f57c00;
}

.alert-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.alert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    font-size: 20px;
}

.alert-message {
    flex: 1;
    color: #495057;
    line-height: 1.6;
    font-size: 15px;
    white-space: pre-line;
    word-wrap: break-word;
}

.alert-message br {
    margin-bottom: 8px;
}

.alert-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.alert-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 80px;
}

.alert-btn-primary {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.alert-btn-primary:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

.alert-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.3);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: #1976d2;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: #000;
    background-color: #f1f1f1;
}

.modal-body {
    padding: 25px;
}

.help-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f1f1;
}

.help-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.help-section h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-section h4 i {
    color: #1976d2;
    font-size: 1rem;
}

.help-section h5 {
    color: #495057;
    margin: 15px 0 10px 0;
    font-size: 1rem;
}

.help-section p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 10px;
}

.help-section ul, .help-section ol {
    margin: 10px 0;
    padding-left: 20px;
}

.help-section li {
    margin-bottom: 8px;
    color: #6c757d;
    line-height: 1.5;
}

.export-instructions {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #1976d2;
    margin-top: 10px;
}

.export-instructions ol {
    padding-left: 20px;
    margin-top: 10px;
}

.export-instructions li {
    margin-bottom: 8px;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .course-selection {
        max-height: none;
    }

    .timetable-container {
        overflow-x: scroll;
    }
}
