/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    text-align: center; /* 全局文字居中 */
}

p {
    text-align: left; /* 段落左对齐 */
    margin-bottom: 1rem;
}

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

/* 按钮通用样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 页头样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

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

.header-logo h1 {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
}

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

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

.header-nav a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: #3498db;
}

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

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

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

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

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

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

.mobile-menu li {
    margin-bottom: 15px;
    background-color: #f1f5f9; /* 移动端菜单背景色区分 */
    padding: 10px 15px;
    border-radius: 6px;
}

.mobile-menu a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: block;
}

.mobile-menu a:hover {
    color: #3498db;
}

/* 横幅区域 */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa, #e4e8f0);
    margin-bottom: 60px;
}

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

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-desc {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-btn {
    padding: 15px 30px;
    font-size: 20px;
}

.hero-img {
    flex: 1;
}

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

/* 区块标题通用样式 */
.section-title {
    font-size: 30px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 18px;
    color: #777;
    margin-bottom: 40px;
}

/* 介绍区块 */
.intro {
    padding: 0 0 60px;
    margin-bottom: 60px;
}

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

.intro-item {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.intro-icon {
    margin-bottom: 20px;
}

.intro-item-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.intro-item-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

/* 下载区块 */
.download {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

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

.download-text {
    flex: 1;
    text-align: left;
}

.download-title {
    font-size: 30px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.download-desc {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.download-btns {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 300px;
}

.download-btn {
    width: 100%;
    gap: 10px;
    padding: 15px 20px;
}

.ios-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.ios-btn:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
}

.android-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.android-btn:hover {
    background: linear-gradient(135deg, #27ae60, #219653);
}

.reg-btn {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.reg-btn:hover {
    background: linear-gradient(135deg, #d35400, #c0392b);
}

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

.download-btn span {
    font-size: 18px;
    font-weight: 600;
}

.download-img {
    flex: 1;
}

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

/* 文章区块 */
.article {
    padding: 60px 0;
    margin-bottom: 60px;
}

.article-content {
    background-color: #eef2f7;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.article-text {
    font-size: 17px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

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

.faq-item {
    background-color: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

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

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

.faq-question span {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 500;
    text-align: left;
}

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

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding: 20px 0;
    font-size: 16px;
    color: #666;
    border-top: 1px solid #eee;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* 优势区块 */
.advantage {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

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

.advantage-item {
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.advantage-icon {
    margin-bottom: 20px;
}

.advantage-item-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.advantage-item-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

/* 页尾样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

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

.footer-col-title {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #ecf0f1;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    display: inline-block;
}

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

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

.footer-col a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #3498db;
}

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

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

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

.footer-middle-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-middle-links a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.copyright {
    font-size: 14px;
    color: #95a5a6;
    text-align: center;
}

/* 响应式样式 */
@media (max-width: 992px) {
    /* 导航切换为汉堡 */
    .header-nav {
        display: none;
    }
    .hamburger-btn {
        display: block;
    }

    /* 横幅区域 */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        text-align: center;
        margin-bottom: 30px;
    }

    /* 介绍/优势区块 两列 */
    .intro-grid, .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 下载区块 */
    .download-content {
        flex-direction: column;
    }
    .download-text {
        text-align: center;
        margin-bottom: 30px;
    }
    .download-btns {
        max-width: 100%;
    }

    /* 页尾 两列 */
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    /* 介绍/优势区块 一列 */
    .intro-grid, .advantage-grid {
        grid-template-columns: 1fr;
    }

    /* 字体适配 */
    .hero-title {
        font-size: 28px;
    }
    .section-title {
        font-size: 24px;
    }
    .article-title {
        font-size: 24px;
    }

    /* 页尾 移动端一行两个（已通过两列实现） */
    .footer-links {
        gap: 20px;
    }

    /* 下载按钮适配 */
    .download-btn span {
        font-size: 16px;
    }
    .download-btn img {
        width: 50px;
        height: 50px;
    }
}