/* ===== 基础与重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #eef2f5;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.45;
    color: #1e2a32;

}

.page-container {
    max-width: 1080px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
    position: relative;
}

/* ===== 轮播图样式 ===== */
.swiper {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    border-radius: 0;
}

.swiper-slide {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-img {
    width: 100%;
    height: auto;
    display: block;
}

.swiper-pagination {
    position: absolute;
    bottom: 12px;
    z-index: 10;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #ffffff;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}

/* ===== 内容卡片区域 ===== */
.main-content {
    padding: 20px 16px 40px;
}

.card {
    background: white;
    border-radius: 24px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.img-card {
    padding: 0;
    background: #fefefe;
}

.full-img {
    width: 100%;
    display: block;
    height: auto;
}

/* ===== 按钮卡片样式 - 居中显示 ===== */
.btn-card {
    padding: 20px;
    background: transparent;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== 按钮图片动态效果 ===== */
.btn-img {
    width: 80%;
    height: auto;
    display: block;
    border-radius: 60px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    margin: 0 auto;
}

/* 悬停动态效果：放大 + 阴影增强 + 亮度提升 */
.btn-img:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
    filter: brightness(1.02);
}

/* 点击动态效果：轻微缩小反馈 */
.btn-img:active {
    transform: scale(0.97);
    transition: 0.05s;
}

/* ===== 备用自定义按钮动态效果（图片加载失败时显示） ===== */
.custom-wa-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 60px;
    padding: 14px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.3);
}

.custom-wa-btn a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.custom-wa-btn i {
    font-size: 1.8rem;
}

/* 备用按钮动态效果 */
.custom-wa-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.5);
}

.custom-wa-btn:active {
    transform: scale(0.97);
}

/* 针对 #btn8Fallback 内的备用按钮单独宽度 */
#btn8Fallback .custom-wa-btn {
    width: 70%;
    max-width: 280px;
}

/* WhatsApp 圆形悬浮按钮 + 文字 + 角标 */
.whatsapp-float-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float {
    display: block;
    text-decoration: none;
}

.wa-icon-wrapper {
    position: relative;
    background-color: #25D366;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
    transition: all 0.3s ease;
    animation: softScale 1.6s infinite ease-in-out;
}

.wa-icon-wrapper i {
    font-size: 24px;
    color: white;
    margin-bottom: 2px;
}

/* WhatsApp 文字 - 在图标下方 */
.wa-text {
    color: white;
    font-size: 9px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

/* 红色角标 - 右上角 */
.wa-badge {
    position: absolute;
    top: -4px;
    right: 5px;
    background-color: #ff3b30;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
}

@keyframes softScale {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 14px 28px rgba(37, 211, 102, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
    }
}

.wa-icon-wrapper:hover {
    background-color: #1fad5a;
    transform: scale(1.04);
    animation: none;
}

/* 图片10 - 固定底部样式（苹果手机兼容版） */
.fixed-bottom-img {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    text-align: center;
    background: transparent;
    pointer-events: auto;
}

.fixed-bottom-img a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.fixed-bottom-img .bottom-fixed-img {
    width: 100%;
    max-width: 1080px;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* 悬停效果 */
.fixed-bottom-img a:hover .bottom-fixed-img {
    opacity: 0.92;
    transform: translateY(-2px);
}

/* 点击效果 */
.fixed-bottom-img a:active .bottom-fixed-img {
    transform: translateY(1px);
}

/* 为 body 增加底部边距，避免固定图片遮挡内容 */
body {
    padding-bottom: 0;
}

/* 给 main-content 添加底部内边距，防止内容被固定图片遮挡 */
/* .main-content {
    padding: 20px 16px 30px;
    padding-bottom: calc(30px + 80px);
} */

/* iPhone 安全区域适配（刘海屏/全面屏） */
/* @supports (padding-bottom: env(safe-area-inset-bottom)) {
    .fixed-bottom-img {
        padding-bottom: env(safe-area-inset-bottom);
        background: transparent;
    }
} */

/* 手机端适配 */
@media (max-width: 640px) {
    .whatsapp-float-wrapper {
        bottom: calc(20% + 10px);
        right: 16px;
    }

    .wa-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .wa-icon-wrapper i {
        font-size: 20px;
    }

    .wa-text {
        font-size: 8px;
    }

    .wa-badge {
        font-size: 12px;
        min-width: 18px;
        height: 18px;
        line-height: 14px;
        top: -4px;
        right: 2px;
    }

    .fixed-bottom-img .bottom-fixed-img {
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
}