/* 全局重置 */
* {
    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; }
h3 { font-size: 26px; font-weight: 600; margin-bottom: 12px; }
h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
p { font-size: 16px; margin-bottom: 16px; text-align: left; }

/* 全局居中 & 间距 */
.header, .hero, .intro, .download-section, .article-section, .faq-section, .advantage, .footer {
    text-align: center;
    padding: 40px 0;
}

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

.section-title p {
    color: #666;
    text-align: center;
}

/* 页头样式 */
.header {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    padding: 15px 0;
}

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

.header-logo h1 {
    color: #2c3e50;
    transition: color 0.3s ease;
}

.header-logo h1:hover {
    color: #3498db;
}

/* 桌面端导航 */
.desktop-nav ul {
    display: flex;
    list-style: none;
}

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

.desktop-nav a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.desktop-nav a:hover {
    background-color: #3498db;
    color: #fff;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

/* 移动端汉堡按钮 */
.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.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding: 30px 20px;
}

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

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

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

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

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

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

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

/* 横幅样式 */
.hero {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8fb 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

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

.hero-content p {
    color: #555;
    margin-bottom: 30px;
    text-align: center;
}

.download-btn {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

.download-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.hero-img {
    flex: 1;
    min-width: 300px;
    margin-top: 20px;
}

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

/* 核心功能介绍区块 */
.intro {
    background-color: #fff;
}

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

.intro-item {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

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

/* 下载区块 */
.download-section {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

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

.download-text {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
    text-align: left;
}

.download-text h3 {
    text-align: left;
}

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

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

.apple-btn {
    background-color: #555;
}

.apple-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.android-btn {
    background-color: #2ecc71;
}

.android-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

.reg-btn {
    background-color: #e67e22;
}

.reg-btn:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

.btn img {
    width: 40px;
    height: 40px;
}

.download-img {
    flex: 1;
    min-width: 300px;
    margin-top: 20px;
}

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

/* 核心文章区块 */
.article-section {
    background-color: #e8f4f8;
}

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

.article-content h3 {
    text-align: center;
    margin-bottom: 20px;
}

/* 常见问题区块 */
.faq-section {
    background-color: #fff;
}

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

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

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

.faq-header:hover {
    background-color: #dee2e6;
}

.faq-header h4 {
    margin-bottom: 0;
    text-align: left;
}

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

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

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

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

/* 核心优势区块 */
.advantage {
    background: linear-gradient(to right, #f0f8fb, #e8f4f8);
}

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

.advantage-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px 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 6px 15px rgba(0,0,0,0.1);
}

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

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

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

.footer-col h4 {
    color: #fff;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

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

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

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

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

.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 ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 20px;
}

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

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

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

/* 响应式适配 */
@media (max-width: 992px) {
    /* 桌面导航隐藏，汉堡显示 */
    .desktop-nav {
        display: none;
    }
    .hamburger-btn {
        display: block;
    }

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

    /* 页尾顶部改为2列 */
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 横幅内容居中 */
    .hero-content {
        padding-right: 0;
        margin-bottom: 20px;
    }
    .hero-content h2, .hero-content p {
        text-align: center;
    }

    /* 下载区块文字居中 */
    .download-text {
        padding-right: 0;
        text-align: center;
        margin-bottom: 20px;
    }
    .download-text h3 {
        text-align: center;
    }
    .download-btns {
        justify-content: center;
    }

    /* 介绍和优势区块改为1列 */
    .intro-list, .advantage-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    /* 页尾顶部改为2列（保持），调整间距 */
    .footer-top {
        gap: 20px;
    }

    /* 按钮适配 */
    .btn {
        padding: 10px 15px;
    }
    .btn img {
        width: 30px;
        height: 30px;
    }

    /* 字体缩小 */
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    h4 { font-size: 16px; }
    p { font-size: 14px; }
}