/* 首页专属样式 - 完整手机优化版 */

/* 英雄区域 */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 500px;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
    color: var(--text-primary);
}

.hero-gradient {
    display: block;
    background: linear-gradient(135deg, #8B5CF6, #EC4899, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-btn.primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 20px 30px -10px var(--glow-color);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 40px -10px var(--glow-color);
}

.hero-btn.secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.hero-btn.secondary:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wave-animation {
    position: relative;
    width: 400px;
    height: 400px;
}

.wave {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    animation: wavePulse 4s ease-in-out infinite;
}

.wave1 {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.wave2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    animation-delay: 1s;
    opacity: 0.5;
}

.wave3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    animation-delay: 2s;
    opacity: 0.3;
}

@keyframes wavePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

/* 快捷入口 */
.quick-access {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 60px 0;
}

.quick-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 30px -10px var(--glow-color);
}

.quick-icon {
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s;
}

.quick-item:hover .quick-icon {
    background: var(--accent-gradient);
    transform: scale(1.1);
}

.quick-info h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.quick-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 通用区块样式 */
.section {
    margin: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-more {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.section-more:hover {
    color: var(--accent-primary);
    gap: 12px;
}

.section-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.section-tab {
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.section-tab:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.section-tab.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 20px -5px var(--glow-color);
}

/* 轮播样式 */
.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.playlist-card {
    min-width: 200px;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.playlist-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 30px -10px var(--glow-color);
}

.playlist-cover {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
}

.playlist-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.playlist-card:hover .playlist-cover img {
    transform: scale(1.1);
}

.playlist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.playlist-card:hover .playlist-overlay {
    opacity: 1;
}

.playlist-info {
    padding: 16px;
}

.playlist-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-creator {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 歌曲网格 */
.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.song-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.song-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 30px -10px var(--glow-color);
}

.song-cover {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
}

.song-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.song-card:hover .song-cover img {
    transform: scale(1.1);
}

.song-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 16px;
}

.song-card:hover .song-overlay {
    opacity: 1;
}

.song-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.song-play:hover {
    transform: scale(1.1);
}

.song-like {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.song-like:hover {
    color: #EC4899;
    transform: scale(1.1);
}

.song-like.liked {
    color: #EC4899;
}

.song-info {
    padding: 16px;
}

.song-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.song-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.song-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 特色专辑区域 */
.featured-section {
    margin: 80px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.featured-album-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
}

.featured-album-card.large {
    grid-column: span 2;
    aspect-ratio: 21/9;
}

.featured-album-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-album-card:hover .featured-album-img {
    transform: scale(1.05);
}

.featured-album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.featured-album-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.featured-album-artist {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
}

.featured-album-btn {
    padding: 12px 24px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 40px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: fit-content;
    transition: all 0.3s;
}

.featured-album-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px var(--glow-color);
}

/* 新歌列表 */
.new-songs-list {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.new-song-item {
    display: grid;
    grid-template-columns: 80px 1fr 100px 100px 60px;
    padding: 16px 24px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
    cursor: pointer;
}

.new-song-item:last-child {
    border-bottom: none;
}

.new-song-item:hover {
    background: var(--bg-elevated);
}

.new-song-rank {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-tertiary);
}

.new-song-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.new-song-cover {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.new-song-details {
    flex: 1;
}

.new-song-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.new-song-artist {
    font-size: 13px;
    color: var(--text-secondary);
}

.new-song-stats {
    color: var(--text-secondary);
    font-size: 14px;
}

.new-song-time {
    color: var(--text-secondary);
    font-size: 14px;
}

.new-song-action {
    color: var(--text-tertiary);
    font-size: 20px;
    transition: all 0.3s;
}

.new-song-action:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

/* 音乐资讯 */
.news-section {
    margin: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 30px -10px var(--glow-color);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-tertiary);
    font-size: 13px;
}

/* ==================== 响应式优化 ==================== */

/* 平板设备 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .quick-access {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-album-card.large {
        grid-column: span 1;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .new-song-item {
        grid-template-columns: 70px 1fr 80px 80px 50px;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    /* 英雄区域优化 */
    .hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 40px 0 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .hero-visual {
        margin-top: 30px;
    }
    
    .wave-animation {
        width: 250px;
        height: 250px;
    }
    
    /* 快捷入口优化 */
    .quick-access {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 30px 0;
    }
    
    .quick-item {
        padding: 16px;
    }
    
    .quick-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .quick-info h3 {
        font-size: 16px;
    }
    
    .quick-info p {
        font-size: 13px;
    }
    
    /* 区块标题优化 */
    .section {
        margin: 40px 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    
    .section-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .section-tab {
        padding: 6px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .section-more {
        align-self: flex-end;
        font-size: 14px;
    }
    
    /* 轮播优化 */
    .carousel-track {
        gap: 12px;
    }
    
    .playlist-card {
        min-width: 140px;
    }
    
    .playlist-name {
        font-size: 14px;
    }
    
    .playlist-creator {
        font-size: 12px;
    }
    
    .carousel-btn {
        display: none; /* 手机端隐藏轮播按钮，靠滑动 */
    }
    
    /* 歌曲网格优化 */
    .song-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .song-card {
        border-radius: 12px;
    }
    
    .song-info {
        padding: 10px;
    }
    
    .song-name {
        font-size: 14px;
    }
    
    .song-artist {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .song-stats {
        font-size: 10px;
        gap: 8px;
    }
    
    .song-play {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .song-like {
        font-size: 16px;
    }
    
    /* 特色专辑优化 */
    .featured-section {
        margin: 40px 0;
    }
    
    .featured-grid {
        gap: 12px;
    }
    
    .featured-album-card {
        border-radius: 16px;
    }
    
    .featured-album-overlay {
        padding: 20px;
    }
    
    .featured-album-title {
        font-size: 20px;
    }
    
    .featured-album-artist {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .featured-album-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* 新歌列表优化 */
    .new-songs-list {
        border-radius: 16px;
    }
    
    .new-song-item {
        grid-template-columns: 50px 1fr 50px;
        padding: 12px 16px;
    }
    
    .new-song-rank {
        font-size: 18px;
    }
    
    .new-song-stats,
    .new-song-time,
    .new-song-action {
        display: none; /* 手机端隐藏不重要的列 */
    }
    
    .new-song-info {
        gap: 12px;
    }
    
    .new-song-cover {
        width: 40px;
        height: 40px;
    }
    
    .new-song-name {
        font-size: 14px;
    }
    
    .new-song-artist {
        font-size: 12px;
    }
    
    /* 音乐资讯优化 */
    .news-section {
        margin: 40px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-content {
        padding: 16px;
    }
    
    .news-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .news-excerpt {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .news-meta {
        font-size: 12px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .song-grid {
        grid-template-columns: 1fr; /* 小屏手机单列显示 */
    }
    
    .song-card {
        display: flex;
        align-items: center;
    }
    
    .song-cover {
        width: 80px;
        height: 80px;
        padding-bottom: 0;
        flex-shrink: 0;
    }
    
    .song-cover img {
        position: relative;
        width: 80px;
        height: 80px;
    }
    
    .song-overlay {
        display: none;
    }
    
    .song-info {
        flex: 1;
    }
    
    .playlist-card {
        min-width: 120px;
    }
    
    .featured-album-title {
        font-size: 18px;
    }
    
    .featured-album-artist {
        font-size: 12px;
    }
    
    .featured-album-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .new-song-item {
        padding: 10px 12px;
    }
    
    .new-song-cover {
        width: 36px;
        height: 36px;
    }
    
    .new-song-name {
        font-size: 13px;
    }
    
    .new-song-artist {
        font-size: 11px;
    }
}