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

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

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 文本样式规范 */
h1, h2, h3, h4, h5, h6 {
    text-align: center;
    color: var(--text-color);
    line-height: 1.4;
}

h1 {
    font-size: 24px;
    font-weight: 700;
}

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

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

h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

p {
    color: var(--text-light);
    line-height: 1.6;
    text-align: left;
    font-size: 16px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--gradient);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

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

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

.header-logo h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 20px;
}

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

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

.desktop-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    transition: var(--transition);
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

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

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

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

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

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

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

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

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

.mobile-nav li {
    margin-bottom: 16px;
    background: var(--bg-color);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.mobile-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    display: block;
    transition: var(--transition);
}

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

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

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-desc {
    margin-bottom: 24px;
    max-width: 500px;
    text-align: left;
}

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

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

/* 介绍区块 */
.intro-section {
    padding: 80px 0;
}

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

.sub-title {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
}

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

.intro-card {
    background: var(--bg-color);
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.intro-icon {
    margin-bottom: 16px;
    display: inline-block;
}

.intro-card .card-desc {
    text-align: left;
    margin-top: 8px;
}

/* 下载区块 */
.download-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

.download-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.download-content {
    flex: 1;
}

.download-title {
    text-align: left;
    margin-bottom: 16px;
}

.download-desc {
    margin-bottom: 32px;
    max-width: 500px;
}

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

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

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

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

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

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

/* 文章区块 */
.article-section {
    padding: 80px 0;
    background: #f0f5ff;
}

.article-content {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.article-title {
    text-align: left;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.article-text {
    margin-bottom: 16px;
    line-height: 1.8;
}

/* 常见问题区块 */
.faq-section {
    padding: 80px 0;
}

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

.faq-item {
    margin-bottom: 16px;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

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

.faq-question span {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
}

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

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-answer p {
    padding: 0 0 20px;
    line-height: 1.8;
}

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

/* 便捷稳定区块 */
.advantage-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

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

.advantage-card {
    background: var(--bg-color);
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.advantage-icon {
    margin-bottom: 16px;
    display: inline-block;
}

.advantage-card .card-desc {
    text-align: left;
    margin-top: 8px;
    font-size: 15px;
}

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

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

.footer-col .col-title {
    color: #fff;
    text-align: left;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col .col-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

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

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

.footer-col .col-list a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

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

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

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

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

.middle-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
}

.copyright {
    color: #999;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

/* 响应式适配 - 768px以下 */
@media (max-width: 768px) {
    /* 页头适配 */
    .desktop-nav {
        display: none;
    }
    .hamburger-btn {
        display: block;
    }

    /* 横幅适配 */
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        width: 100%;
        margin-bottom: 32px;
    }
    .hero-title, .hero-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* 介绍区块适配 */
    .intro-cards, .advantage-cards {
        grid-template-columns: repeat(1, 1fr);
    }

    /* 下载区块适配 */
    .download-section .container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .download-content {
        width: 100%;
    }
    .download-title, .download-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .download-btns {
        justify-content: center;
    }

    /* 文章区块适配 */
    .article-content {
        padding: 24px;
    }
    .article-title {
        text-align: center;
    }

    /* 页尾适配 - 移动端每行两个 */
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    /* 通用文本适配 */
    h2 {
        font-size: 26px;
    }
    h3 {
        font-size: 22px;
    }
    p {
        font-size: 15px;
    }
}

/* 响应式适配 - 480px以下 */
@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: repeat(1, 1fr);
    }
    .download-btns {
        flex-direction: column;
        align-items: center;
    }
    .download-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    .hero {
        padding-top: 100px;
    }
}