/* 全局重置 */
* {
    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 {
    font-size: 24px;
    line-height: 1.2;
}

h2 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 15px;
}

h3 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 10px;
}

h4 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #222;
}

p {
    margin-bottom: 15px;
    text-align: left;
}

/* 居中样式 */
.section-title, .logo, .footer-links, .copyright {
    text-align: center;
}

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

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

.logo h1 {
    color: #2c3e50;
    font-weight: 700;
}

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

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

.nav-desktop a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

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

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

.nav-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 30px 20px;
}

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

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

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

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

.nav-mobile li {
    margin-bottom: 15px;
    background-color: #f1f5f9;
    padding: 10px 15px;
    border-radius: 6px;
}

.nav-mobile a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    display: block;
}

/* 横幅区域 */
.hero {
    padding: 60px 0;
    background: linear-gradient(120deg, #e8f4f8 0%, #f0f8fb 100%);
    margin-bottom: 60px;
}

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

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.download-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    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;
}

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

/* 图文介绍区块 */
.features {
    padding: 40px 0 60px;
    margin-bottom: 60px;
}

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

.section-title h2 {
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #3498db;
    border-radius: 3px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

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

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

.feature-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 下载区块 */
.download-section {
    padding: 60px 0;
    background-color: #f5f9fc;
    margin-bottom: 60px;
    border-radius: 12px;
}

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

.download-content {
    flex: 1;
}

.download-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.download-content p {
    color: #555;
    margin-bottom: 30px;
    font-size: 17px;
}

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

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

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

.apple {
    background-color: #fff;
    color: #333;
    border: 1px solid #eee;
}

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

.android {
    background-color: #fff;
    color: #333;
    border: 1px solid #eee;
}

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

.register {
    background-color: #2ecc71;
    color: #fff;
}

.register:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.2);
}

.download-img {
    flex: 1;
}

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

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

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

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

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

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

.faq-question span {
    font-size: 17px;
    font-weight: 500;
}

.toggle-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.active {
    padding: 18px 25px;
    max-height: 300px;
}

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

.follow-download-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
}

.follow-us, .app-download {
    text-align: center;
}

.qrcode {
    width: 150px;
    height: 150px;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.app-download h3 {
    margin-bottom: 20px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 10px;
    display: inline-flex;
    transition: background-color 0.3s ease;
}

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

.app-btn:hover {
    background-color: #2980b9;
}

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

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

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    display: inline-block;
}

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

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

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

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

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

.footer-links a {
    color: #ddd;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

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

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

/* 响应式适配 */
@media (max-width: 992px) {
    .hero-inner, .download-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-text, .download-content {
        order: 1;
    }

    .hero-img, .download-img {
        order: 2;
        width: 80%;
        margin: 0 auto;
    }

    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .follow-download-inner {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .hamburger-btn {
        display: block;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text h2 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .download-btns {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links a {
        display: block;
        margin: 10px 0;
    }

    .btn {
        padding: 10px 20px;
    }

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