/* 全局样式 */
* {
    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;
}

ul, li {
    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 16px;
    border-radius: 4px;
    background-color: #ff5e52;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #e54d43;
}

/* 头部样式 */
.header {
    background-color: #1a1a1a;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo {
    display: block;
    width: 150px;
    height: 40px;
}

.logo-icon {
    width: 100%;
    height: 100%;
}

.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-box form {
    display: flex;
    position: relative;
}

.search-box input {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: 20px;
    background-color: #333;
    color: #fff;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.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='%23fff'%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");
    background-size: cover;
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-actions .btn {
    margin-left: 10px;
}

.login-btn {
    background-color: transparent;
    border: 1px solid #ff5e52;
}

.login-btn:hover {
    background-color: rgba(255, 94, 82, 0.1);
}

/* 导航栏样式 */
.main-nav {
    background-color: #222;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-size: 16px;
}

.nav-list li:hover a, .nav-list li.active a {
    color: #ff5e52;
}

.nav-list li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: #ff5e52;
}

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

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

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

.slider-item.active {
    opacity: 1;
    z-index: 1;
}

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

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

.slider-caption h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.slider-caption p {
    font-size: 16px;
    margin-bottom: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    display: flex;
}

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

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

/* 主要内容区域 */
.main-content {
    padding: 30px 0;
}

.section {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.section-header h1, .section-header h2 {
    font-size: 20px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.section-header h1::before, .section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: #ff5e52;
    border-radius: 2px;
}

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

.more:hover {
    color: #ff5e52;
}

/* 电影卡片样式 */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 20px;
}

.movie-card {
    position: relative;
    transition: all 0.3s ease;
}

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

.movie-poster {
    position: relative;
    height: 0;
    padding-top: 140%;
    overflow: hidden;
    border-radius: 6px;
}

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

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

.score {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 94, 82, 0.9);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 94, 82, 0.9);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.movie-info {
    padding: 10px 0;
}

.movie-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-info p {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tags {
    display: flex;
    flex-wrap: wrap;
}

.tags span {
    display: inline-block;
    padding: 2px 6px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 12px;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* 电视剧专区样式 */
.tv-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
}

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

.tv-card.featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.tv-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

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

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

.tv-item {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tv-item:hover {
    background-color: #f0f0f0;
}

.tv-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
}

.tv-item-info {
    flex: 1;
    padding: 0 15px;
}

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

.tv-item-info p {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.episode {
    display: inline-block;
    padding: 2px 6px;
    background-color: #ff5e52;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
}

/* 电影专区标签切换 */
.tabs {
    display: flex;
    align-items: center;
}

.tab {
    padding: 5px 15px;
    margin-left: 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tab:hover {
    color: #ff5e52;
}

.tab.active {
    background-color: #ff5e52;
    color: #fff;
}

/* 排行榜样式 */
.ranking-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.ranking-box {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.ranking-title {
    padding: 15px;
    background-color: #f0f0f0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.ranking-list li {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.ranking-list li:last-child {
    border-bottom: none;
}

.ranking-list li:hover {
    background-color: #f0f0f0;
}

.rank {
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: #ddd;
    color: #666;
    border-radius: 4px;
    margin-right: 10px;
    font-weight: bold;
}

.rank-1 {
    background-color: #ff5e52;
    color: #fff;
}

.rank-2 {
    background-color: #ff9a3c;
    color: #fff;
}

.rank-3 {
    background-color: #ffc107;
    color: #fff;
}

.rank-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.rank-info img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

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

.rank-info p {
    font-size: 12px;
    color: #999;
}

/* APP下载区域样式 */
.app-download {
    background-color: #1a1a1a;
    color: #fff;
}

.app-content {
    display: flex;
    align-items: center;
    padding: 40px 20px;
}

.app-info {
    flex: 1;
}

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

.app-desc {
    font-size: 16px;
    margin-bottom: 20px;
    color: #ccc;
}

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

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

.feature-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #ff5e52;
    border-radius: 50%;
    margin-right: 10px;
}

.download-btns {
    display: flex;
    flex-wrap: wrap;
}

.download-btns .btn {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 10px;
    padding: 12px 20px;
    border-radius: 6px;
}

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

.android-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%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");
    background-size: cover;
}

.ios-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%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-.57 1.5-1.31 2.99-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");
    background-size: cover;
}

.app-qrcode {
    width: 200px;
    text-align: center;
}

.qrcode-img {
    width: 160px;
    height: 160px;
    margin: 0 auto 15px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
}

.app-qrcode p {
    font-size: 14px;
    color: #ccc;
}

/* 文章区域样式 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.article-card {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.article-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    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;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.date {
    margin-right: 15px;
}

/* 页脚样式 */
.footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 40px 0 20px;
}

.footer-top {
    display: flex;
    margin-bottom: 30px;
}

.footer-logo {
    width: 200px;
    margin-right: 30px;
}

.footer-logo .logo-icon {
    width: 150px;
    height: 40px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 14px;
    color: #999;
}

.footer-nav {
    display: flex;
    flex: 1;
    justify-content: space-between;
}

.footer-nav-col {
    min-width: 120px;
}

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

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

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

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

.footer-qrcode {
    width: 100px;
    text-align: center;
}

.footer-qrcode svg {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.footer-qrcode p {
    font-size: 12px;
    color: #999;
}

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

.copyright {
    margin-bottom: 15px;
}

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

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

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .ranking-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .app-content {
        flex-direction: column;
        text-align: center;
    }
    
    .app-qrcode {
        margin-top: 30px;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 20px;
        text-align: center;
        width: 100%;
    }
    
    .footer-nav {
        flex-wrap: wrap;
    }
    
    .footer-nav-col {
        width: 50%;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .search-box {
        width: 100%;
        max-width: 100%;
        margin: 0 0 15px;
    }
    
    .nav-list li a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .slider {
        height: 300px;
    }
    
    .slider-caption h2 {
        font-size: 20px;
    }
    
    .slider-caption p {
        font-size: 14px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .tv-grid {
        grid-template-columns: 1fr;
    }
    
    .tv-card.featured {
        height: 300px;
        margin-bottom: 15px;
    }
    
    .ranking-container {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-img {
        width: 100%;
        height: 200px;
    }
}

@media screen and (max-width: 576px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider {
        height: 250px;
    }
    
    .slider-caption h2 {
        font-size: 18px;
    }
    
    .slider-caption p {
        display: none;
    }
    
    .download-btns {
        justify-content: center;
    }
}
