/* ============================================
   周工作行程管理系统 - 主样式文件
   Version: 2.0.0
   Date: 2024-01-28
   Author: Your Name
============================================ */

/* ============================================
   1. CSS重置和基础样式
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 深色模式 */
[data-theme="dark"] body {
    background-color: #121212;
    color: #e0e0e0;
}

/* 打印模式 */
@media print {
    body {
        background-color: white !important;
        color: black !important;
    }
}

/* ============================================
   2. 容器和布局
============================================ */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
}

/* ============================================
   3. 头部样式
============================================ */
header {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] header {
    background: linear-gradient(135deg, #0d47a1, #002171);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #34a853, #fbbc04, #ea4335);
}

h1 {
    font-size: 28px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

h1 i {
    font-size: 32px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 头部信息区域 */
.header-info {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
}

.info-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.info-item i {
    font-size: 14px;
    opacity: 0.9;
}

.week-range {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.week-range:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* 周导航 */
.week-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.week-nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    color: white;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.week-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.week-nav-btn:active {
    transform: translateY(0);
}

/* 网络状态 */
.network-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: rgba(52, 168, 83, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: #34a853;
    backdrop-filter: blur(10px);
}

.network-status.offline {
    background-color: rgba(234, 67, 53, 0.2);
    color: #ea4335;
}

/* 键盘快捷键提示 */
.keyboard-shortcuts {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    backdrop-filter: blur(10px);
}

.keyboard-shortcuts h4 {
    margin: 0 0 12px 0;
    color: white;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-key {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================
   4. 控制面板
============================================ */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .controls {
    background-color: #1e1e1e;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 8px 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    width: 350px;
    transition: all 0.3s;
}

[data-theme="dark"] .search-box {
    background-color: #2d2d2d;
}

.search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
    transform: translateY(-2px);
}

.search-box i {
    color: #666;
    font-size: 16px;
}

[data-theme="dark"] .search-box i {
    color: #aaa;
}

.search-box input {
    border: none;
    outline: none;
    padding: 8px 12px;
    width: 100%;
    font-size: 14px;
    background: transparent;
    color: inherit;
}

.search-box input::placeholder {
    color: #999;
}

[data-theme="dark"] .search-box input::placeholder {
    color: #777;
}

.search-box button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    color: #333;
}

[data-theme="dark"] .search-box button:hover {
    color: #fff;
}

/* 控制按钮组 */
.controls > div:last-child {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================
   5. 主要内容区域
============================================ */
.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   6. 卡片样式
============================================ */
.card {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .card {
    background-color: #1e1e1e;
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.card-title {
    font-size: 18px;
    color: #1a73e8;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

[data-theme="dark"] .card-title {
    color: #64b5f6;
    border-bottom-color: #333;
}

.card-title i {
    margin-right: 8px;
    font-size: 20px;
}

.card-actions {
    display: flex;
    gap: 8px;
}

/* 统计卡片 */
.stats-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1a73e8;
    transition: all 0.3s;
}

[data-theme="dark"] .stat-item {
    background-color: #2d2d2d;
    border-left-color: #64b5f6;
}

.stat-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

[data-theme="dark"] .stat-label {
    color: #aaa;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
}

[data-theme="dark"] .stat-value {
    color: #64b5f6;
}

/* 地点分布 */
.location-summary {
    margin-top: 10px;
}

.location-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.2s;
}

[data-theme="dark"] .location-item {
    border-bottom-color: #333;
}

.location-item:hover {
    background-color: #f8f9fa;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 6px;
}

[data-theme="dark"] .location-item:hover {
    background-color: #2d2d2d;
}

.location-item:last-child {
    border-bottom: none;
}

/* ============================================
   7. 行程表格
============================================ */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed;
}

.schedule-table th {
    background-color: #f8f9fa;
    padding: 15px 12px;
    text-align: center;
    font-weight: 600;
    color: #444;
    border: 1px solid #e0e0e0;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .schedule-table th {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
}

.schedule-table td {
    padding: 15px 12px;
    border: 1px solid #e0e0e0;
    vertical-align: top;
    height: 130px;
    position: relative;
    transition: all 0.2s;
}

[data-theme="dark"] .schedule-table td {
    border-color: #444;
}

/* 日期头部 */
.date-header {
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.date-header:hover {
    background-color: #e8f0fe;
}

[data-theme="dark"] .date-header:hover {
    background-color: #0d47a1;
}

.date-edit-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
    color: #666;
}

.date-header:hover .date-edit-icon {
    opacity: 1;
}

/* 时间段头部 */
.time-slot-header {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #444;
    text-align: center;
    width: 80px;
    position: sticky;
    left: 0;
    z-index: 10;
}

[data-theme="dark"] .time-slot-header {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

/* 地点信息 */
.location-info {
    margin-bottom: 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    color: #666;
}

[data-theme="dark"] .location-info {
    color: #aaa;
}

.location-badge {
    display: inline-block;
    background-color: #e8f0fe;
    color: #1a73e8;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-badge:hover {
    background-color: #d2e3fc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .location-badge {
    background-color: #0d47a1;
    color: white;
}

/* 公休日单元格 */
.day-off-cell {
    background-color: #f9f9f9;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: 500;
    text-align: center;
}

/* 公休日内容 */
.day-off-content {
    font-size: 16px;
    font-weight: 600;
    color: #888;
    text-align: center;
    padding: 20px;
}

/* 公休日表头 */
.schedule-table th.day-off-header {
    background-color: #f9f9f9 !important;
    color: #888 !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .schedule-table th.day-off-header {
    background-color: #2d2d2d !important;
    color: #777 !important;
}

[data-theme="dark"] .day-off-cell {
    background-color: #2d2d2d;
    color: #777;
}

/* 时间段内容 */
.time-slot {
    margin-bottom: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    height: calc(100% - 20px);
    overflow: hidden;
}

[data-theme="dark"] .time-slot {
    border-color: #444;
}

.time-slot:hover {
    background-color: #f8f9fa;
    border-color: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .time-slot:hover {
    background-color: #2d2d2d;
    border-color: #555;
}

/* 时间段颜色区分 */
.morning {
    border-left: 4px solid #34a853;
    background-color: rgba(52, 168, 83, 0.05);
}

.afternoon {
    border-left: 4px solid #ea4335;
    background-color: rgba(234, 67, 53, 0.05);
}



[data-theme="dark"] .afternoon {
    background-color: rgba(234, 67, 53, 0.1);
}



/* 行程内容 */
.schedule-content {
    word-break: break-word;
    padding-right: 30px;
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.schedule-content strong {
    color: #333;
    font-weight: 600;
}

[data-theme="dark"] .schedule-content strong {
    color: #e0e0e0;
}

/* 时间标签 */
.time-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="dark"] .time-label {
    color: #bbb;
}

/* 行程操作按钮 */
.schedule-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 4px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.time-slot:hover .schedule-actions {
    opacity: 1;
}

/* 参与者信息 */
.participants-info {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
    line-height: 1.4;
}

[data-theme="dark"] .participants-info {
    color: #999;
}

/* 备注信息 */
.notes-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #666;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 5px;
    cursor: help;
}

[data-theme="dark"] .notes-info {
    background-color: #2d2d2d;
    color: #999;
}

/* 空行程状态 */
.empty-schedule {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

[data-theme="dark"] .empty-schedule {
    color: #777;
}

/* 表格底部 */
.table-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #666;
}

[data-theme="dark"] .table-footer {
    border-top-color: #333;
    color: #999;
}

.table-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   8. 工作重点区域
============================================ */
.key-tasks {
    background-color: #fff8e1;
    border-left: 5px solid #fbbc04;
    padding: 20px;
    margin-top: 10px;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s;
}

[data-theme="dark"] .key-tasks {
    background-color: #2d2d2d;
    border-left-color: #ff9800;
}

.key-tasks:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.key-tasks h3 {
    color: #f57c00;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
}

[data-theme="dark"] .key-tasks h3 {
    color: #ff9800;
}

.key-tasks ul {
    padding-left: 20px;
    list-style-type: none;
}

.key-tasks li {
    margin-bottom: 12px;
    line-height: 1.5;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.key-tasks li:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .key-tasks li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.task-actions {
    display: flex;
    gap: 8px;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.key-tasks li:hover .task-actions {
    opacity: 1;
}

/* ============================================
   9. 按钮样式
============================================ */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #1a73e8, #0d62d9);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d62d9, #0b57c4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #f1f3f4, #e8eaed);
    color: #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .btn-secondary {
    background: linear-gradient(135deg, #3d3d3d, #2d2d2d);
    color: #e0e0e0;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e8eaed, #dadce0);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .btn-secondary:hover {
    background: linear-gradient(135deg, #4d4d4d, #3d3d3d);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 操作按钮 */
.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.action-btn:hover {
    background-color: #f0f0f0;
    color: #1a73e8;
    transform: scale(1.1);
}

[data-theme="dark"] .action-btn {
    color: #aaa;
}

[data-theme="dark"] .action-btn:hover {
    background-color: #333;
    color: #64b5f6;
}

.delete-btn:hover {
    color: #ea4335 !important;
    background-color: #ffebee;
}

[data-theme="dark"] .delete-btn:hover {
    background-color: #4d1c1c;
}

/* ============================================
   10. 模态框样式
============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

[data-theme="dark"] .modal-content {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e8eaed);
    border-radius: 16px 16px 0 0;
}

[data-theme="dark"] .modal-header {
    background: linear-gradient(135deg, #3d3d3d, #2d2d2d);
    border-bottom-color: #444;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

[data-theme="dark"] .modal-title {
    color: #e0e0e0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-modal:hover {
    background-color: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

[data-theme="dark"] .close-modal:hover {
    background-color: #333;
    color: #fff;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background-color: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

[data-theme="dark"] .modal-footer {
    border-top-color: #444;
    background-color: #2d2d2d;
}

/* ============================================
   11. 表单样式
============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .form-label {
    color: #bbb;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: white;
    color: #333;
}

[data-theme="dark"] .form-control {
    background-color: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
}

.form-control:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #999;
    opacity: 1;
}

[data-theme="dark"] .form-control::placeholder {
    color: #777;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

[data-theme="dark"] select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23aaa' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

[data-theme="dark"] .form-text {
    color: #999;
}

/* ============================================
   12. 日期输入组
============================================ */
.date-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

[data-theme="dark"] .date-input-group {
    background-color: #2d2d2d;
    border-color: #444;
}

.date-input-group:hover {
    border-color: #1a73e8;
    background-color: #fff;
    transform: translateY(-1px);
}

[data-theme="dark"] .date-input-group:hover {
    background-color: #3d3d3d;
}

.date-input-group .form-control {
    flex: 1;
    min-width: 0;
}

.auto-fill-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.auto-fill-btn:hover {
    background-color: #0d62d9;
    transform: translateY(-2px);
}

.delete-date-btn {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #c62828;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.delete-date-btn:hover:not(:disabled) {
    background-color: #ffcdd2;
    transform: translateY(-2px);
}

.delete-date-btn:disabled {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
}

[data-theme="dark"] .delete-date-btn:disabled {
    background-color: #3d3d3d;
    border-color: #555;
    color: #777;
}

/* 自动填充说明 */
.auto-fill-notice {
    background-color: #e8f0fe;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #1a73e8;
    font-size: 13px;
    line-height: 1.5;
}

[data-theme="dark"] .auto-fill-notice {
    background-color: #0d47a1;
    border-left-color: #64b5f6;
}

.auto-fill-notice i {
    color: #1a73e8;
    margin-right: 8px;
    font-size: 16px;
}

.auto-fill-notice strong {
    color: #1a73e8;
    font-weight: 600;
}

[data-theme="dark"] .auto-fill-notice i,
[data-theme="dark"] .auto-fill-notice strong {
    color: #64b5f6;
}

/* ============================================
   13. 警告和提示
============================================ */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.alert i {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-info {
    background-color: #e8f0fe;
    border-left: 4px solid #1a73e8;
    color: #1a73e8;
}

.alert-warning {
    background-color: #fff3e0;
    border-left: 4px solid #f57c00;
    color: #f57c00;
}

.alert-success {
    background-color: #e8f5e9;
    border-left: 4px solid #34a853;
    color: #34a853;
}

.alert-error {
    background-color: #ffebee;
    border-left: 4px solid #ea4335;
    color: #ea4335;
}

[data-theme="dark"] .alert-info {
    background-color: #0d47a1;
    color: #64b5f6;
}

[data-theme="dark"] .alert-warning {
    background-color: #5d4037;
    color: #ff9800;
}

[data-theme="dark"] .alert-success {
    background-color: #1b5e20;
    color: #81c784;
}

[data-theme="dark"] .alert-error {
    background-color: #c62828;
    color: #ffcdd2;
}

/* ============================================
   14. 标签页
============================================ */
.tab-container {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
}

[data-theme="dark"] .tab-container {
    border-color: #444;
    background-color: #2d2d2d;
}

.tab-nav {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

[data-theme="dark"] .tab-nav {
    background-color: #3d3d3d;
    border-bottom-color: #444;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    position: relative;
    text-align: center;
}

[data-theme="dark"] .tab-btn {
    color: #aaa;
}

.tab-btn:hover {
    background-color: #e8eaed;
    color: #333;
}

[data-theme="dark"] .tab-btn:hover {
    background-color: #4d4d4d;
    color: #e0e0e0;
}

.tab-btn.active {
    color: #1a73e8;
    font-weight: 600;
    background-color: white;
}

[data-theme="dark"] .tab-btn.active {
    color: #64b5f6;
    background-color: #2d2d2d;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1a73e8;
    animation: slideIn 0.3s ease;
}

[data-theme="dark"] .tab-btn.active::after {
    background-color: #64b5f6;
}

@keyframes slideIn {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.tab-content {
    padding: 25px;
    display: none;
    animation: fadeInUp 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* ============================================
   15. 系统信息
============================================ */
.system-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.info-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

[data-theme="dark"] .info-section {
    border-bottom-color: #444;
}

.info-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .info-section h4 {
    color: #e0e0e0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    align-items: center;
}

.info-row:last-child {
    border-bottom: none;
}

[data-theme="dark"] .info-row {
    border-bottom-color: #333;
}

.info-label {
    color: #666;
    font-size: 14px;
}

[data-theme="dark"] .info-label {
    color: #aaa;
}

.info-value {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .info-value {
    color: #e0e0e0;
}

.info-value i {
    font-size: 12px;
}

/* ============================================
   16. 空状态
============================================ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
    opacity: 0.7;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

[data-theme="dark"] .empty-state {
    color: #777;
}

[data-theme="dark"] .empty-state i {
    color: #555;
}

[data-theme="dark"] .empty-state p {
    color: #999;
}

/* ============================================
   17. 复选框和单选按钮
============================================ */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #333;
    padding: 5px 0;
}

[data-theme="dark"] .checkbox-label {
    color: #e0e0e0;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

[data-theme="dark"] .checkbox-custom {
    border-color: #666;
}

.checkbox-label input:checked + .checkbox-custom {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:disabled + .checkbox-custom {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-label input {
    display: none;
}

/* ============================================
   18. 滚动条样式
============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #2d2d2d;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 5px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #555;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* 模态框滚动条 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

[data-theme="dark"] .modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   19. 打印样式
============================================ */
@media print {
    /* 隐藏不需要打印的元素 */
    header,
    .controls,
    .key-tasks,
    .main-content > div:last-child,
    .card-actions,
    .week-navigation,
    .location-info,
    .schedule-actions,
    .date-edit-icon,
    .toggle-dayoff-btn,
    .action-btn,
    .btn,
    .network-status,
    .keyboard-shortcuts,
    .table-footer {
        display: none !important;
    }

    /* 重置打印样式 */
    body {
        background-color: white !important;
        color: black !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 12pt !important;
    }

    .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .main-content {
        display: block !important;
        grid-template-columns: none !important;
    }

    /* 行程表打印样式 */
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        margin: 0 !important;
        padding: 10px !important;
        page-break-inside: avoid;
        background-color: white !important;
    }

    .card-title {
        font-size: 16pt !important;
        color: #000 !important;
        border-bottom: 2px solid #000 !important;
        padding-bottom: 8px !important;
        margin-bottom: 15px !important;
    }

    .schedule-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-top: 15px !important;
        font-size: 10pt !important;
    }

    .schedule-table th,
    .schedule-table td {
        border: 1px solid #000 !important;
        padding: 8px !important;
        height: auto !important;
        min-height: 80px !important;
        vertical-align: top !important;
        font-size: 10pt !important;
    }

    .schedule-table th {
        background-color: #f0f0f0 !important;
        color: #000 !important;
        font-weight: bold !important;
        text-align: center !important;
    }

    .day-off-cell {
        background-color: #f9f9f9 !important;
        color: #666 !important;
        text-align: center !important;
        font-weight: bold !important;
        font-size: 11pt !important;
    }

    .time-slot {
        border: none !important;
        padding: 5px !important;
        margin: 0 !important;
        background-color: transparent !important;
        height: auto !important;
    }

    .time-slot.morning,
    .time-slot.afternoon {
        border-left: none !important;
        background-color: transparent !important;
    }

    .time-label {
        font-weight: bold !important;
        color: #000 !important;
        margin-bottom: 5px !important;
        font-size: 11pt !important;
    }

    .schedule-content {
        padding-right: 0 !important;
        font-size: 10pt !important;
        line-height: 1.4 !important;
        max-height: none !important;
        -webkit-line-clamp: unset !important;
    }

    /* 隐藏地点徽章样式 */
    .location-badge {
        background-color: transparent !important;
        color: #000 !important;
        padding: 0 !important;
        border: none !important;
        font-weight: normal !important;
    }

    /* 确保表格在打印时不被分割 */
    table, tr, td, th {
        page-break-inside: avoid !important;
    }

    /* 添加页眉信息 */
    @page {
        margin: 1.5cm;
        size: A4;

        @top-center {
            content: "周工作行程安排表";
            font-size: 14pt;
            font-weight: bold;
        }

        @bottom-center {
            content: "第 " counter(page) " 页，共 " counter(pages) " 页";
            font-size: 10pt;
        }
    }

    /* 隐藏打印时不显示的内容 */
    .time-slot-header {
        background-color: #f0f0f0 !important;
        font-weight: bold !important;
        color: #000 !important;
        width: 80px !important;
    }

    /* 添加打印日期和时间 */
    body::before {
        content: "打印时间: " attr(data-print-time);
        display: block;
        text-align: right;
        font-size: 9pt;
        color: #666;
        margin-bottom: 15px;
        border-bottom: 1px solid #ccc;
        padding-bottom: 5px;
    }
}

/* ============================================
   20. 动画和过渡
============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

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

/* 焦点样式 */
:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

:focus:not(.focus-visible) {
    outline: none;
}

/* 禁用状态 */
:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   21. 工具类
============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 25px; }

.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 25px; }

.ml-1 { margin-left: 5px; }
.ml-2 { margin-left: 10px; }
.ml-3 { margin-left: 15px; }
.ml-4 { margin-left: 20px; }
.ml-5 { margin-left: 25px; }

.mr-1 { margin-right: 5px; }
.mr-2 { margin-right: 10px; }
.mr-3 { margin-right: 15px; }
.mr-4 { margin-right: 20px; }
.mr-5 { margin-right: 25px; }

.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }
.p-5 { padding: 25px; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: 6px; }
.rounded-lg { border-radius: 12px; }
.rounded-circle { border-radius: 50%; }

.shadow { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); }
.shadow-none { box-shadow: none; }

.text-primary { color: #1a73e8; }
.text-success { color: #34a853; }
.text-warning { color: #fbbc04; }
.text-danger { color: #ea4335; }
.text-info { color: #17a2b8; }
.text-muted { color: #6c757d; }

.bg-primary { background-color: #1a73e8; }
.bg-success { background-color: #34a853; }
.bg-warning { background-color: #fbbc04; }
.bg-danger { background-color: #ea4335; }
.bg-info { background-color: #17a2b8; }
.bg-light { background-color: #f8f9fa; }
.bg-dark { background-color: #343a40; }

.font-weight-normal { font-weight: 400; }
.font-weight-medium { font-weight: 500; }
.font-weight-semibold { font-weight: 600; }
.font-weight-bold { font-weight: 700; }

.font-size-xs { font-size: 12px; }
.font-size-sm { font-size: 14px; }
.font-size-base { font-size: 16px; }
.font-size-lg { font-size: 18px; }
.font-size-xl { font-size: 20px; }

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }
.z-index-3 { z-index: 3; }
.z-index-4 { z-index: 4; }
.z-index-5 { z-index: 5; }

/* ============================================
   22. 响应式设计
============================================ */
@media (max-width: 1400px) {
    .main-content {
        gap: 20px;
    }
    
    .container {
        max-width: 95%;
    }
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .main-content > div:last-child {
        width: 100%;
        min-width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .stats-card,
    .card {
        margin-bottom: 0;
    }
}

@media (max-width: 992px) {
    .header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .info-item,
    .week-range {
        width: 100%;
        justify-content: space-between;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .controls > div:last-child {
        justify-content: center;
    }
    
    .week-navigation {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    header {
        padding: 20px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    h1 i {
        font-size: 26px;
    }
    
    .card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .date-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-input-group .form-control {
        width: 100%;
    }
    
    .tab-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        justify-content: flex-start;
    }
    
    .tab-btn.active::after {
        width: 3px;
        height: 100%;
        left: 0;
        top: 0;
        animation: slideInVertical 0.3s ease;
    }
    
    @keyframes slideInVertical {
        from { transform: scaleY(0); }
        to { transform: scaleY(1); }
    }
}

@media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 15px;
    }
    
    h1 {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .controls > div:last-child {
        flex-direction: column;
        width: 100%;
    }
    
    .schedule-table {
        font-size: 12px;
    }
    
    .time-slot-header {
        width: 60px;
        font-size: 12px;
        padding: 10px 5px;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 8px 5px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .modal-footer {
        padding: 15px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .modal-footer .btn:last-child {
        margin-bottom: 0;
    }
    
    .keyboard-shortcuts {
        display: none;
    }
}

@media (max-width: 400px) {
    .stat-value {
        font-size: 20px;
    }
    
    .location-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .task-actions {
        opacity: 1;
        margin-left: 5px;
    }
    
    .info-item,
    .week-range {
        font-size: 14px;
    }
}

/* ============================================
   23. 主题切换动画
============================================ */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* 避免某些元素过渡太明显 */
img,
video,
iframe,
canvas,
svg {
    transition: none;
}

/* 打印时禁用所有过渡 */
@media print {
    * {
        transition: none !important;
    }
}

/* ============================================
   24. 加载状态
============================================ */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   25. 辅助功能
============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid white;
    }
    
    .form-control:focus {
        outline: 3px solid #1a73e8;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   26. 自定义属性（CSS变量）
============================================ */
:root {
    --primary-color: #1a73e8;
    --primary-hover: #0d62d9;
    --success-color: #34a853;
    --warning-color: #fbbc04;
    --danger-color: #ea4335;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    --primary-color: #64b5f6;
    --primary-hover: #42a5f5;
    --success-color: #81c784;
    --warning-color: #ffb74d;
    --danger-color: #e57373;
    --info-color: #4fc3f7;
    --light-color: #2d2d2d;
    --dark-color: #1e1e1e;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --transition-speed: 0.3s;
}

/* 打印样式调整 */
@media print {
    /* 显示打印时需要的内容 */
    .print-header {
        display: block !important;
        background: none !important;
        color: black !important;
        border-bottom: 2px solid black !important;
    }

    .employee-info {
        display: flex !important;
        justify-content: space-between !important;
        margin: 20px 0 !important;
    }

    /* 确保表格正确打印 */
    .schedule-table {
        border: 1px solid black !important;
    }

        .schedule-table th,
        .schedule-table td {
            border: 1px solid black !important;
            padding: 8px !important;
        }

    /* 隐藏不需要打印的元素 */
    .no-print {
        display: none !important;
    }
}