* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 20px;
    color: #2d3748;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    color: white;
}

.download-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff8e8e, #ff6b6b);
}

.bottom-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.share-btn-bottom {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.share-btn-bottom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, #45a049, #4CAF50);
}

.download-btn-bottom {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.download-btn-bottom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
    background: linear-gradient(135deg, #ff8e8e, #ff6b6b);
}

/* Flashcard Detail Overlay Styles */
.flashcard-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.flashcard-detail {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeIn 0.3s ease;
}

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

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #ff5252;
    transform: scale(1.1);
}

.detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.detail-emoji {
    font-size: 4rem;
    margin-right: 20px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.detail-word-section {
    flex: 1;
}

.detail-word {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 5px;
    font-family: 'Comic Neue', cursive;
}

.detail-pronunciation {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Comic Neue', cursive;
}

.detail-translation {
    font-size: 2rem;
    color: #764ba2;
    font-weight: 700;
    font-family: 'Comic Neue', cursive;
}

.detail-pos {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 1rem;
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h3 {
    font-size: 1.4rem;
    color: #667eea;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-section p {
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 10px;
}

.detail-section ul {
    list-style-type: none;
    padding-left: 0;
}

.detail-section li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-section li:last-child {
    border-bottom: none;
}

.example-sentence {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    border-left: 4px solid #667eea;
}

.example-sentence p {
    margin-bottom: 5px;
}

.example-sentence .pinyin {
    color: #718096;
    font-style: italic;
}

.quiz-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.quiz-option:hover {
    background: #e9ecef;
}

.quiz-option.correct {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.quiz-option .emoji {
    margin-right: 10px;
    font-size: 1.2rem;
}

.detail-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    color: #718096;
    font-size: 0.9rem;
}

/* Mobile responsive for overlay */
@media (max-width: 768px) {
    .flashcard-overlay {
        padding: 10px;
    }
    
    .flashcard-detail {
        margin: 20px auto;
        padding: 20px;
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-emoji {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
    }
    
    .detail-footer {
        flex-direction: column;
        gap: 10px;
    }
}

/* Flip Card Styles */
.flashcard {
    background: transparent;
    
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: all 0.4s ease;
    overflow: visible;
    transform-style:preserve-3d;

    border-radius: 20px;
    padding: 0px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    
    background-color: transparent;
    cursor: pointer;
    border: 3px solid transparent;
    height: 380px; /* Fixed height for consistent flip animation */
    perspective: 1000px;
}

.flashcard-inner:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.flashcard-inner.flipped {
    transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    overflow: hidden;
    border-radius: 20px; /* Match the outer border-radius */
}

.flashcard-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    overflow: hidden;
    border-radius: 5;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.flashcard-back {
    transform: rotateY(180deg);
    background: white;
    
}

.flashcard-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    overflow: hidden;
    border-radius: 5;
    background: linear-gradient(90deg, #4CAF50, #45a049); /* Green gradient for back side */
}

/* Front Side Styles */
.flashcard-emoji {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 15px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.flashcard-word-section {
    text-align: center;
    margin-bottom: 15px;
}

.flashcard-word {
    font-size: 2.0rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 8px;
    font-family: 'Comic Neue', cursive;
}

.flashcard-pronunciation {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'Comic Neue', cursive;
}

.flashcard-pos {
    display: block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: white;
    margin: 0 auto 15px auto;
    font-weight: 600;
    text-align: center;
    width: fit-content;
    max-width: 80%;
}

.flashcard-definition {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flashcard-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e2e8f0;
    font-size: 0.85rem;
    color: #718096;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flip-hint {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #718096;
    opacity: 0.7;
}

/* Back Side Styles */
.flashcard-emoji-back {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 15px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.flashcard-word-back {
    font-size: 2.0rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 8px;
    font-family: 'Comic Neue', cursive;
}

.flashcard-translation {
    font-size: 1.8rem;
    text-align: center;
    color: #764ba2;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Comic Neue', cursive;
}

.flashcard-definition-back {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin: 15px auto 0 auto;
    transition: all 0.3s ease;
    width: 80%;
    max-width: 200px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.flip-hint-back {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #718096;
    opacity: 0.7;
}

/* Rest of the existing styles */
.panda-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.panda-title h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Comic Neue', cursive;
}

.panda-emoji {
    font-size: 4rem;
    animation: bounce 2s infinite;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.filters-container {
    background: white;
    padding: 25px 30px;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 3px solid #e9ecef;
}

.stats {
    margin-top: 12px;
    padding: 6px;
    text-align: center;
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
}

.filter-group {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 300px;
}

.filter-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.filter-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1rem;
    background: white;
    color: #2d3748;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input {
    width: 100%;
    padding: 14px 18px 14px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1rem;
    background: white;
    color: #2d3748;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-clear:hover {
    color: #667eea;
}

.search-item {
    position: relative;
}

.btn {
    padding: 14px 35px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-family: 'Quicksand', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.pagination-info {
    font-weight: 600;
    color: #667eea;
    font-size: 1.2rem;
}

.pagination-controls {
    display: flex;
    gap: 15px;
}

.flashcards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.grade-badge, .unit-badge {
    color: #718096;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 0;
}

.grade-badge::before {
    content: "📊 ";
}

.unit-badge::before {
    content: "📁 ";
}

.loading {
    text-align: center;
    padding: 80px 20px;
    color: #667eea;
    font-size: 1.4rem;
    grid-column: 1 / -1;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

.bottom-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px 30px;
    margin-top: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.download-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: 'Comic Neue', cursive;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.download-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

@keyframes dots {
    0%, 20% { color: rgba(102, 126, 234, 0); }
    40% { color: rgba(102, 126, 234, 1); }
    60% { color: rgba(102, 126, 234, 1); }
    80%, 100% { color: rgba(102, 126, 234, 1); }
}

.error {
    background: #fed7d7;
    color: #c53030;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    grid-column: 1 / -1;
    border: 2px solid #feb2b2;
}

/* Color variations for cards */
.card-color-1 { background: linear-gradient(135deg, #ffebee, #fce4ec); }
.card-color-2 { background: linear-gradient(135deg, #f3e5f5, #e8eaf6); }
.card-color-3 { background: linear-gradient(135deg, #e3f2fd, #e0f2f1); }
.card-color-4 { background: linear-gradient(135deg, #f1f8e9, #f9fbe7); }
.card-color-5 { background: linear-gradient(135deg, #fff3e0, #fbe9e7); }
.card-color-6 { background: linear-gradient(135deg, #efebe9, #fafafa); }

/* Highlighted search results */
.flashcard.highlighted {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .flashcards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .flashcards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .panda-title h1 {
        font-size: 2.5rem;
    }
    
    .panda-emoji {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-item {
        min-width: 100%;
    }

    .download-btn {
        position: relative;
        top: auto;
        right: auto;
        display: inline-block;
        margin-top: 15px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .header {
        padding-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .flashcards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .panda-title {
        flex-direction: column;
        gap: 10px;
    }
    
    .panda-title h1 {
        font-size: 2.2rem;
    }
    
    .header p {
        font-size: 1.1rem;
    }
    
    body {
        padding: 15px;
    }
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #667eea;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.empty-state p {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/** for daily word **/
/* ===== 每日单词卡片 - 精美设计 ===== */
.daily-word-banner {
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.daily-word-container {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: white;
    position: relative;
    z-index: 1;
}

/* 背景装饰元素 */
.daily-word-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: -50px;
    animation-delay: 5s;
    background: rgba(255, 255, 255, 0.03);
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 30%;
    animation-delay: 10s;
    background: rgba(255, 255, 255, 0.02);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, 20px) scale(1.05); }
    66% { transform: translate(-15px, -15px) scale(0.95); }
}

/* 角标 */
.daily-word-corner-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    transform: rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 卡片头部 */
.daily-word-header {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
}

.daily-word-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.daily-word-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.date-icon {
    font-size: 1.2rem;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
}

.daily-word-badge {
    display: flex;
    gap: 15px;
    align-items: center;
}

#word-cefr {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.difficulty-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.daily-word-title h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Comic Neue', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.daily-word-title p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* 单词主体部分 */
.daily-word-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.word-left-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.word-emoji-container {
    text-align: center;
    flex-shrink: 0;
}

.word-emoji {
    font-size: 6rem;
    margin-bottom: 10px;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.3));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.emoji-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.word-basic-info {
    flex: 1;
}

.word-main-container {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 15px;
}

.word-main {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0;
    font-family: 'Comic Neue', cursive;
    line-height: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.word-pos {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.word-pronunciation {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.pronunciation-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.pronunciation-text {
    font-size: 1.8rem;
    font-weight: 600;
    font-family: 'Comic Neue', cursive;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.word-translation-container {
    margin-top: 30px;
}

.translation-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: 500;
}

.word-translation {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    color: white;
    font-family: 'Comic Neue', cursive;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

/* 右侧部分 */
.word-right-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.section-icon {
    font-size: 1.5rem;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.word-definition {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    padding-left: 42px;
}

.word-examples {
    padding-left: 42px;
}

.example-item {
    margin-bottom: 20px;
}

.example-type {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    font-weight: 500;
}

.example-item p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: white;
    margin: 0;
    font-style: italic;
}

.example-item em {
    font-style: normal;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 扩展信息 */
.daily-word-extra {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.extra-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.extra-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
}

.extra-content {
    flex: 1;
}

.extra-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.extra-text {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* 操作按钮区 */
.daily-word-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 15px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.action-center {
    display: flex;
    gap: 15px;
}

.audio-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.save-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.share-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.audio-btn:hover, .save-btn:hover, .share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.action-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.link-icon {
    font-size: 1.2rem;
}

/* 加载和错误状态 */
.loading-state, .error-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    margin: 0 auto 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-state .error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.error-state p {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.retry-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .daily-word-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .word-main {
        font-size: 3rem;
    }
    
    .word-translation {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .daily-word-container {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .word-left-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .word-main {
        font-size: 2.5rem;
    }
    
    .word-translation {
        font-size: 2rem;
    }
    
    .word-pronunciation {
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-center {
        order: 1;
    }
    
    .prev-btn, .next-btn {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .extra-grid {
        grid-template-columns: 1fr;
    }
    
    .daily-word-corner-badge {
        top: 15px;
        right: 15px;
        padding: 6px 15px;
    }
    
    .badge-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .daily-word-banner {
        padding: 0 10px;
        margin: 20px auto;
    }
    
    .daily-word-title h3 {
        font-size: 1.8rem;
    }
    
    .word-main {
        font-size: 2.2rem;
    }
    
    .pronunciation-text {
        font-size: 1.4rem;
    }
    
    .word-translation {
        font-size: 1.8rem;
    }
    
    .action-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-link {
        justify-content: center;
    }
}