/* 基础样式重置 */
* {
    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;
}

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

ul, ol {
    list-style: none;
}

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

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

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

.primary {
    background-color: #ff6b81;
    color: #fff;
}

.primary:hover {
    background-color: #ff5268;
}

.secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid #fff;
}

.secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 头部样式 */
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 h1 {
    font-size: 24px;
    color: #ff6b81;
    margin: 0;
}

nav ul {
    display: flex;
}

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

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

nav ul li a:hover {
    color: #ff6b81;
}

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

nav ul li a:hover::after {
    width: 100%;
}

/* 横幅区域样式 */
.banner {
    background: linear-gradient(135deg, #ff6b81, #ff8e53);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

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

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 特性区域样式 */
.features {
    padding: 60px 0;
    background-color: #fff;
}

.features .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    text-align: center;
    margin: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

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

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ff6b81;
}

.feature-item p {
    color: #666;
}

/* 内容区块通用样式 */
section {
    padding: 60px 0;
}

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

.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: 20px;
    background-color: #ff6b81;
    border-radius: 2px;
}

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

.more:hover {
    color: #ff6b81;
}

/* 卡片样式 */
.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 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 0;
    padding-top: 140%;
    overflow: hidden;
}

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

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

.quality, .update {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 107, 129, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.card-content {
    padding: 15px;
}

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

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

/* 排行榜样式 */
.ranking {
    background-color: #fff;
}

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

.ranking-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ff6b81;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

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

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

.rank {
    width: 24px;
    height: 24px;
    background-color: #eee;
    color: #666;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 10px;
}

.ranking-list li:nth-child(1) .rank {
    background-color: #ff6b81;
    color: #fff;
}

.ranking-list li:nth-child(2) .rank {
    background-color: #ff9f43;
    color: #fff;
}

.ranking-list li:nth-child(3) .rank {
    background-color: #54a0ff;
    color: #fff;
}

.ranking-list a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot {
    background-color: #ff6b81;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

/* 新闻资讯样式 */
.news {
    background-color: #f9f9f9;
}

.news-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .news-item {
        flex-direction: row;
    }
}

.news-image {
    flex: 0 0 300px;
    height: 200px;
    overflow: hidden;
}

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

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

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

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

.news-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

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

.read-more {
    color: #ff6b81;
    font-size: 14px;
    font-weight: 500;
}

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

/* APP下载区域样式 */
.app-download {
    background: linear-gradient(135deg, #ff6b81, #ff8e53);
    color: #fff;
    padding: 80px 0;
}

.app-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.app-info {
    flex: 1;
    min-width: 300px;
    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::before {
    content: '✓';
    margin-right: 10px;
    color: #fff;
    font-weight: bold;
}

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

.app-btn {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.app-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.app-btn img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.app-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.app-image img {
    max-width: 300px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

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

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

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ff6b81;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 150px;
    margin-bottom: 30px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ff6b81;
}

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

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

.footer-column ul li a:hover {
    color: #ff6b81;
    padding-left: 5px;
}

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

.social-links a {
    width: 36px;
    height: 36px;
    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-links a:hover {
    background-color: #ff6b81;
    transform: translateY(-3px);
}

.social-links img {
    width: 20px;
    height: 20px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    .banner h2 {
        font-size: 30px;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .app-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .banner {
        padding: 60px 0;
    }
    
    .banner h2 {
        font-size: 24px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .feature-item {
        min-width: 100%;
    }
    
    .ranking-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .banner-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .app-buttons {
        flex-direction: column;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        flex: 0 0 auto;
    }
}
