﻿/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面容器 */
body {
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 0;
    position: relative;
    touch-action: manipulation;
}

/* 核心网页容器 */
.core-web {
    width: 100%;
    max-width: 375px;
    min-height: calc(100vh - 60px);
    max-height: 812px;
    background-image: url("../image/background.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.core-web::-webkit-scrollbar {
    display: none;
}

/* 顶部图片 */
.top-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 轮播图容器 */
.swiper-container {
    width: 100%;
    margin: 10px 0;
    overflow: hidden;
    position: relative;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.swiper-slide {
    width: 100%;
    flex-shrink: 0;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 中间图片 */
.middle-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

/* 底部悬浮图片 */
.float-bottom-img {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 375px;
    height: 80px;
    object-fit: cover;
    z-index: 999;
    opacity: 1;
}

/* 媒体查询：手机端优化 */
@media (max-width: 767px) {
    body {
        padding: 0;
        background-color: transparent;
    }

    .core-web {
        max-width: 100vw;
        min-height: 100vh;
        max-height: none;
        box-shadow: none;
    }

    .float-bottom-img {
        bottom: 0;
        max-width: 100vw;
        height: 70px;
    }
}
