* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0078f5;
    --secondary-color: #f8f9fa;
    --border-color: #e1e5e9;
    --text-color: #333;
    --text-light: #666;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --priority-high: #dc3545;
    --priority-medium: #ffc107;
    --priority-low: #28a745;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --day-header-bg: linear-gradient(135deg, var(--secondary-color), #e9ecef);
    --day-header-hover-bg: linear-gradient(135deg, #e9ecef, #dee2e6);
    --day-header-today-bg: var(--day-header-bg);
}

[data-theme="dark"] {
    --primary-color: #4a9eff;
    --secondary-color: #1a1a1a;
    --border-color: #444;
    --text-color: #e1e5e9;
    --text-light: #aaa;
    --secondary-color-light: #2d2d2d;
    --shadow: 0 2px 4px rgba(255,255,255,0.1);
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --priority-high: #f44336;
    --priority-medium: #ff9800;
    --priority-low: #4caf50;
    --day-header-bg: linear-gradient(135deg, #333, #2a2a2a);
    --day-header-hover-bg: linear-gradient(135deg, #3a3a3a, #333);
    --day-header-today-bg: var(--day-header-bg);
}

/* 深色主题专用样式 */
[data-theme="dark"] .header {
    background: var(--secondary-color-light);
    color: var(--text-color);
}

[data-theme="dark"] .task-cell {
    background: #2a2a2a;
}

[data-theme="dark"] .task-cell:hover {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(74, 158, 255, 0.08));
}

[data-theme="dark"] .task-card {
    background: linear-gradient(135deg, #333, #2a2a2a);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .task-card:hover {
    background: linear-gradient(135deg, #3a3a3a, #333);
}

[data-theme="dark"] .modal-content {
    background: var(--secondary-color-light);
    color: var(--text-color);
}

[data-theme="dark"] .form-control {
    background: #333;
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-control:focus {
    border-color: var(--primary-color);
}

[data-theme="dark"] .properties-panel {
    background: var(--secondary-color-light);
    color: var(--text-color);
}



[data-theme="dark"] .time-label {
    background: linear-gradient(135deg, #333, #2a2a2a);
    color: var(--text-color);
}

[data-theme="dark"] .time-label:hover {
    background: linear-gradient(135deg, #3a3a3a, #333);
}

[data-theme="dark"] .drop-zone {
    border-color: var(--border-color);
    color: var(--text-light);
}

[data-theme="dark"] .drop-zone.dragover {
    border-color: var(--primary-color);
    background: rgba(74, 158, 255, 0.1);
}

[data-theme="dark"] .weekday-btn {
    background: #333;
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .weekday-btn.active {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .icon {
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(200deg);
}

[data-theme="dark"] .btn .icon,
[data-theme="dark"] .dropdown-item .icon {
    filter: none;
    opacity: 0.9;
}

[data-theme="green"] {
    --primary-color: #28a745;
    --secondary-color: #f0f8f0;
    --border-color: #c3e6c3;
    --text-color: #2d5a2d;
    --text-light: #5a7a5a;
    --day-header-bg: linear-gradient(135deg, #d4edda, #c3e6cb);
    --day-header-hover-bg: linear-gradient(135deg, #c3e6cb, #b8dacc);
    --day-header-today-bg: var(--day-header-bg);
}

[data-theme="green"] .weekday-btn {
    background: white;
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="green"] .weekday-btn.active {
    background: var(--primary-color);
    color: white;
}

/* 绿色主题图标颜色 */
[data-theme="green"] .icon {
    filter: invert(0.4) sepia(1) saturate(5) hue-rotate(100deg);
}

[data-theme="green"] .btn .icon,
[data-theme="green"] .dropdown-item .icon {
    filter: none;
    opacity: 0.9;
}

/* 暗色主题标题样式 */
[data-theme="dark"] .table-title {
    color: var(--primary-color);
}

[data-theme="dark"] .table-title:hover {
    background: rgba(74, 158, 255, 0.1);
}

[data-theme="dark"] .table-title-input {
    background: #333;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .table-title-container {
    background: var(--secondary-color-light);
    border-bottom-color: var(--border-color);
}

/* 绿色主题标题样式 */
[data-theme="green"] .table-title {
    color: var(--primary-color);
}

[data-theme="green"] .table-title:hover {
    background: rgba(40, 167, 69, 0.1);
}

[data-theme="green"] .table-title-input {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="green"] .table-title-container {
    background: var(--secondary-color);
    border-bottom-color: var(--border-color);
}

/* 隐藏周末列的简化样式 - 只控制显示隐藏 */
.day-header[data-day="6"].hidden,
.task-cell[data-day="6"].hidden {
    display: none;
}

.day-header[data-day="7"].hidden,
.task-cell[data-day="7"].hidden {
    display: none;
}

/* 手机端隐藏周末时间标签 */
/* 超小屏幕优化 */
@media (max-width: 360px) {
    .weekly-grid {
        grid-template-columns: 35px 1fr 1fr 1fr !important;
        font-size: 8px !important;
    }
    
    .time-label {
        font-size: 8px !important;
        padding: 1px !important;
    }
    
    .task-cell {
        font-size: 8px !important;
        min-height: 50px !important;
        padding: 1px !important;
    }
}

@media (max-width: 480px) {
    /* 手机端隐藏周末元素 - 统一使用hidden类 */
    .time-label[data-mobile-day="6"].hidden,
    .time-label[data-mobile-day="7"].hidden,
    .task-cell[data-day="6"].hidden,
    .task-cell[data-day="7"].hidden {
        display: none !important;
    }
    
    /* 移动端隐藏类 - 完全移除元素，不占用空间 */
    .mobile-hidden {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    
    /* 隐藏晚上时段的相关元素 - 增强兼容性 */
    .day-header[data-day="3"].mobile-hidden,
    .day-header[data-day="3"][style*="display: none"],
    .task-cell[data-slot="EVENING"].mobile-hidden,
    .task-cell[data-slot="EVENING"][style*="display: none"] {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    
    /* 强制网格布局重新计算 - 浏览器兼容性增强 */
    .weekly-grid.evening-hidden {
        -ms-grid-columns: 45px 1fr 1fr !important;
        grid-template-columns: 45px 1fr 1fr !important;
    }
    
    .weekly-grid.evening-visible {
        -ms-grid-columns: 45px 1fr 1fr 1fr !important;
        grid-template-columns: 45px 1fr 1fr 1fr !important;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 100vh;
}

.header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 5px;
}

.title-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weekly-title {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px 10px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background: transparent;
    font-family: inherit;
    text-align: left;
}

.weekly-title:hover {
    background: rgba(0, 120, 245, 0.05);
    border-color: var(--primary-color);
}

.weekly-title:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 120, 245, 0.1);
}

.weekly-title.editing {
    border-color: var(--primary-color);
    background: rgba(0, 120, 245, 0.1);
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.date-display {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
}

.week-info {
    color: var(--text-light);
}

.week-navigation {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 15px;
}

.week-nav-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 0.9em;
    min-width: auto;
    transition: all 0.2s ease;
}

.week-nav-btn .nav-arrow {
    font-size: 1.2em;
    font-weight: bold;
}

.week-nav-btn .nav-text {
    font-size: 0.85em;
}

.week-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

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

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 表格标题样式 */
.table-title-container {
    padding: 10px 20px 5px;
    text-align: center;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.table-title {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 200px;
}

.table-title:hover {
    background: rgba(0, 120, 245, 0.1);
    transform: translateY(-1px);
}

.table-title-input {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--primary-color);
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 8px 16px;
    text-align: center;
    min-width: 200px;
    outline: none;
}

.main-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.weekly-grid {
    display: grid;
    grid-template-columns: 150px repeat(7, 1fr);
    grid-template-rows: auto 1fr 1fr 1fr;
    min-height: 600px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: visible;
    box-shadow: var(--shadow);
}

.time-slot-header {
    background: var(--day-header-bg);
    color: var(--text-color);
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1;
    grid-row: 1;
}

.day-header {
    background: var(--day-header-bg);
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    font-size: 15px;
    color: var(--text-color);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: 1;
}

/* 移除固定定位，使用自然流布局 */

.day-header:hover {
    background: var(--day-header-hover-bg);
    transform: translateY(-1px);
}

.day-header.today {
    background: var(--day-header-today-bg);
    color: var(--text-color);
    font-weight: 700;
}

.time-label {
    background: linear-gradient(135deg, #f1f3f4, #e8eaed);
    padding: 20px 15px;
    text-align: center;
    font-weight: 600;
    border-right: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    writing-mode: vertical-lr;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--text-color);
    letter-spacing: 1px;
    min-height: 160px;
    transition: all 0.3s ease;
    grid-column: 1;
}

/* 为时间标签设置明确的网格行位置 */
.time-label:nth-of-type(1) { grid-row: 2; }
.time-label:nth-of-type(2) { grid-row: 3; }
.time-label:nth-of-type(3) { grid-row: 4; }

.time-label:hover {
    background: linear-gradient(135deg, #e8eaed, #dadce0);
    transform: translateX(-2px);
}

.task-cell {
    border-right: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    padding: 15px;
    min-height: 160px;
    height: 100%;
    position: relative;
    overflow-y: auto;
    background: #fafbfc;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* 移除所有固定定位，使用自然流布局和JavaScript动态调整 */

.task-cell:hover {
    background: linear-gradient(135deg, rgba(0, 120, 245, 0.08), rgba(0, 120, 245, 0.04));
    box-shadow: inset 0 0 10px rgba(0, 120, 245, 0.1);
    transform: scale(1.02);
}

/* 自定义滚动条样式 */
.task-cell::-webkit-scrollbar {
    width: 6px;
}

.task-cell::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.task-cell::-webkit-scrollbar-thumb {
    background: rgba(0, 120, 245, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.task-cell::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 120, 245, 0.5);
}

.task-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: move;
    transition: all 0.3s ease;
    position: relative;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.task-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #ffffff, #f0f2f5);
}

.task-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.task-cell.drag-over {
    background-color: rgba(0, 123, 255, 0.1) !important;
    border: 2px dashed var(--primary-color) !important;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.task-card.done {
    opacity: 0.6;
    text-decoration: line-through;
}

.task-card.high-priority {
    border-left: 3px solid var(--priority-high);
}

.task-card.medium-priority {
    border-left: 3px solid var(--priority-medium);
}

.task-card.low-priority {
    border-left: 3px solid var(--priority-low);
}

.task-checkbox {
    margin-right: 5px;
    cursor: pointer;
}

.task-title {
    font-weight: bold;
    margin-bottom: 2px;
    word-break: break-word;
}

.task-time {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.task-note {
    font-size: 11px;
    color: var(--text-light);
    word-break: break-word;
}

.task-actions {
    position: absolute;
    top: 2px;
    right: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}

.task-card:hover .task-actions {
    opacity: 1;
}

.delete-btn {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.delete-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.add-task-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 120, 245, 0.3);
}

.task-cell:hover .add-task-btn {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 120, 245, 0.4);
}

.properties-panel {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.properties-panel h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

/* 设置弹窗中的表单组优化 */
.modal-content .form-group {
    margin-bottom: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

/* 统一时间输入框和备注文本框的字体样式 */
input[type="time"].form-control,
textarea.form-control {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
}

/* 确保备注文本框的字体一致性 */
#taskNote {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.priority-selector {
    display: flex;
    gap: 5px;
}

.priority-btn {
    flex: 1;
    padding: 5px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-size: 12px;
    border-radius: var(--border-radius);
}

.priority-btn.active {
    background: var(--primary-color);
    color: white;
}

.repeat-selector {
    display: flex;
    gap: 5px;
}

.repeat-btn {
    flex: 1;
    padding: 5px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-size: 12px;
    border-radius: var(--border-radius);
}

.repeat-btn.active {
    background: var(--primary-color);
    color: white;
}

.weekday-selector {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.weekday-btn {
    flex: 1;
    min-width: 50px;
    padding: 5px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-size: 12px;
    border-radius: var(--border-radius);
}

.weekday-btn.active {
    background: var(--primary-color);
    color: white;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

/* CSV导入弹窗特殊样式 */
#importModal .modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

#importModal .modal-body {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    padding: 30px;
}

#importModal #importPreview {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
}

/* 上传区域样式 */
.import-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.import-upload-area:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
}

.import-upload-area .upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: inline-block;
    width: 48px;
    height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M13,13V7H11V13H8L12,17L16,13H13Z' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.import-upload-area h4 {
    margin: 0 0 8px 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.import-upload-area p {
    margin: 0 0 15px 0;
    color: var(--text-light);
    font-size: 14px;
}

.import-upload-area input[type="file"] {
    display: none;
}

#importModal .modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

#importModal .modal-header h3 span {
    font-size: 24px;
}

/* 模态框底部按钮样式 */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    background: var(--background-color);
}

.modal-footer .btn {
    margin: 0;
    min-width: 100px;
    padding: 10px 20px;
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-footer {
        padding: 15px;
        gap: 10px;
    }
    
    .modal-footer .btn {
        flex: 0 0 auto;
        min-width: 80px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* 导入说明样式 */
.import-instructions {
    margin-top: 20px;
    padding: 20px;
    background: #fff8e1;
    border-left: 4px solid #ffa726;
    border-radius: 8px;
}

.import-instructions h5 {
    margin: 0 0 12px 0;
    color: #e65100;
    font-size: 16px;
}

.import-instructions p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.import-instructions p strong {
    color: var(--text-color);
}

.encoding-tip {
    margin: 12px 0;
    padding: 12px;
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
    border-radius: 4px;
}

.encoding-tip h6 {
    margin: 0 0 6px 0;
    color: #0d47a1;
    font-size: 14px;
}

.encoding-tip p {
    margin: 0;
    font-size: 13px;
    color: #1565c0;
}

.download-template {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.download-template:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 通用图标样式 */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(200deg);
}

.btn .icon,
.dropdown-item .icon {
    margin-right: 0.3em;
    vertical-align: -0.125em;
}

.icon-folder {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M10 4H4c-1.11 0-2 .89-2 2v12c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2h-8l-2-2z'/%3E%3C/svg%3E");
}

.icon-upload {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M13,13V7H11V13H8L12,17L16,13H13Z' /%3E%3C/svg%3E");
}

.icon-settings {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11.03L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.22,8.95 2.27,9.22 2.46,9.37L4.57,11.03C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.22,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.68 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z' /%3E%3C/svg%3E");
}

.icon-download {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M14,14V7H10V14H8L12,18L16,14H14Z' /%3E%3C/svg%3E");
}

.icon-check {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z'/%3E%3C/svg%3E");
}

.icon-warning {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z'/%3E%3C/svg%3E");
}

.icon-close {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z'/%3E%3C/svg%3E");
}

.icon-chart {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M22,21H2V3H4V19H6V10H10V19H12V6H16V19H18V14H22V21Z'/%3E%3C/svg%3E");
}

.icon-import {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M12,11L8,15H11V19H13V15H16L12,11Z'/%3E%3C/svg%3E");
}

.icon-export {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M12,17L16,13H13V9H11V13H8L12,17Z'/%3E%3C/svg%3E");
}

.icon-database {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12,3C7.58,3 4,4.79 4,7C4,9.21 7.58,11 12,11C16.42,11 20,9.21 20,7C20,4.79 16.42,3 12,3M4,9V12C4,14.21 7.58,16 12,16C16.42,16 20,14.21 20,12V9C20,11.21 16.42,13 12,13C7.58,13 4,11.21 4,9M4,14V17C4,19.21 7.58,21 12,21C16.42,21 20,19.21 20,17V14C20,16.21 16.42,18 12,18C7.58,18 4,16.21 4,14Z'/%3E%3C/svg%3E");
}

/* CSV导入模态框移动端适配 */
@media (max-width: 768px) {
    #importModal .modal-content {
        max-width: 95%;
        max-height: 95vh;
        margin: 10px auto;
        width: 95%;
    }
    
    #importModal .modal-body {
        max-height: calc(95vh - 120px);
        padding: 20px 15px;
    }
    
    .import-upload-area {
        padding: 30px 15px !important;
        margin-bottom: 15px !important;
    }
    
    .import-upload-area .upload-icon {
        font-size: 36px !important;
        width: 36px;
        height: 36px;
    }
    
    .import-upload-area h4 {
        font-size: 16px !important;
    }
    
    .import-upload-area p {
        font-size: 13px !important;
    }
    
    .import-instructions {
        padding: 15px;
        margin-top: 15px;
    }
    
    .import-instructions h5 {
        font-size: 15px;
    }
    
    .import-instructions p {
        font-size: 13px;
    }
}

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

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.theme-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.theme-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
}

.theme-btn.active {
    border-color: var(--primary-color);
}

.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 15px;
}

.drop-zone.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 120, 245, 0.1);
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .weekly-grid {
        grid-template-columns: 80px repeat(7, 1fr);
        grid-template-rows: auto 1fr 1fr 1fr;
        font-size: 12px;
        min-height: 500px;
    }
    
    /* 移动端网格布局将由JavaScript动态调整 */

    .time-label {
        padding: 15px 8px;
        font-size: 14px;
        min-height: 120px;
    }

    .task-cell {
        padding: 8px;
        min-height: 120px;
        height: 100%;
    }

    .day-header, .time-slot-header {
        padding: 12px 6px;
        font-size: 12px;
    }

    .task-card {
        padding: 8px;
        font-size: 12px;
        margin-bottom: 6px;
    }

    .add-task-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
        bottom: 6px;
        right: 6px;
    }

    .header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .controls {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

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

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        gap: 10px;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        text-align: center;
    }

    .weekly-title {
        font-size: 1.5em;
        text-align: center;
    }

    .controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .weekly-grid {
        grid-template-columns: 80px repeat(7, 1fr);
        grid-template-rows: auto 1fr 1fr 1fr;
        height: calc(100vh - 250px);
        min-height: 500px;
        font-size: 12px;
    }
    
    /* 小屏幕网格布局将由JavaScript动态调整 */

    .time-slot-header,
    .day-header {
        padding: 8px 4px;
        font-size: 11px;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .time-label {
        padding: 15px 4px;
        font-size: 11px;
        min-height: 120px;
    }

    .task-cell {
        padding: 6px;
        min-height: 120px;
        height: 100%;
    }

    .task-card {
        padding: 6px;
        font-size: 11px;
        margin-bottom: 4px;
    }

    .task-title {
        font-size: 11px;
    }

    .task-time {
        font-size: 9px;
    }

    .add-task-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
        bottom: 4px;
        right: 4px;
    }
}

@media (max-width: 480px) {
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .container {
        padding: 5px;
        gap: 5px;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .header {
        padding: 8px;
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .header-info {
        justify-content: center;
        gap: 10px;
        margin-bottom: 8px;
    }

    .week-navigation {
        justify-content: center;
        margin: 8px 0;
        gap: 6px;
    }

    .week-nav-btn {
        padding: 4px 8px;
        font-size: 0.8em;
    }

    .week-nav-btn .nav-text {
        font-size: 0.75em;
    }

    .week-nav-btn .nav-arrow {
        font-size: 1em;
    }

    .controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .weekly-title {
        font-size: 1.2em;
        text-align: center;
    }

    /* 手机端专用网格布局：横向为时间段，纵向为星期 */
    .weekly-grid {
        display: grid !important;
        /* 网格模板由JavaScript动态设置 */
        height: auto !important;
        min-height: 400px !important;
        max-height: none !important;
        font-size: 10px !important;
        gap: 1px !important;
        border: 1px solid var(--border-color) !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        grid-auto-rows: minmax(auto, max-content) !important;
    }

    /* 手机端标题行重新布局 - 顶部显示时间段 */
    .time-slot-header {
        grid-column: 1 !important;
        grid-row: 1 !important;
        padding: 6px 2px !important;
        font-size: 10px !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        min-height: auto !important;
        height: 35px !important;
    }

    /* 手机端时间段标题 - 上午、下午、晚上 */
    .day-header[data-day="1"] {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding: 6px 2px !important;
        font-size: 10px !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        min-height: auto !important;
        height: 35px !important;
    }

    .day-header[data-day="2"] {
        grid-column: 3 !important;
        grid-row: 1 !important;
        padding: 6px 2px !important;
        font-size: 10px !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        min-height: auto !important;
        height: 35px !important;
    }

    .day-header[data-day="3"] {
        grid-column: 4 !important;
        grid-row: 1 !important;
        padding: 6px 2px !important;
        font-size: 10px !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        min-height: auto !important;
        height: 35px !important;
    }

    /* 隐藏多余的星期标题 */
    .day-header[data-day="4"],
    .day-header[data-day="5"],
    .day-header[data-day="6"],
    .day-header[data-day="7"] {
        display: none;
    }

    /* 手机端时间标签变为星期标签 */
    .time-label {
        grid-column: 1 !important;
        padding: 2px 1px !important;
        font-size: 9px !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        min-height: auto !important;
        height: auto !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        word-break: keep-all !important;
        white-space: nowrap !important;
    }

    /* 时间标签的grid-row由JavaScript动态设置 */
    .time-label {
        grid-column: 1 !important;
        /* grid-row由JavaScript动态控制 */
    }

    /* 手机端任务单元格重新定位 */
    .task-cell {
        padding: 2px !important;
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        font-size: 9px !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        align-content: flex-start !important;
    }

    /* 手机端任务单元格布局由JavaScript动态设置 */
    .task-cell {
        /* 移除固定的grid-row设置，让JavaScript动态控制 */
    }

    .task-card {
        padding: 4px;
        font-size: 10px;
        margin-bottom: 2px;
        height: auto !important;
        min-height: auto !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.3;
    }

    .task-title {
        font-size: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.2;
    }

    .task-time {
        font-size: 9px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .task-note {
        font-size: 9px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.2;
    }

    .btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .modal-content {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        width: calc(100% - 40px) !important;
        max-width: 90vw !important;
        max-height: calc(100vh - 40px) !important;
        overflow-y: auto;
    }

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

    .form-control {
        padding: 8px;
        font-size: 14px;
    }
}

/* 桌面端和移动端文本控制 */
.mobile-text {
    display: none;
}

.desktop-text {
    display: inline;
}

.mobile-only {
    display: none;
}

@media (max-width: 480px) {
    .mobile-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .desktop-text {
        display: none;
    }
    
    .mobile-only {
        display: flex;
    }
    
    /* 手机端时间范围样式 */
    .mobile-time-range {
        font-size: 8px;
        color: #666;
        margin-top: 2px;
        line-height: 1;
        font-weight: normal;
    }
    
    /* 移动端时间标签重新定位 - 现在按照新的布局逻辑 */
    .time-label:nth-of-type(1) { 
        grid-row: 2 !important;
        grid-column: 1 !important;
    }
    .time-label:nth-of-type(2) { 
        grid-row: 3 !important;
        grid-column: 1 !important;
    }
    .time-label:nth-of-type(3) { 
        grid-row: 4 !important;
        grid-column: 1 !important;
    }
    .time-label.mobile-only:nth-of-type(4) { 
        grid-row: 5 !important;
        grid-column: 1 !important;
    }
    .time-label.mobile-only:nth-of-type(5) { 
        grid-row: 6 !important;
        grid-column: 1 !important;
    }
    .time-label.mobile-only:nth-of-type(6) { 
        grid-row: 7 !important;
        grid-column: 1 !important;
    }
    .time-label.mobile-only:nth-of-type(7) { 
        grid-row: 8 !important;
        grid-column: 1 !important;
    }
}

/* 导出下拉菜单样式 */
.export-dropdown,
.backup-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle::after {
    content: '▼';
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

/* 设置弹窗时段配置区域优化样式 */
.time-slot-config {
    margin-bottom: 8px !important;
    border: 1px solid var(--border-color);
    padding: 8px !important;
    border-radius: 6px;
}

.time-slot-config .time-slot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px !important;
}

.time-slot-config label {
    font-size: 13px !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    color: #666;
}

.time-slot-config .time-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-slot-config .form-control {
    width: 90px !important;
    padding: 6px !important;
    font-size: 13px !important;
}

.time-slot-config span {
    font-size: 13px;
    color: #666;
}

/* 时间范围显示设置优化 */
.time-range-config {
    margin-bottom: 8px !important;
    border: 1px solid var(--border-color);
    padding: 8px !important;
    border-radius: 6px;
}

.time-range-config label {
    font-size: 13px !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
}

.time-range-config .config-description {
    font-size: 11px !important;
    color: #666;
    margin-top: 3px !important;
}

/* 导出日期选择按钮样式 */
.export-day-btn {
    flex: 1;
    min-width: 50px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-size: 14px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.export-day-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
}

.export-day-btn.selected {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* 深色主题下的导出按钮样式 */
[data-theme="dark"] .export-day-btn {
    background: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .export-day-btn:hover {
    background: #374151;
    border-color: var(--primary-color);
}

[data-theme="dark"] .export-day-btn.selected {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* 深色主题适配 */
[data-theme="dark"] .dropdown-menu {
    background: var(--secondary-color-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-color);
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: #3a3a3a;
}

[data-theme="dark"] .dropdown-divider {
    background-color: var(--border-color);
}

/* 提醒模态框样式 */
.reminder-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.reminder-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.reminder-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0078f5;
}

.reminder-title {
    font-size: 24px;
    font-weight: bold;
    color: #0078f5;
    margin-bottom: 10px;
}

.reminder-subtitle {
    font-size: 16px;
    color: #666;
}

.reminder-task-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #0078f5;
}

.reminder-task-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.reminder-task-time {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.reminder-task-note {
    font-size: 14px;
    color: #888;
    font-style: italic;
}

.reminder-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.reminder-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.reminder-btn-primary {
    background: #0078f5;
    color: white;
}

.reminder-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.reminder-btn-secondary {
    background: #6c757d;
    color: white;
}

.reminder-btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.reminder-btn-success {
    background: #28a745;
    color: white;
}

.reminder-btn-success:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

.reminder-settings {
    margin-top: 20px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 8px;
    text-align: center;
}

.reminder-settings label {
    display: inline-flex;
    align-items: center;
    margin: 0 15px;
    cursor: pointer;
}

.reminder-settings input[type="checkbox"] {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .reminder-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .reminder-title {
        font-size: 20px;
    }
    
    .reminder-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .reminder-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* 任务进度条样式 */
.progress-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 20px;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.progress-title {
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.progress-stats {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.progress-percentage {
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    white-space: nowrap;
}

.progress-bar-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@media (max-width: 768px) {
    .progress-container {
        margin: 15px;
        padding: 12px 15px;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .progress-stats {
        align-self: flex-end;
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .progress-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .progress-bar-wrapper {
        width: 100%;
        order: 2;
    }
    
    .progress-percentage {
        font-size: 18px;
        align-self: flex-end;
        order: 3;
    }
    
    .progress-title {
        font-size: 14px;
    }
}
