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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

/* 登录界面样式 */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #667eea;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.login-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.login-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

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

.login-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border: 1px solid #ef9a9a;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.container.calendar-mode {
    max-width: 95%;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header h1 {
    font-size: 2rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* 同步状态 */
.sync-status {
    font-size: 1.1rem;
    padding: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.sync-status:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.sync-status.syncing {
    background: rgba(33, 150, 243, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
}

.sync-status.success {
    background: rgba(76, 175, 80, 0.3);
}

.sync-status.error {
    background: rgba(244, 67, 54, 0.3);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.date {
    font-size: 1.1rem;
    opacity: 0.9;
}

.todo-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

#todoInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#todoInput:focus {
    outline: none;
    border-color: #667eea;
}

#addBtn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#addBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#addBtn:active {
    transform: translateY(0);
}

.stats {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.todo-list {
    list-style: none;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s;
    animation: slideIn 0.3s ease-out;
}

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

.todo-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.todo-item.completed {
    opacity: 0.6;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #999;
}

.checkbox {
    width: 22px;
    height: 22px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: #667eea;
}

.todo-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-word;
}

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

.btn-edit, .btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit {
    background: #4CAF50;
    color: white;
}

.btn-edit:hover {
    background: #45a049;
    transform: scale(1.05);
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #da190b;
    transform: scale(1.05);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.empty-state-text {
    font-size: 1.1rem;
}

.week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.week-nav button {
    padding: 8px 16px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.week-nav button:hover {
    background: #667eea;
    color: white;
}

/* 默认显示文字，隐藏图标 */
.week-nav button .nav-icon {
    display: none;
}

.week-nav button .nav-text {
    display: inline;
}

.week-info {
    text-align: center;
    flex: 1;
    margin: 0 20px;
}

.week-range {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

/* 非当天日期的颜色提醒 */
.week-range.not-today {
    color: #ff6b6b;
    font-weight: 700;
}

.week-year {
    font-size: 0.85rem;
    color: #666;
    margin-top: 3px;
}

.date-picker-section {
    margin-bottom: 15px;
}

.date-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

#todoDate {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.3s;
    background: white;
}

#todoDate:focus {
    outline: none;
    border-color: #667eea;
}

.today-btn {
    padding: 10px 16px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #667eea;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.today-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: #666;
}

.filter-tab:hover {
    background: #e9ecef;
}

.filter-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.todo-date-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 8px;
    white-space: nowrap;
}

.todo-date-badge.today {
    background: #fff3cd;
    color: #856404;
}

.todo-date-badge.overdue {
    background: #f8d7da;
    color: #721c24;
}

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

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

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

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

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

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

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.time-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    transition: border-color 0.3s;
}

.time-picker-wrapper:focus-within {
    border-color: #667eea;
}

.time-input {
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    background: white;
    transition: all 0.2s;
    color: #333;
    width: 65px;
    text-align: center;
}

.time-input:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.time-input:focus {
    outline: none;
    border-color: #667eea;
    background: #f0f0f0;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.time-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

/* 美化数字输入框的上下箭头 */
.time-input::-webkit-outer-spin-button,
.time-input::-webkit-inner-spin-button {
    opacity: 1;
    height: 30px;
}

/* Firefox */
.time-input[type=number] {
    -moz-appearance: textfield;
}

.time-input[type=number]:hover,
.time-input[type=number]:focus {
    -moz-appearance: number-input;
}

.time-separator {
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
}

.time-clear-btn {
    padding: 4px 8px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.time-clear-btn:hover {
    background: #da190b;
    transform: scale(1.1);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-modal {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.quick-add-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.quick-add-btn:hover {
    background: #667eea;
    color: white;
}

.backup-btn {
    padding: 10px 16px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.backup-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.time-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-left: 6px;
    white-space: nowrap;
}

.repeat-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #fff3e0;
    color: #e65100;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-left: 6px;
    white-space: nowrap;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
}

.weekday-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.weekday-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weekday-btn:hover {
    border-color: #667eea;
    background: #f0f0f0;
}

.weekday-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.monthday-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.monthday-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monthday-btn:hover {
    border-color: #667eea;
    background: #f0f0f0;
}

.monthday-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.repeat-options {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.repeat-options.show {
    display: block;
}

/* 日历视图样式 */
.calendar-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: auto;
    min-width: 100%;
}

.calendar-header {
    background: #667eea;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-time-label {
    background: #f8f9fa;
    padding: 8px;
    text-align: right;
    font-size: 0.75rem;
    color: #666;
    border-right: 2px solid #e0e0e0;
}

.calendar-cell {
    background: white;
    min-height: 60px;
    padding: 4px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-cell:hover {
    background: #f8f9fa;
}

.calendar-cell.today {
    background: #fff3cd;
}

.calendar-event {
    background: #e8eaf6;
    color: #3f51b5;
    padding: 6px 8px;
    padding-left: 12px;
    margin: 2px 0;
    border-radius: 4px;
    border-left: 4px solid #667eea;
    font-size: 0.75rem;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    word-break: break-all;
    position: relative;
    z-index: 1;
}

.calendar-event.multi-hour {
    position: absolute;
    left: 4px;
    right: 4px;
    top: 2px;
    margin: 0;
    padding: 4px 8px;
    padding-left: 10px;
    border-left-width: 3px;
}

.calendar-event:hover {
    background: #c5cae9;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.calendar-event.completed {
    background: #f5f5f5;
    color: #9e9e9e;
    border-left-color: #bdbdbd;
    opacity: 0.7;
    text-decoration: line-through;
}

.calendar-event-time {
    font-weight: 600;
    margin-right: 4px;
}

.calendar-day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.calendar-day-name {
    font-size: 0.8rem;
}

.calendar-day-number {
    font-size: 1.2rem;
    font-weight: 700;
}

.calendar-all-day {
    background: #e3f2fd;
    padding: 4px;
    margin-bottom: 4px;
    border-left: 3px solid #1976d2;
}

.calendar-all-day .calendar-event {
    background: #1976d2;
    margin: 2px 0;
}

/* 分组列表样式 */
.todo-section {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.section-header:hover {
    background: #e9ecef;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.section-count {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.section-count.zero {
    background: #e0e0e0;
    color: #999;
}

.todo-section .todo-list {
    margin-top: 0;
}

.todo-section .empty-state {
    padding: 20px;
    font-size: 0.9rem;
}

.view-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.view-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.view-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* 顶部工具栏容器 */
.top-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: stretch;
}

.view-switcher {
    display: flex;
    gap: 8px;
    flex: 1;
}

/* 工具栏样式 */
.toolbar-section {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    color: #666;
    white-space: nowrap;
}

.toolbar-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.toolbar-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.toolbar-btn-icon {
    padding: 6px 10px;
    font-size: 1rem;
    min-width: auto;
}

.toolbar-btn-icon:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

@media (max-width: 600px) {
    .header h1 {
        font-size: 2rem;
    }

    .todo-card {
        padding: 20px;
    }

    .input-section {
        flex-direction: column;
    }

    #addBtn {
        width: 100%;
    }

    .stats {
        flex-direction: column;
        gap: 10px;
    }

    .week-nav {
        flex-direction: row;
        gap: 8px;
        align-items: center;
        padding: 12px;
    }

    .week-info {
        margin: 0;
        flex: 1;
    }

    .date-input-wrapper {
        flex-direction: column;
    }

    #todoDate, .today-btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .time-inputs {
        grid-template-columns: 1fr;
    }

    .time-picker-wrapper {
        padding: 6px 10px;
    }

    .time-input {
        padding: 4px 6px;
        font-size: 0.9rem;
        width: 60px;
    }

    .time-input::-webkit-outer-spin-button,
    .time-input::-webkit-inner-spin-button {
        height: 25px;
    }

    .time-separator {
        font-size: 1rem;
    }

    .time-clear-btn {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .calendar-grid {
        grid-template-columns: 50px repeat(7, 1fr);
        font-size: 0.7rem;
        overflow-x: auto;
    }

    .calendar-header {
        padding: 8px 4px;
        font-size: 0.7rem;
    }

    .calendar-event {
        font-size: 0.6rem;
        padding: 3px 4px;
    }

    .calendar-time-label {
        font-size: 0.65rem;
        padding: 6px 4px;
    }

    .container.calendar-mode {
        max-width: 100%;
        padding: 10px;
    }

    .top-toolbar {
        flex-direction: column;
    }

    /* 移动端隐藏视图切换器 */
    .view-switcher {
        display: none !important;
    }

    /* 移动端强制显示每日视图 */
    #listView {
        display: block !important;
    }

    #calendarView {
        display: none !important;
    }

    #dayNav {
        display: flex !important;
    }

    #weekNav {
        display: none !important;
    }

    .toolbar-section {
        width: 100%;
        flex-wrap: wrap;
    }

    .toolbar-btn {
        flex: 1 1 auto;
        min-width: 100px;
    }

    .toolbar-btn-primary {
        flex: 1 1 100%;
        order: -1;
    }

    /* 移动端隐藏导入导出按钮 */
    .toolbar-btn-icon {
        display: none !important;
    }

    /* 简化日期导航按钮 - 只显示箭头 */
    .week-nav button .nav-text {
        display: none;
    }

    .week-nav button .nav-icon {
        display: inline;
    }

    .week-nav button {
        font-size: 1.2rem;
        padding: 8px 12px;
        min-width: 44px;
        flex-shrink: 0;
    }

    /* 移动端隐藏删除按钮 */
    .btn-delete {
        display: none !important;
    }

    /* 移动端隐藏编辑按钮 */
    .btn-edit {
        display: none !important;
    }

    /* 移动端隐藏添加待办按钮 */
    .toolbar-btn-primary {
        display: none !important;
    }
}

/* 日期选择器弹窗样式 */
.date-picker-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

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

.date-picker-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

.date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.date-picker-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-picker-nav {
    display: flex;
    gap: 5px;
}

.date-picker-nav button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #666;
}

.date-picker-nav button:hover {
    background: #667eea;
    color: white;
}

.date-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 5px;
}

.date-picker-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    padding: 8px 0;
}

.date-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.date-picker-day {
    aspect-ratio: 1;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-picker-day:hover {
    background: #e8f0fe;
    color: #667eea;
}

.date-picker-day.other-month {
    color: #ccc;
}

.date-picker-day.today {
    border: 2px solid #667eea;
    font-weight: 700;
}

.date-picker-day.selected {
    background: #667eea;
    color: white;
    font-weight: 700;
}

.date-picker-day:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.date-picker-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.date-picker-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.date-picker-btn-today {
    background: #667eea;
    color: white;
    border: 2px solid #667eea;
}

.date-picker-btn-today:hover {
    background: #5568d3;
    border-color: #5568d3;
}

.date-picker-btn-clear {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
}

.date-picker-btn-clear:hover {
    background: #e9ecef;
}

.date-jump-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    line-height: 1;
}

.date-jump-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    opacity: 1;
    transform: scale(1.05);
}
