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

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

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

/* 头部样式 */
.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;
    flex-wrap: wrap;
}

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

.logo {
    display: flex;
    align-items: center;
    color: #333;
    font-weight: bold;
}

.logo-icon {
    width: 36px;
    height: 36px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

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

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

.search-box button {
    padding: 10px 20px;
    background-color: #FFD700;
    color: #333;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background-color: #F4C430;
}

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

.btn {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-vip {
    background-color: #FFD700;
    color: #333;
    margin-right: 10px;
    font-weight: bold;
}

.btn-login {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.btn-vip:hover {
    background-color: #F4C430;
}

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

.main-nav {
    background-color: #333;
    padding: 0;
}

.main-nav .container {
    padding: 0;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
}

.main-nav li {
    position: relative;
}

.main-nav li a {
    display: block;
    color: #fff;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

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

.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.slide-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.btn-watch {
    display: inline-block;
    padding: 8px 20px;
    background-color: #FFD700;
    color: #333;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-watch:hover {
    background-color: #F4C430;
    transform: translateY(-2px);
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.prev, .next {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    margin: 0 15px;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 215, 0, 0.8);
    color: #333;
}

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

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

.dot.active {
    background-color: #FFD700;
    transform: scale(1.2);
}

/* 内容区块通用样式 */
section {
    margin: 30px 0;
}

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

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

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

.more:hover {
    color: #FFD700;
}

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

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

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

.drama-poster, .release-poster, .movie-poster {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.drama-poster img, .release-poster img, .movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.score {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 215, 0, 0.9);
    color: #333;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.tag.new {
    background-color: #ff4757;
    color: #fff;
}

.hover-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: all 0.3s ease;
    text-align: center;
}

.drama-poster:hover .hover-info,
.release-poster:hover .hover-info,
.movie-poster:hover .hover-info {
    bottom: 0;
}

.hover-info p {
    margin-bottom: 5px;
    font-size: 14px;
}

.hover-info p:first-child {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.btn-play {
    display: inline-block;
    padding: 6px 15px;
    background-color: #FFD700;
    color: #333;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-play:hover {
    background-color: #F4C430;
    transform: translateY(-2px);
}

.drama-info, .release-info, .movie-info {
    padding: 12px;
}

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

.drama-info p, .release-info p, .movie-info p {
    color: #666;
    font-size: 12px;
}

/* 专题样式 */
.topic-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.topic-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.topic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

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

.topic-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.topic-info p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.btn-view {
    display: inline-block;
    padding: 6px 15px;
    background-color: #FFD700;
    color: #333;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background-color: #F4C430;
    transform: translateY(-2px);
}

/* APP下载样式 */
.app-download {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    margin: 40px 0;
}

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

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

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

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

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

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

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

.icon-check:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 6px;
    border-left: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: translate(-50%, -60%) rotate(-45deg);
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #FFD700;
    color: #333;
    border-radius: 4px;
    margin-right: 15px;
    margin-bottom: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: #F4C430;
    transform: translateY(-2px);
}

.icon-android, .icon-apple {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-color: #333;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.icon-android {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path 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"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path 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"/></svg>');
}

.icon-apple {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path 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-.57 1.5-1.31 2.99-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"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path 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-.57 1.5-1.31 2.99-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"/></svg>');
}

.app-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
}

.app-qrcode img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
}

.app-qrcode p {
    color: #333;
    font-size: 14px;
    font-weight: bold;
}

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

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

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

.article-image {
    width: 200px;
    min-width: 200px;
    height: 150px;
}

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

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

.article-content h3 {
    font-size: 18px;
    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;
    text-overflow: ellipsis;
}

.read-more {
    display: inline-block;
    color: #FFD700;
    font-size: 14px;
    font-weight: bold;
}

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

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

.tab-header {
    display: flex;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

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

.tab.active {
    background-color: #FFD700;
    color: #333;
}

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
}

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

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.rank-item:hover {
    background-color: #f9f9f9;
}

.rank-num {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFD700;
    color: #333;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 15px;
}

.rank-item:nth-child(1) .rank-num {
    background-color: #FFD700;
}

.rank-item:nth-child(2) .rank-num {
    background-color: #C0C0C0;
}

.rank-item:nth-child(3) .rank-num {
    background-color: #CD7F32;
}

.rank-info {
    display: flex;
    flex: 1;
}

.rank-info img {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.rank-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rank-detail h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.rank-detail p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

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

.rank-score .score {
    position: static;
    background-color: transparent;
    color: #FFD700;
    padding: 0;
    font-size: 16px;
}

.rank-score .views {
    font-size: 12px;
    color: #999;
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: bold;
    color: #FFD700;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

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

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

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

.footer-nav-group ul li a:hover {
    color: #FFD700;
}

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

.footer-links h3 {
    font-size: 16px;
    color: #FFD700;
    margin-bottom: 15px;
}

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

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

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

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

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

.copyright {
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        padding: 0 10px;
    }
    
    .header .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .search-box {
        margin: 15px 0;
        max-width: 100%;
    }
    
    .user-actions {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .slider {
        height: 300px;
    }
    
    .drama-list, .release-list, .movie-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .drama-poster, .release-poster, .movie-poster {
        height: 200px;
    }
    
    .topic-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        margin-bottom: 30px;
        padding-right: 0;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        height: 200px;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-nav {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .slider {
        height: 200px;
    }
    
    .slide-content h2 {
        font-size: 18px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .drama-list, .release-list, .movie-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .topic-list {
        grid-template-columns: 1fr;
    }
    
    .rank-info img {
        width: 60px;
        height: 80px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 20px;
    }
}

