* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 布局相关 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #1890ff;
    font-weight: 600;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1890ff;
    background-color: rgba(24, 144, 255, 0.1);
    font-weight: 500;
}

.nav-links .merchant-login {
    background-color: #1890ff;
    color: #fff;
    font-weight: 500;
}

.nav-links .merchant-login:hover {
    background-color: #40a9ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Banner */
.banner {
    margin-top: 70px;
    background: #f8f9fa;
}

.swiper {
    width: 100%;
}

.swiper-slide img {
    width: 100%;
    object-fit: cover;
}

/* 产品服务 */
.product-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.product-item {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(24, 144, 255, 0.1);
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(24, 144, 255, 0.1);
    border-color: rgba(24, 144, 255, 0.2);
    cursor: pointer;
}

.product-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.product-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1890ff;
}

.product-item p {
    color: #666;
    line-height: 1.8;
}

/* 关于我们 */
.about {
    background: #f8f9fa;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 20px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    color: #1890ff;
    margin-bottom: 30px;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
}

/* APP下载 */
.app-download {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.app-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/pattern.svg') repeat;
    opacity: 0.1;
}

.app-download .section-title {
    color: #fff;
    position: relative;
}

.app-download-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    position: relative;
}

.app-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.app-info p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.download-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 0 auto;
    max-width: 600px;
    padding: 0 20px;
}

.download-area {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 280px;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 16px 28px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.download-button img {
    width: 22px;
    height: 22px;
}

.download-button span {
    font-size: 15px;
    font-weight: 500;
}

.qr-code {
    width: 200px;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(24, 144, 255, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(24, 144, 255, 0.1);
}

.qr-code:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(24, 144, 255, 0.2);
    border-color: rgba(24, 144, 255, 0.2);
}

.qr-code-tip {
    font-size: 17px;
    margin-bottom: 20px;
    color: #1890ff;
    font-weight: 500;
    text-align: center;
}

/* 联系我们 */
.contact {
    background: #f8f9fa;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.contact-item {
    flex: 1;
    background: #fff;
    text-align: center;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(24, 144, 255, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(24, 144, 255, 0.1);
    border-color: rgba(24, 144, 255, 0.2);
}

.contact-item h3 {
    font-size: 24px;
    color: #1890ff;
    margin-bottom: 20px;
}

.contact-item p {
    color: #666;
    line-height: 2.0;
    margin-bottom: 15px;
}

.contact-item img {
    width: 200px;
    height: 200px;
}

/* 页脚 */
.footer {
    background: #001529;
    color: #fff;
    padding: 0 0 20px;
}

.copyright {
    text-align: center;
    padding-top: 15px;
    color: rgba(255, 255, 255, 0.45);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #1890ff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section {
        padding: 30px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
        font-weight: 600;
    }
    
    .product-item {
        padding: 30px 20px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 16px;
        padding: 10px;
        width: 100%;
        text-align: center;
        border-radius: 6px;
    }

    .hamburger {
        display: block;
        padding: 8px;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-image {
        order: -1;
    }

    .about-text h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .app-download-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
    }

    .app-info h3 {
        font-size: 22px;
    }

    .download-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 25px;
    }

    .download-area {
        width: 100%;
    }

    .download-buttons {
        max-width: 100%;
    }

    .download-button {
        padding: 12px 20px;
    }

    .qr-code {
        order: 1;
        margin-top: 25px;
        width: 180px;
        transition: all 0.3s ease;
    }
    
    .qr-code:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(24, 144, 255, 0.2);
        border-color: rgba(24, 144, 255, 0.2);
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .contact-item {
        padding: 25px;
    }

    .contact-item img {
        width: 150px;
        height: 150px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
    }
}
