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

body {
    font-family: "Microsoft Yahei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 通用按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #4285f4, #3367d6);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

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

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

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #4285f4;
    margin: 0;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

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

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

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

.main-nav a:hover {
    color: #4285f4;
}

/* 横幅样式 */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa, #e4e8f0);
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

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

.hero-title {
    font-size: 32px;
    margin-bottom: 16px;
    color: #202124;
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 24px;
    color: #5f6368;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

/* 图文介绍区块 */
.intro {
    padding: 60px 0;
    text-align: center;
}

.intro-main-title {
    font-size: 28px;
    margin-bottom: 12px;
    color: #202124;
}

.intro-subtitle {
    font-size: 18px;
    color: #5f6368;
    margin-bottom: 40px;
}

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

.intro-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.card-img {
    width: 270px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: #202124;
}

.card-text {
    text-align: left;
    color: #5f6368;
}

/* 下载区块 */
.download {
    padding: 60px 0;
    background-color: #f5f5f5;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

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

.download-title {
    font-size: 28px;
    margin-bottom: 16px;
    color: #202124;
}

.download-desc {
    font-size: 16px;
    color: #5f6368;
    margin-bottom: 32px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.download-btn {
    width: 220px;
    justify-content: center;
    font-size: 16px;
}

.apple-btn {
    background: linear-gradient(135deg, #666, #333);
}

.android-btn {
    background: linear-gradient(135deg, #3ddc84, #1e8e3e);
}

.reg-btn {
    background: linear-gradient(135deg, #f87171, #dc2626);
}

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

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

/* 常见问题区块 */
.faq {
    padding: 60px 0;
    background: #fff;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.faq-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 32px;
    color: #202124;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 24px;
    margin-top: 8px;
    color: #5f6368;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

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

/* 关注我们 & APP下载区块 */
.follow-download {
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa, #e4e8f0);
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.follow-download .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.follow-title, .app-download-title {
    font-size: 20px;
    margin-bottom: 16px;
    color: #202124;
}

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

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

.app-btn {
    background: #4285f4;
    width: 180px;
    justify-content: center;
}

/* 页尾样式 */
.footer {
    background: #333;
    color: #ddd;
    padding: 40px 0 20px;
    margin-top: 40px;
}

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

.footer-link-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #555;
}

.footer-link-group ul {
    list-style: none;
}

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

.footer-link-group a:hover {
    color: #4285f4;
}

.footer-extra {
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid #555;
    margin-bottom: 16px;
}

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

.footer-extra a:hover {
    color: #4285f4;
}

.copyright {
    text-align: center;
    font-size: 12px;
    padding-top: 16px;
    border-top: 1px solid #555;
}

/* 响应式样式 */
@media (max-width: 768px) {
    /* 页头 */
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        max-height: 300px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 16px;
        gap: 0;
    }

    .main-nav li {
        padding: 12px 0;
        background-color: #f5f5f5;
        margin-bottom: 8px;
        padding-left: 16px;
        border-radius: 4px;
    }

    /* 横幅 */
    .hero .container {
        flex-direction: column;
        gap: 24px;
    }

    /* 图文介绍 */
    .intro-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 下载区块 */
    .download .container {
        flex-direction: column;
        gap: 24px;
    }

    /* 关注我们 & APP下载 */
    .follow-download .container {
        flex-direction: column;
        gap: 24px;
    }

    /* 页尾 */
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .intro-cards {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}