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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    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;
    vertical-align: middle;
}

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

.section {
    padding: 40px 0;
}

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

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid #FF5722;
}

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

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

.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #FF5722;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

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

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

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

.logo h1 {
    font-size: 20px;
    margin-left: 10px;
    color: #FF5722;
}

.main-nav ul {
    display: flex;
}

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

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

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

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

.search-box input {
    width: 200px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-btn {
    height: 36px;
    padding: 0 15px;
    background-color: #FF5722;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

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

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

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slide.active {
    opacity: 1;
}

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

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

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

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

.banner-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
}

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

.banner-dot.active {
    background-color: #FF5722;
}

/* 电视剧卡片样式 */
.drama-list {
    display: grid;
    grid-template-columns: repeat(6, 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: all 0.3s ease;
}

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

.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-score {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 87, 34, 0.9);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.drama-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.drama-tag.new {
    background-color: #4CAF50;
    color: #fff;
}

.drama-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.drama-poster:hover .drama-overlay {
    opacity: 1;
}

.play-btn {
    padding: 6px 12px;
    background-color: #FF5722;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

.drama-info {
    padding: 10px;
}

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

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

/* 分类标签页样式 */
.category-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;
    border-bottom: 1px solid #ddd;
}

.tab-item {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-item.active {
    color: #FF5722;
    border-bottom: 2px solid #FF5722;
    background-color: #fff;
}

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
}

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

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

.ranking-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.ranking-item:last-child {
    border-bottom: none;
}

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

.ranking-poster {
    width: 120px;
    height: 160px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.ranking-info {
    flex: 1;
}

.ranking-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.ranking-desc {
    color: #666;
    margin-bottom: 10px;
}

.ranking-stats {
    display: flex;
    margin-bottom: 15px;
}

.ranking-stats span {
    margin-right: 15px;
    color: #666;
    font-size: 14px;
}

.views:before {
    content: "👁️ ";
}

.score:before {
    content: "⭐ ";
}

/* APP下载区域样式 */
.app-section {
    background-color: #f9f9f9;
}

.app-wrapper {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

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

.app-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.app-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

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

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

.icon-check {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    margin-right: 10px;
}

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

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

.btn-android, .btn-ios {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.icon-android, .icon-apple {
    margin-right: 5px;
}

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

.app-qrcode img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.app-preview {
    flex: 1;
    text-align: center;
}

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

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

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

.article-image {
    width: 280px;
    flex-shrink: 0;
}

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

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

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

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

.article-meta {
    display: flex;
    margin-bottom: 15px;
}

.article-meta span {
    margin-right: 15px;
    color: #999;
    font-size: 14px;
}

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

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

/* 友情链接样式 */
.links-section {
    padding: 20px 0;
    background-color: #fff;
}

.links-wrapper {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

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

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

.links-wrapper a {
    color: #666;
    font-size: 14px;
}

.links-wrapper a:hover {
    color: #FF5722;
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    margin-right: 50px;
}

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

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

.footer-nav-col {
    flex: 1;
    padding-right: 20px;
}

.footer-nav-col h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #FF5722;
}

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

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

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

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

.footer-nav-col p {
    color: #aaa;
    font-size: 12px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.footer-links a {
    color: #aaa;
    margin-left: 15px;
    font-size: 12px;
}

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

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #FF5722;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.icon-arrow-up:before {
    content: "↑";
    font-size: 20px;
}

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

@media (max-width: 992px) {
    .drama-list {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .app-wrapper {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        padding-bottom: 30px;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
    }
    
    .footer-nav-col {
        width: 50%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .drama-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .banner-wrapper {
        height: 300px;
    }
    
    .banner-info h2 {
        font-size: 24px;
    }
    
    .banner-info p {
        font-size: 14px;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        height: 200px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .copyright {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .drama-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .main-nav {
        margin-bottom: 15px;
        width: 100%;
        overflow-x: auto;
    }
    
    .main-nav ul {
        width: max-content;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        flex: 1;
    }
    
    .ranking-item {
        flex-direction: column;
    }
    
    .ranking-poster {
        margin-bottom: 15px;
    }
    
    .footer-nav-col {
        width: 100%;
    }
}

