/* 首页专用样式 - 乐正绫应援站风格 - PC端优化版本 */

/* 全局变量 */
:root {
    --primary-color: #EE0000;
    --primary-light: #ff3333;
    --primary-dark: #cc0000;
    --secondary-color: #ff6b6b;
    --accent-color: #ffd700;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee0000 50%, #cc0000 100%);
    --shadow-light: 0 4px 12px rgba(238, 0, 0, 0.1);
    --shadow-medium: 0 8px 24px rgba(238, 0, 0, 0.15);
    --shadow-heavy: 0 16px 48px rgba(238, 0, 0, 0.2);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 页面背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(238, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 浮动装饰元素 */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-elements::before,
.floating-elements::after {
    content: '♪';
    position: absolute;
    color: rgba(238, 0, 0, 0.1);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.floating-elements::before {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    top: 25%;
    right: 15%;
    animation-delay: 3s;
}

/* 顶部轮播图区域 - 固定在顶部 */
.top-carousel-section {
    position: fixed;
    top: 80px; /* 头部导航栏高度 */
    left: 0;
    right: 0;
    width: 100%;
    height: 600px;
    z-index: 100;
    background: var(--bg-primary);
    overflow: hidden;
}

.top-carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    z-index: 10;
}

/* 毛玻璃遮罩层 */
.glass-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    height: 600px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* 主要内容区域 */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 680px 2rem 2rem; /* 顶部留出轮播图的空间 */
    min-height: calc(100vh - 160px);
    position: relative;
    z-index: 300;
}

/* 内容模块通用样式 */
.content-module {
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-bottom: 2px solid rgba(238, 0, 0, 0.1);
}

.content-module:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* 模块头部 */
.module-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.module-header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--bg-gradient);
    border-radius: 2px;
}

.module-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.module-header i {
    font-size: 2rem;
    color: var(--accent-color);
}

.module-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}

/* 模块内容 */
.module-content {
    position: relative;
}

/* 歌曲网格布局 */
.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

/* 歌曲项目 */
.song-item {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(238, 0, 0, 0.1);
}

.song-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(238, 0, 0, 0.15);
}

.song-cover {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.song-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem;
}

.play-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.song-info {
    padding: 1.5rem;
}

.song-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.song-artist {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* 专辑网格布局 */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.album-item {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(238, 0, 0, 0.1);
}

.album-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(238, 0, 0, 0.15);
}

.album-cover {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.album-item:hover .album-overlay {
    opacity: 1;
}

.view-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem;
}

.view-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.album-info {
    padding: 1.5rem;
}

.album-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.album-release {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* 集合网格布局 */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.collection-item {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(238, 0, 0, 0.1);
}

.collection-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(238, 0, 0, 0.15);
}

.collection-cover {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.collection-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.collection-item:hover .collection-overlay {
    opacity: 1;
}

.collection-info {
    padding: 1.5rem;
}

.collection-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.collection-count {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* 回顾网格布局 */
.retrospect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.retrospect-item {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(238, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.retrospect-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(238, 0, 0, 0.15);
}

.retrospect-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.retrospect-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.retrospect-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.retrospect-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.retrospect-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.retrospect-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

/* 预告网格布局 */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

.preview-item {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(238, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 没有图片的预告项目样式 */
.preview-item.no-image .preview-info {
    padding-top: 1.5rem;
}

.preview-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px rgba(238, 0, 0, 0.2);
}

.preview-image {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.preview-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}



.preview-info {
    padding: 1rem;
}

.preview-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.preview-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-date i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.preview-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-type-badge.news {
    background: var(--primary-color);
    color: white;
}

.content-type-badge.article {
    background: #17a2b8;
    color: white;
}

/* 模块操作按钮 */
.module-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(238, 0, 0, 0.1);
}

.view-more-btn, .view-all-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(238, 0, 0, 0.2);
}

.view-more-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 0, 0, 0.3);
}

.view-more-btn:active {
    transform: translateY(0);
}

.view-more-btn i {
    transition: var(--transition);
}

.view-more-btn.expanded i {
    transform: rotate(180deg);
}

/* 展开状态的模块样式 */
.content-module.expanded .song-grid,
.content-module.expanded .album-grid,
.content-module.expanded .collection-grid,
.content-module.expanded .retrospect-grid,
.content-module.expanded .preview-grid {
    max-height: none;
    overflow: visible;
}

/* 预告模块展开状态 */
.preview-grid.expanded {
    max-height: none;
    overflow: visible;
}

.preview-grid:not(.expanded) {
    max-height: 600px;
    overflow: hidden;
}

/* 隐藏的预告项目 */
.preview-hidden {
    display: none;
}

.preview-grid.expanded .preview-hidden {
    display: block;
}

/* 预告模块展开按钮样式 */
.view-all-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 0, 0, 0.3);
}

.view-all-btn.expanded i {
    transform: rotate(180deg);
}

/* 无内容提示 */
.no-content {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 3rem;
    background: rgba(238, 0, 0, 0.02);
    border-radius: 12px;
    border: 1px dashed rgba(238, 0, 0, 0.1);
}

.no-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-content p {
    font-size: 1.2rem;
    margin: 0;
}

/* 页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    50% { 
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0);
    }
    40% { 
        transform: translateY(-5px);
    }
    60% { 
        transform: translateY(-3px);
    }
}

/* 签名模块 */
.signature {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.signature img {
    width: 120px;
    height: auto;
    display: block;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    animation: none !important;
    filter: none !important;
    background: transparent !important;
}

/* 滚动条美化 */
.module-content::-webkit-scrollbar {
    width: 6px;
}

.module-content::-webkit-scrollbar-track {
    background: rgba(238, 0, 0, 0.1);
    border-radius: 3px;
}

.module-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.module-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 焦点状态优化 */
.module-header:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.play-btn:focus,
.view-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* 减少动画偏好设置 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 
