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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

a:hover {
    color: #2E7D32;
}

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

/* 头部样式 */
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;
    padding: 15px;
}

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

.logo svg {
    margin-right: 10px;
}

nav ul {
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: #333;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

nav a:hover {
    background-color: #f0f9f0;
    color: #4CAF50;
}

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

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

.banner-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-item.active {
    opacity: 1;
}

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

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

.banner-content h1, .banner-content h2 {
    margin-bottom: 10px;
}

.banner-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
}

.banner-dots span.active {
    background-color: #4CAF50;
}

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

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

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

.section-header p {
    color: #666;
    font-size: 16px;
}

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

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

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

.card-img {
    height: 180px;
    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-content {
    padding: 20px;
}

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

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

.btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2E7D32;
    color: #fff;
}

/* 最新更新样式 */
.latest-update {
    background-color: #f0f9f0;
}

.update-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.update-item {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.update-img {
    flex: 0 0 200px;
}

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

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

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

.update-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: #666;
}

/* 软件分类样式 */
.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
}

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

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

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

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

.category-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.category-item p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* APP下载模块样式 */
.app-download {
    background-color: #4CAF50;
    color: #fff;
}

.app-download-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.app-info {
    flex: 1;
}

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

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

.app-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
}

.feature-icon {
    margin-right: 10px;
}

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

.download-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #fff;
    color: #4CAF50;
    border-radius: 5px;
    font-weight: 500;
}

.download-btn svg {
    margin-right: 10px;
}

.download-btn:hover {
    background-color: #f0f0f0;
}

.app-image {
    flex: 1;
    max-width: 400px;
}

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

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

.article-item {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

.article-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.article-content p {
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-weight: 500;
}

/* 用户评价样式 */
.testimonials {
    background-color: #f0f9f0;
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: calc(33.33% - 20px);
    min-width: 280px;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid #4CAF50;
}

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

.testimonial-content {
    text-align: center;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.user-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

/* 用户评价样式（续） */
.user-info span {
    color: #666;
    font-size: 14px;
}

/* 友情链接样式 */
.friend-links {
    padding: 40px 0;
    background-color: #fff;
}

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

.friend-links li, .friend-links a {
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.friend-links li:hover, .friend-links a:hover {
    color: #4CAF50;
}

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

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

.footer-logo {
    flex: 0 0 250px;
}

.footer-logo h3 {
    font-size: 20px;
    margin: 15px 0 10px;
}

.footer-logo p {
    color: #aaa;
    font-size: 14px;
}

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

.link-group {
    flex: 1;
    min-width: 150px;
}

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

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

.link-group a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: #4CAF50;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #444;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

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

.social-link svg {
    fill: #fff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #444;
}

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

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

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav a {
    color: #aaa;
    font-size: 14px;
}

.footer-nav a:hover {
    color: #4CAF50;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .app-download-wrapper {
        flex-direction: column;
    }
    
    .app-image {
        max-width: 100%;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-img {
        flex: 0 0 200px;
    }
    
    .update-item {
        flex-direction: column;
    }
    
    .update-img {
        flex: 0 0 200px;
    }
    
    .testimonial-item {
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 5px;
    }
    
    .banner-wrapper {
        height: 300px;
    }
    
    .category-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .testimonial-item {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .banner-wrapper {
        height: 250px;
    }
    
    .banner-content {
        padding: 20px;
    }
    
    .banner-content h1 {
        font-size: 22px;
    }
    
    .app-features {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .category-item, .update-item, .article-item, .testimonial-item {
    animation: fadeIn 0.6s ease forwards;
}

/* 透明轮播背景 */
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(46, 125, 50, 0.1) 100%);
    z-index: -1;
}



