/* 设置全局CSS变量 */
:root {
  /* 颜色 */
  --primary-color: #5e35b1;
  --primary-light: #7e57c2;
  --primary-dark: #4a148c;
  --primary-transparent: rgba(94, 53, 177, 0.9);
  --accent-color: #ff4081;
  --accent-dark: #f50057;
  --text-dark: #333;
  --text-medium: #666;
  --text-light: #888;
  --background-light: #f8f5ff;
  --background-lighter: #f5f5f5;
  --white: #fff;
  --black: #000;
  --overlay-light: rgba(0, 0, 0, 0.15);
  --overlay-medium: rgba(0, 0, 0, 0.25);
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 15px 30px rgba(106, 17, 203, 0.2);
  
  /* 圆角 */
  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 20px;
  --radius-full: 50%;
  
  /* 间距 */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;
  
  /* 动画 */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 首页特有样式 */

/* 头部导航样式更新 */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--primary-transparent);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

.search-small {
    display: flex;
    margin-right: var(--spacing-lg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
}

.search-small input {
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: var(--white);
    width: 150px;
    outline: none;
}

.search-small input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-small button {
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: var(--white);
    cursor: pointer;
}

.user-menu {
    display: flex;
    gap: var(--spacing-sm);
    margin-left: var(--spacing-lg);
}

.login-btn, .register-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 15px;
    border-radius: var(--radius-xl);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-normal);
}

.login-btn:hover, .register-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.register-btn {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.register-btn:hover {
    background: var(--accent-dark);
}

.mobile-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
}

/* 英雄区域样式更新 */
.hero {
    background: linear-gradient(135deg, #7e57c2, #5e35b1);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(to bottom right, transparent 49%, white 50%);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto 40px;
}

/* 英雄区域搜索框样式 */
.search-box {
    display: flex;
    margin: 25px auto 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    max-width: 500px;
    width: 100%;
}

.search-box input {
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: var(--white);
    width: 100%;
    outline: none;
    font-size: 1rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-normal);
}

.search-box button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-text {
    opacity: 0.8;
}

/* 分类区域样式更新 */
.categories-section {
    margin-bottom: 60px;
    padding-top: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

/* 优化后的音乐分类卡片样式 */
.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    text-decoration: none;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
    z-index: 2;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.category-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    transition: var(--transition-normal);
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    transition: var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover::after {
    opacity: 0.95;
}

.category-card:hover i,
.category-card:hover h3,
.category-card:hover p {
    color: var(--white);
}

/* 添加卡片动画效果 */
.category-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }

/* 响应式调整 */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* 精选评论区域在移动端改为单列垂直布局 */
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-card.large {
        grid-column: span 1;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .category-card i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .category-card h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .category-card p {
        font-size: 0.8rem;
    }
}

/* 添加更具体的移动端精选卡片样式 */
@media (max-width: 768px) {
    /* 强制精选评论区域改为单列垂直布局 */
    body .featured-grid {
        grid-template-columns: 1fr !important;
        max-width: 100%;
    }
    
    body .featured-card.large {
        grid-column: span 1 !important;
        width: 100%;
    }
    
    body .featured-card {
        width: 100%;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 15px 10px;
    }
    
    .category-card i {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .category-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* 特色卡片区域更新 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

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

.tab {
    background: transparent;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

.tab.active {
    background: #5e35b1;
    color: white;
}

.tab:hover:not(.active) {
    background: rgba(94, 53, 177, 0.1);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    grid-auto-flow: dense;
}

.featured-card.large {
    grid-column: span 2;
    min-height: auto;
}

.song-title-artist {
    flex: 1;
}

.song-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    padding: 0 0 8px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
    position: relative;
}


.play-count {
    background: #f8f5ff;
    padding: 3px 8px;
    border-radius: 20px;
    color: #5e35b1;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: fit-content;
}

.play-count i {
    margin-right: 5px;
}

  
.view-all-container {
    text-align: center;
    margin-top: 30px;
}

.view-all-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #5e35b1;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s;
    font-weight: 500;
}

.view-all-btn:hover {
    background: #4a148c;
}

.view-all-small {
    color: #5e35b1;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.view-all-small i {
    margin-left: 5px;
}

/* 评论区域更新 */
.action-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
    display: inline-flex;
    align-items: center;
}

.action-btn:hover {
    color: #5e35b1;
}

.action-btn i {
    margin-right: 5px;
}

/* 最新评论区域 - PC端 */
.latest-grid {
    display: grid;
    gap: 20px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

/* 登录/注册弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 380px;
    max-width: 90%;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.open .modal-content {
    transform: translateY(0);
}

.modal-content::-webkit-scrollbar {
    width: 5px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 5px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* 响应式调整 */
@media (max-height: 700px) {
    .modal-content {
        max-height: 85vh;
    }
}

@media (max-height: 500px) {
    .modal-content {
        max-height: 80vh;
    }
}

/* 动画修改 */
.modal.closing .modal-content {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
}

.logo-container {
    margin-bottom: 10px;
}

.modal-logo {
    max-width: 60px;
    height: auto;
}

.modal-header h3 {
    margin: 10px 0;
    color: #333;
    font-size: 24px;
    font-weight: 500;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:focus {
    border-color: #5e35b1;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.modal-footer button {
    width: 100%;
    padding: 12px;
    background: #E6F2F0;
    color: #333;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 500;
}

.modal-footer button:hover {
    background: #d9e9e6;
}

.modal-footer p {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.modal-footer a {
    color: #5e35b1;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.divider-or {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
    color: #888;
}

.divider-or::before,
.divider-or::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider-or span {
    padding: 0 10px;
    font-size: 14px;
}

.wechat-login-btn {
    background-color: #7FA298 !important;
    color: white !important;
}

.wechat-login-btn:hover {
    background-color: #688a80 !important;
}

.wechat-login-btn i {
    margin-right: 5px;
}

/* 自适应卡片样式 */
.featured-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(94, 53, 177, 0.08);
    height: auto;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.featured-card.large {
    grid-column: span 2;
    min-height: auto;
}

.featured-card .card-image {
    display: none;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(94, 53, 177, 0.15);
    border-color: rgba(94, 53, 177, 0.2);
}

.featured-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 53, 177, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.featured-card:hover::after {
    opacity: 1;
}

.card-image {
    position: relative;
    overflow: hidden;
    min-height: 140px;
    height: auto;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    max-height: 220px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-card:hover .card-image img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
                rgba(0, 0, 0, 0.1), 
                rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.play-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(94, 53, 177, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    transform: scale(0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-image:hover .play-button {
    transform: scale(1);
}

.play-button:hover {
    background: #5e35b1;
    transform: scale(1.1);
}

.card-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.song-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 0 0 8px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
    position: relative;
}

.song-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.song-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-info-left {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.tag-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    margin-left: auto;
}

.song-title-artist {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.song-title-artist h3 {
    font-size: 0.95rem;
    margin: 0 0 2px;
    color: #333;
    font-weight: 600;
}

.artist {
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.artist:before {
    content: '';
    display: none;
}

.featured-card .comment-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: none;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 5px 0 8px 0;
}

.featured-card.large .comment-text {
    -webkit-line-clamp: 3;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 引号装饰 */
.comment-text::before {
    content: '"';
    font-size: 2.5rem;
    position: absolute;
    top: -20px;
    left: 20px;
    color: rgba(94, 53, 177, 0.15);
    font-family: Georgia, serif;
    z-index: 1;
}

.comment-text::after {
    content: '"';
    font-size: 2.5rem;
    position: absolute;
    bottom: -50px;
    right: 20px;
    color: rgba(94, 53, 177, 0.15);
    font-family: Georgia, serif;
    z-index: 1;
}

/* 用户头像样式 */
.user-info {
    display: flex;
    align-items: center;
    margin: 6px 0;
    flex-wrap: nowrap;
    gap: 8px;
}

.user-info img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 0;
    border: 1px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    object-fit: cover;
}

.user-info span {
    font-weight: 600;
    color: #444;
    font-size: 0.85rem;
}

.comment-date {
    color: #888;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-left: auto;
}

.user-badge {
    background: #f5f2ff;
    color: #5e35b1;
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.comment-meta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    flex-wrap: nowrap;
    width: 100%;
    min-height: 22px;
    margin-top: 4px;
}

.comment-source {
    font-size: 0.7rem;
    white-space: nowrap;
    margin-left: 4px;
    flex-shrink: 0;
    color: #999;
}

.comment-source.comment-iplocation {
    font-size: 0.7rem;
    white-space: nowrap;
    margin-left: 4px;
    flex-shrink: 0;
    color: #999;
    display: inline-flex;
    align-items: center;
}

.meta-left {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
    max-width: 70%;
}

.comment-meta span {
    font-size: 0.75rem;
    white-space: nowrap;
    margin-right: 0;
    color: #777;
}

.comment-meta span i {
    font-size: 1.2em;
    margin-right: 3px;
    color: #5e35b1;
}

/* 在文件末尾添加优化的热门歌曲样式 */

/* 热门歌曲区域样式优化 */
.trending-section {
    margin: 50px 0;
    position: relative;
    padding: 0 var(--spacing-lg);
}

.container {
    position: relative;
}

.trending-slider {
    position: relative;
    padding: 10px 0;
    display: flex;
    align-items: center;
    overflow: visible;
    margin: 0;
    width: 100%;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.trending-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 5px 5px 15px;
    flex: 1;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    will-change: transform;
    mask-image: none;
    -webkit-mask-image: none;
    cursor: grab;
    user-select: none;
    position: relative;
}

.trending-track.grabbing {
    cursor: grabbing;
}

.trending-track::-webkit-scrollbar {
    display: none;
}

/* 热门歌曲卡片基础样式 */
.trending-card {
    flex: 0 0 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    position: relative;
    scroll-snap-align: center;
    will-change: transform;
    transform: scale(1) translateY(0) !important;
    cursor: pointer !important;
}

/* 热门歌曲卡片悬停效果 */
.trending-card:hover {
    transform: translateY(-10px) scale(1.05) !important;
    box-shadow: var(--shadow-xl) !important;
    z-index: 100 !important;
}

.trending-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.trending-card:not(.visible) {
    opacity: 0.5;
    transform: translateY(10px);
}

.trending-image {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trending-card:hover .trending-image img {
    transform: scale(1.05);
}

/* 播放覆盖层 */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-light);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.trending-card:hover .play-overlay {
    opacity: 1 !important;
    background: var(--overlay-medium) !important;
}

/* 播放按钮样式 */
.play-icon {
    background: rgba(255, 255, 255, 0.9);
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transform: scale(0.8);
    transition: var(--transition-normal);
    opacity: 0;
    border: none;
}

.trending-card:hover .play-icon {
    transform: scale(1) !important;
    opacity: 1 !important;
}

.play-icon i {
    color: var(--primary-color);
    font-size: 16px;
    margin-left: 2px;
    transition: var(--transition-normal);
}

.play-icon.is-playing i {
    margin-left: 0;
}

/* 歌曲信息 */
.trending-info {
    padding: 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: auto;
}

.song-title {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 滑动按钮样式 */
.slider-prev, .slider-next {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-normal);
    z-index: 20;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.slider-prev {
    left: -15px;
}

.slider-next {
    right: -15px;
}

.slider-prev:hover, .slider-next:hover {
    background: var(--background-light);
    box-shadow: 0 6px 15px rgba(106, 17, 203, 0.25);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.slider-prev i, .slider-next i {
    color: var(--primary-color);
    font-size: 14px;
}

/* 禁用的滑动按钮 */
.slider-prev:disabled, .slider-next:disabled,
.slider-prev[aria-disabled="true"], .slider-next[aria-disabled="true"] {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* 滑动按钮动画 */
@keyframes buttonPulse {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); }
    100% { transform: translateY(-50%) scale(1); }
}

.trending-slider:hover .slider-prev:not([aria-disabled="true"]),
.trending-slider:hover .slider-next:not([aria-disabled="true"]) {
    animation: buttonPulse 1.5s ease infinite;
}

/* 播放按钮动画效果 */
@keyframes rotateIcon {
    0% {
        transform: rotate(-180deg) scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* 渐入动画 */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trending-card {
    animation: fadeInCard 0.6s ease forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
    opacity: 0;
}

/* 移动设备适配 */
@media (hover: none) {
    /* 触摸设备样式 */
    .trending-track {
        -webkit-overflow-scrolling: touch;
        cursor: grab;
    }
    
    .play-overlay {
        opacity: 0.8;
        background: var(--overlay-medium);
    }
    
    .play-icon {
        transform: scale(0.9);
    }
    
    .trending-card:active {
        transform: scale(0.98);
    }

    /* 触摸设备上滑动按钮更明显 */
    .slider-prev, .slider-next {
        opacity: 0.95;
        background: rgba(255, 255, 255, 0.95);
    }
}

/* 平板适配 */
@media (max-width: 768px) {
    .trending-card {
        flex: 0 0 150px;
    }
    
    .trending-image {
        height: 150px;
    }

    .slider-prev, .slider-next {
        width: 32px;
        height: 32px;
    }
    
    .slider-prev {
        left: -10px;
    }
    
    .slider-next {
        right: -10px;
    }
    
    .trending-section {
        padding: 0 15px;
    }
    
    /* 保持悬停效果 */
    .trending-card:hover {
        transform: translateY(-8px) scale(1.05) !important;
    }
}

/* 手机适配 */
@media (max-width: 480px) {
    .trending-section {
        padding: 0 12px;
    }

    .trending-card {
        flex: 0 0 130px;
    }
    
    .trending-image {
        height: 130px;
    }
    
    .trending-info {
        padding: 10px;
    }
    
    .song-title {
        font-size: 0.9rem;
    }
    
    .song-artist {
        font-size: 0.8rem;
    }

    .slider-prev, .slider-next {
        width: 30px;
        height: 30px;
    }
    
    .slider-prev {
        left: -8px;
    }
    
    .slider-next {
        right: -8px;
    }
    
    /* 保持悬停效果 */
    .trending-card:hover {
        transform: translateY(-6px) scale(1.03) !important;
    }
}

/* 强制热门歌曲卡片悬停效果的额外规则（提高选择器优先级） */
body .trending-section .trending-slider .trending-track .trending-card:hover {
    transform: translateY(-10px) scale(1.05) !important;
    box-shadow: var(--shadow-xl) !important;
    z-index: 100 !important;
}

/* 确保播放覆盖层在悬停时显示 */
body .trending-track .trending-card:hover .play-overlay {
    opacity: 1 !important;
}

/* 剩余CSS代码 */
/* ... existing code ... */

.category-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 5px;
    display: inline-block;
    opacity: 0.8;
    position: relative;
    transition: var(--transition-normal);
}

.category-meta::before {
    content: '';
    width: 20px;
    height: 1px;
    background: currentColor;
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
    transition: var(--transition-normal);
}

.category-card:hover .category-meta {
    color: var(--white);
    opacity: 0.9;
}

.category-card:hover .category-meta::before {
    width: 30px;
    opacity: 0.7;
} 

/* 最新评论区域样式 */
/* 基于index.css提取的样式 */

:root {
  /* 颜色 */
  --primary-color: #5e35b1;
  --primary-light: #7e57c2;
  --primary-dark: #4a148c;
  --primary-transparent: rgba(94, 53, 177, 0.9);
  --accent-color: #ff4081;
  --accent-dark: #f50057;
  --text-dark: #333;
  --text-medium: #666;
  --text-light: #888;
  --background-light: #f8f5ff;
  --background-lighter: #f5f5f5;
  --white: #fff;
  --black: #000;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.05);
  
  /* 圆角 */
  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 20px;
  --radius-full: 50%;
  
  /* 间距 */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;
  
  /* 动画 */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
}

/* 容器样式 */
.latest-grid {
  display: grid;
  gap: 20px;
}

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

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.view-all-small {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-normal);
}

.view-all-small i {
  margin-left: 5px;
  transition: transform 0.3s;
}

.view-all-small:hover i {
  transform: translateX(3px);
}

/* 评论行样式 */
.comment-row {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.comment-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(94, 53, 177, 0.08);
}

.comment-content {
  padding: 16px;
  position: relative;
}

/* 评论头部样式 */
.comment-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.user-avatar {
  flex-shrink: 0;
  margin-top: 3px;
}

.user-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.8);
}

.user-info-wrapper {
  flex: 1;
  padding-top: 5px;
}

.user-info-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  display: flex;
  align-items: center;
}

.user-level {
  background: #f4f0ff;
  color: #5e35b1;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  font-weight: normal;
}

/* 评论内容样式 */
.latest-grid .comment-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
  margin: 0 0 12px 0;
  padding-left: 52px;
  position: relative;
}

.comment-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px 52px;
}

.comment-tag {
  background: #f5f2ff;
  color: #5e35b1;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
  cursor: pointer;
}

.comment-tag:hover {
  background: #e9e3ff;
  transform: translateY(-2px);
}

/* 评论底部样式 */
.comment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f5f5f5;
  padding-left: 52px;
}

.date {
  color: #888;
  font-size: 0.75rem;
}

.actions {
  display: flex;
  gap: 16px;
}

.action-btn {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.action-btn:hover {
  color: #5e35b1;
}

.action-btn i {
  margin-right: 5px;
  font-size: 1.1em;
}

/* 加载更多按钮 */
.load-more-btn {
  background: transparent;
  border: 2px solid #5e35b1;
  color: #5e35b1;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin: 20px auto;
  display: block;
}

.load-more-btn:hover {
  background: #5e35b1;
  color: white;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .latest-grid {
    gap: 15px;
  }
  
  .comment-content {
    padding: 15px;
  }
  
  .comment-header {
    gap: 10px;
    margin-bottom: 12px;
  }
  
  .user-avatar img {
    width: 40px;
    height: 40px;
  }
  
  .user-info-line {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .user-name {
    font-size: 0.9rem;
  }
  
  .user-level {
    font-size: 0.7rem;
    padding: 1px 5px;
  }
  

  
  .latest-grid .comment-text {
    padding-left: 0;
    margin-top: 10px;
    padding: 1px 2px;
    position: relative;
  }
  
  /* 移动端引号装饰优化 */
  .comment-text::before {
    font-size: 2rem;
    top: -15px;
    left: 10px;
  }
  
  .comment-text::after {
    font-size: 2rem;
    bottom: -35px;
    right: 10px;
  }
  
  .comment-tags {
    margin-left: 0;
  }
  
  .comment-footer {
    padding-left: 0;
  }
}

@media (max-width: 576px) {
  .user-info-line {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  
  .user-name {
    font-size: 0.85rem;
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  

  .latest-grid .comment-text {
    padding-left: 0;
    margin-top: 12px;
    padding: 1px 18px 0px;
  }
  
  /* 小屏幕引号装饰进一步优化 */
  .comment-text::before {
    font-size: 1.8rem;
    top: -10px;
    left: 1px;
  }
  
  .comment-text::after {
    font-size: 1.8rem;
    bottom: -25px;
    right: 1px;
  }
  
  .comment-tags {
    margin-left: 0;
  }
  
  .comment-footer {
    padding-left: 0;
  }
  
  .user-avatar img {
    width: 36px;
    height: 36px;
  }
} 