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

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: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    width: 180px;
}

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

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

.main-nav a:hover {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

.search-box {
    display: flex;
    align-items: center;
}

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

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

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

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

.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 {
    margin-bottom: 15px;
}

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

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

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

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

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

/* 主要内容区样式 */
.main-content {
    margin-bottom: 40px;
}

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

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

.section-header h1, .section-header h2 {
    font-size: 24px;
    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: 5px;
    height: 20px;
    background-color: #ff6b6b;
    border-radius: 2px;
}

.subtitle {
    color: #666;
    font-size: 16px;
    margin-top: 5px;
}

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

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

/* 热门推荐样式 */
.drama-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
}

.drama-card {
    width: calc(33.333% - 14px);
    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-bottom: 140%;
    overflow: hidden;
}

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

.drama-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    background-color: #ff6b6b;
    color: #fff;
    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-desc {
    font-size: 14px;
    color: #666;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.drama-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: #999;
}

.score {
    color: #ff6b6b;
    font-weight: 500;
}

/* 最新上线样式 */
.drama-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.drama-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 0;
    padding-bottom: 140%;
}

.drama-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.drama-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.drama-item:hover .drama-overlay {
    transform: translateY(0);
}

.drama-overlay h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.drama-overlay p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.watch-btn {
    display: inline-block;
    padding: 5px 15px;
    background-color: #ff6b6b;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

/* 分类标签样式 */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.tab {
    padding: 5px 15px;
    background-color: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* 韩剧和日剧专区样式 */
.drama-row {
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

.drama-col {
    width: 25%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.drama-col img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.drama-content {
    padding: 15px;
}

.drama-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.drama-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.drama-tags {
    display: flex;
    gap: 5px;
}

.drama-tags span {
    padding: 2px 8px;
    background-color: #f5f5f5;
    border-radius: 10px;
    font-size: 12px;
    color: #666;
}

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

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

.article-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.article-content {
    flex: 1;
}

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

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

.article-date {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

/* APP下载样式 */
.app-download {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
}

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

.app-info {
    flex: 1;
}

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

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

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

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

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

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

.download-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    color: #ff6b6b;
    border-radius: 4px;
    font-weight: 500;
}

.btn-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-color: #ff6b6b;
    border-radius: 50%;
}

.app-note {
    font-size: 14px;
    opacity: 0.8;
}

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

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

.app-screenshots {
    display: flex;
    gap: 10px;
}

.app-screenshots img {
    width: 100px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #fff;
}

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

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

.footer-logo {
    width: 25%;
}

.footer-logo svg {
    width: 180px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 14px;
    opacity: 0.8;
}

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

.footer-nav-col h3 {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ff6b6b;
}

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

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

.footer-nav-col a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 12px;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ccc;
    font-size: 14px;
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .drama-card {
        width: calc(50% - 10px);
    }
    
    .drama-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
    }
    
    .footer-nav-col {
        width: 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-box {
        margin-top: 15px;
    }
    
    .banner-slider {
        height: 300px;
    }
    
    .drama-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .drama-row {
        flex-wrap: wrap;
    }
    
    .drama-col {
        width: 50%;
        margin-bottom: 20px;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-item img {
        width: 100%;
        height: 200px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .copyright {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .drama-card {
        width: 100%;
    }
    
    .drama-grid {
        grid-template-columns: 1fr;
    }
    
    .drama-col {
        width: 100%;
    }
    
    .footer-nav-col {
        width: 100%;
    }
}
