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

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

a:hover {
    color: #e74c3c;
}

ul {
    list-style: none;
}

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

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

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
    border-left: 4px solid #e74c3c;
}

.section-header h2 {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
}

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

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

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.main-nav {
    display: flex;
}

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

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

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

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

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

/* 横幅区域样式 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 30px;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
    margin-left: 50px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.slide-content .slide-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

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

.btn-watch {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

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

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

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

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

/* 剧集卡片样式 */
.drama-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 0 20px;
}

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

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

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

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

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

.episode-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(231, 76, 60, 0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.card-info {
    padding: 12px;
}

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

.card-info p {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分类标签样式 */
.category-tabs {
    display: flex;
    margin-bottom: 20px;
    padding: 0 20px;
    border-bottom: 1px solid #eee;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.tab:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s ease;
}

.tab.active {
    color: #e74c3c;
}

.tab.active:after {
    width: 100%;
}

.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

/* 排行榜样式 */
.ranking-container {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.ranking-list {
    width: 48%;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.ranking-item:hover {
    background-color: #f9f9f9;
}

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

.ranking-item:nth-child(n+4) .rank-num {
    background-color: #95a5a6;
}

.ranking-item img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

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

.rank-info p {
    font-size: 14px;
    color: #666;
}

/* APP下载区域样式 */
.app-download {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: #fff;
    padding: 50px 0;
}

.app-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-info {
    width: 50%;
}

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

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

.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: #2ecc71;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.icon-check:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    top: 6px;
    left: 5px;
}

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

.download-btn {
    padding: 12px 25px;
    background-color: #fff;
    color: #3498db;
    border-radius: 4px;
    margin-right: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.download-btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
    color: #3498db;
}

.icon-android, .icon-apple {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-color: #3498db;
    border-radius: 50%;
}

.app-tip {
    font-size: 14px;
    margin-bottom: 10px;
}

.qr-code {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}

.app-preview {
    width: 40%;
}

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

/* 文章区域样式 */
.articles-container {
    padding: 0 20px;
}

.article-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.article-item img {
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
}

.article-content {
    flex: 1;
}

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

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

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

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

/* 用户评价区域样式 */
.reviews-container {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.review-card {
    width: 32%;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

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

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

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

.review-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.user-name {
    font-weight: 500;
    color: #2c3e50;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 30px;
}

.footer-section {
    width: 30%;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #e74c3c;
}

.about-us p {
    font-size: 14px;
    line-height: 1.6;
    color: #bdc3c7;
}

.quick-links ul li {
    margin-bottom: 10px;
}

.quick-links ul li a {
    color: #bdc3c7;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.quick-links ul li a:hover {
    color: #e74c3c;
    padding-left: 5px;
}

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

.icon-email, .icon-phone, .icon-time {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #e74c3c;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.social-media {
    display: flex;
    margin-top: 20px;
}

.social-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: #34495e;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

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

.icon-weibo, .icon-wechat, .icon-qq {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    border-top: 1px solid #34495e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.footer-links a {
    color: #bdc3c7;
    font-size: 12px;
    margin-left: 15px;
    transition: color 0.3s ease;
}

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

.friend-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    border-top: 1px solid #34495e;
}

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

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

.friend-links ul li {
    margin-right: 15px;
    margin-bottom: 10px;
}

.friend-links ul li a {
    color: #bdc3c7;
    font-size: 12px;
    transition: color 0.3s ease;
}

.friend-links ul li a:hover {
    color: #e74c3c;
}

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

@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        margin-bottom: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .drama-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .app-container {
        flex-direction: column;
    }
    
    .app-info, .app-preview {
        width: 100%;
    }
    
    .app-info {
        margin-bottom: 30px;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .drama-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ranking-container {
        flex-direction: column;
    }
    
    .ranking-list {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-item img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .reviews-container {
        flex-direction: column;
    }
    
    .review-card {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .copyright {
        margin-bottom: 15px;
    }
    
    .footer-links a {
        margin: 0 10px 10px 0;
    }
}

@media (max-width: 576px) {
    .drama-cards {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .slide-content .slide-title {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .btn-watch {
        padding: 8px 20px;
        font-size: 14px;
    }
}

