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

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

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

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

ul {
    list-style: none;
}

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

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

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

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

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

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

.more:hover {
    color: #e74c3c;
}

/* 头部样式 */
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;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

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

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

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

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a:hover {
    color: #e74c3c;
    background-color: #f9f9f9;
}

/* 轮播图样式 */
.banner {
    margin: 20px 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

.slide.active {
    opacity: 1;
}

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

.slide-content {
    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;
}

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

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
}

.prev, .next {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.5);
    color: #333;
    text-align: center;
    line-height: 30px;
    margin: 0 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.dots {
    display: flex;
    margin-left: 10px;
}

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

.dots span.active {
    background-color: #fff;
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

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

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

.card-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.score {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}

.tag.new {
    background-color: #2ecc71;
}

.tag.classic {
    background-color: #3498db;
}

.card-info {
    padding: 15px;
}

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

.card-info p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.card-info .desc {
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 热门推荐、最新上线、经典回顾样式 */
.hot-recommend, .new-releases, .classics {
    margin: 30px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 文章样式 */
.articles {
    margin: 30px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.article-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.article-card:hover {
    background-color: #f0f0f0;
}

.article-img {
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

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

.article-content .date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.article-content .summary {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
}

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

/* APP下载样式 */
.app-download {
    margin: 30px 0;
    padding: 30px 20px;
    background-color: #2c3e50;
    border-radius: 8px;
    color: #fff;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: center;
}

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

.app-info p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #ecf0f1;
}

.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: #e74c3c;
    color: #fff;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

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

.btn-download {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: #c0392b;
}

.btn-download i {
    margin-right: 10px;
    font-size: 18px;
}

.app-image {
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.ranking-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background-color: #f0f0f0;
}

.rank-num {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    width: 40px;
    text-align: center;
}

.rank-img {
    width: 80px;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
    margin: 0 15px;
}

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

.rank-info {
    flex: 1;
}

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

.play-count {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.icon-play {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #e74c3c;
    border-radius: 50%;
    margin-right: 5px;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.footer-logo span {
    font-size: 16px;
    font-weight: bold;
}

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

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

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

.footer-col ul li a {
    color: #bdc3c7;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #e74c3c;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-icon {
    display: inline-block;
    padding: 5px 10px;
    background-color: #34495e;
    color: #ecf0f1;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #e74c3c;
    color: #fff;
}

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

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

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

.footer-links ul li a {
    color: #bdc3c7;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

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

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

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

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

/* 响应式设计 */
@media (max-width: 992px) {
    .app-content {
        grid-template-columns: 1fr;
    }
    
    .app-image {
        height: 200px;
    }
    
    .article-card {
        grid-template-columns: 1fr;
    }
    
    .article-img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .slider {
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ranking-list {
        grid-template-columns: 1fr;
    }
    
    .slider {
        height: 200px;
    }
    
    .slide-content h2 {
        font-size: 18px;
    }
}
