/* 周日历样式 */
.week-calendar-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

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

.week-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.week-title .week-number {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

.week-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.week-nav-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.week-nav-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.week-nav-btn.today-btn {
    background: #4a90d9;
    color: #fff;
    border-color: #4a90d9;
}

.week-nav-btn.today-btn:hover {
    background: #3a7bc8;
}

.week-nav-btn.today-btn:disabled {
    background: #a0c4e8;
    border-color: #a0c4e8;
    cursor: not-allowed;
}

.week-nav-btn.today-btn:disabled:hover {
    background: #a0c4e8;
}

.week-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.week-range {
    font-size: 16px;
    color: #666;
    padding: 8px 16px;
    background: #f9f9f9;
    border-radius: 6px;
}

/* 日期跳转表单 */
.jump-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

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

.jump-form input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.jump-form .button {
    padding: 8px 16px;
    font-size: 14px;
}

/* 周视图网格 */
.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.day-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    min-height: 120px;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

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

.day-card.is-today {
    border-color: #4a90d9;
    border-width: 2px;
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
}

.day-card.is-today.is-weekend {
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
}

.day-card.is-today::before {
    content: "今天";
    position: absolute;
    top: -10px;
    right: 10px;
    background: #4a90d9;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.day-card.is-weekend {
    background: #fafafa;
}

.day-card.is-past {
    opacity: 0.7;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.day-number {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.day-card.is-today .day-number {
    color: #4a90d9;
}

.day-card.is-today.is-weekend .day-number {
    color: #e67e22;
}

.day-card.is-weekend .day-number {
    color: #e67e22;
}

.day-weekday {
    font-size: 14px;
    color: #666;
    padding: 3px 8px;
    background: #f0f0f0;
    border-radius: 4px;
}

.day-card.is-weekend .day-weekday {
    background: #fff3e6;
    color: #e67e22;
}

.day-date {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.day-content {
    margin-top: 10px;
    min-height: 40px;
}

/* 备忘录输入 */
.day-memo {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #555;
    resize: none;
    outline: none;
    min-height: 40px;
}

.day-memo::placeholder {
    color: #bbb;
}

.day-memo:focus {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 5px;
}

/* 当前周标识 */
.current-week-badge {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 10px;
}

/* 错误提示 */
.error-message {
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* 快捷键说明 */
.shortcuts-info {
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

.shortcuts-info small {
    color: #666;
}

/* 今日信息卡片 */
.today-info {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.today-info .today-label {
    font-size: 14px;
    opacity: 0.9;
}

.today-info .today-date {
    font-size: 28px;
    font-weight: bold;
}

.today-info .today-weekday {
    font-size: 16px;
    opacity: 0.9;
}

/* 保存提示 */
.save-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #27ae60;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 1000;
}

.save-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .week-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .week-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .jump-form {
        flex-direction: column;
        align-items: flex-start;
    }
    .week-nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .week-grid {
        grid-template-columns: 1fr;
    }
    .day-card {
        min-height: 80px;
    }
}
