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

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

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

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

/* 标题样式层级 */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

/* 按钮基础样式 */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #e63946, #d62828);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #d62828, #c71735);
}

/* 页头样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d62828;
    text-decoration: none;
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-item a:hover {
    color: #d62828;
}

/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

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

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

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

.mobile-nav-list {
    list-style: none;
    margin-top: 2rem;
}

.mobile-nav-item {
    margin-bottom: 1rem;
    background-color: #f1f1f1; /* 移动端菜单背景色区分 */
    padding: 0.8rem 1rem;
    border-radius: 6px;
}

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

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

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

/* 横幅区域 */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #fff5f5, #ffebee);
}

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

.hero-content {
    flex: 1;
}

.hero-title {
    color: #d62828;
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.hero-img-box {
    flex: 1;
}

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

/* 功能介绍区块 */
.features {
    padding: 5rem 0;
    background-color: #fff;
}

.section-title {
    color: #222;
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #e63946, #d62828);
    border-radius: 3px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.features-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    padding: 2rem 1.5rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.feature-title {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.feature-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 下载区块 */
.download {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fef7fb, #fcf1f7);
}

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

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

.download-title {
    color: #222;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.download-desc {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.btn-icon {
    width: 60px;
    height: 60px;
}

.btn-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.apple-btn .btn-text {
    color: #007aff;
}

.android-btn .btn-text {
    color: #34a853;
}

.reg-btn .btn-text {
    color: #d62828;
}

.download-img-box {
    flex: 1;
}

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

/* 文章区块 */
.article {
    padding: 5rem 0;
    background-color: #f5f5f5;
}

.article-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
}

.article-content p {
    margin-bottom: 1.2rem;
}

/* 常见问题区块 */
.faq {
    padding: 5rem 0;
    background-color: #fff;
}

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

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.faq-text {
    font-size: 1.1rem;
    color: #333;
    text-align: left;
}

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

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

.faq-answer.show {
    padding: 1.2rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: #666;
    line-height: 1.7;
}

/* 优势区块 */
.advantages {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.advantages-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.advantage-item {
    padding: 2rem 1.5rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px 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 16px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.advantage-title {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.advantage-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 页尾样式 */
.footer {
    background-color: #222;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col {
    text-align: left;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #d62828;
}

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

.footer-item {
    margin-bottom: 0.8rem;
}

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

.footer-item a:hover {
    color: #d62828;
}

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

.footer-links {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 0.8rem;
    transition: color 0.3s ease;
}

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

.footer-links span {
    color: #666;
}

.footer-copyright {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

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

.footer-copyright a:hover {
    color: #d62828;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .features-wrap, .advantages-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-wrap, .download-wrap {
        flex-direction: column;
    }
    
    .hero-content, .download-content {
        text-align: center;
    }
    
    .download-content {
        text-align: center;
    }
    
    .download-btns {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* 隐藏桌面导航，显示汉堡菜单 */
    .nav {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr); /* 移动端页尾每行2个 */
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .features-wrap, .advantages-wrap {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .features, .download, .article, .faq, .advantages {
        padding: 3rem 0;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .download-btn {
        padding: 0.8rem 1.2rem;
    }
    
    .btn-icon {
        width: 50px;
        height: 50px;
    }
}