/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", Arial, sans-serif;
}

/* 全局变量 */
:root {
    --primary-color: #2c82e0;
    --secondary-color: #f5f7fa;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --gradient: linear-gradient(120deg, #2c82e0, #4a90e2);
    --transition: all 0.3s ease;
}

/* 基础样式 */
body {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 80px 0;
}

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

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.primary-btn {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* 页头样式 */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* 桌面端导航 */
.desktop-nav {
    display: block;
}

.desktop-nav ul {
    display: flex;
    gap: 32px;
}

.desktop-nav a {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.desktop-nav a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 汉堡按钮 */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-btn img {
    width: 32px;
    height: 32px;
}

/* 移动端导航 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 1000;
    padding: 40px 20px;
}

.mobile-nav.active {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.close-btn img {
    width: 24px;
    height: 24px;
}

.mobile-nav ul {
    margin-top: 40px;
}

.mobile-nav li {
    margin-bottom: 16px;
    background: var(--secondary-color);
    padding: 12px 16px;
    border-radius: 4px;
}

.mobile-nav a {
    display: block;
    font-size: 18px;
    font-weight: 500;
}

.mobile-nav a:hover {
    color: var(--primary-color);
}

/* 横幅样式 */
.hero {
    padding: 120px 0 80px;
    background: var(--secondary-color);
    margin-top: 80px;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero-desc {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.hero-img {
    flex: 1;
    text-align: center;
}

.hero-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* 介绍区块样式 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-item {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    margin-bottom: 16px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.feature-desc {
    color: var(--text-light);
    line-height: 1.8;
    text-align: left;
}

/* 下载区块样式 */
.download-section {
    background: var(--secondary-color);
}

.download-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.download-content {
    flex: 1;
    text-align: center;
}

.download-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.download-desc {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.download-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
}

.download-btn img {
    width: 60px;
    height: 60px;
}

.download-btn:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.download-img {
    flex: 1;
    text-align: center;
}

.download-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* 文章区块样式 */
.article-section {
    background: #e8f0fe;
}

.article-inner {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--primary-color);
    text-align: center;
}

.article-content {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: left;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* 常见问题区块样式 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: var(--white);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--secondary-color);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--white);
}

.faq-answer.show {
    padding: 0 24px 24px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    text-align: left;
}

/* 优势区块样式 */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.benefit-item {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    margin-bottom: 16px;
}

.benefit-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.benefit-desc {
    color: var(--text-light);
    line-height: 1.8;
    text-align: left;
}

/* 页尾样式 */
.footer {
    background: #2a3038;
    color: var(--white);
    padding: 80px 0 40px;
}

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

.footer-col-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #e8f0fe;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: #ccc;
    transition: var(--transition);
}

.footer-list a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.qrcode img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
}

.footer-links {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-links a {
    color: #ccc;
    margin: 0 16px;
    font-size: 16px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* 响应式样式 - 核心优化：页尾移动端始终一行显示两个 */
@media (max-width: 992px) {
    /* 桌面端导航隐藏 */
    .desktop-nav {
        display: none;
    }
    /* 汉堡按钮显示 */
    .hamburger-btn {
        display: block;
    }
    /* 横幅布局调整 */
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-desc {
        text-align: center;
    }
    /* 介绍区块布局调整 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* 下载区块布局调整 */
    .download-inner {
        flex-direction: column;
    }
    .download-desc {
        text-align: center;
    }
    /* 优势区块布局调整 */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* 页尾布局：一行显示两个（核心修改） */
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    /* 基础样式调整 */
    .section-padding {
        padding: 40px 0;
    }
    .section-title {
        font-size: 24px;
    }
    .section-subtitle {
        font-size: 16px;
    }
    /* 介绍区块布局调整 */
    .features-grid {
        grid-template-columns: 1fr;
    }
    /* 优势区块布局调整 */
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    /* 页尾布局：保持一行两个（核心优化，取消原1列设置） */
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    /* 下载按钮调整 */
    .download-btns {
        flex-direction: column;
        align-items: center;
    }
    .download-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    /* 文章区块内边距调整 */
    .article-inner {
        padding: 20px;
    }
    /* 横幅内边距调整 */
    .hero {
        padding: 100px 0 60px;
    }
    /* 页尾列标题字体缩小，适配小屏 */
    .footer-col-title {
        font-size: 18px;
    }
    .footer-list li {
        margin-bottom: 8px;
    }
    .footer-list a {
        font-size: 14px;
    }
    .qrcode img {
        width: 100px;
        height: 100px;
    }
}