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

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

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

a:hover {
    color: #ff5252;
}

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

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6b6b;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #ff5252;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

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

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

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

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

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ff6b6b;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background-color: #ff6b6b;
    border: none;
    border-radius: 0 50px 50px 0;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav li a {
    color: #333;
    font-weight: bold;
    padding: 10px 0;
    position: relative;
}

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

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

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

/* 轮播图样式 */
.slider-section {
    padding: 20px 0;
    background-color: #f0f0f0;
}

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

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

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

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 80%;
}

.slide-content h1, .slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.slide-controls span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 107, 107, 0.7);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    margin: 0 20px;
    transition: all 0.3s ease;
}

.slide-controls span:hover {
    background-color: rgba(255, 82, 82, 0.9);
    transform: scale(1.1);
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slide-indicators span {
    width: 15px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicators span.active {
    background-color: #ff6b6b;
    transform: scale(1.2);
}

/* 通用部分样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 10px;
}

.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: 24px;
    background-color: #ff6b6b;
    border-radius: 3px;
}

.more {
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
}

.more:hover {
    color: #ff6b6b;
}

/* 卡片样式 */
.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 3px 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.5s ease;
}

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

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

.tag {
    left: 10px;
    right: auto;
    background-color: rgba(52, 152, 219, 0.9);
}

.card-info {
    padding: 15px;
}

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

.card-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-btn {
    display: block;
    text-align: center;
    padding: 8px 0;
    background-color: #ff6b6b;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

/* 热门推荐和最新更新区域样式 */
.hot-section, .latest-section {
    padding: 40px 0;
    background-color: #fff;
}

.latest-section {
    background-color: #f9f9f9;
}

/* 排行榜区域样式 */
.ranking-section {
    padding: 40px 0;
    background-color: #fff;
}

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

.tab-header span {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-header span.active {
    background-color: #ff6b6b;
    color: #fff;
}

.tab-content {
    display: none;
    padding: 20px;
}

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

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

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

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

.rank-1 {
    background-color: #ffb800;
    color: #fff;
}

.rank-2 {
    background-color: #c0c0c0;
    color: #fff;
}

.rank-3 {
    background-color: #cd7f32;
    color: #fff;
}

.rank-info {
    flex: 1;
}

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

.rank-info p {
    color: #666;
    font-size: 14px;
}

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

/* APP下载区域样式 */
.app-download {
    padding: 60px 0;
    background-color: #f0f0f0;
    background-image: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
}

.app-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.app-info {
    flex: 1;
}

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

.app-info > p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

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

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

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

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

.download-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
}

.qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.app-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-image img {
    max-height: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 精彩文章区域样式 */
.article-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.article-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    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-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.article-img {
    width: 300px;
    min-width: 300px;
}

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

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

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

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

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

.read-more {
    display: inline-block;
    color: #ff6b6b;
    font-weight: bold;
}

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

/* 友情链接区域样式 */
.friend-links {
    padding: 30px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.friend-links h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

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

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

.friend-links a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

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

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo p {
    margin-top: 15px;
    color: #ccc;
}

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

.footer-nav-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ff6b6b;
}

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

.footer-nav-col ul li a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-nav-col ul li a:hover {
    color: #ff6b6b;
    padding-left: 5px;
}

.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ff6b6b;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #ff6b6b;
    transform: translateY(-3px);
}

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

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

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

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

/* 响应式样式 */
@media (max-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .slide-content h1, .slide-content h2 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 20px;
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-img {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .search-box {
        margin: 15px 0;
        max-width: 100%;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .slider {
        height: 350px;
    }
    
    .slide-content h1, .slide-content h2 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
        .card-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider {
        height: 250px;
    }
    
    .slide-content h1, .slide-content h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .slide-controls span {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin: 0 10px;
    }
    
    .ranking-list li img {
        width: 60px;
        height: 90px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
}

/* 添加一些动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .article-card {
    animation: fadeIn 0.5s ease forwards;
}

/* 添加透明轮播背景 */
.slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(41, 128, 185, 0.3));
    z-index: 1;
    opacity: 0.7;
}

/* 添加字体图标支持 */
@font-face {
    font-family: 'FontAwesome';
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-solid-900.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.fa {
    font-family: 'FontAwesome';
    font-style: normal;
}

.fa-search::before {
    content: "\f002";
}

.fa-check-circle::before {
    content: "\f058";
}

.fa-android::before {
    content: "\f17b";
}

.fa-apple::before {
    content: "\f179";
}

.fa-envelope::before {
    content: "\f0e0";
}

.fa-phone::before {
    content: "\f095";
}

.fa-weixin::before {
    content: "\f1d7";
}

.fa-weibo::before {
    content: "\f18a";
}

.fa-qq::before {
    content: "\f1d6";
}

.fa-music::before {
    content: "\f001";
}
