.header {
    width: 100%;
    min-width: 1480px;
    top: 0;
    left: 0;
    background-image: url("../img/img2.jpeg");
    background-size: cover;
    height: 800px;
}
.works {
    display: flex;
    justify-content: center;
    align-items: center;
    /* 允许换行 */
    flex-wrap: wrap;
    margin-top: 30px;
}

.works-card {
    position: relative;
    width: 240px;
    height: 350px;
    margin: 20px;
    display: flex;
    align-items: flex-end;
    text-align: center;
    color: #f5f5f5;
    /* 阴影 */
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
    0 2px 2px rgba(0, 0, 0, 0.1),
    0 4px 4px rgba(0, 0, 0, 0.1),
    0 8px 8px rgba(0, 0, 0, 0.1),
    0 16px 16px rgba(0, 0, 0, 0.1);
    /* 溢出隐藏 */
    overflow: hidden;
    border-radius: 10px;
}

.works-card::before {
    content: "";
    width: 100%;
    height: 110%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: 0 0;
    /* 过渡效果: css属性名 时长 贝塞尔曲线 */
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 分别设置图片 */
.works-card:nth-child(1)::before {
    background-image: url("../img/img_1.png");
}

.works-card:nth-child(2)::before {
    background-image: url("../img/img.png");
}

.works-card:nth-child(3)::before {
    background-image: url("../img/img_2.png");
}

.works-card:nth-child(4)::before {
    background-image: url("../img/img_3.png");
}

/* 遮罩 */
.works-card::after {
    content: "";
    display: block;
    width: 100%;
    height: 200%;
    background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.25) 55%,
    rgba(0, 0, 0, 0.8) 100%);
    /* 绝对定位 */
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(0);
    /* 过渡效果 */
    transition: transform 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.works-card .content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 16px 8px;
    transform: translateY(76%);
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.works-card h2 {
    font-size: 23px;
    font-weight: bold;
}

.works-card p {
    font-size: 15px;
    /* 字间距 */
    letter-spacing: 2px;
    width: 80%;
    line-height: 30px;
    margin-top: 25px;
    /* 文本两端对齐 */
    text-align: justify;
}

.works-card button {
    cursor: pointer;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 25px;
}

.works-card button:hover {
    background-color: #000;
}

.works-card .content *:not(h2) {
    /* .content下，除了h2，其他元素隐藏并下移20px */
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.works-card:hover {
    align-items: center;
}

.works-card:hover::before {
    transform: translateY(-5%);
}

.works-card:hover::after {
    transform: translateY(-50%);
}

.works-card:hover .content {
    transform: translateY(0);
}

.works-card:hover .content *:not(h2) {
    opacity: 1;
    transform: translateY(0);
    /* 过渡效果延迟 */
    transition-delay: 0.1s;
}

.table-container {
    width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f18484;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

th:hover {
    background: #f18484;
}

tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
    transition: transform 0.2s;
}

.search-container {
    margin: 20px auto;
    max-width: 1200px;
}

.search-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #f18484;
    border-radius: 5px;
    outline: none;
}

.search-input:focus {
    border-color: #f18484;
    box-shadow: 0 0 5px rgba(205, 49, 44, 0.2);
}

.albums-container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.album-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.album-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    cursor: pointer;
}

.album-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.album-cover {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
}

.album-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.album-date {
    font-size: 14px;
    color: #666;
}

.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    transition: transform 0.3s ease;
}

.songs-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.songs-list.expanded {
    max-height: 500px;
}

.song-item {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.song-title {
    color: #333;
}

.song-duration {
    color: #999;
    font-size: 14px;
}

.player-container {
    width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.song-list {
    list-style: none;
    margin-top: 20px;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.song-item:hover {
    background-color: #f8f8f8;
}

.song-item.active {
    background-color: rgba(205, 49, 44, 0.2);
}

.song-info {
    flex-grow: 1;
}

.song-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.song-duration {
    font-size: 14px;
    color: #666;
}

.player-controls {
    margin-top: 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background-color: #ddd;
    border-radius: 3px;
    margin: 10px 0;
    cursor: pointer;
}

.progress {
    width: 0;
    height: 100%;
    background-color: #f18484;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.control-button {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.control-button:hover {
    background-color: #f0f0f0;
}

.control-button svg {
    width: 24px;
    height: 24px;
    fill: #f18484;
}
