/* 星空影视 - 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --star-deep: #050A18;
    --star-blue: #1A2A6C;
    --star-purple: #B21F1F;
    --star-gold: #FDBB2D;
    --star-white: #E6F1FF;
    --star-gray: #8892B0;
    --star-accent: #00D2FF;
    --star-card: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--star-deep);
    color: var(--star-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 10, 24, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--star-accent);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--star-gray);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--star-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--star-accent);
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    cursor: pointer;
    border: 1px solid var(--star-accent);
    background: transparent;
    color: var(--star-accent);
    font-size: 14px;
}

.btn:hover {
    background: rgba(0, 210, 255, 0.1);
    transform: translateY(-3px);
}

.btn-filled {
    background: var(--star-accent);
    color: var(--star-deep);
}

.btn-filled:hover {
    background: #00b8e6;
    color: var(--star-deep);
}

/* 影视卡片 */
.movie-card {
    background: var(--star-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.movie-card:hover {
    transform: translateY(-10px);
    border-color: var(--star-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.movie-img-container {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

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

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

.movie-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--star-accent);
    color: var(--star-deep);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    z-index: 10;
}

.movie-info {
    padding: 20px;
}

.movie-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--star-white);
}

.movie-meta {
    font-size: 13px;
    color: var(--star-gray);
    display: flex;
    justify-content: space-between;
}

/* 响应式网格 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

/* 页脚 */
footer {
    background: #020611;
    padding: 100px 20px 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* 搜索框 */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--star-white);
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--star-accent);
    background: rgba(255, 255, 255, 0.1);
}

/* 筛选器 */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.filter-item {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.filter-item:hover, .filter-item.active {
    background: var(--star-accent);
    color: var(--star-deep);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 42px !important;
    }
}
