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

body {
    font-family: 'Microsoft YaHei', Arial, 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: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* 头部样式 */
.header {
    background-color: #FF6B6B;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.main-nav li {
    position: relative;
}

.main-nav a {
    padding: 10px 15px;
    font-weight: 500;
    border-radius: 4px;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 15px;
}

.search-box input {
    background: transparent;
    border: none;
    padding: 5px 10px;
    color: #fff;
    width: 180px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
}

.search-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: relative;
}

.search-icon::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 8px;
    background-color: #fff;
    bottom: -6px;
    right: -2px;
    transform: rotate(45deg);
}

/* 轮播图样式 */
.banner {
    padding: 30px 0;
    background: linear-gradient(135deg, #4ECDC4, #556270);
}

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

.slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 400px;
}

.slide {
    min-width: 100%;
    position: relative;
    display: none;
}

.slide.active {
    display: block;
}

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

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

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

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

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

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

.dots {
    display: flex;
    gap: 10px;
}

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

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

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

.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF6B6B;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #4ECDC4;
}

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

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

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

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.card-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF6B6B;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.card-content {
    padding: 15px;
}

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

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

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

/* 分类样式 */
.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.category-item {
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #FF6B6B;
    color: #fff;
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f5f5f5;
}

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

.category-item h3 {
    font-size: 16px;
    font-weight: 500;
}

/* 排行榜样式 */
.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 {
    padding: 15px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background-color: #FF6B6B;
    color: #fff;
}

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

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

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

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

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

.rank {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #4ECDC4;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
}

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

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

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

.rank-image {
    width: 60px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

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

.rank-info {
    flex: 1;
}

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

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

.rank-data {
    font-size: 14px;
    color: #FF6B6B;
    font-weight: bold;
}

/* APP下载样式 */
.app-download {
    background: linear-gradient(135deg, #556270, #4ECDC4);
    padding: 50px 0;
    color: #fff;
    border-radius: 10px;
    margin: 30px 0;
}

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

.app-info {
    flex: 1;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.2);
}

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

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.download-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.download-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

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

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

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

.article {
    display: flex;
    gap: 20px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

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

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

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

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

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

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

.footer-links {
    flex: 2;
    display: flex;
    gap: 30px;
}

.link-group {
    flex: 1;
}

.link-group h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #FF6B6B;
}

.link-group ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-group a {
    color: #ccc;
    font-size: 14px;
}

.link-group a:hover {
    color: #fff;
    text-decoration: underline;
}

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

.footer-app h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #FF6B6B;
}

.qrcode {
    width: 120px;
    height: 120px;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

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

.footer-app p {
    color: #ccc;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.copyright {
    color: #999;
    font-size: 14px;
}

.copyright p {
    margin-bottom: 5px;
}

.friendly-links h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #FF6B6B;
}

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

.friendly-links a {
    color: #999;
    font-size: 14px;
}

.friendly-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .article {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        height: 200px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .category-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .footer-links {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .slider {
        height: 300px;
    }
    
    .slide img {
        height: 300px;
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
}
