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

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

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

a:hover {
    color: #e74c3c;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary {
    background-color: #e74c3c;
    color: #fff;
}

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

.btn-download {
    background-color: #e74c3c;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    margin-right: 10px;
}

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

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

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

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

.logo {
    flex: 0 0 150px;
}

.logo a {
    display: block;
}

.search-box {
    flex: 0 0 40%;
}

.search-box form {
    display: flex;
}

.search-box input {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

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

.user-actions {
    display: flex;
    gap: 10px;
}

.main-nav {
    background-color: #e74c3c;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.main-nav li {
    position: relative;
}

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

.main-nav li a:hover {
    background-color: #c0392b;
}

/* 轮播图样式 */
.banner-section {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.banner-section h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.banner-slider {
    position: relative;
    height: 400px;
}

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

.banner-item:first-child {
    opacity: 1;
}

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

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

.banner-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.banner-info p {
    margin-bottom: 15px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

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

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

/* 内容区块通用样式 */
section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

.drama-card {
    transition: transform 0.3s ease;
}

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

.drama-poster {
    position: relative;
    height: 0;
    padding-bottom: 140%;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 10px;
}

.drama-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.new-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 5px;
    background-color: rgba(46, 204, 113, 0.8);
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
}

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

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

/* 分类模块样式 */
.category-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-item {
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

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

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
}

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

.category-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.category-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* APP下载模块样式 */
.app-download-section {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border-radius: 5px;
    overflow: hidden;
}

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

.app-info {
    flex: 1;
}

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

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

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

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

.app-features i {
    margin-right: 10px;
}

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

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

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

/* 文章模块样式 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-img {
    flex: 0 0 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 5px;
}

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

.article-content {
    flex: 1;
}

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

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

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

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

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

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

.footer-about, .footer-links, .footer-contact {
    flex: 1;
    padding: 0 15px;
}

.footer-about h3, .footer-links h3, .footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-about p {
    font-size: 14px;
    color: #bbb;
    line-height: 1.8;
}

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

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

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

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

.footer-contact i {
    margin-right: 10px;
    color: #e74c3c;
}

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

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

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

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

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

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

.friendly-links h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #bbb;
}

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

.friendly-links ul li a {
    font-size: 12px;
    color: #999;
}

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

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

@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .drama-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-img {
        width: 100%;
        height: 200px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media screen and (max-width: 480px) {
    .drama-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

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

.icon-android::before {
    content: "Android";
    margin-right: 5px;
}

.icon-apple::before {
    content: "iOS";
    margin-right: 5px;
}

.icon-email::before {
    content: "✉";
    margin-right: 5px;
}

.icon-phone::before {
    content: "☎";
    margin-right: 5px;
}

.icon-address::before {
    content: "⌂";
    margin-right: 5px;
}

.icon-weibo::before {
    content: "微博";
}

.icon-wechat::before {
    content: "微信";
}

.icon-douyin::before {
    content: "抖音";
}
