/* 凌羽注：组件样式 - 可复用的UI元素 */
/*  section标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 15px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

/* 功能卡片样式 */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background-color: #f9faff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #4a6bff;
}

/* AI音乐生成器样式 */
.generator {
    padding: 80px 5%;
    background-color: #f5f7ff;
}

.controls {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.control-group {
    margin-bottom: 30px;
}

.control-group h3 {
    margin-bottom: 15px;
    color: #333;
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.generate-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #4a6bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 30px;
}

.generate-btn:hover {
    background-color: #3a5bef;
}

/* 音乐库展示样式 */
.music-library {
    padding: 80px 5%;
    background-color: #fff;
}

.library-title {
    text-align: center;
    margin-bottom: 30px;
}

.library-title h2 {
    font-size: 2rem;
    color: #222;
}

/* 三栏音乐布局样式 */
.music-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 5%;
}

.music-card-wide {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.music-card-wide:hover {
    transform: translateY(-5px);
}

.music-card-wide .music-cover {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-card-wide .music-cover i {
    font-size: 60px;
    color: rgba(255,255,255,0.9);
}

.music-card-wide .music-info {
    padding: 20px;
    text-align: center;
}

.music-card-wide h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.music-card-wide .music-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.music-card-wide .play-btn,
.music-card-wide .pause-btn {
    padding: 8px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.music-card-wide .play-btn {
    background-color: #4a6bff;
    color: white;
}

.music-card-wide .play-btn:hover {
    background-color: #3a5bef;
}

.music-card-wide .pause-btn {
    background-color: #ff6b6b;
    color: white;
}

.music-card-wide .pause-btn:hover {
    background-color: #ff5252;
}

/* 凌羽注：音乐库响应式调整 */
@media (max-width: 768px) {
    .music-grid-three {
        grid-template-columns: 1fr; /* 手机上音乐卡片单列显示 */
    }

    .generate-form {
        padding: 25px;
    }
}