/* 全局样式 */
:root {
    --primary-color: #ff5722;
    --secondary-color: #ff9800;
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #999;
    --background-color: #f5f5f5;
    --white: #fff;
    --dark-bg: #1a1a1a;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.section-block {
    margin-bottom: 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.section-header h1,
.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
}

.section-header h1:before,
.section-header h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.more {
    font-size: 14px;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

.more:hover {
    color: var(--primary-color);
}

/* 图标样式 */
[class^="icon-"] {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: cover;
    vertical-align: middle;
}

.icon-search {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
}

.icon-play {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff5722' d='M8 5v14l11-7z'/%3E%3C/svg%3E");
}

.icon-left {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
}

.icon-right {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E");
}

.icon-check {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff5722' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

.icon-android {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0-1.99-.97-3.75-2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z'/%3E%3C/svg%3E");
}

.icon-apple {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.68 1.32-1.53 2.6-2.53 4.08zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z'/%3E%3C/svg%3E");
}

/* 头部样式 */
.header {
    background-color: var(--white);
    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: 60px;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo .icon-play {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

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

.search-box form {
    display: flex;
    position: relative;
}

.search-box input {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.2);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 30px;
    height: 30px;
    border: none;
    background-color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button .icon-search {
    width: 18px;
    height: 18px;
    filter: brightness(5);
}

.user-nav {
    display: flex;
    align-items: center;
}

.user-nav a {
    margin-left: 15px;
    font-size: 14px;
    color: var(--light-text);
}

.user-nav a:hover {
    color: var(--primary-color);
}

.btn-login, .btn-register {
    padding: 5px 15px;
    border-radius: 15px;
}

.btn-login {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-register {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

/* 导航样式 */
.main-nav {
    background-color: var(--white);
    border-bottom: 1px solid #eee;
}

.nav-list {
    display: flex;
    height: 50px;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    display: block;
    height: 50px;
    line-height: 50px;
    padding: 0 20px;
    font-size: 16px;
    color: var(--text-color);
}

.nav-list li:hover a, .nav-list li.active a {
    color: var(--primary-color);
}

.nav-list li.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background-color: var(--primary-color);
}

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

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

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

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

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

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
}

.slide-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.prev-btn, .next-btn {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
}

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

.dot.active {
    background-color: var(--white);
}

/* 热播电视剧样式 */
.drama-list {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

.drama-card {
    width: calc(16.666% - 16px);
    margin: 0 8px 20px;
    transition: var(--transition);
}

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

.card-poster {
    position: relative;
    padding-top: 140%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.card-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.score {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 87, 34, 0.9);
    color: var(--white);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
}

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

.card-info p {
    font-size: 12px;
    color: var(--lighter-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分类电视剧样式 */
.tab-nav {
    display: flex;
}

.tab {
    padding: 0 15px;
    font-size: 16px;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
}

.tab.active, .tab:hover {
    color: var(--primary-color);
}

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
}

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

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

.drama-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
}

.drama-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.drama-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
}

.item-info h3 {
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-info p {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 排行榜样式 */
.ranking-wrapper {
    padding: 20px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.rank {
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 4px;
    background-color: #eee;
    color: var(--light-text);
    font-weight: bold;
    margin-right: 15px;
}

.rank-1, .rank-2, .rank-3 {
    color: var(--white);
}

.rank-1 {
    background-color: #ff5722;
}

.rank-2 {
    background-color: #ff9800;
}

.rank-3 {
    background-color: #ffc107;
}

.ranking-item a {
    display: flex;
    flex: 1;
}

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

.item-score {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.views {
    font-size: 12px;
    color: var(--lighter-text);
    margin-left: 10px;
}

/* 最新更新样式 */
.update-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.update-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
}

.update-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.update-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: var(--transition);
}

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

.update-time {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* APP下载模块样式 */
.app-download {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.download-wrapper {
    display: flex;
    padding: 40px 20px;
}

.download-info {
    flex: 1;
}

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

.feature-list {
    margin: 20px 0;
}

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

.feature-list .icon-check {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.download-btns {
    display: flex;
    margin-top: 20px;
}

.btn-android, .btn-ios {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--white);
    margin-right: 15px;
    transition: var(--transition);
}

.btn-android:hover, .btn-ios:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.btn-android .icon-android, .btn-ios .icon-apple {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.download-qrcode {
    text-align: center;
    margin-left: 40px;
}

.download-qrcode img {
    width: 150px;
    height: 150px;
    background-color: var(--white);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* 精选文章样式 */
.article-list {
    padding: 20px;
}

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

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

.article-item a {
    display: flex;
}

.article-img {
    width: 200px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.article-content {
    flex: 1;
}

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

.article-item:hover .article-content h3 {
    color: var(--primary-color);
}

.article-desc {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    font-size: 12px;
    color: var(--lighter-text);
}

.article-meta span {
    margin-right: 15px;
}

/* 友情链接样式 */
.links-wrapper {
    padding: 20px;
}

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

.links-wrapper li, .links-wrapper a {
    margin-right: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--light-text);
}

.links-wrapper a:hover {
    color: var(--primary-color);
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-bg);
    color: #ccc;
    padding: 40px 0 20px;
}

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

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

.footer-col {
    width: 22%;
}

.footer-col h3 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

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

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

.footer-col ul li a:hover {
    color: var(--primary-color);
}

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

.footer-qrcode img {
    width: 120px;
    height: 120px;
    background-color: var(--white);
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

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

.footer-bottom a {
    color: #999;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* 响应式样式 */
@media screen and (max-width: 1200px) {
    .drama-card {
        width: calc(20% - 16px);
    }
    
    .drama-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .drama-card {
        width: calc(25% - 16px);
    }
    
    .banner-wrapper {
        height: 350px;
    }
    
    .update-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-nav {
        flex-wrap: wrap;
    }
    
    .footer-col {
        width: 48%;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
    }
    
    .logo-container {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .search-box {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 10px 0 0;
    }
    
    .user-nav {
        order: 2;
    }
    
    .nav-list {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .drama-card {
        width: calc(33.333% - 16px);
    }
    
    .drama-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-wrapper {
        height: 300px;
    }
    
    .article-item a {
        flex-direction: column;
    }
    
    .article-img {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .download-wrapper {
        flex-direction: column;
    }
    
    .download-qrcode {
        margin-left: 0;
        margin-top: 20px;
    }
}

@media screen and (max-width: 576px) {
    .drama-card {
        width: calc(50% - 16px);
    }
    
    .drama-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-wrapper {
        height: 250px;
    }
    
    .update-list {
        grid-template-columns: 1fr;
    }
    
    .footer-col {
        width: 100%;
    }
}
