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

/* 全局样式 */
body {
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 标题样式层级 */
h1 {
    font-size: 24px;
    font-weight: 700;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

h3 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 12px;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 12px 0;
}

p {
    margin-bottom: 12px;
    text-align: left;
}

/* 居中样式 */
.header-logo, .section-title, .footer-middle, .footer-bottom {
    text-align: center;
}

/* 按钮基础样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.primary-btn {
    background: linear-gradient(135deg, #4e6ef2, #5a78f3);
    color: #fff;
    box-shadow: 0 4px 8px rgba(78, 110, 242, 0.2);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(78, 110, 242, 0.3);
}

/* 页头样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    position: relative;
}

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

.header-nav ul {
    display: flex;
    list-style: none;
}

.header-nav li {
    margin-left: 30px;
}

.header-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: #4e6ef2;
}

/* 汉堡按钮样式 */
.hamburger-btn {
    display: none;
    cursor: pointer;
}

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

/* 移动端导航 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 20px;
}

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

.mobile-nav-close {
    text-align: right;
    margin-bottom: 30px;
    cursor: pointer;
}

.mobile-nav-close img {
    width: 30px;
    height: 30px;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 15px;
    background-color: #f5f7fa;
    padding: 12px 15px;
    border-radius: 6px;
}

.mobile-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
}

/* 横幅样式 */
.hero {
    padding: 60px 0;
    background: linear-gradient(to right, #f8f9ff, #f0f2ff);
    margin-bottom: 60px;
}

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

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-img {
    flex: 1;
}

.hero-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 功能介绍区块 */
.features {
    padding: 40px 0 60px;
}

.section-title {
    margin-bottom: 40px;
}

.section-title p {
    color: #666;
    font-size: 16px;
    text-align: center;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.feature-item img {
    margin-bottom: 15px;
}

/* 下载区块 */
.download {
    padding: 60px 0;
    background-color: #f9faff;
    margin-bottom: 60px;
}

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

.download-content {
    flex: 1;
    padding-right: 40px;
}

.download-img {
    flex: 1;
}

.download-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.download-btns {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    color: #4e6ef2;
}

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

/* 文章区块 */
.article {
    padding: 60px 0;
    background-color: #f5f7fa;
    margin-bottom: 60px;
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    max-width: 1200px;
}

.article-content {
    padding: 0 20px;
}

/* 常见问题区块 */
.faq {
    padding: 40px 0 60px;
    margin-bottom: 60px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-question {
    padding: 18px 20px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9faff;
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9faff;
}

.faq-answer.show {
    padding: 20px;
    max-height: 300px;
}

/* 优势区块 */
.advantages {
    padding: 40px 0 80px;
    background: linear-gradient(to bottom, #f8f9ff, #fff);
    margin-bottom: 40px;
}

.advantages-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-item {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.advantage-item img {
    margin-bottom: 15px;
}

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

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

.footer-col h4 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #4e6ef2;
}

.footer-qrcode img {
    width: 120px;
    height: 120px;
}

.footer-middle {
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.footer-middle ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 20px;
}

.footer-middle a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.footer-middle a:hover {
    color: #4e6ef2;
}

.footer-bottom {
    color: #666;
    font-size: 14px;
}

/* 响应式样式 - 平板/小屏电脑 */
@media (max-width: 992px) {
    .hero .container, .download .container {
        flex-direction: column;
    }
    .hero-content, .download-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    .hero-content p, .download-content p {
        text-align: center;
    }
    .features-list, .advantages-list {
        grid-template-columns: repeat(2, 1fr);
    }
    /* 平板端页尾显示一行两个 */
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* 响应式样式 - 移动端/手机 */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    .hamburger-btn {
        display: block;
    }
    .features-list, .advantages-list {
        grid-template-columns: 1fr;
    }
    .download-btns {
        justify-content: center;
    }
    /* 移动端强制页尾显示一行两个，不改为单列 */
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* 响应式样式 - 小屏手机 */
@media (max-width: 576px) {
    h2 {
        font-size: 26px;
    }
    h3 {
        font-size: 22px;
    }
    /* 小屏手机仍保持页尾一行两个 */
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .footer-middle ul {
        gap: 15px;
        font-size: 14px;
    }
    .hero, .download {
        padding: 40px 0;
    }
}