/* piano.html 页面专用样式 - 替代 TailwindCSS CDN */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航 */
.page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.page-nav-logo img {
    height: 32px;
}

.page-nav-links {
    display: flex;
    gap: 1rem;
}

/* 卡片容器 */
.page-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.page-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 1rem;
}

/* 钢琴内部容器 */
.piano-inner {
    position: relative;
    display: flex;
    justify-content: center;
}

.white-keys {
    display: flex;
}

.black-keys {
    position: absolute;
    display: flex;
}

/* 练习控制区 */
.practice-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.song-select {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem 1rem;
}

.practice-btn {
    background: #4299e1;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.practice-btn:hover {
    background: #3182ce;
}

.note-display {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a5568;
    margin-top: 1rem;
}

/* 键盘映射区 */
.keyboard-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.keyboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.keyboard-subtitle {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.keyboard-text {
    color: #666;
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 768px) {
    .keyboard-grid {
        grid-template-columns: 1fr;
    }
    
    .practice-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-nav {
        flex-direction: column;
        gap: 1rem;
    }
}
