/* 拼音音节表特定样式 */
.syllable-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 20px 0;
    border-bottom: 2px solid #667eea;
}

.syllable-tab {
    padding: 10px 16px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s;
    min-width: 36px;
    text-align: center;
}

.syllable-tab:hover {
    background: #e8e8e8;
    color: #667eea;
}

.syllable-tab.active {
    background: #667eea;
    color: white;
}

.syllable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin: 20px 0;
}

.syllable-column {
    padding: 6px;
}

.tone-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tone-text {
    padding: 8px 4px;
    background: white;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tone-text:hover:not(.empty) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.tone-text.playing {
    background: #764ba2;
    color: white;
    border-color: #764ba2;
    animation: pulse 0.5s ease-in-out;
}

.tone-text.empty {
    background: white;
    border: 1px solid #e0e0e0;
    cursor: default;
    color: #ccc;
    height: 40px;
}

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

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: #764ba2;
}

.page-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #666;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-num {
    padding: 6px 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.page-num:hover {
    background: #f0f0f0;
}

.page-num.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

@media (max-width: 768px) {
    .syllable-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 6px;
    }

    .syllable-tab {
        padding: 8px 12px;
        font-size: 14px;
    }
}
