
.swiper-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;

}

#index .swiper-image .swiper .image {
    width: 100%;
}
.swiper-slide .image_box {
    position: relative;
    width: 100%;
    padding: calc(100% / 255 * 50) 0;
    overflow: hidden;
    display: flex;
}
.swiper-slide .image_box > img{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%,-50%);
}
.staff-swiper {
    overflow: hidden;
    position: relative;
    /* Extra bottom padding so the navigation buttons' box-shadow
       (which extends ~22px below each button) is not clipped by the
       swiper's overflow: hidden. */
    padding-bottom: 90px;
}

.staff-swiper .swiper-wrapper {
    /* overflow: hidden; */
}
.staff-swiper .swiper-slide {
    background-color: transparent;
}
.swiper-image .swiper {
    /* Swiper???? */
    /* width: 80%; */
    /* ?? */
    width: 100%;
    height: auto;
    margin: auto;
    overflow: visible !important;
    /* margin-bottom: 30px !important; */
    /* background-color: #999; */

}
.swiper-image  img{
    width: 100%;
}
body, button, input, pre, select, textarea {
    color: #222;
    font-size: 14px;
    font-family: 'Microsoft YaHei';
    font-weight: lighter;
}
.bannerBox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.bannerBox>div.image-text {
    margin-bottom: 18px;
    font-size: 38px;
    font-weight: 600;
}
.bannerBox>div{
    font-size: 18px;
}
.swiper-slide.image {
    position: relative;
    align-items: center;
    justify-content: center;
}
.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction{
    bottom: 47px;
}
.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    width: 52px;
        height: 3px;
        border: 1px solid #fff;
        border-radius: 1px;
        opacity: .5;
        margin: 0 1px;
}
.swiper-pagination-bullet-active,
 .swiper-pagination-bullet-active {
    background: #b60005 !important;
    border-color: #b60005 !important;
    opacity: 1 !important;
}
.index_news {
    margin-top: 30px;
}

.index-more {
    padding: calc(100% / 7 ) 0 0;
    text-align: center;
    color: #fff;
    position: relative;
}
.index-more img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
}
._title {
    line-height: 45px;
    font-size: 28px;
    color: #333;
    
    /* text-transform: uppercase; */
}
.x_line{
     display: block;
     width: 37px;
     height: 2px;
     background: #e00007;
     margin: 19px auto 15px;
}
.t2 {
    line-height: 1.8;
    font-size: 16px;
    color: #7a7a7a;
    margin-top: 20px;
        margin-bottom: 20px;
}
.index_news .list {
    margin: 40px 0;
}
.article-list {
    margin-bottom: 20px;
}

.article-list .item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc((100% - 4%) / 2);
    margin-right: 4%;
    margin-bottom: 20px;
    /* display: block; */
    line-height: 2.6;
    /* background-color: #f5f5f6; */
    color: #6e6e6e;
    font-size: 12px;
    padding: 0 ;
}
.article-list .item .left {
    width: 120px;
}
.article-list .item .right {
    width: calc(100% - 140px);
}
.article-list .item:nth-child(2n) {
    margin-right: 0;
}

/* ===================== ELITE TEAM section ===================== */
.index-staff {
    position: relative;
    background: linear-gradient(180deg, #f5f7fb 0%, #eef2f9 100%);
    overflow: hidden;
    padding-top: 60px !important;
    padding-bottom: 70px !important;
}

.index-staff::before {
    content: '';
    position: absolute;
    top: -140px;
    right: -100px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 0, 7, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.index-staff::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42, 123, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.index-staff > .app-container {
    position: relative;
    z-index: 1;
}

.index-staff ._title {
    position: relative;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.index-staff ._title::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, #e00007, #ff5a5f);
    border-radius: 2px;
    margin: 14px auto 0;
}

.index-staff .t2 {
    max-width: 720px;
    margin: 6px auto 36px !important;
    color: #5b6778;
    font-size: 15px;
    line-height: 1.75;
}

.index-staff .content {
    position: relative;
    padding-bottom: 60px;
}

.index-staff .content .item {
    width: calc((100% - 90px) / 4);
    margin: 0 30px 24px 0;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(20, 30, 60, 0.08);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s ease;
    position: relative;
    will-change: transform;
}

.index-staff .content .item:nth-child(4n) {
    margin-right: 0;
}

.index-staff .content .item:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(20, 30, 60, 0.16);
}

.index-staff .item .image-box {
    position: relative;
    padding: 55% 0;
    overflow: hidden;
    background: #e9edf3;
}

.index-staff .item .image-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
    pointer-events: none;
}

.index-staff .item:hover .image-box::after {
    opacity: 1;
}

.index-staff .item .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.index-staff .item:hover .image-box img {
    transform: scale(1.08);
}

.index-staff .item .text {
    padding: 18px 14px;
    background-color: #fff;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.3s ease;
}

.index-staff .item .text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #e00007, #ff5a5f);
    border-radius: 2px;
    transition: transform 0.4s ease;
    transform-origin: center;
}

.index-staff .item:hover .text::before {
    transform: translateX(-50%) scaleX(1);
}

.index-staff .item:hover .text {
    color: #e00007;
}

/* Swiper navigation buttons */
.index-staff ._ab {
    position: absolute;
    /* Sits inside the extended padding-bottom so each button's drop
       shadow has room to breathe without being clipped. */
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    width: auto;
    z-index: 5;
}

.index-staff .swiper-button-prev1,
.index-staff .swiper-button-next1 {
    position: static;
    width: 44px;
    height: 44px;
    margin: 0;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(20, 30, 60, 0.12);
    transition: background 0.25s ease, box-shadow 0.25s ease,
        transform 0.25s ease, color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    cursor: pointer;
}

.index-staff .swiper-button-prev1::after,
.index-staff .swiper-button-next1::after {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: inherit;
}

.index-staff .swiper-button-prev1:hover,
.index-staff .swiper-button-next1:hover {
    background: linear-gradient(135deg, #e00007, #ff5a5f);
    box-shadow: 0 10px 22px rgba(224, 0, 7, 0.28);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Pagination bullets, if shown */
.index-staff .swiper-pagination {
    bottom: 86px;
}

.index-staff .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #c3cbd6;
    opacity: 1;
    transition: all 0.25s ease;
}

.index-staff .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e00007, #ff5a5f);
}
.index_news .list >.item {
    width: calc((100% - 8%) / 3);
    margin-right: 4%;
    margin-bottom: 20px;
    box-shadow: -2px -2px 9px #0000001a;
}
.index_news .list>.item:nth-child(3n) {
    margin-right: 0;
}
.index_news .list>.item>.image-box>.box {
    display: block;
    position: relative;
    padding: 50% 0;
    overflow: hidden;
}
.index_news .list>.item>.text-box {
    padding: 10px;
}
.index-btn-more {
    padding: 10px 30px;
    margin: 0 auto;
    display: block;
    position: relative;
    width: max-content;
    border: 1px solid var(--primary-color,#4066b8);
    color: var(--primary-color,#4066b8);
}
.index-btn-more::before {
    content: attr(data-content);
    width: 0;
    overflow: hidden;
    height: 100%;
    z-index: -1;
    opacity: 0;
    position: absolute;
    transition: all .6s;
    top: 0;
    left: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.index-btn-more:hover::before  {
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 1;
    background-color: var(--primary-color,#4066b8);
    color: #fff;

}
.image-box>.box>img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transform:scale(1);
    transition: all 0.4s ease-in 0s;
}
.image-box>.box>img:hover{
    transform: scale(1.1);
}
.index_news .time {
    color: #222;
    margin-bottom: 8px;
}
.index_news .title {
    line-height: 28px;
    font-size: 18px;
    color: #000000;
  
    padding-bottom: 5px;
    display: block;
}
.index_news .discription {
    color: #7a7a7a;
    margin-bottom: 8px;
    line-height: 1.5;
}
.index_news .more {
    display: block;
    color: #e33127;
}
.index-info {
    background-color: #f8f9fa;
    overflow: hidden;
}
.index-info .content > .item {
    width: calc(50% - 10px);
    margin:20px 20px 20px 0;
}
.index-info .content>.item:nth-child(2n) {
    margin-right: 0;
}
.index-info .content>.item .left {
    width: 60px;
    height: 60px;
    overflow: hidden;
    margin-right: 20px;
}
.index-info .content>.item .left img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}
.index-info .content>.item .right {
    flex: 1;
}
.index-info .content>.item .right .title{
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}
.index-info .content>.item .right .text{
    /* font-size: ; */
    font-size: 14px;
    color: #7a7a7a;
}

.swiper-button-next1,
.swiper-button-prev1 {
    bottom: unset;
    top: unset;
    left:unset;
    right:unset;
    width: 37px;
    height: 37px;
    position: relative;
    margin:  0 5px;  
    background-color: #fff;
    
    border: #f0f0f0;
    transform: translate(0,0);
}
._ab {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    width: auto;
}
.swiper-button-next1::after,
.swiper-button-prev1::after {
    font-size: 20px;
    color: #333;
    margin: 0 10px;
}
.index-info .app-container{
    overflow: hidden;
    position: relative;
}
@media (max-width:992px) {
    .article-list .item,
    #index .index_news .list>.item {
        width: calc(50% - 10px);
        margin-right: 20px !important;
    }
    .article-list .item:nth-child(2n),
    #index .index_news .list>.item:nth-child(2n) {
        margin-right: 0 !important;
    }
    
    .index-staff .content .item {
        width: calc((100% - 90px) / 2);
    }

    .index-staff .content .item:nth-child(2n) {
        margin-right: 0;
    }
    
    
    
}

@media (max-width:620px) {
    .article-list .item,
    #index .index_news .list>.item {
        width: 100%;
        margin-right: 0px !important;
    }
    .bannerBox {
        display: none;
    }
    .index-info .content>.item {
        margin-right: 0;
        width: 100%;
    }
    .index-staff .content .item {
        width: 100%;
        margin: 0 0px 20px 0 !important;
    }
}

/* =============================================================
   Category pills (index-products-titleList) ? redesign.
   Replaces the old rigid 4-column grid (w-[calc(25%-40px)] +
   mx-[20px]) with a fluid, centered, wrap-friendly pill layout.
   Works for both:
     - homepage (index.blade.php): <div class="active"><a>...</a></div>
     - inner list pages (productList / brand / search blade):
         <div class="item"> / <div class="item active">
   ============================================================= */
#index .index-products .index-products-titleList,
.index-products .index-products-titleList {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center;
    gap: 10px 12px;
    margin: 36px auto 28px !important;
    padding: 6px 10px 18px !important;
    max-width: 1060px;
    position: relative;
}

/* Soft accent line under the pills */
#index .index-products .index-products-titleList::after,
.index-products .index-products-titleList::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-color, #4066b8), #7ba0ff);
    opacity: .55;
}

/* Reset every direct child and turn it into a pill */
#index .index-products .index-products-titleList > div,
.index-products .index-products-titleList > div {
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #5a6270 !important;
    background: #fff;
    border: 1px solid #e5e8ee;
    border-radius: 999px;
    line-height: 1;
    cursor: pointer;
    transition: color .22s ease, background-color .22s ease,
                border-color .22s ease, box-shadow .22s ease,
                transform .22s ease;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .02);
}

#index .index-products .index-products-titleList > div > a,
.index-products .index-products-titleList > div > a {
    display: inline-block;
    padding: 9px 18px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.3;
    letter-spacing: .2px;
}

/* Hover: filled primary accent */
#index .index-products .index-products-titleList > div:hover,
.index-products .index-products-titleList > div:hover {
    color: #fff !important;
    background: var(--primary-color, #4066b8);
    border-color: var(--primary-color, #4066b8);
    box-shadow: 0 6px 18px rgba(64, 102, 184, .25);
    transform: translateY(-1px);
}

#index .index-products .index-products-titleList > div:hover > a,
.index-products .index-products-titleList > div:hover > a {
    color: #fff;
}

/* Selected state on inner list pages (only those have `.item.active`) */
.index-products .index-products-titleList > div.item.active {
    color: #fff !important;
    background: var(--primary-color, #4066b8) !important;
    border-color: var(--primary-color, #4066b8) !important;
    box-shadow: 0 8px 22px rgba(64, 102, 184, .3) !important;
}

.index-products .index-products-titleList > div.item.active > a {
    color: #fff !important;
}

/* Emphasize the first pill on the homepage ("all") as the current view */
#index .index-products .index-products-titleList > div:first-child {
    color: #fff !important;
    background: var(--primary-color, #4066b8);
    border-color: var(--primary-color, #4066b8);
    box-shadow: 0 8px 22px rgba(64, 102, 184, .3);
}

#index .index-products .index-products-titleList > div:first-child > a {
    color: #fff;
    font-weight: 600;
}

#index .index-products .index-products-titleList > div:first-child:hover {
    /* keep filled style on hover too */
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(64, 102, 184, .35);
}

/* Responsive: on narrow screens shrink padding instead of forcing 1-per-row */
@media (max-width: 991.98px) {
    #index .index-products .index-products-titleList,
    .index-products .index-products-titleList {
        gap: 8px 10px;
        margin: 24px auto 22px !important;
        padding: 4px 8px 16px !important;
    }

    #index .index-products .index-products-titleList > div,
    .index-products .index-products-titleList > div {
        font-size: 13px !important;
    }

    #index .index-products .index-products-titleList > div > a,
    .index-products .index-products-titleList > div > a {
        padding: 8px 14px;
    }
}

@media (max-width: 620px) {
    #index .index-products .index-products-titleList,
    .index-products .index-products-titleList {
        gap: 6px 8px;
    }

    #index .index-products .index-products-titleList > div > a,
    .index-products .index-products-titleList > div > a {
        padding: 7px 12px;
    }
}

/* =============================================================
   Homepage typography scale.
   All rules are scoped to `#index` so that inner pages (product
   list, news, brand etc.) are NOT affected.
   Strategy:
     - Consistent font stack + body size 15px.
     - Responsive `clamp()` for section titles and hero copy.
     - Clear hierarchy: H1 hero > section title > subtitle > body.
     - Uniform line-heights (1.5 ~ 1.7) for better readability.
   ============================================================= */
#index {
    font-size: 15px;
    line-height: 1.65;
    color: #2d2f34;
    font-weight: 400;
    letter-spacing: .1px;
}

/* ----- Hero banner copy ----- */
#index .bannerBox > div.image-text {
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: .5px;
}

#index .bannerBox > div {
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1.55;
}

/* ----- Section heading (_title) -----
   Unify all homepage section titles:
   - Same font family (inter-tight)
   - Same responsive font-size via clamp()
   - Same weight / color / tracking
   - Force UPPERCASE so titles coming from different sources
     (translation files "product" / "real-time info" vs. dict
     "ELITE TEAM") render with consistent casing without needing
     DB edits. If you ever DO want the DB values changed, update
     them to Title Case and switch `text-transform` to `none`
     or `capitalize`; the CSS stays centralized here.
   ---------------------------------------------------------- */
#index ._title {
    font-family: inter-tight, "Inter", "Helvetica Neue", Arial, sans-serif !important;
    font-size: clamp(26px, 2.4vw, 34px) !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    color: #1f2937 !important;
    text-transform: uppercase !important;
}

/* ----- Section subtitle (.t2) ----- */
#index .t2 {
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.7;
    color: #6b7280;
    font-weight: 400;
    max-width: 760px;
    margin: 10px auto 18px;
}

/* Keep the custom ELITE TEAM section tuned the way we designed it */
#index .index-staff ._title {
    font-size: clamp(26px, 2.6vw, 34px);
}

#index .index-staff .t2 {
    font-size: clamp(13px, 1vw, 15px);
}

#index .index-staff .item .text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
}

/* ----- Product grid item ----- */
#index .index-products .content > .item .model {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

#index .index-products .content > .item .price {
    font-size: 15px;
    font-weight: 600;
    color: #b60005;
}

/* ----- "Why us / supports" swiper ----- */
#index .index-info .content > .item .right .title {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
    color: #1f2937;
}

#index .index-info .content > .item .right .text {
    font-size: 14px;
    line-height: 1.65;
    color: #6b7280;
}

/* -----
   FIX: when Swiper auto-plays / transitions, the neighboring
   duplicate slide sits outside `.info-swiper`'s clip region and
   leaks a few letters to the left/right edge of the viewport.
   The decoration overflow:hidden on `.index-info` wasn't enough
   because the swiper root (`.app-container.info-swiper`) is
   narrower than the viewport and centered; content translated
   via `translate3d(-X,0,0)` inside `.swiper-wrapper` was visible
   in the left gutter area because no ancestor with full-viewport
   width was clipping it.

   Clamp overflow at every reasonable ancestor so nothing leaks
   beyond its box at any point in the transition timeline.
   ----- */
#index .index-info,
#index .index-info > .py-\[10px\],
#index .index-info .info-swiper,
#index .index-info .app-container {
    overflow: hidden !important;
    position: relative;
}

#index .index-info .info-swiper .swiper-wrapper,
#index .index-info .info-swiper .box.swiper-wrapper {
    overflow: hidden;
}

/* ----- Brand grid ----- */
#index .index-brands .brand-name {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    color: #374151;
}

/* ----- News list (card) ----- */
#index .index_news .title {
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.45;
    font-weight: 600;
    color: #111827;
    padding-bottom: 6px;
}

#index .index_news .discription {
    font-size: 13.5px;
    line-height: 1.6;
    color: #6b7280;
}

#index .index_news .time {
    font-size: 12.5px;
    color: #9ca3af;
}

/* Compact article list (2-col list under news) */
#index .article-list .item {
    font-size: 13px;
    line-height: 1.65;
    color: #4b5563;
}

/* ----- "More" button text ----- */
#index .index-btn-more {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .3px;
}

/* ----- Products category pill row (already styled above) ?C
   just reassert for homepage hierarchy ----- */
#index .index-products .index-products-titleList > div {
    font-size: 14px !important;
}

/* ----- Responsive tightening ----- */
@media (max-width: 991.98px) {
    #index {
        font-size: 14px;
    }

    #index ._title {
        font-size: clamp(22px, 4.2vw, 28px);
    }

    #index .t2 {
        font-size: 13px;
        margin: 8px auto 14px;
    }

    #index .index_news .title {
        font-size: 15px;
    }

    #index .index-info .content > .item .right .title {
        font-size: 15px;
    }
}

@media (max-width: 620px) {
    #index {
        font-size: 13.5px;
    }

    #index ._title {
        font-size: clamp(20px, 6vw, 24px);
    }

    #index .bannerBox > div.image-text {
        font-size: clamp(22px, 6vw, 28px);
    }

    #index .index_news .title {
        font-size: 14.5px;
    }

    #index .article-list .item {
        font-size: 12.5px;
    }
}