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

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

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

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

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

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

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

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

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

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    font-size: 16px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff5e52;
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 8px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 250px;
    outline: none;
}

.search-box button {
    padding: 8px 15px;
    background-color: #ff5e52;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #e54942;
}

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

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

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

.slide.active {
    opacity: 1;
}

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

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

.slide-content h1, .slide-content h2 {
    margin-bottom: 15px;
    font-size: 36px;
}

.slide-content p {
    margin-bottom: 20px;
    font-size: 18px;
}

.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;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    margin: 0 20px;
    transition: background-color 0.3s;
}

.slider-controls span:hover {
    background-color: rgba(255, 94, 82, 0.8);
}

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

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

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff5e52;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

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

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

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

.section-header h2 {
    font-size: 28px;
    color: #1a1a2e;
    position: relative;
    padding-left: 15px;
}

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

.more {
    color: #666;
    font-size: 16px;
    transition: color 0.3s;
}

.more:hover {
    color: #ff5e52;
}

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

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

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

.card-image {
    position: relative;
    height: 280px;
}

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

.tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: #ff5e52;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #1a1a2e;
}

.card-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

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

.desc {
    color: #777;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 热门推荐区域样式 */
.hot-recommend {
    background-color: #fff;
}

/* 最新上线区域样式 */
.latest-update {
    background-color: #f9f9f9;
}

/* 热播电视剧区域样式 */
.tv-series {
    background-color: #fff;
}

/* 精选内容区域样式 */
.featured-content {
    background-color: #f9f9f9;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 300px 150px 150px;
    gap: 20px;
}

.featured-large {
    grid-column: 1;
    grid-row: 1 / span 3;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.featured-small {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

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

.featured-large .featured-info {
    padding: 30px;
}

.featured-info h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.featured-large .featured-info h3 {
    font-size: 24px;
}

.featured-info p {
    margin-bottom: 15px;
    font-size: 14px;
}

.featured-large .btn {
    margin-top: 10px;
}

/* 专题推荐区域样式 */
.special-topic {
    background-color: #fff;
}

.topic-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.topic-card {
    position: relative;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

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

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

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

.topic-content p {
    margin-bottom: 15px;
    font-size: 14px;
}

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

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

.app-info {
    flex: 1;
}

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

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

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

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

.app-features li i {
    margin-right: 10px;
    color: #ff5e52;
}

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

.btn-android, .btn-ios {
    display: flex;
    align-items: center;
    background-color: #fff;
    color: #1a1a2e;
}

.btn-android i, .btn-ios i {
    margin-right: 10px;
}

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

.app-image img {
    max-height: 400px;
    border-radius: 20px;
}

/* 文章区域样式 */
.article-section {
    background-color: #f9f9f9;
}

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

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

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

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

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

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

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

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

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

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

/* 用户评价区域样式 */
.user-reviews {
    background-color: #fff;
}

.review-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
}

.user-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.review-stars {
    color: #ff9800;
    margin-bottom: 10px;
}

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

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

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

.footer-logo span {
    margin-left: 10px;
    font-size: 18px;
    font-weight: bold;
}

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

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

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

.footer-nav-column ul li a {
    color: #ccc;
    transition: color 0.3s;
}

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

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

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

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

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

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

.footer-links ul li a {
    color: #ccc;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 14px;
}

.footer-bottom a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #ff5e52;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .featured-large {
        grid-column: auto;
        grid-row: auto;
        height: 300px;
    }

    .featured-small {
        height: 200px;
    }

    .topic-container {
        grid-template-columns: 1fr;
    }

    .app-content {
        flex-direction: column;
    }

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

    .article-container {
        grid-template-columns: 1fr;
    }

    .review-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 15px;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .slider {
        height: 300px;
    }

    .slide-content h1, .slide-content h2 {
        font-size: 24px;
    }

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

    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-card {
        flex-direction: column;
    }

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

    .footer-top {
        flex-direction: column;
    }

    .footer-logo {
        margin-bottom: 20px;
    }

    .footer-nav {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .card-container {
        grid-template-columns: 1fr;
    }

    .slider-controls span {
        width: 30px;
        height: 30px;
        font-size: 16px;
        margin: 0 10px;
    }

    .app-buttons {
        flex-direction: column;
    }
}

/* 图标样式 */
.icon-check::before {
    content: '✓';
    margin-right: 5px;
}

.icon-android::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a1a2e' 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.5L11,19h2v3.5c0,0.83 0.67,1.5 1.5,1.5s1.5,-0.67 1.5,-1.5L16,19h1c0.55,0 1,-0.45 1,-1L18,8L6,8L6,18zM3.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-7C22,8.67 21.33,8 20.5,8zM15.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,7h12C18,5 17.03,3.25 15.53,2.16zM10,5L9,5L9,4h1L10,5zM15,5h-1L14,4h1L15,5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-apple::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a1a2e' d='M17.05,20.28c-0.98,0.95-2.05,0.8-3.08,0.35c-1.09-0.46-2.09-0.48-3.24,0c-1.44,0.62-2.2,0.44-3.06-0.35 C2.79,15.25,3.51,7.59,9.05,7.31c1.35,0.07,2.29,0.74,3.08,0.8c1.18-0.12,2.06-0.84,3.11-0.85c1.28,0.04,2.39,0.57,3.09,1.42 c-2.84,1.83-2.01,5.63,0.66,6.62C18.66,17.37,18.05,19.38,17.05,20.28z M12.03,7.25c-0.15-2.23,1.66-4.07,3.74-4.25 C15.97,5.18,14.02,7.26,12.03,7.25z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-weibo::before {
    content: 'W';
    font-weight: bold;
}

.icon-wechat::before {
    content: 'C';
    font-weight: bold;
}

.icon-douyin::before {
    content: 'D';
    font-weight: bold;
}

.icon-bilibili::before {
    content: 'B';
    font-weight: bold;
}

/* 透明轮播背景 */
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 26, 46, 0.7), rgba(15, 52, 96, 0.7));
    z-index: -1;
}

.banner {
    position: relative;
    overflow: hidden;
}

.banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -2;
    animation: rotate 120s linear infinite;
    opacity: 0.1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 渐变背景色 */
.hot-recommend {
    background: linear-gradient(to bottom, #fff, #f9f9f9);
}

.latest-update {
    background: linear-gradient(to bottom, #f9f9f9, #fff);
}

.tv-series {
    background: linear-gradient(to bottom, #fff, #f9f9f9);
}

.featured-content {
    background: linear-gradient(to bottom, #f9f9f9, #fff);
}

.special-topic {
    background: linear-gradient(to bottom, #fff, #f9f9f9);
}

.article-section {
    background: linear-gradient(to bottom, #f9f9f9, #fff);
}

.user-reviews {
    background: linear-gradient(to bottom, #fff, #f5f5f5);
}

/* 悬浮效果 */
.card:hover .card-image img {
    transform: scale(1.05);
    transition: transform 0.5s;
}

.card .card-image img {
    transition: transform 0.5s;
}

.topic-card:hover img {
    transform: scale(1.05);
    transition: transform 0.5s;
}

.topic-card img {
    transition: transform 0.5s;
}

.featured-large:hover img,
.featured-small:hover img {
    transform: scale(1.05);
    transition: transform 0.5s;
}

.featured-large img,
.featured-small img {
    transition: transform 0.5s;
}
