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

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

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

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

ul {
    list-style: none;
}

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

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

.header-top {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

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

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

.search-box form {
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-box button {
    padding: 10px 20px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

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

.user-actions a {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.btn-login {
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

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

.main-nav {
    padding: 10px 0;
}

.main-nav ul {
    display: flex;
    justify-content: space-between;
}

.main-nav li {
    position: relative;
}

.main-nav li a {
    display: block;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
}

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

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

.slider-wrapper {
    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;
}

.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), transparent);
    color: #fff;
}

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

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

.btn-watch {
    display: inline-block;
    padding: 8px 20px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
}

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

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

.control-dot.active {
    background-color: #e74c3c;
}

/* 通用模块样式 */
section {
    margin: 40px 0;
}

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

.section-header h2 {
    font-size: 22px;
    color: #e74c3c;
}

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

/* 剧集卡片样式 */
.drama-list {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 15px;
}

.drama-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

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

.drama-poster {
    position: relative;
    height: 0;
    padding-top: 140%;
}

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

.drama-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(231, 76, 60, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.drama-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.drama-info {
    padding: 15px;
}

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

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

.drama-desc {
    margin-top: 5px;
}

/* 分类浏览样式 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 120px;
}

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

.category-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-weight: bold;
    text-align: center;
}

/* APP下载模块样式 */
.app-download {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.app-info {
    flex: 1;
    padding-right: 30px;
}

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

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

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

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

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

.btn-download {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
}

.btn-download i {
    margin-right: 8px;
}

.android {
    background-color: #3ddc84;
    color: #fff;
}

.ios {
    background-color: #000;
    color: #fff;
}

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

.app-qrcode img {
    width: 150px;
    height: 150px;
    margin: 0 auto 10px;
    border: 1px solid #ddd;
    padding: 5px;
}

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

/* 文章模块样式 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

.article-image {
    height: 200px;
}

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

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

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

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

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

/* 排行榜样式 */
.ranking-tabs {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-header {
    display: flex;
    background-color: #f5f5f5;
}

.tab-item {
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

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

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.ranking-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.ranking-number {
    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 img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.ranking-info {
    flex: 1;
}

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

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

.ranking-score {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #fff;
    margin-top: 60px;
}

.footer-top {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e74c3c;
}

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

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

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

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

.contact-info li {
    display: flex;
    align-items: center;
}

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

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

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

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

.footer-middle {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-middle h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e74c3c;
}

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

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

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

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .drama-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        max-width: 100%;
        margin: 15px 0;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        flex: 0 0 33.333%;
    }
    
    .slider-wrapper {
        height: 300px;
    }
    
    .drama-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .drama-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .slider-wrapper {
        height: 200px;
    }
    
    .slider-caption h2 {
        font-size: 18px;
    }
    
    .slider-caption p {
        font-size: 14px;
    }
    
    .main-nav li {
        flex: 0 0 50%;
    }
    
    .download-buttons {
        flex-direction: column;
    }
}

/* 图标样式 */
.icon-search:before {
    content: "🔍";
}

.icon-check:before {
    content: "✓";
}

.icon-android:before {
    content: "📱";
}

.icon-apple:before {
    content: "🍎";
}

.icon-email:before {
    content: "✉️";
}

.icon-phone:before {
    content: "📞";
}

.icon-location:before {
    content: "📍";
}

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

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

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

/* 透明轮播背景 */
body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* 增强卡片悬停效果 */
.drama-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

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

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

/* 增强按钮悬停效果 */
.btn-watch:hover, .btn-download:hover, .search-box button:hover {
    background-color: #c0392b;
}

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