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

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

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

a:hover {
    color: #4CAF50;
}

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;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* 头部样式 */
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;
    height: 70px;
}

.logo a {
    display: block;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    display: block;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: bold;
    position: relative;
}

nav ul li a:hover {
    color: #4CAF50;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #4CAF50;
    transition: all 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

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

.search-box input {
    width: 200px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-box button {
    height: 36px;
    padding: 0 15px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 轮播图样式 */
.banner {
    margin: 20px 0;
}

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

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

.slide.active {
    opacity: 1;
}

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

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

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

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

.slider-controls {
    position: relative;
}

.prev, .next {
    position: absolute;
    top: -200px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #4CAF50;
}

/* 主要内容区域样式 */
main {
    padding: 20px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

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

.section-header h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: #4CAF50;
    border-radius: 3px;
}

.more {
    color: #666;
    font-size: 14px;
}

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

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

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

.video-thumb {
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    overflow: hidden;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.1);
}

.video-duration, .video-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 2px 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

.video-info {
    padding: 15px;
}

.video-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-info p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.score {
    color: #ff6700;
    font-weight: bold;
}

.actors {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 热门推荐模块 */
.hot-recommend {
    margin-bottom: 30px;
}

.hot-recommend h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #4CAF50;
}

/* 最新上线、经典电影、热门电视剧模块 */
.new-releases, .classic-movies, .hot-series {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* APP下载模块 */
.app-download {
    margin-bottom: 30px;
    padding: 30px 0;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
}

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

.app-info {
    flex: 1;
}

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

.slogan {
    font-size: 18px;
    margin-bottom: 20px;
}

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

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

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

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

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #fff;
    color: #4CAF50;
    border-radius: 4px;
    margin-right: 15px;
    font-weight: bold;
}

.btn-download:hover {
    background-color: #f0f0f0;
    color: #4CAF50;
}

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

.app-version {
    font-size: 12px;
    opacity: 0.8;
}

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

.app-qrcode img {
    width: 150px;
    height: 150px;
    border: 5px solid #fff;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* 文章推荐模块 */
.article-recommend {
    margin-bottom: 30px;
}

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

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

.article-thumb {
    flex: 0 0 150px;
}

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

.article-info {
    flex: 1;
    padding: 15px;
}

.article-info h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

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

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

/* 用户评价模块 */
.user-reviews {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reviews-slider {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
}

.review-card {
    flex: 0 0 300px;
    margin-right: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
}

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

.review-content {
    text-align: center;
}

.stars {
    margin-bottom: 10px;
    color: #FFD700;
    font-size: 18px;
}

.star.filled {
    color: #FFD700;
}

.star.half-filled {
    position: relative;
    display: inline-block;
}

.star.half-filled:before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #FFD700;
}

.review-text {
    margin-bottom: 10px;
    font-style: italic;
}

.user-name {
    font-weight: bold;
}

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

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

.footer-logo p {
    margin-top: 10px;
    font-size: 16px;
}

.footer-nav {
    display: flex;
}

.footer-nav-col {
    margin-left: 40px;
}

.footer-nav-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav-col h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #4CAF50;
}

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

.footer-nav-col ul li a {
    color: #ccc;
}

.footer-nav-col ul li a:hover {
    color: #4CAF50;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}

.qrcode {
    text-align: center;
}

.qrcode img {
    width: 120px;
    height: 120px;
    border: 5px solid #444;
    border-radius: 8px;
    margin-bottom: 10px;
}

.contact-info {
    max-width: 300px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.icon-phone, .icon-email, .icon-time {
    margin-right: 10px;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #4CAF50;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #444;
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #4CAF50;
    color: #fff;
}

.footer-bottom {
    text-align: center;
}

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

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

.friendly-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.friendly-links ul li {
    margin: 0 10px 10px;
}

.friendly-links ul li a {
    color: #ccc;
}

.friendly-links ul li a:hover {
    color: #4CAF50;
}

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

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

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        max-width: 100%;
    }
    
    header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        flex: 1;
    }
    
    .slider {
        height: 300px;
    }
    
    .prev, .next {
        top: -150px;
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        margin-bottom: 30px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
    }
    
    .footer-nav-col {
        margin-left: 0;
        margin-right: 20px;
        margin-bottom: 20px;
    }
    
    .footer-middle {
        flex-direction: column;
        align-items: center;
    }
    
    .qrcode {
        margin-bottom: 20px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-thumb {
        flex: 0 0 auto;
        height: 150px;
    }
}
