/* 星辰影院 - 星空主题样式 */
/* 与吃瓜网完全不同的设计风格 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 星空主题色系 */
    --star-primary: #6366F1; /* 星空紫 */
    --star-secondary: #8B5CF6; /* 星空蓝紫 */
    --star-accent: #F59E0B; /* 星辰黄 */
    --star-dark: #1E1B4B; /* 深空蓝 */
    --star-darker: #0F172A; /* 夜空黑 */
    --star-light: #F8FAFC; /* 星光白 */
    --star-text: #E2E8F0; /* 主要文字 */
    --star-text-light: #94A3B8; /* 次要文字 */
    --star-border: #334155; /* 边框颜色 */
    --star-success: #10B981; /* 成功色 */
    --star-warning: #F59E0B; /* 警告色 */
    --star-danger: #EF4444; /* 危险色 */
    --star-info: #3B82F6; /* 信息色 */
    
    /* 渐变系统 */
    --gradient-primary: linear-gradient(135deg, var(--star-primary), var(--star-secondary));
    --gradient-dark: linear-gradient(135deg, var(--star-dark), var(--star-darker));
    --gradient-starry: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%);
    
    /* 阴影系统 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    /* 圆角系统 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* 间距系统 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--star-text);
    background: var(--gradient-dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 星空背景 */
.star-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: star-twinkle 8s ease-in-out infinite;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 1;
}

/* 顶部导航栏 */
.main-header {
    background: rgba(30, 27, 75, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    gap: var(--space-lg);
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo .star-icon-star {
    font-size: 32px;
    color: var(--star-accent);
    animation: star-rotate 20s linear infinite;
}

@keyframes star-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--star-primary), var(--star-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.tagline {
    font-size: 12px;
    color: var(--star-text-light);
    margin-top: 2px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 主导航 */
.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-sm);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    color: var(--star-text);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--star-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--star-accent);
}

/* 搜索框 */
.search-box {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--star-primary);
    box-shadow: var(--shadow-glow);
    background: rgba(255, 255, 255, 0.15);
}

.search-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: none;
    background: transparent;
    font-size: 14px;
    min-width: 200px;
    color: var(--star-text);
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: var(--star-text-light);
}

.search-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--gradient-primary);
    opacity: 0.9;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--star-text);
}

.btn-outline:hover {
    border-color: var(--star-primary);
    color: white;
    background: rgba(99, 102, 241, 0.1);
}

.btn-warning {
    background: linear-gradient(135deg, var(--star-warning), #F97316);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 16px;
}

/* 英雄横幅 */
.hero-banner {
    background: var(--gradient-starry);
    padding: var(--space-3xl) 0;
    margin-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
}

.banner-text h2 {
    font-size: 48px;
    margin-bottom: var(--space-md);
    font-weight: 800;
    background: linear-gradient(135deg, white, var(--star-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-text p {
    font-size: 20px;
    color: var(--star-text-light);
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.banner-features {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--star-text);
    font-weight: 500;
}

.feature-item .star-icon {
    color: var(--star-accent);
}

.banner-actions {
    display: flex;
    gap: var(--space-md);
}

/* 热门推荐 */
.hot-recommendation {
    margin-bottom: var(--space-2xl);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 24px;
    color: white;
}

.section-title .star-icon {
    color: var(--star-accent);
    font-size: 28px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--star-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-all:hover {
    gap: 8px;
    color: var(--star-accent);
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.recommendation-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recommendation-card:hover {
    transform: translateY(-8px);
    border-color: var(--star-primary);
    box-shadow: var(--shadow-glow);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recommendation-card:hover .card-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recommendation-card:hover .image-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.image-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.card-content {
    padding: var(--space-lg);
}

.card-title {
    font-size: 18px;
    margin-bottom: var(--space-sm);
    color: white;
    font-weight: 600;
}

.card-desc {
    font-size: 14px;
    color: var(--star-text-light);
    margin-bottom: var(--space-md);
}

.card-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 12px;
    color: var(--star-text-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 分类筛选 */
.category-filter {
    margin-bottom: var(--space-2xl);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.filter-tag {
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--star-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.filter-tag.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--star-primary);
    box-shadow: var(--shadow-glow);
}

/* 最新上线 */
.latest-release {
    margin-bottom: var(--space-2xl);
}

.sort-options {
    display: flex;
    gap: var(--space-sm);
}

.sort-btn {
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--star-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sort-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--star-primary);
}

.release-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.release-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.release-item:hover {
    transform: translateY(-4px);
    border-color: var(--star-primary);
    box-shadow: var(--shadow-glow);
}

.release-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.release-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.release-item:hover .release-image img {
    transform: scale(1.05);
}

.release-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--star-accent);
    color: var(--star-dark);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.release-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.release-item:hover .release-overlay {
    opacity: 1;
}

.play-btn-small {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-btn-small:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.release-content {
    padding: var(--space-md);
}

.release-title {
    font-size: 16px;
    margin-bottom: var(--space-xs);
    color: white;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.release-info {
    font-size: 12px;
    color: var(--star-text-light);
    margin-bottom: var(--space-sm);
}

.release-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rating-stars {
    color: var(--star-accent);
    font-size: 12px;
}

.rating-score {
    color: white;
    font-weight: 700;
    font-size: 14px;
}

/* 页脚 */
.main-footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-2xl) 0;
    margin-top: var(--space-3xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: var(--space-md);
    color: white;
    font-weight: 600;
}

.footer-section p {
    font-size: 14px;
    color: var(--star-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--star-text-light);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: var(--space-md);
    }
    
    .main-nav .nav-list {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .banner-text h2 {
        font-size: 36px;
    }
    
    .banner-text p {
        font-size: 16px;
    }
    
    .recommendation-grid,
    .release-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-input {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .recommendation-grid,
    .release-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .filter-tags {
        justify-content: center;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recommendation-card, .release-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--star-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--star-primary);
}
