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

/* 全局样式 */
body {
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

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

/* 标题/内容样式规则 */
h1, h2, h3, .section-title, .section-subtitle {
    text-align: center;
}

p {
    text-align: left;
}

/* 页头样式 */
.header {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf5 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 999;
}

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

.header-logo h1 {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
}

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

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

/* 导航菜单 */
.nav-menu {
    display: block;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: #3498db;
    color: #fff;
}

.close-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}

/* 横幅样式 */
.banner {
    padding: 60px 0;
    background: #f8f9fa;
}

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

.banner-text {
    flex: 1;
}

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

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

.download-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
}

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

.banner-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 图文介绍区块 */
.tutorial-section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

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

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

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

.tutorial-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
}

.tutorial-card h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tutorial-card p {
    font-size: 14px;
    color: #666;
}

/* 下载区块（淡色背景） */
.download-section {
    padding: 60px 0;
    background: #fafbfc; /* 更淡的背景色 */
}

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

.download-info {
    flex: 1;
}

.download-info h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: left;
}

.download-info p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.download-btn.apple, .download-btn.android, .download-btn.register {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 16px;
}

.download-btn.apple {
    background: linear-gradient(135deg, #555 0%, #333 100%);
}

.download-btn.android {
    background: linear-gradient(135deg, #a4c639 0%, #8fab2d 100%);
}

.download-btn.register {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

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

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

/* 门店助手教程（多条目折叠区块） */
.assistant-tutorial {
    padding: 40px 0;
}

.tutorial-collapse-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 15px; /* 折叠项之间增加间距，避免堆叠 */
}

.collapse-header {
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf5 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.collapse-header h3 {
    font-size: 18px;
    color: #2c3e50;
    margin: 0;
    text-align: left;
}

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

.collapse-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.collapse-content p {
    padding: 20px 0;
    margin: 0;
    color: #666;
    border-top: 1px solid #f5f7fa; /* 内容与头部分隔 */
}

/* 关注+APP下载区块 */
.follow-download {
    padding: 60px 0;
    background: #f8f9fa;
}

.follow-wrap {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.follow-us {
    flex: 1;
    text-align: center;
}

.follow-us h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.app-download {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.app-download h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.app-download-btns {
    display: flex;
    justify-content: center;
    gap: 30px;
}

/* APP下载按钮增加背景色 */
.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 18px;
    padding: 12px 25px;
    border-radius: 6px;
    background-color: #f5f7fa; /* 按钮背景色 */
    transition: all 0.3s ease;
}

.app-btn:hover {
    background-color: #e4eaf5; /* hover加深背景色 */
    color: #3498db;
}

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

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

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

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

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

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

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

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

.footer-links {
    text-align: center;
    margin-bottom: 30px;
}

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

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 14px;
}

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

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

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

    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu li {
        padding: 10px;
        background: #f5f7fa;
        border-radius: 4px;
    }

    .close-btn {
        display: block;
    }

    /* 横幅 */
    .banner-wrap {
        flex-direction: column-reverse;
        text-align: center;
    }

    .banner-text h2, .banner-text p {
        text-align: center;
    }

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

    /* 下载区块 */
    .download-wrap {
        flex-direction: column;
    }

    .download-info h2 {
        text-align: center;
    }

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

    /* 关注+APP下载 */
    .follow-wrap {
        flex-direction: column;
    }

    /* APP下载按钮 */
    .app-download-btns {
        flex-direction: column;
        gap: 15px;
    }

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

/* 响应式适配 - 480px以下 */
@media (max-width: 480px) {
    .tutorial-cards {
        grid-template-columns: 1fr;
    }

    .download-btns {
        flex-direction: column;
        align-items: center;
    }
}