/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #0f1016;
    color: #f5f5f5;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, li {
    list-style: none;
}

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

/* 头部样式 */
header {
    background-color: rgba(15, 16, 22, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #FF5E3A;
}

.logo span {
    margin-left: 10px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-size: 16px;
    color: #e0e0e0;
    position: relative;
}

.main-nav a:hover {
    color: #FF5E3A;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF5E3A;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 15px;
    border: none;
    border-radius: 20px 0 0 20px;
    background-color: #1c1e29;
    color: #f5f5f5;
    width: 200px;
    outline: none;
}

.search-box button {
    padding: 8px 15px;
    border: none;
    border-radius: 0 20px 20px 0;
    background-color: #FF5E3A;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    margin-right: 5px;
}

/* 主要内容样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 轮播图样式 */
.banner-section {
    margin-bottom: 40px;
}

.banner-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 500px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

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

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

.banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.banner-info h1, .banner-info h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #fff;
}

.banner-info p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.btn-watch {
    display: inline-block;
    padding: 10px 25px;
    background-color: #FF5E3A;
    color: white;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-watch:hover {
    background-color: #ff7e5a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 94, 58, 0.4);
}

.banner-controls {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
}

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

.banner-dot.active {
    background-color: #FF5E3A;
    transform: scale(1.2);
}

/* 电影卡片通用样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2c2e3a;
}

.section-header h2 {
    font-size: 24px;
    color: #fff;
}

.more-link {
    color: #FF5E3A;
    font-size: 16px;
}

.more-link:hover {
    text-decoration: underline;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.movie-card {
    border-radius: 8px;
    overflow: hidden;
    background-color: #1c1e29;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.movie-poster {
    position: relative;
    height: 250px;
}

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

.movie-rating, .movie-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF5E3A;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.movie-tag {
    background-color: #4CAF50;
}

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #fff;
}

.movie-category {
    font-size: 14px;
    color: #a0a0a0;
}

/* 电影分类模块样式 */
.categories {
    margin-bottom: 40px;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.category-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

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

.category-item:hover img {
    transform: scale(1.1);
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.category-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #fff;
}

.category-info p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.btn-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(255, 94, 58, 0.8);
    color: white;
    border-radius: 15px;
    font-size: 14px;
}

.btn-category:hover {
    background-color: #FF5E3A;
}

/* 推荐电影模块样式 */
.recommended {
    margin-bottom: 40px;
}

.recommended-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.recommended-feature {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
}

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

.recommended-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.recommended-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.movie-meta {
    display: flex;
    margin-bottom: 15px;
}

.movie-meta span {
    margin-right: 15px;
    font-size: 14px;
    color: #a0a0a0;
}

.movie-desc {
    font-size: 14px;
    margin-bottom: 20px;
    color: #e0e0e0;
    line-height: 1.6;
}

.recommended-list {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 15px;
}

.recommended-item {
    display: flex;
    background-color: #1c1e29;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.recommended-item:hover {
    transform: translateX(5px);
}

.recommended-item img {
    width: 80px;
    height: 100%;
    object-fit: cover;
}

.item-info {
    padding: 10px 15px;
    flex-grow: 1;
}

.item-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #fff;
}

.item-info p {
    font-size: 14px;
    color: #a0a0a0;
}

.rating {
    color: #FF5E3A;
    font-weight: bold;
}

/* APP下载模块样式 */
.app-download {
    margin-bottom: 40px;
    background-color: #1c1e29;
    border-radius: 10px;
    overflow: hidden;
}

.app-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.app-info {
    padding: 40px;
}

.app-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #fff;
}

.app-info p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #e0e0e0;
}

.app-features {
    margin-bottom: 30px;
}

.app-features li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #e0e0e0;
    display: flex;
    align-items: center;
}

.feature-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF5E3A'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
}

.download-buttons {
    display: flex;
    gap: 15px;
}

.btn-download {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #2c2e3a;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: #3c3e49;
}

.android-icon, .ios-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.android-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A4C639'%3E%3Cpath d='M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0-1.99-.97-3.75-2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z'/%3E%3C/svg%3E");
}

.ios-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFFFFF'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.68 1.39-1.48 2.74-2.53 4.08zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z'/%3E%3C/svg%3E");
}

.app-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-image img {
    max-height: 400px;
    object-fit: contain;
}

/* 电影文章模块样式 */
.movie-articles {
    margin-bottom: 40px;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.article-card {
    display: flex;
    background-color: #1c1e29;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.article-image {
    flex: 0 0 200px;
}

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

.article-content {
    padding: 20px;
    flex-grow: 1;
}

.article-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.article-meta {
    font-size: 12px;
    color: #a0a0a0;
    margin-bottom: 10px;
}

.article-excerpt {
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #FF5E3A;
    font-size: 14px;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* 页脚样式 */
footer {
    background-color: #0a0b10;
    padding: 50px 0 20px;
    margin-top: 50px;
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.footer-logo span {
    margin-left: 10px;
}

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

.footer-nav-group h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
}

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

.footer-nav-group ul li a {
    font-size: 14px;
    color: #a0a0a0;
}

.footer-nav-group ul li a:hover {
    color: #FF5E3A;
}

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

.social-icon {
    display: block;
    width: 30px;
    height: 30px;
    background-color: #2c2e3a;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #FF5E3A;
}

.contact-info {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 5px;
}

.footer-middle {
    margin-bottom: 30px;
}

.footer-middle h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
}

.friend-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links ul li a {
    font-size: 14px;
    color: #a0a0a0;
}

.friend-links ul li a:hover {
    color: #FF5E3A;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2c2e3a;
}

.copyright, .icp {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .banner-container {
        height: 400px;
    }
    
    .recommended-container {
        grid-template-columns: 1fr;
    }
    
    .app-container {
        grid-template-columns: 1fr;
    }
    
    .articles-container {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-image {
        flex: 0 0 200px;
    }
}

@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .banner-container {
        height: 300px;
    }
    
    .banner-info h1, .banner-info h2 {
        font-size: 24px;
    }
    
    .banner-info p {
        font-size: 16px;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
    
    .footer-nav {
        gap: 20px;
    }
    
    .footer-nav-group {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-container {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .footer-nav-group {
        width: 100%;
    }
}
