/* 导航栏样式 */
.header {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.header:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header h1 {
    font-size: 24px;
    color: #2196f3;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

#current-time {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* 日历导航样式 */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background-color: #2196f3;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.view-toggle {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.view-toggle .nav-btn {
    padding: 8px 16px;
    font-size: 14px;
}

.view-toggle .nav-btn.active {
    background-color: #1976d2;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    #current-time {
        font-size: 18px;
    }
    
    .view-toggle {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .view-toggle .nav-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .calendar-header h2 {
        text-align: center;
    }
    
    .calendar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-btn {
        padding: 10px 14px;
        font-size: 13px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    #current-time {
        font-size: 14px;
    }
    
    .view-toggle {
        gap: 8px;
    }
    
    .view-toggle .nav-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 60px;
    }
    
    .calendar-header {
        margin-bottom: 10px;
    }
    
    .calendar-header h2 {
        font-size: 14px;
    }
    
    .calendar-nav {
        gap: 6px;
    }
    
    .nav-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 60px;
    }
}

/* 横屏适配 */
@media (max-height: 480px) and (orientation: landscape) {
    .header {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .header h1 {
        font-size: 16px;
    }
    
    #current-time {
        font-size: 14px;
    }
}

/* 触摸反馈 */
@media (hover: none) and (pointer: coarse) {
    .nav-btn {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    .nav-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}