/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background-color: #1a237e; /* 深蓝色主色调 */
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.search-box form{
    display: flex;
    margin: 10px 0;
    width: 100%;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-box button {
    background-color: #ff5722;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #e64a19;
}

/* 导航菜单样式 */
nav {
    width: 100%;
	margin-top:10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    background-color: #283593;
    border-radius: 4px;
    overflow: hidden;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    transition: background-color 0.3s;
}

.nav-menu a:hover , .nav-menu a.active{
    background-color: #3949ab;
}

/* 下拉菜单 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #283593;
    list-style: none;
    min-width: 200px;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-menu li:hover .dropdown {
    display: block;
}

.dropdown li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown li:last-child {
    border-bottom: none;
}

/* Banner样式 */
.banner {
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.banner-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
}

.banner-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.banner-desc {
    margin-bottom: 15px;
    max-width: 70%;
}

.banner-link {
    display: inline-block;
    background-color: #ff5722;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.banner-link:hover {
    background-color: #e64a19;
}

.banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
}

.banner-control {
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-control:hover {
    background-color: rgba(0,0,0,0.8);
}

.banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.banner-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-indicator.active {
    background-color: white;
}

/* 影视列表样式 */
.section-title {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: #1a237e;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a237e;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.movie-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.movie-poster {
    position: relative;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5722;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 1rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.movie-title a:hover {
    color: #1a237e;
}

.movie-meta {
    display: flex;
    font-size: 0.8rem;
    color: #666;
    flex-wrap: wrap;
    gap: 8px;
}

/* 列表页筛选样式 */
.filters {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #1a237e;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-options a {
    color: #333;
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: all 0.3s;
}

.filter-options a:hover, .filter-options a.active {
    background-color: #1a237e;
    color: white;
    border-color: #1a237e;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    background-color: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.pagination a:hover, .pagination a.active {
    background-color: #1a237e;
    color: white;
    border-color: #1a237e;
}

/* 播放页样式 */
.movie-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    margin: 25px 0;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.movie-poster-large {
    border-radius: 8px;
    overflow: hidden;
}

.movie-poster-large img {
    width: 100%;
    height: auto;
}

.movie-details-info h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1a237e;
}

.movie-meta-detail {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.movie-meta-detail p {
    margin-bottom: 8px;
}

.movie-description {
    margin-bottom: 20px;
    line-height: 1.8;
}

.movie-description h3 {
    margin-bottom: 10px;
    color: #1a237e;
}

/* 播放器样式 */
.player-container {
   background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
}

/* 16:9 比例 */
.player-container::after {
    content: "";
    display: block;
    padding-bottom: 56.25%; /* 16:9 比例 */
}

.MacPlayer {
    background: #000000;
    font-size: 14px;
    color: #F6F6F6;
    margin: 0px;
    padding: 0px;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* 播放源样式 */
.play-sources {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.play-sources h3 {
    margin-bottom: 15px;
    color: #1a237e;
}

.source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.source-links a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.source-links a:hover, .source-links a.active {
    background-color: #1a237e;
    color: white;
}

/* 友情链接样式 */
.friend-links {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.friend-links h3 {
    margin-bottom: 15px;
    color: #1a237e;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.links-grid a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.links-grid a:hover {
    color: #1a237e;
    text-decoration: underline;
}

/* 页脚样式 */
footer {
    background-color: #1a237e;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.copyright {
    text-align: center;
}

.copyright a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.copyright a:hover {
    color: white;
    text-decoration: underline;
}

.disclaimer {
    text-align: center;
    font-size: 0.9rem;
    color: #bbb;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .movie-detail {
        grid-template-columns: 250px 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-box {
        width: 100%;
        max-width: none;
    }
    
    .nav-menu {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-desc {
        max-width: 100%;
        font-size: 0.9rem;
    }
    
    .movie-detail {
        grid-template-columns: 1fr;
    }
    
    .movie-poster-large {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .movie-details-info h1 {
        font-size: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .movie-poster img {
        height: 220px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .dropdown {
        position: static;
        display: none;
        background-color: #3949ab;
    }
    
    .nav-menu li:hover .dropdown {
        display: block;
    }
    
    .pagination a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}
