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

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

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

a:hover {
    color: #ff6b81;
}

ul {
    list-style: none;
}

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

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

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff6b81;
}

/* 图标样式 */
[class^="icon-"] {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

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

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

.icon-check:before {
    content: '✓';
}

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

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

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

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

.icon-location:before {
    content: '📍';
}

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

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

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

.icon-arrow-up:before {
    content: '⬆️';
}

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

.logo {
    flex: 0 0 200px;
}

.logo-icon {
    width: 180px;
    height: 50px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 600;
    padding: 10px 0;
    position: relative;
}

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

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

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 200px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    height: 40px;
    border: none;
    background-color: #ff6b81;
    color: #fff;
    padding: 0 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #ff5268;
}

/* 轮播图样式 */
.banner {
    padding: 30px 0;
}

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

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

.slide {
    flex: 0 0 100%;
    position: relative;
    height: 400px;
    display: none;
}

.slide.active {
    display: block;
}

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

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
}

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

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

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

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

.dots {
    display: flex;
}

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

.dot.active {
    background-color: #fff;
}

/* 热门推荐样式 */
.hot-section {
    padding: 50px 0;
}

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

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

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

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

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

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

.card-info {
    padding: 15px;
}

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

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

.desc {
    font-size: 14px;
    color: #777;
    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;
}

/* 分类推荐样式 */
.category-section {
    padding: 50px 0;
    background-color: #fff;
}

.category-tabs {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.tab-header {
    display: flex;
    background-color: #f5f7fa;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
}

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

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.category-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.category-card h4 {
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card p {
    font-size: 12px;
    color: #999;
}

/* 排行榜样式 */
.ranking-section {
    padding: 50px 0;
}

.ranking-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ranking-column {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.ranking-title {
    padding: 15px;
    background-color: #ff6b81;
    color: #fff;
    text-align: center;
    font-size: 18px;
}

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

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

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

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

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

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

.rank-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.rank-info img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

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

.rank-info p {
    font-size: 12px;
    color: #999;
}

.hot, .update, .score {
    color: #ff6b81;
}

/* 最新更新样式 */
.update-section {
    padding: 50px 0;
    background-color: #fff;
}

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

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

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

.update-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.update-info {
    padding: 15px;
    background-color: #fff;
}

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

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

.update-time {
    font-size: 12px;
    color: #999;
}

/* APP下载模块样式 */
.app-section {
    padding: 50px 0;
    background-color: #f5f7fa;
    background-image: linear-gradient(135deg, rgba(255, 107, 129, 0.1) 0%, rgba(255, 107, 129, 0.05) 100%);
}

.app-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.app-desc {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

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

.app-features li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
}

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

.app-buttons {
    display: flex;
    margin-bottom: 20px;
}

.app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 50px;
    background-color: #333;
    color: #fff;
    border-radius: 25px;
    margin-right: 15px;
    transition: background-color 0.3s ease;
}

.app-btn:hover {
    background-color: #ff6b81;
    color: #fff;
}

.app-btn i {
    margin-right: 10px;
    font-size: 20px;
}

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

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

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

.app-image {
    flex: 0 0 40%;
    height: 500px;
}

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

/* 文章模块样式 */
.article-section {
    padding: 50px 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

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

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

.article-img {
    flex: 0 0 300px;
}

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

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

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

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

.article-date {
    font-size: 12px;
    color: #999;
}

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

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

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

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

.footer-column p {
    font-size: 14px;
    color: #bbb;
    line-height: 1.8;
}

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

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

.footer-column ul li a:hover {
    color: #ff6b81;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #bbb;
}

.contact-info li i {
    margin-right: 10px;
    color: #ff6b81;
}

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

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

.social-link:hover {
    background-color: #ff6b81;
}

.footer-middle {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-middle h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

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

.friend-links ul li, .friend-links a {
    margin-right: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #bbb;
}

.friend-links ul li a:hover, .friend-links a:hover {
    color: #ff6b81;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

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

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ff6b81;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #ff5268;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hot-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .update-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }
    
    .logo {
        flex: 0 0 100%;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .main-nav {
        flex: 1;
        margin-right: 20px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .hot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ranking-container {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .update-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-image {
        width: 100%;
        height: 300px;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .slide {
        height: 300px;
    }
    
    .hot-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .update-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-img {
        flex: 0 0 200px;
    }
    
    .footer-top {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 576px) {
    .slide {
        height: 200px;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .category-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .app-info {
        padding: 20px;
    }
}
