* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 日期信息卡片 */
.dates-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.date-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px;
}

.date-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.date-card.today-card {
    border-left: 5px solid #667eea;
}

.date-card.school-card {
    border-left: 5px solid #f093fb;
}

.date-icon {
    font-size: 2.5rem;
}

.date-content {
    display: flex;
    flex-direction: column;
}

.date-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 4px;
}

.date-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.arrow {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

/* 倒计时卡片 */
.countdown-section {
    margin-bottom: 25px;
}

.countdown-card {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.countdown-card h2 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.countdown-number {
    font-size: 5rem;
    font-weight: 800;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    margin: 10px 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.countdown-label {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* 进度卡片 */
.progress-section {
    margin-bottom: 25px;
}

.progress-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.progress-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-header h3 {
    font-size: 1.3rem;
    color: #333;
}

.progress-total {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.progress-bar-container {
    background: #f0f0f0;
    border-radius: 10px;
    height: 25px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #666;
}

/* 今日任务 */
.today-task-section {
    margin-bottom: 25px;
}

.task-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.task-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
}

.task-content {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 15px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.task-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
    animation: gaussianBlurFlow 8s ease-in-out infinite;
    filter: blur(30px);
}

@keyframes gaussianBlurFlow {
    0% {
        transform: translate(-30%, -30%) scale(0.8);
        opacity: 0.3;
    }
    25% {
        transform: translate(30%, -30%) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(30%, 30%) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(-30%, 30%) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-30%, -30%) scale(0.8);
        opacity: 0.3;
    }
}

.task-number {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    display: block;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
}

.task-label {
    font-size: 1.2rem;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
    font-weight: 500;
}

.task-tip {
    text-align: center;
    color: #667eea;
    font-size: 1rem;
    font-weight: 500;
}

/* 待办清单 */
.todo-section {
    margin-bottom: 25px;
}

.todo-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.todo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.todo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.todo-header h3 {
    font-size: 1.3rem;
    color: #333;
}

.todo-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-add {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-clear {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    width: 100%;
    margin-top: 15px;
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.todo-item.removing {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.todo-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.todo-checkbox {
    width: 24px;
    height: 24px;
    border: 3px solid #667eea;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.todo-checkbox:hover {
    background: rgba(102, 126, 234, 0.1);
}

.todo-checkbox.checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
}

.todo-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.todo-text {
    flex: 1;
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #999;
    opacity: 0.7;
}

.todo-delete {
    width: 32px;
    height: 32px;
    border: none;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0;
}

.todo-item:hover .todo-delete {
    opacity: 1;
}

.todo-delete:hover {
    background: #ee5a5a;
    transform: scale(1.1);
}

.todo-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 1.1rem;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.3rem;
    color: #333;
}

.modal-close {
    width: 35px;
    height: 35px;
    border: none;
    background: #f0f0f0;
    color: #666;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.modal-body input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    outline: none;
}

.modal-body input:focus {
    border-color: #667eea;
}

/* 日历部分 */
.calendar-section {
    margin-bottom: 25px;
}

.calendar-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.calendar-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.calendar-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar .day-header {
    text-align: center;
    font-weight: 600;
    color: #888;
    font-size: 0.85rem;
    padding: 8px 0;
}

.calendar .day {
    text-align: center;
    padding: 10px 5px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.2s ease;
}

.calendar .day.empty {
    background: transparent;
}

.calendar .day.today {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.calendar .day.school-day {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
}

.calendar .day.past {
    color: #ccc;
}

/* 作业计划详情 */
.schedule-section {
    margin-bottom: 25px;
}

.schedule-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.schedule-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
}

.schedule-item {
    text-align: center;
    padding: 12px 8px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.schedule-item.current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.schedule-item .date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}

.schedule-item.current .date {
    color: rgba(255,255,255,0.8);
}

.schedule-item .task-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.schedule-item.current .task-count {
    color: white;
}

/* 激励语录 */
.quote-section {
    margin-bottom: 25px;
}

.quote-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    font-family: Georgia, serif;
    color: rgba(102, 126, 234, 0.1);
    line-height: 1;
    animation: quoteFloat 3s ease-in-out infinite;
}

@keyframes quoteFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.quote-text {
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    animation: quoteFadeIn 1s ease;
}

@keyframes quoteFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-author {
    font-size: 0.95rem;
    color: #667eea;
    font-weight: 500;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* 粒子装饰背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(168, 237, 234, 0.1) 0%, transparent 50%);
    animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* 卡片悬浮增强 */
.card-enter {
    animation: cardSlideUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页脚 */
footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    padding: 20px;
    font-size: 1rem;
    position: relative;
}

footer::before {
    content: '✨';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .dates-section {
        gap: 15px;
    }

    .date-card {
        min-width: 160px;
        padding: 20px;
    }

    .countdown-number {
        font-size: 3.5rem;
    }

    .calendar-container {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6rem;
    }

    .date-card {
        min-width: 140px;
        padding: 15px;
    }

    .date-icon {
        font-size: 2rem;
    }

    .arrow {
        display: none;
    }

    .countdown-number {
        font-size: 3rem;
    }

    .calendar .day {
        font-size: 0.85rem;
        padding: 8px 3px;
    }

    .schedule-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .todo-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .todo-actions {
        width: 100%;
    }

    .btn {
        flex: 1;
    }

    .todo-delete {
        opacity: 1;
    }
}
