* {
	margin: 0;
	padding: 0;
	border: 0;
}

html {
            scroll-behavior: smooth;
        }
body{
	/* background-color: #f3eee8; */
}
/* 顶部背景视频区（原无样式约束，video 为行内元素会有基线缝隙） */
.top {
    line-height: 0;
}
#v {
    display: block;
    width: 100%;
}

/* 导航栏 */
/****************************************************************************************************/
.navbar {
    background-color: #8B0000;
    margin-top: -5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    width: min(1300px, 100%);
    height: 60px;
    list-style: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.nav li {
    margin-right: 30px;
    line-height: 60px;
    position: relative;
}

.nav li:hover {
    transform: translateY(-2px);
}

/* 当前页高亮 */
.nav li.cur a {
    position: relative;
}
.nav li.cur a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

.navbar .nav li a {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

#logo img {
    width: 50px;
    height: 50px;
    float: left;
    margin-right: 10px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#a {
    margin-right: 60px;
    color: #fff;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: bold;
}

.so {
    width: min(180px, 20vw);
    height: 36px;
    margin-left: 40px;
    text-align: center;
    border-radius: 18px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.sosuo img {
    width: 30px;
    height: 30px;
    margin: 25px 0 0 -20px;
    filter: brightness(0) invert(1);
}

#login {
    float: right;
    margin-left: auto;
}

#login input {
    width: 70px;
    height: 36px;
    border-radius: 18px;
    background-color: #fff;
    color: #8B0000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#login input:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/****************************************************************************************************/

/* 轮播图 */

.box2 {
	width: min(1300px, 100%);
	margin: 80px auto ;
}

#focus{
	width: 100%;
	height: auto;
	aspect-ratio: 1300 / 600;
	overflow: hidden;
	position: relative;
}
.box2 img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}
#focus ul li div{
	position: absolute;
	overflow: hidden;
}
#focus .preBtn,
#focus .nextBtn {
	width: 45px;
	height: 100px;
	top: 50%;
	transform: translateY(-50%);
	background-color: #000;
	cursor: pointer;
	opacity: 0.4;
	transition: opacity 0.3s ease;
}
#focus .preBtn {
	left: 0;
}
#focus .nextBtn {
	right: 0;
}
#focus .preBtn:hover,
#focus .nextBtn:hover {
	opacity: 0.7;
}
/* 箭头用 CSS 三角形绘制，不依赖精灵图（细线浅色在窄屏/黑底上几乎不可见） */
#focus .preBtn::before,
#focus .nextBtn::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
}
#focus .preBtn::before {
	border-right: 15px solid #fff;
	margin-left: -3px;
}
#focus .nextBtn::before {
	border-left: 15px solid #fff;
	margin-left: 3px;
}
	
	/* 轮播图 */
/****************************************************************************************************/



/* .box23 {
    margin: 80px auto;
}

.box23 h2 {
	font-size: 48px;
	text-align: center;
	margin-bottom: 40px;
	
} */
.box23 h2 {
    font-size: clamp(24px, 4.5vw, 48px);
    text-align: center;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.box23 h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background-color: #8B0000;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.banner {
	width: min(1300px, 100%);
	height: 500px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ban1 {
	float: left;
	margin-right: 5px;
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	/* border: 1px solid #0000FF; */
}

.ban1 img{
	width: 100%;
	height: 100%;
	
	border-radius: 10px;
}
.ban1:hover img {
    transform: scale(1.05);
}
.ban11 {
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
}


.ban1 h2 {
    margin: 0 20px 20px 20px;
    font-size: clamp(18px, 2.5vw, 32px);
    color: #fff;

    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ban2 {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	/* border: 1px solid #0000FF; */
}
.ban2 img{
	width: 100%;
	height: 100%;
	
	transition: transform 0.5s ease;
}
.ban2:hover img {
    transform: scale(1.05);
}
.ban2 h2 {
	width: 590px;
	height: 40px;
	line-height: 40px;
	background-color: #999999;
	font-size: 23px;
	color: #fff;
	opacity: 0.9;
	position: absolute;
	top: 208px;
	left: 705px;
}

.img11:hover {
	transform: scale(1.02);
	opacity: 0.8;
}

/****************************************************************************************************/

.c {
	width: min(300px, 90%);
	margin: 40px auto;
	/* border: 1px solid #0000FF; */
}
.c video {
	width: 100%;
	height: auto;
	display: block;
}

.banner2 {
	width: min(1240px, 100%);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.bnt {
	width: min(300px, 100%);
}
.bnt:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.img1 {
	border-radius: 5px;
	width: 100%;
	height: 200px;
	 object-fit: cover;
	/* border: 2px solid #0000FF; */
}

.img1:hover {
	transform: scale(1.1);
}
.pic {
    padding: 20px;
}
.pic.p1:hover {
	transform: scale(1.1);
}
.bnt h2 {
	font-size: 20px;
	color: #000000;
}

.pic .p1 {
	width: 100%;
	height: 24px;
	line-height: 24px;
	font-size: 14px;
	color: #666;
	margin: 8px 0;
	white-space: nowrap;
}
.pic .p1:hover {
    color: #8B0000;
}


/****************************************************************************************************/


.box3 {
	width: min(1640px, 100%);
	margin: 80px auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.box3a1 {
	width: min(400px, 100%);
	height: 700px;
	/* background-color: #8b0000; */
	background-color: #fff;
	border-radius: 15px;
	transition: all 0.4s ease;
	/* border: 1px solid #1600be; */

}
.box3a1:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pic1 img {
	width: 100%;
	height: 600px;
	object-fit: cover;
}
.box3a1 h2 {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 500;
    margin: 25px auto;
    color: #333;
}
a {
	text-decoration: none;
	text-align: center;
}

/****************************************************************************************************/

/* 底部 */

.box4 {
    background-color: #f8f8f8;
    padding: 60px 0;
    margin-top: 100px;
}

.box4a1 a {
    text-decoration: none;
    color: #666;
}

.box4 ul li {
    list-style-type: none;
    float: left;
    padding: 0 20px;
}

.box4a1 ul {
    width: min(600px, 100%);
    margin: 0 auto;
    overflow: hidden;
    font-size: 20px;
    display: flex;
    justify-content: center;
}

.box4a1 li {
    position: relative;
}

.box4a1 li:hover {
    transform: translateY(-3px);
}

.box4a1 li::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #8B0000;
    transition: width 0.3s ease;
}

.box4a1 li:hover::after {
    width: 100%;
}

.box4a2 ul {
    width: min(1070px, 100%);
    margin: 40px auto 0 auto;
    overflow: hidden;
    font-size: 14px;
    color: #999;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.w1 {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* ===== 手机端适配（≤768px）===== */
@media (max-width: 768px) {
    /* 导航：两行布局，logo 独占一行 */
    .navbar {
        margin-top: 0;
    }
    .nav {
        height: auto;
        flex-wrap: wrap;
        padding: 8px 16px 10px;
        row-gap: 4px;
    }
    .nav li {
        margin-right: 18px;
        line-height: 40px;
    }
    .nav li:hover {
        transform: none;
    }
    #logo {
        width: 100%;
        margin-right: 0;
    }
    #logo img {
        width: 40px;
        height: 40px;
    }
    #a {
        margin-right: 0;
    }
    .so {
        width: 140px;
        height: 32px;
        margin-left: 0;
        font-size: 13px;
    }
    .sosuo img {
        width: 26px;
        height: 26px;
        margin: 7px 0 0 -18px;
    }
    #login {
        margin-left: auto;
    }
    #login input {
        width: 60px;
        height: 32px;
        font-size: 13px;
    }
    .navbar .nav li a {
        font-size: 16px;
    }

    /* 轮播图 */
    .box2 {
        margin: 30px auto;
        padding: 0 12px;
    }
    #focus {
        aspect-ratio: 4 / 3;
    }
    #focus .preBtn, #focus .nextBtn {
        width: 36px;
        height: 64px;
    }

    /* 中部大图：单列 */
    .box23 h2 {
        margin-bottom: 40px;
    }
    .banner {
        height: auto;
        flex-direction: column;
        gap: 10px;
        padding: 0 12px;
    }
    .ban1, .ban2 {
        width: 100%;
        height: 220px;
        flex: none;
    }
    .ban11 {
        height: 84px;
    }
    .ban1 h2 {
        margin: 0 14px 12px 14px;
    }

    /* 四卡片资讯区：单列 */
    .banner2 {
        padding: 0 12px;
    }
    .bnt {
        width: 100%;
    }
    .bnt:hover {
        transform: none;
        box-shadow: none;
    }
    .pic {
        padding: 14px;
    }
    .pic .p1 {
        white-space: normal;
        height: auto;
        line-height: 1.6;
    }
    .bnt h2 {
        font-size: 18px;
    }

    /* 商品推荐区：单列 */
    .box3 {
        margin: 40px auto;
        padding: 0 12px;
    }
    .box3a1 {
        width: 100%;
        height: auto;
        margin: 0;
    }
    .box3a1:hover {
        transform: none;
        box-shadow: none;
    }
    .pic1 img {
        height: 300px;
    }

    /* 底部 */
    .box4 {
        padding: 40px 12px;
        margin-top: 50px;
    }
    .box4a1 ul {
        font-size: 16px;
    }
    .box4a2 ul {
        font-size: 13px;
        gap: 10px 16px;
    }
    .box4 ul li {
        padding: 0 10px;
    }
}


