/* ==================== 字母练习样式 ==================== */

/* 字母练习页面 */
#alphabet-practice-page {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
}

.alphabet-practice-container {
    max-width: 800px;
    width: 100%;
}

.alphabet-practice-container h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 字母选择器 */
.alphabet-selector {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alphabet-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.alphabet-row:last-child {
    margin-bottom: 0;
}

.alphabet-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(145deg, #2a2a40, #1a1a2a);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alphabet-btn:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.alphabet-btn.selected {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
    transform: scale(1.05);
}

/* 快捷选择按钮 */
.quick-select-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-btn:hover {
    background: rgba(108, 92, 231, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 已选字母显示 */
.selected-letters-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-letters-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

#selected-letters-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 5px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 自定义时间区域 */
.custom-time-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-label {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.time-input-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.time-adjust-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-adjust-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
}

.custom-time-input {
    width: 100px;
    height: 60px;
    background: var(--bg-secondary);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    outline: none;
}

.custom-time-input:focus {
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}

/* 隐藏数字输入的箭头 */
.custom-time-input::-webkit-outer-spin-button,
.custom-time-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-time-input[type=number] {
    -moz-appearance: textfield;
}

/* 时间预设按钮 */
.time-presets {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.preset-btn {
    width: 50px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: rgba(108, 92, 231, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 开始练习按钮 */
.start-practice-btn {
    padding: 18px 60px;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    margin-top: 10px;
}

.start-practice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

.start-practice-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 返回按钮 */
.back-to-menu-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--text-muted);
    border-radius: 25px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.back-to-menu-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==================== 模式选择页面样式 ==================== */
.mode-selection {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.mode-card {
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 40px 30px;
    width: 280px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.mode-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.3);
}

.mode-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.mode-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.mode-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .alphabet-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .alphabet-row {
        gap: 5px;
    }
    
    .quick-select-buttons {
        gap: 8px;
    }
    
    .quick-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .mode-selection {
        flex-direction: column;
        align-items: center;
    }
    
    .mode-card {
        width: 100%;
        max-width: 300px;
    }
    
    .custom-time-input {
        width: 80px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .alphabet-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    #selected-letters-display {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }
}
