* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffbdbd 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 900px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(to right, #ff1447 0%, #fc25c6 100%);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.header p {
    opacity: 0.9;
    font-size: 1rem;
}

.weekday-display {
    background-color: rgba(255, 255, 255, 0.15);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    margin-top: 10px;
    font-weight: 500;
}

.current-info {
    padding: 25px 25px;
    text-align: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.task-info {
    flex: 1;
    min-width: 250px;
    text-align: right;
}

.task-name {
    font-size: 3.6rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 5px;
}

.time-range {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.time-info {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.current-time {
    font-size: 1.1rem;
    color: #202020;
    background-color: #ebf5fb;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 5px;
}

.progress-container {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.progress-percentage {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to right, #2ecc71, #1abc9c);
    color: white;
    border-radius: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(252, 11, 3, 0.3);
}

.percentage-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.time-details {
    padding: 30px 25px 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.time-item {
    flex: 1;
    min-width: 150px;
}

.time-label {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.time-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.progress-text {
    padding: 25px;
    font-size: 1.2rem;
    color: #34495e;
    line-height: 1.5;
    text-align: center;
    background-color: white;
}

.rest-time {
    color: #6c5ce7;
    font-weight: 600;
}

.schedule-table {
    padding: 0 25px 30px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    background-color: #f1f8ff;
    color: #3498db;
    font-weight: 600;
    padding: 12px 10px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
}

tr.current-task {
    background-color: #e8f4fc;
    font-weight: 600;
}

.time-cell {
    white-space: nowrap;
}

.course-cell {
    position: relative;
}

.course-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 1rem;
    margin-left: 5px;
}

.course-badge.english {
    background-color: #e8f4fc;
    color: #2980b9;
}

.course-badge.chinese {
    background-color: #f9ebea;
    color: #c0392b;
}

.course-badge.math {
    background-color: #eafaf1;
    color: #27ae60;
}

.course-badge.history {
    background-color: #fef9e7;
    color: #f39c12;
}

.course-badge.geography {
    background-color: #f4ecf7;
    color: #8e44ad;
}

.course-badge.biology {
    background-color: #e8f6f3;
    color: #16a085;
}

.course-badge.politics {
    background-color: #fdebd0;
    color: #e67e22;
}

.course-badge.pe {
    background-color: #ebf5fb;
    color: #3498db;
}

.footer {
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

.update-info {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .current-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .task-info,
    .time-info,
    .progress-container {
        text-align: center;
        min-width: 100%;
    }

    .task-name {
        font-size: 3.6rem;
    }

    .time-range {
        font-size: 1.1rem;
    }

    .progress-percentage {
        font-size: 1.6rem;
        min-width: 80px;
        padding: 8px 16px;
    }

    .time-value {
        font-size: 1.5rem;
    }

    .progress-text {
        font-size: 1.1rem;
    }

    .course-badge {
        display: block;
        margin-top: 3px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 15px;
    }

    .current-info {
        padding: 20px 15px;
    }

    .time-details {
        padding: 20px 15px 30px;
    }

    .time-item {
        min-width: 100%;
    }

    .progress-text {
        padding: 20px 15px;
        font-size: 1rem;
    }

    .schedule-table {
        padding: 0 15px 20px;
    }

    th,
    td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
}

a {
    text-decoration: none;
    color: #ffffff;
}