/* 全局设置 box-sizing */
* {
    box-sizing: border-box;
}

/* 基础样式 */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}
.hidden {
    display: none !important;
}

/* 顶部 Logo */
.logo {
    width: 100%;
    text-align: center;
    margin: 0 auto 80px auto;
    padding: 0;
}

.logo img {
    max-width: 200px;
    height: auto;
    display: inline-block;
}

@media screen and (min-width: 769px) {
    .logo img {
        max-width: 400px;
    }

    /* PC 端 .content 内 logo 和 swiper 间距调整 */
    .content {
        margin-top: 40px;
    }
}

/* Swiper 容器基本样式 */
.swiper {
    width: 100%;
    overflow: hidden;
    margin: 0; /* 去掉默认间距 */
}

/* swiper1 banner 紧贴 logo */
.swiper.mySwiper1.banner {
    margin-top: 0;
}

/* swiper-wrapper 设置横向排列 */
.swiper-wrapper {
    display: flex;
    height: auto !important;
}

/* Swiper slide 图片自适应 */
.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
}

/* 顶部广告栏 */
#top-floating-ad {
    display: none;
    position: relative;
}

@media screen and (max-width: 768px) {
    #top-floating-ad {
        display: flex;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        color: #fff;
        align-items: center;
        justify-content: space-around;
        padding: 0;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        transition: opacity 0.3s ease-in-out, height 0.3s ease-in-out;
        opacity: 1;
        overflow: hidden;
        flex-wrap: nowrap;
        margin: 0;
        gap: 0;
        position: relative; /* 保证close-btn绝对定位参考 */
        z-index: 20;
    }

    .logo {
        margin: 10px 0;
    }
}

/* top-floating-ad 内图片 */
#top-floating-ad img {
    width: 40px;
    margin: 0;
    flex-shrink: 0;
}

#top-floating-ad button.download-btn {
    background: #ffcc00;
    border: none;
    font-size: 12px;
    margin: 0;
    flex-shrink: 0;
}

#top-floating-ad img:first-of-type {
    width: 260px;
    height: 50px;
    object-fit: contain;
}

/* 关闭按钮，固定在顶部右上角 */
#close-btn {
    position: absolute;
    top: center;
    right: 8px;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    z-index: 30; /* 确保按钮在最上层 */
    line-height: 1;
}

/* 更小屏幕的进一步调整 */
@media screen and (max-width: 480px) {
    #top-floating-ad {
        padding:0;
        gap: 10px;
    }

    #top-floating-ad img {
        width: 35px;
    }

    #top-floating-ad button.download-btn {
        margin-right:20px;
        padding: 5px;
        font-size: 12px;
    }

    #close-btn {
        font-size: 16px;
    }

    .logo img {
        max-width: 180px;
		padding-left:18px

    }

    .logo {
		
		text-align:left;
        margin: 10px auto 10px auto;
		display: flex;
		justify-content: space-between; /* 让元素分布在两端 */
		align-items: center; /* 垂直居中 */
    }
	.logo span{
		font-size:26px;
		padding-right:20px;
		padding-top:10px;
		color:#940000;
		font-weight:bold;
	}
	.logo span i{
		color:green;
		font-style: normal;
		transition: opacity 0.3s ease;
	}	
}

/* 浮动图片 */
.floating-image {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100%;
    width: auto;
    max-height: 90vh;
    height: auto;
    z-index: 9999;
}
