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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #8B2252;
    transition: all 0.3s ease;
}

a:hover {
    color: #d81e06;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    width: 100%;
    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;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

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

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li a {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
}

nav ul li a:hover {
    background-color: #8B2252;
    color: #fff;
}

/* 轮播图样式 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider {
    height: 100%;
    position: relative;
}

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

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 80%;
    max-width: 800px;
}

.slide-content h1, .slide-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #8B2252;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #d81e06;
    color: #fff;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-controls span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    margin: 0 20px;
}

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

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

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

/* 通用模块样式 */
section {
    padding: 60px 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8B2252;
}

.section-title h2 {
    font-size: 28px;
    color: #333;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #8B2252;
}

.more {
    color: #8B2252;
    font-size: 16px;
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

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

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

.card-img {
    position: relative;
    height: 0;
    padding-bottom: 140%;
    overflow: hidden;
}

.card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.score {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(216, 30, 6, 0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
}

.label.new {
    background-color: #8B2252;
}

.label.classic {
    background-color: #d4af37;
}

.card-info {
    padding: 15px;
}

.card-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.card-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tags span {
    background-color: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 演员阵容样式 */
.actor-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.actor {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.actor img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.actor h3 {
    font-size: 18px;
    margin: 15px 0 5px;
}

.actor p {
    font-size: 14px;
    color: #666;
    padding: 0 15px 15px;
}

/* 文章样式 */
.article-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

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

.article-img {
    height: 200px;
    overflow: hidden;
}

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

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

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

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

.read-more {
    display: inline-block;
    color: #8B2252;
    font-size: 14px;
    font-weight: bold;
}

/* APP下载区域样式 */
.app-download {
    background-color: #f0e6eb;
    padding: 60px 0;
}

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

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

.app-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #8B2252;
}

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

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

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

.icon-check {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #8B2252;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 20px;
    margin-right: 10px;
}

.icon-check::before {
    content: '✓';
}

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

.btn-download {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
}

.btn-download.android {
    background-color: #a4c639;
}

.btn-download.ios {
    background-color: #000;
}

.icon-android, .icon-apple {
    margin-right: 8px;
}

.qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode img {
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    padding: 5px;
    background-color: #fff;
}

.qrcode p {
    font-size: 14px;
    margin-top: 10px;
}

.app-preview {
    flex: 1;
    text-align: center;
}

.app-preview img {
    max-height: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-right: 60px;
    margin-bottom: 20px;
}

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

.footer-logo span {
    font-size: 20px;
    font-weight: bold;
}

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

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #aaa;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: #555;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 36px;
    font-size: 0;
}

.social-icon.weibo {
    background-color: #e6162d;
}

.social-icon.wechat {
    background-color: #07c160;
}

.social-icon.douyin {
    background-color: #000;
}

.social-icon.bilibili {
    background-color: #00a1d6;
}

.friendly-links {
    margin-bottom: 30px;
}

.friendly-links h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

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

.friendly-links ul li a, .friendly-links a {
    color: #aaa;
    font-size: 14px;
}

.friendly-links ul li a:hover, .friendly-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
    color: #aaa;
    font-size: 14px;
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .banner {
        height: 400px;
    }
    
    .slide-content h1, .slide-content h2 {
        font-size: 28px;
    }
    
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 300px;
    }
    
    .slide-content h1, .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .card-container, .actor-container {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
}
