/* 基础样式 */
:root {
    --primary-color: #e50914;
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --light-color: #f0f0f0;
    --dark-color: #111;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--text-color);
}

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

ul {
    list-style: none;
}

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

/* 颜色工具类 */
.text-primary {
    color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.text-white {
    color: white;
}

/* 导航栏 */
header {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    border-radius: 3px;
}

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

.nav-links a {
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 8px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    width: 250px;
}

.btn-search {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-search:hover {
    background-color: #ff0a16;
}

/* 轮播图 */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
}

.slider {
    height: 100%;
    display: flex;
}

.slide {
    min-width: 100%;
    position: relative;
    transition: transform 0.5s ease-in-out;
}

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

.slide-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 30px;
    max-width: 600px;
    border-radius: 10px;
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #ff0a16;
}

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

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

.dot.active {
    background-color: white;
}

/* 分类导航 */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.tab {
    padding: 10px 20px;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    border: 1px solid #ddd;
}

.tab.active,
.tab:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 内容网格 */
.section-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.movie-grid,
.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.movie-card,
.tv-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.movie-card:hover,
.tv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.card-overlay {
    position: relative;
    overflow: hidden;
}

.card-overlay img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background-color: rgba(229, 9, 20, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    transition: transform 0.3s;
    z-index: 10;
}

.card-overlay:hover .play-icon {
    transform: translate(-50%, -50%) scale(1);
}

.movie-card h3,
.tv-card h3 {
    padding: 10px 15px;
    font-size: 18px;
    margin: 0;
}

.movie-info,
.tv-info {
    display: flex;
    justify-content: space-between;
    padding: 0 15px 15px;
    color: #666;
    font-size: 14px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
}

.pagination a {
    padding: 10px 15px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.pagination a.active,
.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 页脚 */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        padding: 20px;
        flex-direction: column;
        gap: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        height: 300px;
    }

    .slide-content {
        bottom: 20px;
        left: 20px;
        padding: 15px;
        max-width: 90%;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
    