* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #333;
    height: 100vh;
    overflow: hidden;
    padding: 20px;
}

.container {
    height: 100%;
    max-width: 1500px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    background: linear-gradient(to right, #4a00e0, #8e2de2);
    color: white;
    padding: 20px 30px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-left {
    flex: 1;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.week-info {
    font-size: 1.2rem;
    color: #e0e0ff;
}

.daily-quote {
    font-size: 1.2rem;
    color: #e0e0ff;
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.daily-quote::before {
    content: "❝";
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 1.5rem;
    color: #c0c0ff;
}

.daily-quote::after {
    content: "❞";
    position: absolute;
    right: -1.2rem;
    top: -5px;
    font-size: 1.5rem;
    color: #c0c0ff;
}

.date-time {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-align: right;
    margin-bottom: 5px;
}

.time-status {
    font-size: 1rem;
    color: #c0c0ff;
    font-style: italic;
    text-align: right;
}

.progress-container {
    background-color: #f0f0f0;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.progress-info {
    font-size: 1rem;
    color: #555;
    white-space: nowrap;
}

.progress-bar {
    flex-grow: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin: 0 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #4a00e0, #8e2de2);
    width: 0%;
    transition: width 0.5s ease;
}

.words-container {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    overflow: hidden;
}

/* 复习模式布局 - 与前一天相同 */
.review-layout {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.word-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.word-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.word-card:hover::after {
    content: "🔊 点击发音";
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 0.7rem;
    color: #8e2de2;
    background: rgba(142, 45, 226, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
}

.word-id {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #8e2de2;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.word {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a00e0;
    margin-bottom: 8px;
    text-align: center;
    margin-top: 5px;
}

.phonetic {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    font-style: italic;
    text-align: center;
}

.part-of-speech {
    font-size: 1.5rem;
    color: #8e2de2;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
}

.meaning {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.example {
    font-size: 1rem;
    color: #555;
    font-style: italic;
    border-left: 3px solid #8e2de2;
    padding-left: 8px;
    text-align: left;
}

/* 复习模式的单词卡片只显示英文单词 */
.review-card .phonetic,
.review-card .part-of-speech,
.review-card .meaning,
.review-card .example {
    display: none;
}

.review-card .word {
    font-size: 1.8rem;
    margin-top: 15px;
    margin-bottom: 15px;
}

.empty-card {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1rem;
    text-align: center;
    padding: 15px;
}

.weekend-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2rem;
    color: #666;
    text-align: center;
    padding: 20px;
}

footer {
    text-align: center;
    padding: 15px;
    color: #666;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .word {
        font-size: 1.3rem;
    }
    
    .review-card .word {
        font-size: 1.6rem;
    }
    
    .meaning {
        font-size: 0.9rem;
    }
    
    .example {
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .words-container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 12px;
        padding: 15px;
    }
    
    .review-layout {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
    
    .word-card {
        padding: 12px;
    }
    
    .word {
        font-size: 1.4rem;
    }
    
    .review-card .word {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 15px;
    }
    
    header {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .header-left {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .date-time {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .time-status {
        text-align: center;
    }
    
    .week-info, .daily-quote {
        text-align: center;
        width: 100%;
    }
    
    .daily-quote::before {
        display: none;
    }
    
    .progress-container {
        padding: 10px 20px;
    }
    
    .words-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
        gap: 10px;
        padding: 10px;
    }
    
    .review-layout {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }
    
    .word {
        font-size: 1.3rem;
    }
    
    .review-card .word {
        font-size: 1.4rem;
    }
    
    .meaning {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .words-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(10, 1fr);
        gap: 8px;
    }
    
    .review-layout {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(10, 1fr);
    }
    
    .word-card {
        padding: 10px;
    }
    
    .word {
        font-size: 1.2rem;
    }
    
    .review-card .word {
        font-size: 1.3rem;
    }
    
    .meaning {
        font-size: 0.85rem;
    }
    
    .example {
        font-size: 0.75rem;
    }
}

