/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 光模式和暗模式 */
.light-mode {
    --primary-color: #0074D9;
    --secondary-color: #FF4136;
    --accent-color: #2ECC40;
    --background-color: #f9f9f9;
    --card-background: #ffffff;
    --text-color: #333;
    --muted-color: #666;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.dark-mode {
    --primary-color: #1E90FF;
    --secondary-color: #FF6347;
    --accent-color: #32CD32;
    --background-color: #1a1a1a;
    --card-background: #2c2c2c;
    --text-color: #f0f0f0;
    --muted-color: #aaa;
    --border-color: #444;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

/* 导航栏 */
.navbar {
    background: var(--card-background);
    box-shadow: 0 2px 5px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img {
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.language-select {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--card-background);
    color: var(--text-color);
}

.search-btn,
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.search-btn:hover,
.theme-toggle:hover {
    color: var(--primary-color);
}

/* 主视觉区 */
.hero {
    position: relative;
    min-height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    color: white;
}

.windows {
    background-color: var(--primary-color);
}

.mac {
    background-color: var(--secondary-color);
}

.mobile {
    background-color: var(--accent-color);
}

.linux {
    background-color: #7FDBFF;
    color: #333;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.user-count {
    font-size: 1.2em;
    font-weight: bold;
}

/* 功能亮点 */
.features {
    padding: 80px 0;
    background: var(--card-background);
}

.features h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: #f0f8ff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--muted-color);
}

/* 特色功能详情弹窗 */
.feature-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 30px;
    animation: fadeInUp 0.5s ease;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.feature-image {
    max-width: 300px;
    border-radius: 8px;
}

.feature-info {
    flex-grow: 1;
}

.feature-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-info p {
    margin-bottom: 30px;
    color: var(--muted-color);
}

.learn-more-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.learn-more-btn:hover {
    background-color: #005ca3;
}

/* 在线体验 */
.demo-section {
    padding: 80px 0;
    background: var(--background-color);
}

.demo-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-description {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--muted-color);
}

.input-demo {
    background: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 10px var(--shadow-color);
}

#demoInput {
    width: 100%;
    height: 150px;
    padding: 15px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    resize: vertical;
    background: #f9f9f9;
    color: #333;
    margin-bottom: 15px;
}

.input-stats {
    display: flex;
    justify-content: space-between;
    color: var(--muted-color);
}

/* 用户见证 */
.testimonials {
    padding: 80px 0;
    background: #f0f8ff;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.testimonial-carousel {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.testimonial-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    text-align: center;
    padding: 0 20px;
}

.testimonial-item.active {
    opacity: 1;
}

.testimonial-text {
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: bold;
}

.carousel-controls {
    text-align: center;
    margin-top: 30px;
}

.carousel-controls button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 0 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-controls button:hover {
    background-color: #005ca3;
}

/* 技术博客预览 */
.blog-preview {
    padding: 80px 0;
    background: var(--card-background);
}

.blog-preview h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.blog-content p {
    margin-bottom: 20px;
    color: var(--muted-color);
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #005ca3;
}

/* 合作伙伴 */
.partners {
    padding: 80px 0;
    background: var(--background-color);
}

.partners h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-logos img {
    max-width: 150px;
    height: auto;
    filter: grayscale(0.5) opacity(0.7);
    transition: all 0.3s ease;
}

.partner-logos img:hover {
    filter: grayscale(0) opacity(1);
}

/* 底部 */
.footer {
    padding: 60px 0;
    background: #2c3e50;
    color: #ecf0f1;
}

.footer h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary-color);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.social-icons img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.2);
}

.copyright {
    text-align: center;
    font-size: 0.9em;
    color: #bdc3c7;
    border-top: 1px solid #34495e;
    padding-top: 20px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .feature-detail-modal .modal-content {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .testimonial-carousel {
        height: auto;
    }
    
    .testimonial-item {
        position: static;
        opacity: 1;
    }
    
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .features h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
    
    .hero-content p {
        font-size: 1.2em;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        text-align: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 分页样式 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.page-status {
    font-size: 0.95em;
    color: var(--muted-color);
}

.page-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-control a {
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-control a:hover {
    background-color: var(--primary-color);
    color: white;
}

.page-numbar {
    display: flex;
    gap: 8px;
}

.page-num {
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-num:hover {
    background-color: var(--primary-color);
    color: white;
}

.page-num-current {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}
/* 产品中心样式 */
.product-categories {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.product-categories a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.product-categories a.active,
.product-categories a:hover {
    background-color: var(--primary-color);
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.product-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.product-card h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-card p {
    margin-bottom: 15px;
    color: var(--muted-color);
}

/* 下载中心样式 */
.download-categories {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.download-categories a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.download-categories a.active,
.download-categories a:hover {
    background-color: var(--primary-color);
    color: white;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.download-card {
    background: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.download-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.download-card h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.download-card p {
    margin-bottom: 8px;
    color: var(--muted-color);
    font-size: 0.9em;
}

.download-btn {
    display: inline-block;
    margin: 15px 0 10px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #005ca3;
}

.more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #005ca3;
}

/* 博客详情样式 */
.blog-breadcrumb {
    margin-bottom: 20px;
    color: var(--muted-color);
    font-size: 0.95em;
}

.blog-breadcrumb a {
    color: var(--muted-color);
    text-decoration: none;
    margin-right: 5px;
}

.blog-breadcrumb span {
    margin-left: 5px;
}

.blog-article {
    background: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.blog-article h1 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.blog-meta-info {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--muted-color);
    font-size: 0.95em;
}

.blog-image {
    margin: 20px 0;
}

.blog-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-content {
    line-height: 1.8;
}

.blog-content h2 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-content h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 10px;
}

.blog-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-share {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.blog-share h4 {
    margin-right: 15px;
    color: var(--primary-color);
}

.related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.related-posts ul {
    list-style: none;
    padding-left: 0;
}

.related-posts li {
    margin-bottom: 10px;
}

.related-posts a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-posts a:hover {
    color: var(--primary-color);
}