/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #e74c3c;
}

ul, ol {
    list-style: none;
}

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

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

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
}

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

.logo svg {
    margin-right: 10px;
}

.logo span {
    color: #333;
}

.main-nav ul {
    display: flex;
}

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

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    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: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    outline: none;
    width: 200px;
}

.search-box button {
    background-color: #e74c3c;
    border: none;
    padding: 8px 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    color: white;
}

.search-icon::before {
    content: '🔍';
}

/* 轮播图样式 */
.banner {
    padding: 30px 0;
    background-color: #f0f0f0;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slider {
    position: relative;
    height: 450px;
}

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

.slide.active {
    opacity: 1;
}

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

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

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

.slide-content p {
    font-size: 16px;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #e74c3c;
    color: white;
    border-radius: 20px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #c0392b;
    color: white;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
}

.prev-btn, .next-btn {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.slider-dots {
    display: flex;
    margin: 0 10px;
}

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

.dot.active {
    background-color: #e74c3c;
}

/* 通用区块样式 */
section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.section-title {
    font-size: 24px;
    position: relative;
    padding-left: 15px;
    color: #333;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 70%;
    width: 5px;
    background-color: #e74c3c;
    border-radius: 2px;
}

.more-link {
    color: #999;
    font-size: 14px;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #e74c3c;
}

/* 热门影讯样式 */
.hot-news {
    background-color: #fff;
}

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

.news-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-img {
    height: 180px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-content {
    padding: 15px;
}

.news-tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f0f0f0;
    color: #666;
    font-size: 12px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 12px;
}

/* 精选影评样式 */
.featured-reviews {
    background-color: #f8f8f8;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-article {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.review-header {
    display: flex;
    margin-bottom: 20px;
}

.review-poster {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 20px;
}

.review-info {
    flex: 1;
}

.review-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.review-rating {
    display: flex;
    align-items: center;
}

.star {
    color: #ddd;
    position: relative;
    font-size: 16px;
}

.star::before {
    content: '★';
}

.star.filled {
    color: #f1c40f;
}

.star.half::before {
    content: '★';
    position: relative;
}

.star.half::after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #f1c40f;
}

.review-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: #e74c3c;
    font-weight: 500;
    margin-top: 10px;
    font-size: 14px;
}

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

/* 电影排行榜样式 */
.movie-rankings {
    background-color: #fff;
}

.rankings-tabs {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.tab-headers {
    display: flex;
    background-color: #f0f0f0;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: #e74c3c;
    color: white;
}

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

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

.rank {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 15px;
    color: white;
}

.rank-1 {
    background-color: #f1c40f;
}

.rank-2 {
    background-color: #95a5a6;
}

.rank-3 {
    background-color: #d35400;
}

.rank-4, .rank-5 {
    background-color: #7f8c8d;
}

.rank-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 15px;
}

.rank-info {
    flex: 1;
}

.rank-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.rank-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.rank-rating, .rank-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.stars {
    display: flex;
    margin-right: 5px;
}

.stars .star {
    font-size: 12px;
}

/* 电影人物专访样式 */
.movie-people {
    background-color: #f8f8f8;
}

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

.people-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.people-card:hover {
    transform: translateY(-5px);
}

.people-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.people-info {
    padding: 15px;
}

.people-name {
    font-size: 18px;
    margin-bottom: 5px;
}

.people-role {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 10px;
}

.people-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 电影文化样式 */
.movie-culture {
    background-color: #fff;
}

.culture-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.culture-article {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.article-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.article-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* APP下载区域样式 */
.app-download {
    background-color: #f0f0f0;
    background-image: linear-gradient(to right, #e74c3c, #c0392b);
    color: white;
}

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

.app-info {
    flex: 1;
    padding-right: 30px;
}

.app-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.app-desc {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

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

.app-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.feature-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-color: white;
    border-radius: 50%;
    position: relative;
}

.feature-icon::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #e74c3c;
    font-size: 12px;
}

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

.app-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    color: #333;
    border-radius: 5px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.app-btn:hover {
    transform: translateY(-3px);
}

.android-icon, .ios-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.android-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6,18c0,0.55 0.45,1 1,1h1v3.5c0,0.83 0.67,1.5 1.5,1.5s1.5,-0.67 1.5,-1.5V19h2v3.5c0,0.83 0.67,1.5 1.5,1.5s1.5,-0.67 1.5,-1.5V19h1c0.55,0 1,-0.45 1,-1V8H6v10zM3.5,8C2.67,8 2,8.67 2,9.5v7c0,0.83 0.67,1.5 1.5,1.5S5,17.33 5,16.5v-7C5,8.67 4.33,8 3.5,8zM20.5,8c-0.83,0 -1.5,0.67 -1.5,1.5v7c0,0.83 0.67,1.5 1.5,1.5s1.5,-0.67 1.5,-1.5v-7c0,-0.83 -0.67,-1.5 -1.5,-1.5zM15.53,2.16l1.3,-1.3c0.2,-0.2 0.2,-0.51 0,-0.71 -0.2,-0.2 -0.51,-0.2 -0.71,0l-1.48,1.48C13.85,1.23 12.95,1 12,1c-0.96,0 -1.86,0.23 -2.66,0.63L7.85,0.15c-0.2,-0.2 -0.51,-0.2 -0.71,0 -0.2,0.2 -0.2,0.51 0,0.71l1.31,1.31C6.97,3.26 6,5.01 6,7h12c0,-1.99 -0.97,-3.75 -2.47,-4.84zM10,5H9V4h1v1zM15,5h-1V4h1v1z"/></svg>');
}

.ios-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16,1H8C6.34,1 5,2.34 5,4v16c0,1.66 1.34,3 3,3h8c1.66,0 3,-1.34 3,-3V4C19,2.34 17.66,1 16,1zM14,21h-4v-1h4V21zM17.25,18H6.75V4h10.5V18z"/></svg>');
}

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

.app-screenshot {
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 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;
}

.footer-logo svg {
    margin-right: 10px;
}

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

.footer-nav-title {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 16px;
}

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

.footer-nav a {
    color: #bdc3c7;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #e74c3c;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #bdc3c7;
}

.footer-contact i {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-qrcode {
    display: flex;
    gap: 20px;
}

.qrcode-item {
    text-align: center;
}

.qrcode-item img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.qrcode-item p {
    font-size: 12px;
    color: #bdc3c7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.copyright {
    font-size: 12px;
    color: #95a5a6;
}

.copyright p {
    margin-bottom: 5px;
}

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

.footer-links a {
    font-size: 12px;
    color: #95a5a6;
}

.friend-links {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.friend-links h3 {
    font-size: 16px;
    color: #e74c3c;
    margin-bottom: 15px;
}

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

.friend-links a {
    font-size: 12px;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
    }
    
    .footer-middle {
        flex-direction: column;
    }
    
    .footer-contact {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .logo-container {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .main-nav {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .search-box {
        width: 100%;
        justify-content: center;
    }
    
    .slider {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 22px;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .review-header {
        flex-direction: column;
    }
    
    .review-poster {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        height: auto;
        max-height: 250px;
    }
    
    .people-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .copyright {
        margin-bottom: 15px;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-nav li {
        margin: 0 8px;
    }
    
    .slider {
        height: 250px;
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .slide-content h2 {
        font-size: 18px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .app-buttons {
        flex-direction: column;
    }
}

