/* 全局样式 */
* {
    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: #f5f5f5;
}

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

a:hover {
    color: #ff6b6b;
}

ul, ol {
    list-style: none;
}

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

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

/* 头部样式 */
.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;
    height: 70px;
}

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

.icon-logo {
    width: 36px;
    height: 36px;
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
}

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

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6b6b;
    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: 36px;
    border: 1px solid #ddd;
    border-radius: 18px;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 18px;
    height: 36px;
    padding: 0 15px;
    margin-left: -40px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

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

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

.banner-slides {
    position: relative;
    height: 400px;
}

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

.slide.active {
    opacity: 1;
}

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

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

.slide-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
}

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

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

.section {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-header h1, .section-header h2 {
    font-size: 22px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.section-header h1::before, .section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #ff6b6b;
    border-radius: 2px;
}

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

.card-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    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: 0;
    padding-bottom: 140%;
    overflow: hidden;
}

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

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

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

.card-info {
    padding: 10px;
    background-color: #fff;
}

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

.card-info p {
    font-size: 14px;
    color: #999;
}

/* APP下载样式 */
.app-download {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
}

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

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

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

.app-info p {
    font-size: 16px;
    margin-bottom: 20px;
}

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

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

.icon-check {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    color: #ff6b6b;
    text-align: center;
    line-height: 20px;
    margin-right: 10px;
    font-weight: bold;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.android-btn {
    background-color: #fff;
    color: #ff6b6b;
}

.android-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

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

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

.icon-android, .icon-apple {
    margin-right: 8px;
    font-size: 18px;
}

.app-qrcode {
    text-align: center;
}

.app-qrcode img {
    width: 150px;
    height: 150px;
    border: 5px solid #fff;
    border-radius: 10px;
    margin-bottom: 10px;
}

.app-qrcode p {
    font-size: 14px;
}

/* 文章样式 */
.article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

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

.article-img {
    width: 200px;
    flex-shrink: 0;
}

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

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

.article-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-info {
    width: 30%;
}

.footer-logo {
    margin-bottom: 20px;
}

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

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

.footer-links {
    width: 65%;
    display: flex;
    justify-content: space-between;
}

.footer-link-group h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

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

.footer-link-group ul li a {
    color: #aaa;
    font-size: 14px;
}

.footer-link-group ul li a:hover {
    color: #ff6b6b;
}

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

.friend-links {
    margin-bottom: 20px;
}

.friend-links h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
}

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

.friend-links ul li {
    margin-right: 15px;
    margin-bottom: 10px;
}

.friend-links ul li a {
    color: #aaa;
    font-size: 14px;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: #777;
}

.copyright a {
    color: #777;
}

.copyright a:hover {
    color: #ff6b6b;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .card-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .card-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .article-list {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-info, .footer-links {
        width: 100%;
    }
    
    .footer-info {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        margin-bottom: 15px;
        overflow-x: auto;
        width: 100%;
    }
    
    .main-nav ul {
        width: max-content;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .banner-slides {
        height: 300px;
    }
    
    .card-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-img {
        width: 100%;
        height: 200px;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .footer-link-group {
        width: 50%;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 576px) {
    .card-list {
        grid-template-columns: 1fr;
    }
    
    .banner-slides {
        height: 200px;
    }
    
    .footer-link-group {
        width: 100%;
    }
}
