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

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

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 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FF5E7D;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.more {
    color: #FF5E7D;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.more:after {
    content: '→';
    margin-left: 5px;
    transition: all 0.3s ease;
}

.more:hover:after {
    margin-left: 8px;
}

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

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

nav ul {
    display: flex;
}

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

nav ul li a {
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
}

nav ul li a:hover {
    color: #FF5E7D;
    background-color: rgba(255, 94, 125, 0.1);
}

/* 轮播图样式 */
.banner {
    padding: 30px 0;
    background-color: #f1f2f6;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
}

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

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

.slide-content {
    position: absolute;
    left: 50px;
    max-width: 500px;
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

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

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

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

/* 主要内容样式 */
main {
    padding: 30px 0;
}

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

.section-header h2 {
    font-size: 28px;
    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: #FF5E7D;
    border-radius: 3px;
}

.section-header p {
    color: #666;
    margin-top: 5px;
}

/* 卡片样式 */
.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.05);
    transition: all 0.3s ease;
}

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

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

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

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

.card-img .tag,
.card-img .update-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.card-img .tag {
    background-color: #FF5E7D;
}

.card-img .update-tag {
    background-color: #4CAF50;
}

.card-content {
    padding: 15px;
}

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

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

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 热门推荐模块样式 */
.hot-section {
    margin-bottom: 40px;
}

/* 最新更新模块样式 */
.update-section {
    margin-bottom: 40px;
    background-color: #fff;
    padding: 30px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 分类推荐模块样式 */
.category-section {
    margin-bottom: 40px;
}

.category-tabs {
    display: flex;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: #FF5E7D;
    border-bottom-color: #FF5E7D;
    background-color: rgba(255, 94, 125, 0.05);
}

.tab-content {
    display: none;
}

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

/* APP下载模块样式 */
.app-section {
    margin-bottom: 40px;
    background: linear-gradient(135deg, #FF5E7D, #FF8E53);
    padding: 50px 0;
    color: #fff;
    border-radius: 10px;
}

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

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

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

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

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

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

.app-features li i {
    margin-right: 10px;
    font-size: 18px;
}

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

.btn-android, .btn-ios {
    display: flex;
    align-items: center;
    background-color: #fff;
    color: #FF5E7D;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
}

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

.btn-android:hover, .btn-ios:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.app-image {
    flex: 1;
    text-align: center;
}

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

/* 排行榜模块样式 */
.ranking-section {
    margin-bottom: 40px;
}

.ranking-tabs {
    display: flex;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ranking-content {
    display: none;
}

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

.ranking-list {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

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

.ranking-item:hover {
    background-color: rgba(255, 94, 125, 0.05);
}

.rank {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
}

.ranking-item:nth-child(1) .rank {
    color: #FF5E7D;
}

.ranking-item:nth-child(2) .rank {
    color: #FF8E53;
}

.ranking-item:nth-child(3) .rank {
    color: #FFB900;
}

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

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

.rank-info {
    flex: 1;
}

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

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

.rank-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.rank-meta span {
    display: flex;
    align-items: center;
}

.rank-meta i {
    margin-right: 5px;
}

/* 文章模块样式 */
.article-section {
    margin-bottom: 40px;
}

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

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

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

.article-img {
    width: 300px;
    min-width: 300px;
    height: 200px;
    overflow: hidden;
}

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

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

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

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

.article-content p {
    font-size: 14px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

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

.footer-logo p {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-nav h3, .footer-info h3, .footer-contact h3, .footer-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav h3:after, .footer-info h3:after, .footer-contact h3:after, .footer-links h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #FF5E7D;
}

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

.footer-nav ul li a, .footer-info ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-nav ul li a:hover, .footer-info ul li a:hover {
    color: #FF5E7D;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    font-size: 18px;
}

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

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

.social-icon:hover {
    background-color: #FF5E7D;
    transform: translateY(-3px);
}

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

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

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

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

/* 图标样式 */
.icon-check:before {
    content: '✓';
}

.icon-android:before {
    content: '🤖';
}

.icon-apple:before {
    content: '🍎';
}

.icon-view:before {
    content: '👁️';
}

.icon-like:before {
    content: '❤️';
}

.icon-email:before {
    content: '✉️';
}

.icon-phone:before {
    content: '📱';
}

.icon-weibo:before {
    content: '微';
}

.icon-wechat:before {
    content: '微';
}

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

/* 响应式样式 */
@media (max-width: 992px) {
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-img {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .slide-content {
        left: 20px;
        max-width: 80%;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .slider {
        height: 300px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .app-info h2 {
        font-size: 24px;
    }
    
    .app-download {
        flex-direction: column;
    }
}

