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

/* 全局样式 */
body {
    font-family: "Microsoft Yahei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 文字对齐规则 */
h1, h2, h3, h4, h5, h6, .section-title, .section-subtitle, .footer-links, .footer-copyright {
    text-align: center;
}

p {
    text-align: left;
}

/* 链接样式 */
a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #007bff;
}

/* 按钮通用样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

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

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
}

/* 桌面端导航 */
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.nav-link:hover {
    color: #007bff;
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

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

/* 区块通用样式 */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #222;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 横幅样式 */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

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

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 40px;
    margin-bottom: 24px;
    color: #222;
    text-align: left;
}

.hero-desc {
    font-size: 18px;
    color: #666;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-btn {
    font-size: 18px;
    padding: 14px 32px;
}

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

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

/* 安装步骤样式（图片100%宽度自适应） */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background: #fff;
    padding: 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;
    display: flex;
    flex-direction: column;
}

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

/* 安装步骤图片：100%宽度，高度按368:518原比例自适应 */
.step-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.step-number {
    font-size: 36px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 12px;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.step-desc {
    color: #666;
    font-size: 16px;
    flex: 1;
}

/* 下载区块样式（核心修改：按钮内容居中） */
.download-section {
    background-color: #fff;
}

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

.download-content {
    flex: 1;
}

.download-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
    text-align: left;
}

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

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

/* 下载按钮：内容居中显示，关键修改 */
.download-btn {
    padding: 16px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    /* 核心修改：从flex-start改为center，实现内容居中 */
    justify-content: center;
    align-items: center;
    gap: 16px;
    /* 可选：增加按钮最小宽度，提升视觉效果 */
    min-width: 280px;
}

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

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

.download-btn:hover {
    background-color: #eef2f7;
    border-color: #007bff;
}

/* 移动端适配：按钮宽度100%，仍保持内容居中 */
@media (max-width: 576px) {
    .download-btn {
        width: 100%;
        min-width: unset;
    }
}

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

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

/* 常见问题样式 */
.faq-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

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

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

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

.faq-answer {
    padding: 0 20px 20px;
    color: #666;
    display: none;
}

.faq-answer.active {
    display: block;
}

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

/* 功能优势样式 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

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

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

.feature-desc {
    color: #666;
    font-size: 16px;
    text-align: center;
    line-height: 1.7;
}

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

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

.footer-col-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    text-align: left;
}

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

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

.footer-col-list a {
    color: #ccc;
    font-size: 14px;
}

.footer-col-list a:hover {
    color: #007bff;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    font-size: 14px;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-copyright {
    font-size: 14px;
    color: #999;
}

/* 响应式适配 */
@media (max-width: 992px) {
    /* 安装步骤/功能优势改为2列 */
    .steps-grid, .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 横幅/下载区块堆叠 */
    .hero-inner, .download-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-title, .download-title {
        text-align: center;
    }

    .hero-img, .download-img {
        text-align: center;
    }

    /* 页脚改为2列 */
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 移动端汉堡菜单显示 */
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 998;
    }

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

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .nav-item {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        background-color: #f8f9fa;
        padding-left: 16px;
        border-radius: 4px;
        margin-bottom: 8px;
    }

    .hamburger {
        display: block;
    }

    /* 区块内边距调整 */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-title {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    /* 安装步骤/功能优势改为1列 */
    .steps-grid, .features-grid {
        grid-template-columns: 1fr;
    }

    /* 页脚保持2列 */
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-btn {
        width: 100%;
    }
}