/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: #ff6b35;
    font-size: 24px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-right: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #ff6b35;
}

.main-nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff6b35;
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    outline: none;
    width: 200px;
    background-color: #fff;
    color: #333;
}

.search-box button {
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #e55a2b;
}

/* 主要内容区域 */
.main-content {
    padding: 30px 0;
}

/* Hero区域 */
.hero-section {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: url(../images/bg.jpg);
    border-radius: 15px;
    padding: 60px 30px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(30deg);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

.hero-search .search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.hero-search .search-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
    font-size: 16px;
    background-color: rgba(255,255,255,0.9);
    color: #333;
}

.hero-search .search-form button {
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.hero-search .search-form button:hover {
    background-color: #e55a2b;
}

/* 通用区块标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 24px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    /* background-color: #ff6b35; */
    border-radius: 2px;
}

.view-all {
    color: #ff6b35;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.view-all:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* 分类导航 */
.category-section {
    margin-bottom: 40px;
}

.category-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.category-item {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f1f3f4;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
    font-size: 14px;
}

.category-item:hover,
.category-item.active {
    background-color: #ff6b35;
    color: white;
    transform: translateY(-2px);
}

.category-item.more {
    background-color: transparent;
    border: 1px solid #ddd;
}

/* 歌曲卡片网格 */
.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.song-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.song-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.song-card:hover .card-cover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.song-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 40px;
    color: white;
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b35;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.card-info {
    padding: 15px;
}

.song-title {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.song-artist {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #ff6b35;
}

/* 热门榜单 */
.popular-section {
    margin: 50px 0;
}

.popular-list-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.popular-list-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.popular-list-column {
    width: 50%;
}

.popular-list-column h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.popular-item:hover {
    background-color: #f8f9fa;
}

.popular-item.top3 {
    background-color: rgba(255, 107, 53, 0.1);
}

.popular-item.top3:hover {
    background-color: rgba(255, 107, 53, 0.2);
}

.rank-badge {
    width: 25px;
    height: 25px;
    background-color: #f1f3f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    color: #666;
}

.popular-item.top3 .rank-badge {
    background-color: #ff6b35;
    color: white;
}

.popular-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
}

.popular-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-cover .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.popular-cover .play-overlay .play-icon {
    font-size: 24px;
    color: white;
}

.popular-item:hover .play-overlay {
    opacity: 1;
}

.popular-info {
    flex: 1;
    min-width: 0;
}

.popular-info .song-title {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.popular-info .song-artist {
    font-size: 14px;
    margin-bottom: 5px;
    color: #666;
}

.popular-info .song-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #ff6b35;
}

/* VIP特权展示区域 */
.vip-promo-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 40px;
    margin: 80px 0 50px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: white;
}

.vip-promo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vip-promo-content .section-title {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.vip-promo-content .section-title::before {
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.vip-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    background-color: rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.benefit-item .icon {
    font-size: 20px;
    margin-right: 10px;
}

.vip-cta {
    text-align: center;
}

.vip-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c00 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.vip-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.6);
}

/* 底部样式 */
.main-footer {
    background-color: #fff;
    color: #666;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

.main-footer a {
    color: #ff6b35;
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* 错误提示页面样式 */
.error-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.error-container h1 {
    font-size: 32px;
    color: #ff6b35;
    margin-bottom: 20px;
}

.error-container p {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .popular-list-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-search .search-form {
        flex-direction: column;
    }
    
    .hero-search .search-form input,
    .hero-search .search-form button {
        width: 100%;
        border-radius: 30px;
        margin-bottom: 10px;
    }
    
    .song-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .category-list {
        flex-wrap: wrap;
    }
    
    .category-item {
        margin-bottom: 10px;
    }
    
    .popular-item {
        padding: 10px;
    }
    
    .popular-cover {
        width: 50px;
        height: 50px;
    }
    
    .error-container {
        padding: 30px 20px;
    }
    
    .error-container h1 {
        font-size: 24px;
    }
    
    .error-container p {
        font-size: 16px;
    }
    
    .vip-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    .benefit-item {
        width: 100%;
        justify-content: center;
    }
    
    .vip-promo-section {
        padding: 30px 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .view-all {
        align-self: flex-end;
    }
    
    /* 热门榜单响应式 */
    .popular-list-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .popular-list-column h3 {
        text-align: left;
    }
}