/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #FFFFFF;
    font-family: 'Hahmlet', sans-serif;
}

/* 全局图片悬停效果（排除导航、搜索图标、箭头、轮播卡片和分类图片，它们有特殊处理） */
img:not(.nav-logo-img):not(.search-icon):not(.arrow-icon):not(.carousel-arrow img):not(.carousel-play-pause *):not(.carousel-card img):not(.category-img):not(.article-img) {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

img:not(.nav-logo-img):not(.search-icon):not(.arrow-icon):not(.carousel-arrow img):not(.carousel-play-pause *):not(.carousel-card img):not(.category-img):not(.article-img):hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 主容器 - Album and music page 框架 */
/* 根据Figma: width: 1700px, height: 3825px */
.album-music-page {
    width: 1700px;
    min-height: 3825px;
    background-color: #FFFFFF;
    position: relative;
    margin: 0 auto;
    overflow-x: hidden;
}

/* ==================== 顶部导航栏 ==================== */
.top-nav {
    position: absolute;
    left: 0;
    top: 0;
    width: 1701px;
    height: 80px;
    background-color: #680000;
    box-shadow: 0px 5.3125px 5.3125px 0px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-left > a:first-of-type {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}

.nav-logo-img {
    width: 48.4px;
    height: 46.04px;
    object-fit: contain;
    display: block;
}

.nav-home {
    font-family: 'Hahmlet', sans-serif;
    font-weight: 400;
    font-size: 17.708332061767578px;
    line-height: 1.4479999819048701em;
    color: #FFFFFF;
    text-decoration: none;
    margin-left: 10px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-home:hover {
    color: #FFDA72;
    background-color: rgba(255, 218, 114, 0.1);
}

.nav-home.nav-active {
    color: #FFDA72;
}

.nav-center {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-family: 'Hahmlet', sans-serif;
    font-weight: 400;
    font-size: 17.708332061767578px;
    line-height: 1.4479999819048701em;
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-link:hover {
    color: #FFDA72;
    background-color: rgba(255, 218, 114, 0.1);
}

.nav-link.nav-active {
    color: #FFDA72;
}


.nav-right {
    display: flex;
    align-items: center;
}

.search-box {
    width: 502.92px;
    height: 36.6px;
    border: 2.2135415077209473px solid #C1C1C1;
    border-radius: 885.4166870117188px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    background-color: transparent;
}

.search-icon {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

/* ==================== 顶部背景区域 ==================== */
/* Rectangle 123 - 位置: x: -4px, y: -16px, 尺寸: 1710px x 1006px */
.top-background-section {
    position: absolute;
    left: -4px;
    top: -16px;
    width: 1710px;
    height: 1006px;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==================== 顶部标签 ==================== */
.top-tabs {
    position: relative;
    z-index: 10;
}

/* 标签项独立定位 */
.tab-item {
    position: absolute;
    font-family: 'Hammersmith One', sans-serif;
    font-weight: 400;
    font-size: 13.28125px;
    line-height: 1.25em;
    color: #D9D9D9;
    cursor: pointer;
    transition: color 0.3s;
    white-space: nowrap;
    z-index: 10;
}

.tab-item:hover {
    color: #000000;
}

.tab-item.tab-active {
    color: #000000;
}

/* Hot Songs - 位置: x: 1205.05px, y: 409.06px */
.top-tabs .tab-item:nth-child(1) {
    left: 1205.05px;
    top: 409.06px;
}

/* Recommed - 位置: x: 1292.32px, y: 243px */
.top-tabs .tab-item:nth-child(2) {
    left: 1292.32px;
    top: 243px;
}

/* New Songs - 位置: x: 1402.11px, y: 243px */
.top-tabs .tab-item:nth-child(3) {
    left: 1402.11px;
    top: 243px;
}

/* Find More - 位置: x: 1511.91px, y: 243px */
.top-tabs .tab-item:nth-child(4) {
    left: 1511.91px;
    top: 243px;
}

/* ==================== 导航箭头 ==================== */
.nav-arrow {
    position: absolute;
    width: 46.93px;
    height: 46.93px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.arrow-left {
    left: 43px;
    top: 479.41px;
}

.arrow-left img {
    transform: scaleX(-1); /* 水平翻转左箭头 */
}

.arrow-right {
    left: 1591.59px;
    top: 479.41px;
}

/* ==================== 3D专辑轮播器 ==================== */
.carousel-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    z-index: 5;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.carousel-card {
    position: absolute;
    width: 400px;
    height: 500px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-style: preserve-3d;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.6s;
}

/* 中央卡片（当前激活的） */
.carousel-card.active {
    transform: translateX(0) translateZ(0) scale(1);
    z-index: 10;
}

.carousel-card.active img {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

/* 左侧卡片 */
.carousel-card.prev {
    transform: translateX(-350px) translateZ(-200px) scale(0.8);
    opacity: 0.7;
    z-index: 5;
}

.carousel-card.prev-2 {
    transform: translateX(-600px) translateZ(-400px) scale(0.6);
    opacity: 0.5;
    z-index: 3;
}

.carousel-card.prev-3 {
    transform: translateX(-800px) translateZ(-600px) scale(0.4);
    opacity: 0.3;
    z-index: 1;
}

/* 右侧卡片 */
.carousel-card.next {
    transform: translateX(350px) translateZ(-200px) scale(0.8);
    opacity: 0.7;
    z-index: 5;
}

.carousel-card.next-2 {
    transform: translateX(600px) translateZ(-400px) scale(0.6);
    opacity: 0.5;
    z-index: 3;
}

.carousel-card.next-3 {
    transform: translateX(800px) translateZ(-600px) scale(0.4);
    opacity: 0.3;
    z-index: 1;
}

/* 隐藏的卡片 */
.carousel-card.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 导航箭头 */
.carousel-arrow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.carousel-arrow-left {
    left: 50px;
}

.carousel-arrow-left img {
    transform: scaleX(-1);
}

.carousel-arrow-right {
    right: 50px;
}

/* 圆点指示器 */
.carousel-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    width: 32px;
    border-radius: 6px;
}

/* 暂停/播放按钮 */
.carousel-play-pause {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    transition: all 0.3s;
}

.carousel-play-pause:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-50%) scale(1.1);
}

.carousel-play-pause:active {
    transform: translateX(-50%) scale(0.95);
}

/* ==================== 圆形按钮组（分页指示器） - 保留旧样式以防万一 ==================== */
.dots-container {
    position: absolute;
    left: 770.81px;
    top: 837.12px;
    display: flex;
    gap: 5.7px;
    z-index: 10;
}

.dot {
    width: 18.59px;
    height: 18.59px;
    border-radius: 50%;
    background-color: #D9D9D9;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot:hover {
    background-color: #7E7E7E;
}

.dot-active {
    background-color: #7E7E7E;
}

/* ==================== MUSIC CATEGORIES 区域 ==================== */
/* 位置: x: 159px, y: 1086px */
.music-categories-section {
    position: absolute;
    left: 159px;
    top: 1086px;
    width: 1382px; /* 1700 - 159*2 */
    z-index: 1;
}

/* Rectangle 257 - 半透明白色覆盖层，位置: x: 160px, y: 1257px, 尺寸: 396px x 794px */
.music-categories-section::before {
    content: '';
    position: absolute;
    left: 1px; /* 160 - 159 */
    top: 171px; /* 1257 - 1086 */
    width: 396px;
    height: 794px;
    background-color: rgba(255, 255, 255, 0.48);
    z-index: -1;
}

.section-title {
    font-family: 'Hahmlet', sans-serif;
    font-weight: 700;
    font-size: 42.5px;
    line-height: 1.4479999317842371em;
    color: #000000;
    margin-bottom: 40px;
}

/* 分类网格 */
.categories-grid {
    position: relative;
    width: 100%;
    height: 560px;
    margin-bottom: 40px;
}

.category-item {
    position: absolute;
    overflow: hidden;
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.25);
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.category-item:hover .category-img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #FFFFFF;
}

.category-title {
    font-family: 'Hahmlet', sans-serif;
    font-weight: 400;
    font-size: 26.286792755126953px;
    line-height: 1.4479999419526406em;
    color: #FFFFFF;
}

/* Rectangle 235 - 位置: x: 159px, y: 1256px, 尺寸: 387px x 560px */
.category-left {
    left: 0;
    top: 170px; /* 1256 - 1086 */
    width: 387px;
    height: 560px;
}

/* Rectangle 237 - 位置: x: 648px, y: 1256px, 尺寸: 386px x 560px */
.category-center {
    left: 489px; /* 648 - 159 */
    top: 170px;
    width: 386px;
    height: 560px;
}

/* Rectangle 236 - 位置: x: 1136px, y: 1259px, 尺寸: 387px x 557px */
.category-right {
    left: 977px; /* 1136 - 159 */
    top: 173px; /* 1259 - 1086 */
    width: 387px;
    height: 557px;
}

/* See more 按钮 */
.see-more-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 20px;
}

/* 位置: x: 1307px, y: 1092px, 尺寸: 215px x 55px */
.see-more-btn {
    position: absolute;
    right: 0;
    top: 6px; /* 1092 - 1086 */
}

.see-more-button {
    width: 215px;
    height: 55px;
    border: 1px solid #000000;
    border-radius: 30px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    padding: 0 20px;
    position: relative;
    box-sizing: border-box;
}

.see-more-button:hover {
    background-color: #000000;
    color: #FFFFFF;
}

.see-more-button span {
    font-family: 'Hahmlet', sans-serif;
    font-weight: 400;
    font-size: 21.262420654296875px;
    line-height: 1.4479999878000995em;
    color: #000000;
    flex-shrink: 0;
}

.see-more-button:hover span {
    color: #FFFFFF;
}

.arrow-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
    flex-shrink: 0;
    transition: filter 0.3s;
    display: block;
}

.see-more-button:hover .arrow-icon {
    filter: brightness(0) invert(1); /* 悬停时箭头变为白色 */
}

/* ==================== 分隔线 ==================== */
.divider {
    position: absolute;
    background-color: #000000;
    z-index: 1;
}

/* Line 2 - 位置: x: 40px, y: 1212px, 尺寸: 1595.52px x 2.66px */
.divider-1 {
    left: 40px;
    top: 1212px;
    width: 1595.52px;
    height: 2.66px;
}

/* Line 3 - 位置: x: 66px, y: 2103px, 尺寸: 1595.52px x 2.66px */
.divider-2 {
    left: 66px;
    top: 2103px;
    width: 1595.52px;
    height: 2.66px;
}

/* 垂直分隔线 - Line 4, Line 5 */
/* Line 4 - 位置: x: 596px, y: 1257px, 尺寸: 0px x 794px (垂直) */
/* Line 5 - 位置: x: 1085px, y: 1256px, 尺寸: 0px x 794px (垂直) */
/* 这些垂直分隔线在设计中，可以根据需要添加 */

/* ==================== POPULAR 区域 ==================== */
/* 位置: x: 159px, y: 2200px */
.popular-section {
    position: absolute;
    left: 159px;
    top: 2200px;
    width: 1382px;
    z-index: 1;
}

.popular-title {
    font-family: 'Hahmlet', sans-serif;
    font-weight: 700;
    font-size: 42.499996185302734px;
    line-height: 1.4479999719956316em;
    color: #000000;
    margin-bottom: 40px;
}

/* 文章卡片 */
.article-card {
    position: absolute;
    width: 1242px;
    height: 136px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.25);
    background-color: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.article-card:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.6);
}

/* Rectangle 242 - 第一行卡片，位置: x: 281, y: 2531 */
.card-1 {
    left: 122px; /* 281 - 159 */
    top: 331px; /* 2531 - 2200 */
}

/* Rectangle 245 - 第二行卡片，位置: x: 281, y: 2728 */
.card-2 {
    left: 122px; /* 281 - 159 */
    top: 528px; /* 2728 - 2200 */
}

/* Rectangle 248 - 第三行卡片，位置: x: 278, y: 2925 */
.card-3 {
    left: 119px; /* 278 - 159 */
    top: 725px; /* 2925 - 2200 */
}

/* Rectangle 251 - 第四行卡片，位置: x: 278, y: 3122 */
.card-4 {
    left: 119px; /* 278 - 159 */
    top: 922px; /* 3122 - 2200 */
}

/* Rectangle 254 - 第五行卡片，位置: x: 276, y: 3319 */
.card-5 {
    left: 117px; /* 276 - 159 */
    top: 1119px; /* 3319 - 2200 */
}

.article-img {
    width: 150px;
    height: 136px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
}

.article-info {
    position: absolute;
    left: 150px; /* 图片宽度150px，文本从图片右边开始 */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 784px; /* Figma 数据：文本宽度 784px */
    padding-left: 20px; /* 图片和文本之间的间距 */
    z-index: 5;
}

.article-title {
    font-family: 'Hahmlet', sans-serif;
    font-weight: 400;
    font-size: 35.416664123535156px;
    line-height: 1.4479999819048701em;
    color: #000000;
    margin: 0;
}

.article-author {
    font-family: 'Hahmlet', sans-serif;
    font-weight: 400;
    font-size: 21.25px;
    line-height: 1.4479999317842371em;
    color: #B28200;
    margin: 0;
}

.article-overlay {
    position: absolute;
    left: 933px; /* 1214 - 281 = 933px，根据 Figma 数据，覆盖层在 x: 1214px，卡片在 x: 281px */
    top: 0;
    width: 307px;
    height: 136px; /* 与卡片高度一致 */
    background-color: rgba(39, 39, 39, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.article-overlay .article-arrow {
    width: 94px;
    height: 94px;
    object-fit: contain;
    display: block;
}

/* Popular See more 按钮 */
/* 位置: x: 1307px, y: 2206px, 尺寸: 215px x 55px */
.popular-see-more {
    position: absolute;
    right: 0; /* 1307 + 215 - 159 - 1382 = -19, 所以用 right: 0 */
    top: 6px; /* 2206 - 2200 */
}

.popular-see-more .arrow-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

/* ==================== 底部页脚 ==================== */
/* 位置: x: 0, y: 3587.71px, 尺寸: 1700px x 238.47px */
.footer-section {
    position: absolute;
    left: 0;
    top: 3587.71px;
    width: 1700px;
    height: 238.47px;
    background-color: #680000;
    border-top: 1.1805557012557983px solid rgba(255, 255, 255, 0.15);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    position: relative;
    width: 1227.78px;
    padding: 94.44445037841797px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 28.33333396911621px;
    line-height: 1.200000107709097em;
    letter-spacing: '-1.9999999999999998%';
    color: #FFFFFF;
}

.footer-columns {
    display: flex;
    gap: 113.33333587646484px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 9.444445610046387px;
}

.footer-col-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18.888891220092773px;
    line-height: 1.4500000454397706em;
    letter-spacing: '-0.5%';
    color: #FFFFFF;
    margin-bottom: 18.888891220092773px;
}

.footer-link {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18.888891220092773px;
    line-height: 1.4500000454397706em;
    letter-spacing: '-0.5%';
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}