/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #165DFF;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.site-header {
    background-color: #1a1a2e;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.search-form {
    flex-grow: 1;
    max-width: 200px;
    margin: 0 20px;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 20px;
    border: none;
    outline: none;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 25px;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    padding: 5px 0;
    display: inline-block;
}

.main-nav .has-dropdown > a {
    display: flex;
    align-items: center;
}

.main-nav .has-dropdown > a i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.main-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a2e;
    min-width: 180px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
	display: inline-block;
}

.main-nav .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .has-dropdown:hover > a i {
    transform: rotate(180deg);
}

.main-nav .dropdown li {
    margin: 0;
}

.main-nav .dropdown a {
    padding: 10px 15px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	color:#fff;
}

.main-nav .dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-nav .active a:not(.dropdown a) , .main-nav .dropdown .active a{
    color: #165DFF;
    position: relative;
}

.main-nav .active a::after:not(.dropdown a::after) , .main-nav .dropdown .active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #165DFF;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Banner轮播 */
.banner {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.banner-wrapper {
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.banner-info h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 20;
}

.banner-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.banner-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 20;
}

.banner-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dots .dot.active {
    background-color: white;
    width: 30px;
    border-radius: 5px;
}

/* 通用样式 */
.section-title {
    font-size: 22px;
    margin: 30px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title .more {
    font-size: 14px;
    color: #165DFF;
    display: flex;
    align-items: center;
}

.section-title .more i {
    margin-left: 5px;
}

.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 5px;
    margin-bottom: 5px;
}

.tag.movie {
    background-color: #4CAF50;
    color: white;
}

.tag.tv {
    background-color: #2196F3;
    color: white;
}

.tag.year {
    background-color: #FF9800;
    color: white;
}

.tag.country {
    background-color: #9C27B0;
    color: white;
}

.tag.quality {
    background-color: #f44336;
    color: white;
}

.tag.category {
    background-color: #607D8B;
    color: white;
}

.tag.rating {
    background-color: #FF5722;
    color: white;
}

/* 影视列表 */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.movie-card {
    display: block;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-poster .tag {
    position: absolute;
}

.movie-poster .tag:first-child {
    top: 10px;
    left: 10px;
}

.movie-poster .tag:last-child {
    top: 10px;
    right: 10px;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 列表页筛选 */
.filters {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: inline-block;
    font-weight: 600;
    margin-right: 10px;
    color: #333;
}

.filter-item {
    display: inline-block;
    padding: 5px 12px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    font-size: 14px;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

.filter-item:hover {
    background-color: #e0e0e0;
    color: #165DFF;
}

.filter-item.active {
    background-color: #165DFF;
    color: white;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px;
}

.page-btn, .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background-color: white;
    border: 1px solid #ddd;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn {
    width: auto;
    padding: 0 12px;
}

.page-num.active {
    background-color: #165DFF;
    color: white;
    border-color: #165DFF;
}

.page-btn:hover, .page-num:hover:not(.active) {
    border-color: #165DFF;
    color: #165DFF;
}

.page-ellipsis {
    color: #999;
}

/* 详情页 */
.breadcrumbs {
    margin: 20px 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs i {
    margin: 0 8px;
    font-size: 12px;
}

.breadcrumbs a:hover {
    color: #165DFF;
}

.movie-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.detail-left {}

.movie-poster-large {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.play-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #165DFF;
    color: white;
    text-align: center;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn i {
    margin-right: 10px;
}

.play-btn:hover {
    background-color: #0E42D2;
    color: white;
}

.detail-right {}

.movie-title-large {
    font-size: 28px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.original-title {
    font-size: 20px;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

.movie-tags {
    margin-bottom: 25px;
}

.movie-info-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
}

.info-label {
    font-weight: 600;
    min-width: 80px;
    color: #666;
}

.movie-synopsis {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-top: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.movie-synopsis .section-title{
	margin-top: 0px;
}
.synopsis-content {
    line-height: 1.8;
    font-size: 16px;
}

.synopsis-content p {
    margin-bottom: 15px;
}

.synopsis-content p:last-child {
    margin-bottom: 0;
}

/* 播放页 */
.play-section {
    margin-bottom: 40px;
}

.movie-title-play {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.player-container {
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
}


.play-sources {
    background-color: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sources-title {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.sources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.source-item {
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.source-item:hover {
    background-color: #e0e0e0;
    color: #165DFF;
}

.source-item.active {
    background-color: #165DFF;
    color: white;
}

.movie-info-play {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.info-poster img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.synopsis-brief {
    margin-top: 20px;
}

.synopsis-brief h4 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* 友情链接 */
.friend-links {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.friend-links .section-title{
	margin-top: 0px;
}
.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
}

.links-container a {
    color: #666;
    transition: color 0.3s ease;
}

.links-container a:hover {
    color: #165DFF;
    text-decoration: underline;
}

/* 页脚 */
.site-footer {
    background-color: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-content a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 5px;
}

.footer-content a:hover {
    color: white;
}

.disclaimer {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* 返回顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #165DFF;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #0E42D2;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .movie-detail {
        grid-template-columns: 250px 1fr;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
    }
    
    .search-form {
        order: 3;
        width: 100%;
        margin: 15px 0 0;
        max-width: none;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: #1a1a2e;
        z-index: 1000;
        transition: right 0.3s ease;
        padding-top: 80px;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a {
        display: block;
        padding: 15px 20px;
    }
    
    .main-nav .has-dropdown .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        display: none;
    }
    
    .main-nav .has-dropdown.active .dropdown {
        display: block;
    }
    
    .main-nav .has-dropdown .dropdown a {
        padding-left: 40px;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .banner {
        height: 300px;
    }
    
    .banner-info h2 {
        font-size: 22px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .movie-detail {
        grid-template-columns: 1fr;
    }
    
    .detail-left {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .movie-info-list {
        grid-template-columns: 1fr;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .movie-info-play {
        grid-template-columns: 1fr;
    }
    
    .info-poster {
        max-width: 200px;
        margin: 0 auto 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 200px;
    }
    
    .banner-info {
        padding: 15px;
    }
    
    .banner-info h2 {
        font-size: 18px;
    }
    
    .tags {
        display: none;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 15px;
    }
    
    .movie-title {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .filter-item {
        padding: 4px 8px;
        margin-right: 5px;
        font-size: 13px;
    }
    
    .movie-title-large {
        font-size: 22px;
    }
    
    .original-title {
        font-size: 16px;
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .page-btn span {
        display: none;
    }
    
    .page-btn {
        width: 36px;
        padding: 0;
    }
    
    #back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}
