/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f2f5;
}

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

ul, ol {
    list-style: none;
}

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

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

/* 图标字体替代 */
[class^="icon-"] {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    mask-size: cover;
    -webkit-mask-size: cover;
    vertical-align: middle;
}

.icon-play-circle:before {
    content: "\25B6";
}

.icon-search:before {
    content: "\1F50D";
}

.icon-check:before {
    content: "\2714";
}

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

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

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

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

.icon-qq:before {
    content: "Q";
}

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

/* 渐变背景替代图片 */
.gradient-bg-1 {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #1a2a6c 0%, #b21f1f 50%, #fdbb2d 100%);
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.gradient-bg-4 {
    background: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
}

.gradient-bg-5 {
    background: linear-gradient(135deg, #8360c3 0%, #2ebf91 100%);
}

.gradient-bg-6 {
    background: linear-gradient(135deg, #009688 0%, #4CAF50 100%);
}

.gradient-bg-7 {
    background: linear-gradient(135deg, #ad5389 0%, #3c1053 100%);
}

.gradient-bg-8 {
    background: linear-gradient(135deg, #1565C0 0%, #b92b27 100%);
}

.gradient-bg-9 {
    background: linear-gradient(135deg, #cc2b5e 0%, #753a88 100%);
}

.gradient-bg-10 {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
}

.gradient-bg-11 {
    background: linear-gradient(135deg, #834d9b 0%, #d04ed6 100%);
}

.gradient-bg-12 {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
}

.gradient-bg-13 {
    background: linear-gradient(135deg, #3a1c71 0%, #d76d77 50%, #ffaf7b 100%);
}

.gradient-bg-14 {
    background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
}

.gradient-bg-15 {
    background: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%);
}

.gradient-bg-16 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.gradient-bg-17 {
    background: linear-gradient(135deg, #FC466B 0%, #3F5EFB 100%);
}

.gradient-bg-18 {
    background: linear-gradient(135deg, #0082c8 0%, #667db6 100%);
}

.gradient-bg-19 {
    background: linear-gradient(135deg, #f77062 0%, #fe5196 100%);
}

.gradient-bg-20 {
    background: linear-gradient(135deg, #c31432 0%, #240b36 100%);
}

.gradient-bg-21 {
    background: linear-gradient(135deg, #4568DC 0%, #B06AB3 100%);
}

.gradient-bg-22 {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.gradient-bg-23 {
    background: linear-gradient(135deg, #EB3349 0%, #F45C43 100%);
}

.gradient-bg-24 {
    background: linear-gradient(135deg, #1D976C 0%, #93F9B9 100%);
}

.gradient-bg-25 {
    background: linear-gradient(135deg, #FF8008 0%, #FFC837 100%);
}

.gradient-bg-26 {
    background: linear-gradient(135deg, #16A085 0%, #F4D03F 100%);
}

.gradient-bg-27 {
    background: linear-gradient(135deg, #603813 0%, #b29f94 100%);
}

.gradient-bg-28 {
    background: linear-gradient(135deg, #5C258D 0%, #4389A2 100%);
    width: 120px;
    height: 120px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 5px;
}

.gradient-bg-29 {
    background: linear-gradient(135deg, #3494E6 0%, #EC6EAD 100%);
    width: 200px;
    height: 400px;
    border-radius: 20px;
    position: relative;
}

/* 头部样式 */
.site-header {
    background-color: #1a1a2e;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

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

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

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

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

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

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

.user-actions a {
    margin-left: 15px;
    color: white;
    font-size: 14px;
}

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

.btn-login {
    background-color: transparent;
    border: 1px solid #ff4d4d;
}

.btn-register {
    background-color: #ff4d4d;
}

/* 导航栏样式 */
.main-nav {
    background-color: #16213e;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

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

.main-nav a {
    color: #fff;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff4d4d;
    transition: width 0.3s ease;
}

.main-nav a:hover:after {
    width: 100%;
}

/* 轮播区域样式 */
.banner-section {
    padding: 50px 0;
    background-color: #0f3460;
}

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

.banner-item {
    height: 400px;
    display: flex;
    align-items: center;
    padding: 0 50px;
    color: white;
    position: relative;
}

.banner-content {
    max-width: 600px;
    z-index: 1;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-watch {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-watch:hover {
    background-color: #e63e3e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
}

/* 电影区域样式 */
.movie-section, .tv-section, .variety-section, .anime-section, .new-section {
    padding: 50px 0;
    background-color: #f8f9fa;
}

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

.section-header h2 {
    font-size: 24px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.section-header h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: #ff4d4d;
    border-radius: 3px;
}

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

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

.movie-grid, .tv-grid, .variety-grid, .anime-grid, .new-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.movie-card, .tv-card, .variety-card, .anime-card, .new-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover, .tv-card:hover, .variety-card:hover, .anime-card:hover, .new-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.movie-poster, .tv-poster, .variety-poster, .anime-poster, .new-poster {
    height: 250px;
    position: relative;
}

.movie-info, .tv-info, .variety-info, .anime-info, .new-info {
    padding: 15px;
    background-color: white;
}

.movie-info h3, .tv-info h3, .variety-info h3, .anime-info h3, .new-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta, .tv-meta, .variety-meta, .anime-meta, .new-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.movie-meta span, .tv-meta span, .variety-meta span, .anime-meta span, .new-meta span {
    margin-right: 10px;
}

.btn-play {
    display: inline-block;
    padding: 5px 15px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 4px;
    font-size: 12px;
}

.btn-play:hover {
    background-color: #e63e3e;
}

/* 排行榜区域样式 */
.rank-section {
    padding: 50px 0;
    background-color: #f0f2f5;
}

.rank-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.rank-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff4d4d;
}

.rank-list li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.rank-list li:nth-child(1) .rank-num {
    background-color: #ff4d4d;
}

.rank-list li:nth-child(2) .rank-num {
    background-color: #ff8c00;
}

.rank-list li:nth-child(3) .rank-num {
    background-color: #ffc107;
}

.rank-list li:nth-child(n+4) .rank-num {
    background-color: #999;
}

.rank-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.rank-info p {
    font-size: 12px;
    color: #666;
}
/* APP下载区域样式 */
.app-section {
    padding: 70px 0;
    background-color: #16213e;
    color: white;
}

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

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

.app-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
}

.app-info p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

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

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

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

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

.btn-android, .btn-ios {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 5px;
    margin-right: 15px;
    font-weight: bold;
    background-color: #ff4d4d;
    color: white;
}

.btn-android i, .btn-ios i {
    margin-right: 10px;
    font-size: 20px;
}

.btn-android:hover, .btn-ios:hover {
    background-color: #e63e3e;
    transform: translateY(-2px);
}

.app-mockup {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 文章区域样式 */
.article-section {
    padding: 50px 0;
    background-color: #fff;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.article-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.article-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

/* 页脚样式 */
.site-footer {
    background-color: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #ff4d4d;
    margin-right: 50px;
    margin-bottom: 20px;
}

.footer-logo i {
    margin-right: 10px;
    font-size: 28px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
}

.footer-nav-column {
    margin-right: 40px;
    margin-bottom: 20px;
    min-width: 120px;
}

.footer-nav-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 16px;
}

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

.footer-nav-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

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

.social-links {
    display: flex;
    margin-bottom: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
}

.social-link:hover {
    background-color: #ff4d4d;
}

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

.footer-middle h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
}

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

.footer-middle ul li {
    margin-right: 20px;
    margin-bottom: 10px;
}

.footer-middle ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: #ff4d4d;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .rank-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .search-box {
        order: 3;
        max-width: 100%;
        margin: 15px 0 0;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .movie-grid, .tv-grid, .variety-grid, .anime-grid, .new-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .movie-poster, .tv-poster, .variety-poster, .anime-poster, .new-poster {
        height: 200px;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-nav {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        margin: 5px 0;
    }
    
    .banner-item {
        padding: 0 20px;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
    
    .movie-grid, .tv-grid, .variety-grid, .anime-grid, .new-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-download {
        flex-direction: column;
    }
    
    .btn-android, .btn-ios {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
}
