/* ============================================================
   index.css —— 首页
   ============================================================ */

/* ============================================================
   1. Banner 轮播
   ============================================================ */
/* ============================================================
   1. Banner 轮播
   ============================================================ */
.homeBanner {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.homeBannerSwiper {
    width: 100%;
    height: 100%;
}

.homeBannerSlide {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

/* 微黑遮罩 */
.homeBannerSlide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    pointer-events: none;
    z-index: 1;
}

.homeBannerSlide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    z-index: 0;
}

/* 分页器 */
.homeBannerSwiper .swiper-pagination {
    bottom: 3rem !important;
}

.homeBannerSwiper .swiper-pagination-bullet {
    width: 0.75rem;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 0.375rem !important;
    border-radius: 0;
    transition: width 0.25s, background 0.25s;
}

.homeBannerSwiper .swiper-pagination-bullet-active {
    width: 2rem;
    background: #ffffff;
    border-radius: 0;
}
/* Banner 左右箭头 */
.homeBannerArrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.homeBannerArrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.homeBannerArrow svg {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

.homeBannerPrev {
    left: 2rem;
}

.homeBannerNext {
    right: 2rem;
}

/* 移动端隐藏箭头 */
@media (max-width: 48rem) {
    .homeBannerArrow {
        display: none;
    }
}
/* ---------- 移动端自适应 ---------- */
@media (max-width: 48rem) {
    .homeBanner {
        height: auto;
    }

    .homeBannerSwiper {
        height: auto;
    }

    .homeBannerSlide {
        height: auto;
    }

    .homeBannerSlide img {
        width: 100%;
        height: auto;
        object-fit: initial;
    }

    .homeBannerSwiper .swiper-pagination {
        bottom: 1.25rem !important;
    }

    .homeBannerSwiper .swiper-pagination-bullet {
        width: 0.5rem;
        height: 0.5rem;
        margin: 0 0.25rem !important;
    }

    .homeBannerSwiper .swiper-pagination-bullet-active {
        width: 1.25rem;
    }
}

/* ============================================================
   2. 关于我们
   ============================================================ */
.homeAbout {
    padding: 4rem 0;
    background: #ffffff;
}

/* ---------- 左右布局：左文右图 ---------- */
.homeAboutLayout {
    display: flex;
    align-items: stretch;
    gap: 3rem;
}

/* 左侧文字 */
.homeAboutContent {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.homeAboutTitle {
    position: relative;
    padding-left: 0.875rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e2b3c;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.homeAboutTitle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.25rem;
    height: 1.375rem;
    background: #29177f;
}

.homeAboutTitleEn {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: #b0b8c4;
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.homeAboutText {
    font-size: 0.9375rem;
    color: #555;
    line-height: 2;
    margin-bottom: 1rem;
    text-align: justify;
}

.homeAboutText:last-of-type {
    margin-bottom: 2rem;
}

.homeAboutBtn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    height: 2.75rem;
    padding: 0 2rem;
    font-size: 1rem;
    color: #ffffff;
    background: #29177f;
    border: 0;
    cursor: pointer;
    letter-spacing: 0.0625rem;
}

.homeAboutBtn:hover {
    background: #e00c09;
}

/* 右侧图 */
.homeAboutAside {
    flex-shrink: 0;
    width: 40%;
    display: flex;
    flex-direction: column;
}

.homeAboutMedia {
    width: 100%;
    overflow: hidden;
    background: #f2f5f9;
    border: 1px solid #e6ecf3;
}

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

/* ---------- 数据块：整行，一行 4 个 ---------- */
.homeAboutStats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 2.5rem;
    border: 1px solid #e6ecf3;
}

.homeAboutStat {
    padding: 1.5rem 1rem;
    text-align: center;
    border-right: 1px solid #eef1f5;
}

.homeAboutStat:last-child {
    border-right: 0;
}

.homeAboutStatNum {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.125rem;
    margin-bottom: 0.375rem;
}

.homeAboutStatValue {
    font-size: 2rem;
    font-weight: 700;
    color: #29177f;
    line-height: 1;
}

.homeAboutStatUnit {
    font-size: 0.875rem;
    color: #29177f;
    font-weight: 700;
}

.homeAboutStatLabel {
    font-size: 0.8125rem;
    color: #8a9aa8;
    line-height: 1.5;
}

/* ---------- 响应式 ---------- */
@media (max-width: 64rem) {
    .homeAbout {
        padding: 2.5rem 0;
    }

    /* 左右改上下 */
    .homeAboutLayout {
        flex-direction: column;
        gap: 2rem;
    }

    .homeAboutAside {
        width: 100%;
    }

    .homeAboutTitle {
        font-size: 1.375rem;
    }
}

@media (max-width: 48rem) {

    /* 数据块改 2 列 */
    .homeAboutStats {
        grid-template-columns: repeat(2, 1fr);
    }

    .homeAboutStat {
        border-right: 0;
        border-bottom: 1px solid #eef1f5;
    }

    .homeAboutStat:nth-child(odd) {
        border-right: 1px solid #eef1f5;
    }

    .homeAboutStat:nth-child(3),
    .homeAboutStat:nth-child(4) {
        border-bottom: 0;
    }

    .homeAboutStatValue {
        font-size: 1.5rem;
    }
}

/* ============================================================
   3. 产品中心
   ============================================================ */
.homeProduct {
    padding: 4rem 0;
    background: #f5f7fa;
}

/* 通用 section 标题 */
.homeSectionHead {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.homeSectionTitle {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e2b3c;
    line-height: 1.4;
    letter-spacing: 0.125rem;
    text-align: center;
}

.homeSectionSub {
    font-size: 0.875rem;
    color: #b0b8c4;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* 分类 tab */
.homeProductTabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.homeProductTab {
    display: inline-flex;
    align-items: center;
    height: 2.75rem;
    padding: 0 1.75rem;
    font-size: 0.9375rem;
    color: #2e405b;
    background: #ffffff;
    border: 1px solid #e6ecf3;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.homeProductTab:hover {
     color: #ffffff;
    background: #e00c09;
    border-color: #e00c09;
}

.homeProductTab.is_active {
    color: #ffffff;
    background: #29177f;
    border-color: #29177f;
}

/* 分类大卡：一行 4 个 */
.homeProductGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.homeProductCard {
    display: block;
    background: #ffffff;
    border: 1px solid #e6ecf3;
    transition: box-shadow 0.25s;
}

.homeProductCard:hover {
    box-shadow: 0 4px 16px rgba(41, 23, 127, 0.08);
}

.homeProductCardThumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f2f5f9;
}

.homeProductCardThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.homeProductCardName {
    padding: 1rem;
    font-size: 1rem;
    color: #1e2b3c;
    text-align: center;
    font-weight: 700;
    line-height: 1.5;
}

.homeProductCard:hover .homeProductCardName {
    color: #e00c09;
}

/* ============================================================
   4. 应用案例轮播
   ============================================================ */
.homeCase {
    padding: 4rem 0;
    background: #ffffff;
}

.homeCaseSwiperWrap {
    position: relative;
}

.homeCaseSwiper {
    overflow: hidden;
}

/* 卡片 */
.homeCaseCard {
    display: block;
    background: #ffffff;
    border: 1px solid #e6ecf3;
    transition: box-shadow 0.25s;
}

.homeCaseCard:hover {
    box-shadow: 0 4px 16px rgba(41, 23, 127, 0.08);
}

.homeCaseCardThumb {
    display: block;
    width: 100%;
    /*aspect-ratio: 4 / 3;*/
    overflow: hidden;
    background: #f2f5f9;
}

.homeCaseCardThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.homeCaseCardBody {
    padding: 1rem 1.125rem 1.25rem;
}

.homeCaseCardTitle {
    font-size: 1rem;
    font-weight: 700;
    color: #1e2b3c;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: .5rem;
}

.homeCaseCard:hover .homeCaseCardTitle{
    color: #e00c09;
}

.homeCaseCardDesc {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 轮播导航按钮 */
.homeCaseNav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.homeCaseArrow {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e6ecf3;
    color: #555;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.homeCaseArrow:hover {
    color: #29177f;
    border-color: #29177f;
}
/* 分页指示器 */
.homeCasePagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

/* 覆盖 Swiper 默认分页样式 */
.homeCasePagination .swiper-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
    background: #c9c3e0;
    opacity: 1;
    margin: 0 !important;
    border-radius: 0;
    transition: width 0.25s, background 0.25s;
}

.homeCasePagination .swiper-pagination-bullet-active {
    width: 1.5rem;
    background: #29177f;
    border-radius: 0;
}

/* ============================================================
   5. 新闻中心
   ============================================================ */
.homeNews {
    padding: 4rem 0;
    background: #f5f7fa;
}

.homeNewsGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ---------- 统一卡片外壳 ---------- */
.newsCard {
    height: 26rem;
    background: #ffffff;
    border: 1px solid #e6ecf3;
    transition: box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.newsCard:hover {
    box-shadow: 0 4px 16px rgba(41, 23, 127, 0.08);
}

/* ---------- 卡 1、2：图片卡 ---------- */
.newsPicCard {
    display: flex;
    flex-direction: column;
    position: relative;
}

.newsPicThumb {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #f2f5f9;
}

.newsPicThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.newsPicBody {
    flex-shrink: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    border-top: 1px solid #eef1f5;
}

.newsPicTitle {
    font-size: 1rem;
    font-weight: 700;
    color: #1e2b3c;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsPicCard:hover .newsPicTitle {
    color: #e00c09;
}

.newsPicDate {
    font-size: 0.8125rem;
    color: #8a9aa8;
    margin-bottom: 0.5rem;
}

/* ---------- 卡 3：新闻列表卡 ---------- */
.newsListCard {
    padding: 1.5rem 1.5rem 1rem;
}

.newsListHead {
    display: flex;
    align-items: center;
    padding-bottom: 0.875rem;
    /*margin-bottom: 0.5rem;*/
    border-bottom: 1px solid #eef1f5;
}

.newsListHead::before {
    content: "";
    width: 0.1875rem;
    height: 1rem;
    background: #29177f;
    margin-right: 0.625rem;
}

.newsListHeadTitle {
    font-size: 1rem;
    font-weight: 700;
    color: #1e2b3c;
}

.newsList {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.newsList li {
    border-bottom: 1px dashed #eef1f5;
}

.newsList li:last-child {
    border-bottom: 0;
}

.newsListLink {
    display: block;
    padding: 0.55rem 0;
}

.newsListTitle {
    font-size: 0.9375rem;
    color: #2e405b;
    line-height: 1.6;
    margin-bottom: 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsListLink:hover .newsListTitle {
    color: #e00c09;
}

.newsListMeta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #8a9aa8;
}

.newsListTag {
    display: inline-block;
    padding: 0.0625rem 0.375rem;
    font-size: 0.6875rem;
    color: #29177f;
    background: #f0eef9;
    border: 1px solid #ddd6f0;
}

/* ---------- 卡 4：快捷菜单卡 ---------- */
.newsQuickCard {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: transparent;
    border: 0;
    box-shadow: none !important;
}

.newsQuickItem {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1e2b3c;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #e6ecf3;
    cursor: pointer;
}

/* 背景色蒙层 */
.newsQuickItem::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(30, 43, 60, 0.55);
    transition: background 0.25s;
    z-index: 1;
}

.newsQuickItem:hover::before {
    /*background: rgba(41, 23, 127, 0.7);*/
}

.newsQuickName {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.125rem;
    text-align: center;
    padding-bottom: 0.75rem;
}
.newsQuickName::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 2px;
    background: #ffffff;
    transition: width 0.35s;
}
/* 悬停：短线拉长 */
.newsQuickItem:hover .newsQuickName::after {
    width: 2.5rem;
}
/* 卡片内的分类标签 */
.newsPicTags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    position: absolute;
    right: .5rem;
    z-index: 9;
    top: .5rem;
}

.newsPicTag {
    display: inline-block;
    padding: 0.0625rem 0.5rem;
    font-size: 0.6875rem;
    color: #29177f;
    background: #f0eef9;
    border: 1px solid #ddd6f0;
}

/* 描述：一行截断 */
.newsPicDesc {
    font-size: 0.8125rem;
    color: #8a9aa8;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 80rem) {
    .homeNewsGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 48rem) {
    .homeNewsGrid {
        grid-template-columns: 1fr;
    }

    .newsCard {
        height: auto;
        min-height: 22rem;
    }

    .newsPicThumb {
        min-height: 14rem;
    }

    .newsQuickItem {
        min-height: 5rem;
    }
}

/* ============================================================
   6. CTA
   ============================================================ */
/* ============================================================
   6. CTA
   ============================================================ */
.homeCta {
    background: #0452bc;
    padding: 3rem 0;
}

.homeCtaInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.homeCtaText {
    flex: 1;
    min-width: 0;
}

.homeCtaTitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 0.375rem;
}

.homeCtaDesc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.homeCtaActions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.homeCtaTel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
}

.homeCtaTelLabel {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.homeCtaTelNum {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.homeCtaBtn {
    display: inline-flex;
    align-items: center;
    height: 3rem;
    padding: 0 2.5rem;
    font-size: 1rem;
    color: #3a2b9e;
    background: #ffffff;
    border: 0;
    cursor: pointer;
    letter-spacing: 0.0625rem;
}

.homeCtaBtn:hover {
    color: #ffffff;
    background: #e00c09;
}
/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 80rem) {
    .homeProductGrid {
        grid-template-columns: repeat(3, 1fr);
    }

    .homeNewsGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 64rem) {

    .homeAbout,
    .homeProduct,
    .homeCase,
    .homeNews {
        padding: 2.5rem 0;
    }

    .homeBannerTitle {
        font-size: 2rem;
    }

    .homeBannerDesc {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .homeBannerBtn {
        height: 2.5rem;
        padding: 0 1.75rem;
        font-size: 0.9375rem;
    }

    /* 关于我们改上下 */
    .homeAboutLayout {
        flex-direction: column;
        gap: 2rem;
    }

    .homeAboutAside {
        width: 100%;
    }

    .homeAboutTitle {
        font-size: 1.375rem;
    }

    .homeSectionTitle {
        font-size: 1.375rem;
    }

    /* 产品、新闻 2 列 */
    .homeProductGrid,
    .homeNewsGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .homeProductTab {
        height: 2.5rem;
        padding: 0 1.25rem;
        font-size: 0.875rem;
    }

    /* CTA 改上下 */
    .homeCtaInner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .homeCtaTitle {
        font-size: 1.25rem;
    }

    .homeCtaActions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 48rem) {
    .homeBannerTitle {
        font-size: 1.375rem;
        margin-bottom: 0.5rem;
    }

    .homeBannerDesc {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .homeBannerBtn {
        height: 2.25rem;
        padding: 0 1.25rem;
        font-size: 0.875rem;
    }

    .homeBannerSwiper .swiper-pagination {
        bottom: 0.75rem !important;
    }

    /* 数据块改 2 列 */
    .homeAboutStats {
        grid-template-columns: repeat(2, 1fr);
    }

    .homeAboutStat {
        border-right: 0;
        border-bottom: 1px solid #eef1f5;
    }

    .homeAboutStat:nth-child(odd) {
        border-right: 1px solid #eef1f5;
    }

    .homeAboutStat:nth-child(3),
    .homeAboutStat:nth-child(4) {
        border-bottom: 0;
    }

    /* 产品、新闻 1 列 */
    .homeProductGrid,
    .homeNewsGrid {
        grid-template-columns: 1fr;
    }

    /* CTA 按钮通栏 */
    .homeCtaActions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .homeCtaBtn {
        width: 100%;
        justify-content: center;
    }
}