/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏样式 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007AFF;
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 200px);
}

/* 文章页面样式 */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.6;
    margin-top: 90px;
}

.article-content h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.article-content h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.article-content h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 25px 0 10px 0;
    font-weight: 600;
}

.article-content h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.article-content p {
    color: #555;
    margin-bottom: 15px;
}

.article-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
    color: #555;
}

.article-content strong {
    color: #333;
    font-weight: 600;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

/* 底部Footer样式 */
.footer {
    background: #f8f9fa;
    padding: 60px 0 30px;
}

/* 下载区域 */
.download-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.download-text h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.download-text p {
    color: #666;
    font-size: 1rem;
}

.download-platforms {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.platform-item:hover {
    transform: translateY(-3px);
}

.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.platform-icon.apple {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.platform-icon.windows {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
}

.platform-icon.linux {
    background: linear-gradient(135deg, #fcc624 0%, #f7931e 100%);
}

.platform-icon.outlook {
    background: linear-gradient(135deg, #0072c6 0%, #005a9e 100%);
}

.platform-icon.ios {
    background: linear-gradient(135deg, #007aff 0%, #0056cc 100%);
}

.platform-icon.android {
    background: linear-gradient(135deg, #3ddc84 0%, #2bb673 100%);
}

.platform-icon.miniprogram {
    background: linear-gradient(135deg, #07c160 0%, #05a050 100%);
}

.platform-name {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* 链接区域 */
.footer-links {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.link-column h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.link-column ul {
    list-style: none;
}

.link-column li {
    margin-bottom: 8px;
}

.link-column a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.link-column a:hover {
    color: #007AFF;
}

/* QR码区域 */
.qr-section {
    text-align: center;
}

.qr-code {
    display: inline-block;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.qr-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.qr-placeholder p {
    font-size: 0.8rem;
    color: #666;
    margin: 2px 0;
    line-height: 1.2;
}

/* 底部信息栏 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    color: #999;
    font-size: 0.9rem;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-btn:hover {
    background: #f8f9fa;
    border-color: #007AFF;
    color: #007AFF;
}

.contact-icon {
    font-size: 1rem;
}

.product-selector select {
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        gap: 20px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .article-content {
        padding: 30px 15px;
    }
    
    .article-content h1 {
        font-size: 1.8rem;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .download-section {
        flex-direction: column;
        text-align: center;
    }
    
    .download-platforms {
        justify-content: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-content {
        padding: 20px 10px;
    }
    
    .article-content h1 {
        font-size: 1.6rem;
    }
    
    .article-content h2 {
        font-size: 1.3rem;
    }
    
    .article-content h3 {
        font-size: 1.1rem;
    }
    
    .download-platforms {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}
/* 更多新闻区域 */
.morenews {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
}

.morenews h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

/* 新闻轮播容器 */
.news-carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.news-carousel {
    display: flex;
    animation: scroll-left 40s linear infinite;
    width: calc(300px * 10 + 40px * 10); /* 10个项目的总宽度 */
}

.news-carousel:hover {
    animation-play-state: paused;
}

/* 无限滚动动画 */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 5 - 40px * 5)); /* 移动5个项目的距离 */
    }
}

.newsitem {
    flex-shrink: 0;
    width: 300px;
    margin-right: 40px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.newsitem:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.newsitem img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    text-align: left;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}
.news-category a{color:#fff}

/* 根据内容设置不同颜色 */
.newsitem:nth-child(1) .news-category,
.newsitem:nth-child(6) .news-category {
    background: #52c41a; /* 功能上新 - 绿色 */
}

.newsitem:nth-child(2) .news-category,
.newsitem:nth-child(7) .news-category,
.newsitem:nth-child(4) .news-category,
.newsitem:nth-child(9) .news-category {
    background: #ff7a45; /* 客户案例 - 橙色 */
}

.newsitem:nth-child(3) .news-category,
.newsitem:nth-child(8) .news-category {
    background: #722ed1; /* 生态合作 - 紫色 */
}

.newsitem:nth-child(5) .news-category,
.newsitem:nth-child(10) .news-category {
    background: #ff7a45; /* 产品更新 - 橙色 */
}

.news-date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    font-size: 14px;
    color: #1890ff;
    font-weight: 500;
    cursor: pointer;
}

.news-link:hover {
    color: #40a9ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-carousel {
        animation-duration: 30s; /* 移动端稍快一些 */
    }
    
    .newsitem {
        /* width: 250px; */
        flex: 0 0 100%; /* 移动端占满整行 */ 
         margin-right: 30px;
    }
    .morenews .newsitem{
         flex: 0 0 12%;
    }
    .news-carousel {
        width: calc(250px * 10 + 30px * 10);
    }
    
    @keyframes scroll-left {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-250px * 5 - 30px * 5));
        }
    }
}