/************index 首页 start*********************/
/* ====================== 原生内联轮播样式 ====================== */
.swiper {
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}
.swiper-slide {
    position: relative;
    /*background: rgba(0, 0, 0, 0.4);*/
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    margin-top: 6px;
}
/* 轮播分页器 */
.swiper-pagination {
    position: absolute;
    text-align: center;
    transition: .3s opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10;
    bottom: 20px;
    left: 0;
    width: 100%;
}
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    opacity: 0.5;
    margin: 0 6px;
    cursor: pointer;
}
.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
    width: 30px;
    border-radius: 6px;
}
/* 轮播左右箭头 */
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.swiper-button-prev {
    left: 20px;
}
.swiper-button-next {
    right: 20px;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 22px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.sty_bg {
    padding: 4rem;
    text-align: left;
    font-size: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
/* 轮播容器基础 */
.swiper.mySwiper {
  width: 100%;
  /*height: 100vh;*/
  overflow: hidden;
}
.mySwiper .swiper-button-prev,
.mySwiper .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease;
}
.mySwiper .swiper-button-prev { left: 30px; right: auto; }
.mySwiper .swiper-button-next { right: 30px; left: auto; }
.mySwiper .swiper-button-prev:hover,
.mySwiper .swiper-button-next:hover {
    background: rgba(219, 37, 28, 0.85);
    transform: translateY(-50%) scale(1.08);
}
/* 隐藏 Swiper 默认字体图标，改用内联 SVG 箭头 */
.mySwiper .swiper-button-prev::after,
.mySwiper .swiper-button-next::after { content: none; }
.mySwiper .swiper-button-prev svg,
.mySwiper .swiper-button-next svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* 首/尾禁用态 */
.mySwiper .swiper-button-prev.swiper-button-disabled,
.mySwiper .swiper-button-next.swiper-button-disabled {
    opacity: .35;
    pointer-events: none;
}
@media (max-width: 768px) {
    .mySwiper .swiper-button-prev,
    .mySwiper .swiper-button-next { width: 38px; height: 38px; }
    .mySwiper .swiper-button-prev { left: 12px; }
    .mySwiper .swiper-button-next { right: 12px; }
    .mySwiper .swiper-button-prev svg,
    .mySwiper .swiper-button-next svg { width: 18px; height: 18px; }
}
.swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-slide .slide-title {
    padding-bottom: 16px;
}
/* 数字包裹容器，作为伪元素定位参考 */
.swiper-slide .slide-title .num-highlight {
    font-size: 68px;
    position: relative;
    /* 不要用padding‑bottom，交给伪元素 */
}
/* 伪元素实现圆角下划线 */
.swiper-slide .slide-title .num-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;          /* 下划线粗细 */
    background-color: #db251c;
    border-radius: 3px;   /* 圆角 */
    top: 100%;
    margin-top: 0;     /* 下划线距离数字底部 10px */
}

/* 文字容器定位 */
.slide-content {
    position: absolute;
    top: 50%;
    left: 9%;
    z-index: 10;
    max-width: 680px;
    /* 初始状态：向左偏移+透明隐藏 */
    opacity: 0;
    transform: translateY(-50%) translateX(-260px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* 动画激活类：复位位置+完全显示 */
.slide-content.show {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.slide-content h2 {
    font-size: clamp(26px, 5vw, 40px);
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: left;
    color: #ffffff;
}
.slide-content h2 span {
    text-underline-offset: 8px;
    text-decoration-color: #c99a64;
    font-size: 60px;
}
.slide-content p {
    font-size: clamp(14px, 3vw, 18px);
    margin-bottom: 30px;
    color: #ffffff;
}
.slide-content .btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.slide-content .btn {
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: normal;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 155px;
    text-align: center;
}
.swiper-slideT {
  position: relative;
  width: 100%;
  height: 100%;
}
.swiper-slideT img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 文字容器定位 */
.swiper-slideT .slide-content {
    position: absolute;
    top: 50%;
    left: 15%;
    z-index: 10;
    max-width: 480px;
    opacity: 0;
    transform: translateY(-50%) translateX(-260px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.swiper-slideT .slide-content.show {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.swiper-slideT .slide-content h2 {
    font-size: clamp(40px, 5vw, 67px);
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: left;
    color: #fff;
}

.swiper-slideT .slide-content h2 span {
    text-underline-offset: 8px;
    text-decoration-color: #c99a64;
}
.swiper-slideT .slide-content p {
    font-size: clamp(14px, 3vw, 30px);
    margin-bottom: 30px;
    color: #ffffff;
}
/* 分页器微调 */
.swiper-pagination {
    bottom: 30px;
}
/* 内页banner */
.banner {
    height: 50vh;
}
/* ===== 无数据提示 ===== */
.no-data {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 320px;
    padding: 40px 0;
    box-sizing: border-box;
    color: #999;
    font-size: 18px;
    letter-spacing: 1px;
    text-align: center;
}

.no-data.is-show {
    display: flex;
}

.no-data .no-data-icon {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto 16px;
    opacity: .6;
}

/* 搜索 */
.search-container .search_list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    box-sizing: border-box;
    margin: 80px auto;
}

.search-container .search_title {
    text-align: center;
    padding-top: 50px;
    /* 颜色变化也加过渡，避免突变 */
    transition: color .3s ease;
}

/* 图片容器：裁剪溢出，防止放大后压到相邻卡片 */
.search-container .img-default {
    overflow: hidden;
}

/* 图片只过渡 transform */
.search-container .img-default img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* 只在支持 hover 的设备上启用放大，避免移动端点击后 hover 状态粘住 */
@media (hover: hover) and (pointer: fine) {
    .search-container a:hover .img-default img {
        transform: translateZ(0) scale(1.1);
    }

    .search-container a:hover .search_title {
        color: #c90008;
    }
}

@media (max-width: 768px) {
    .search-container .search_list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 标题 开始*/
/* 标题区域 */
.section-header {
    /*margin-bottom: 40px;*/
    padding-top: 100px;
}

.section-subtitle {
    font-size: 16px;
    letter-spacing: 1px;
    color: #000000;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-subtitle::before {
    content: "";
    width: 40px;
    height: 1px;
    background: #222;
}

.section-title {
    font-size: 46px;
    font-weight: bold;
    color: #333;
}
.product-header {
    text-align: center;
    padding: 48px 20px 36px;
}

/* 标题 结束*/

.width1600 {
    max-width: 1600px;
    margin: 0 auto;
    /* >=1920px 时左右边距为0 */
    padding-inline: 0;
}
@media (max-width: 768px) {
    .swiper-slide .slide-title .num-highlight {
        font-size: 30px;
    }
    .slide-content {
        left: 0;
        padding:0 20px;
    }
}


/* 小于1920px才启用动态左右边距 */
@media (max-width: 1919px) {
    .width1600 {
        /*padding-inline: clamp(0rem, calc((100vw - 769px) / 2), 4rem);*/
    }
}

