/* 影视网站主样式 */
:root {
    --primary-color: #e50914;
    --secondary-color: #b81d24;
    --accent-color: #f5c518;
    --success-color: #46d369;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-hover: #252525;
    --text-primary: #fff;
    --text-secondary: #b3b3b3;
    --text-muted: #666;
    --border-color: #333;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 20px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
}

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

.search-form {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.search-form input {
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: var(--text-primary);
    width: 180px;
}

.search-form input:focus {
    outline: none;
}

.search-form input::placeholder {
    color: var(--text-muted);
}

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

.btn-login {
    padding: 8px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--secondary-color);
}

/* 幻灯片 */
.banner-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide .banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 30px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.banner-slide h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.banner-slide p {
    color: var(--text-secondary);
    max-width: 600px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dots .dot.active {
    background: var(--primary-color);
}

/* 内容区 */
.content-section {
    padding: 40px 0;
}

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

.section-header h2 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--primary-color);
}

.more-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.more-link:hover {
    color: var(--primary-color);
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-thumb .tag-vip {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.video-thumb .tag-new {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent-color);
    color: #000;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.video-card h3 {
    padding: 12px 12px 5px;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-card .category-name {
    display: block;
    padding: 0 12px 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* VIP专区 */
.vip-section {
    background: linear-gradient(rgba(229,9,20,0.1), transparent);
    margin: 0 -15px;
    padding: 40px 15px;
}

/* 底部 */
.footer {
    background: var(--bg-card);
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-info p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--text-secondary);
}

/* 响应式 */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .banner-section {
        height: 350px;
    }
    
    .banner-slide h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
    }
    
    .search-form {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    
    .search-form input {
        width: 100%;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .banner-section {
        height: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
