/**
 * 首页专属样式
 * 包含：主内容容器、顶部轮播图、产品与解决方案卡片、合作伙伴区域、
 * 应用案例/更多案例、联系我们及页脚 等模块的布局与视觉样式。
 * 与 css/shared.css 共同构成首页完整样式体系。
 */

/* ==========================================
   主内容容器
   ========================================== */

.mainContent {
    display: flex;
    flex-direction: column;
    margin-top: 6rem;       /* 为顶部固定导航栏留出空间 */
    width: 100%;
    height: auto;
}

/* ==========================================
   顶部轮播图（Swiper）
   ========================================== */

/* 轮播外层容器：水平排列，隐藏溢出 */
.swiperWrap {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
    height: auto;
    position: relative;
}

/* 轮播轨道：flex 水平排列，通过 left 偏移实现滑动 */
.swiperList {
    display: flex;
    flex-direction: row;
    height: 100%;
    position: relative;
    left: 0px;
}

/* 启用 CSS 过渡动画的辅助类（JS 动态添加/移除） */
.swiperListTransition {
    transition: left 1s;
}

/* 单屏轮播项：不收缩（由 JS 控制宽度为窗口 100%） */
.swiperItem {
    width: 100%;
    height: auto;
    position: relative;
    flex-shrink: 0;
    margin-bottom: -0.3rem;
}

.swiperItem img{
    width: 100%;
    height: auto;
}


/* 轮播文字层级（第一行标题） */
.swiperItemText1 {
    font-size: 4.2rem;
    font-weight: 600;
    color: #3d3d3d;
    letter-spacing: 0.5rem;
    position: absolute;
    top: 22%;
    z-index: 2;
}

/* 轮播文字层级（第二行标题） */
.swiperItemText2 {
    font-size: 4.2rem;
    font-weight: 600;
    color: #3d3d3d;
    letter-spacing: 0.5rem;
    position: absolute;
    top: 32%;
    z-index: 2;
}

/* 轮播文字层级（第三行副标题） */
.swiperItemText3 {
    font-size: 2rem;
    color: #3d3d3d;
    letter-spacing: 0.2rem;
    font-weight: 600;
    position: absolute;
    top: 44%;
    z-index: 2;
}

/* "点击了解"按钮：圆角深色胶囊按钮 */
.swiperItemButton {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    background-color: #3d3d3d;
    color: #ffffff;
    border-radius: 2rem;
    width: 14rem;
    height: 3.2rem;
    font-size: 1.8rem;
    position: absolute;
    top: 54%;
    z-index: 2;
    line-height: 100%;
    padding: 0 1.8rem;
}

.swiperItemButton:hover {
    cursor: pointer;
}

.swiperItemButton .swiperItemButtonIcon {
    height: 1.1rem;
    width: auto;
}

/* 按钮和文字的水平对齐方式：左对齐 / 右对齐 */
.swiperItemLeft {
    left: 20%;
}

.swiperItemRight {
    left: 58%;
}

/* 隐藏 Webkit 内核浏览器的滚动条 */
.swiperWrap::-webkit-scrollbar{
    display: none;
}

.swiperList::-webkit-scrollbar{
    display: none;
}


/* ==========================================
   轮播指示点
   ========================================== */

/* 指示点容器：绝对定位于轮播底部居中 */
.pointerList {
    display: flex;
    flex-direction: row;
    height: 0.6rem;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    position: absolute;
    bottom: 5%;
    left: calc(50% - 1rem);
}

/* 单个指示点：灰色小圆点 */
.pointer {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 0.7rem;
    background-color: #BFBFBF;
    margin: 0 0.3rem;
}

/* 选中态指示点：黑色 */
.pointerSelected {
    background-color: #000000;
}

.pointer:hover{
    cursor: pointer;
}


/* ==========================================
   产品及解决方案模块
   ========================================== */

/* 外层容器：纵向 flex，内容居中 */
.productionAndSolutionWrap {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* 标题栏：绝对定位于模块顶部 */
.productionAndSolutionHead {
    position: absolute;
    width: 100%;
    top: 20%;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 15%;
}

.productionAndSolutionHeadText1 {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #3d3d3d;
    font-weight: 600;
}

.productionAndSolutionHead .dash {
    height: 1px;
    min-height: 1px;
    background-color: #3d3d3d;
    flex: 1;
}

.productionAndSolutionHeadText2 {
    font-size: 1.2rem;
    margin-left: 1rem;
    color: #3d3d3d;
    font-weight: 600;
}

.productionAndSolutionWrap .productionAndSolutionHead img {
    height: 0.8rem;
    width: auto;
    margin-left: 0.5rem;
}

.productionAndSolutionWrap img {
    width: 100%;
    height: auto;
}

/* 卡片容器：水平排列 4 个方案卡片 */
.productionAndSolutionWrap .contentWrap {
    width: 100%;
    height: 60%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 15%;
    position: absolute;
    left: 0;
    top: 25%;
    z-index: 100;
}

/* 单个方案卡片 */
.productionAndSolutionWrap .contentWrap .item {
    width: 24%;           /* 4 个卡片等宽排列 */
    position: relative;
}

.productionAndSolutionWrap .contentWrap .item:hover {
    cursor: pointer;
}

.productionAndSolutionWrap .contentWrap .item img {
    height: auto;
    width: 100%;
    display: block;
}

/* 遮罩层：默认位于卡片底部 16%，hover 时展开至 100%（由 JS maskUp/maskDown 控制） */
.productionAndSolutionWrap .contentWrap .item .mask {
    width: 100%;
    height: 16%;
    position: absolute;
    z-index: 100;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);  /* 半透明黑色 */
    transition: height 0.5s;              /* 高度变化过渡动画 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 遮罩内标题（收起态可见） */
.productionAndSolutionWrap .contentWrap .item .mask .title {
    color: #ffffff;
    font-size: 1.2rem;
}

/* 遮罩内简介文字（展开态可见，默认隐藏） */
.productionAndSolutionWrap .contentWrap .item .mask .brief {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.8rem;
    letter-spacing: 0.1rem;
    display: none;        /* 默认隐藏，JS hover 时显示 */
    font-weight: 300;
}

/* ==========================================
   合作伙伴模块
   ========================================== */

.partnerWrap {
    width: 100%;
    height: auto;
    position: relative;
}

.partnerWrap img {
    width: 100%;
    height: auto;
}

/* "了解更多"按钮：绝对居中定位 */
.partnerWrap .partnerButton {
    background-color: #3d3d3d;
    position: absolute;
    top: 75%;
    left: 0;
    right: 0;
    margin: auto;
    color: #ffffff;
    border-radius: 2rem;
    width: 14rem;
    height: 3.2rem;
    font-size: 1.8rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    line-height: 100%;
    padding: 0 1.8rem;
    z-index: 2;
}

.partnerWrap .partnerButton:hover {
    cursor: pointer;
}

.partnerWrap .partnerButton img {
    height: 1.1rem;
    width: auto;
}

/* ==========================================
   案例模块（应用案例 + 更多案例）
   ========================================== */

/* 案例模块外层容器 */
.casesWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 0 15%;
}

/* --- 应用案例子模块 --- */
.casesWrap .applicationCasesWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-top: 10rem;
}

/* 区域标题栏 */
.casesWrap .applicationCasesWrap .head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
}

.casesWrap .applicationCasesWrap .head .text1 {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #3d3d3d;
    font-weight: 600;
}

.casesWrap .applicationCasesWrap .head .dash {
    height: 1px;
    min-height: 1px;
    background-color: #3d3d3d;
    flex: 1;
}

.casesWrap .applicationCasesWrap .head .text2 {
    font-size: 1.2rem;
    margin-left: 1rem;
    color: #3d3d3d;
    font-weight: 600;
}

.casesWrap .applicationCasesWrap .head img {
    height: 0.8rem;
    width: auto;
    margin-left: 0.5rem;
}

/* 应用案例卡片列表 */
.casesWrap .applicationCasesWrap .casesList {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    margin-top: 6rem;
}

/* 单个应用案例卡片：宽度 53%，右侧留 6% 间距 */
.casesWrap .applicationCasesWrap .casesList .caseWrap {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 53%;
    min-width: 53%;
    max-width: 53%;
    padding-right: 6%;
}

.casesWrap .applicationCasesWrap .casesList .caseWrap:hover {
    cursor: pointer;
}

.casesWrap .applicationCasesWrap .casesList .caseWrap img {
    width: 100%;
    height: auto;
}

.casesWrap .applicationCasesWrap .casesList .caseWrap .title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 1.2rem;
    color: #1a1a1a;
}

/* 简介文字：最多显示 2 行，超出省略号 */
.casesWrap .applicationCasesWrap .casesList .caseWrap .brief {
    font-size: 1.1rem;
    margin-top: 0.35rem;
    line-height: 1.6rem;
    color: #bababa;
    letter-spacing: 0.1rem;
    text-overflow: -o-ellipsis-lastline; 
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
}


/* --- 更多案例子模块 --- */
.casesWrap .moreCasesWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
    margin-top: 10rem;
    margin-bottom: 5%;
}

/* 区域标题栏 */
.casesWrap .moreCasesWrap .head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
}

.casesWrap .moreCasesWrap .head .text1 {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #3d3d3d;
    font-weight: 600;
}

.casesWrap .moreCasesWrap .head .dash {
    height: 1px;
    min-height: 1px;
    background-color: #3d3d3d;
    flex: 1;
}

.casesWrap .moreCasesWrap .head .text2 {
    font-size: 1.2rem;
    margin-left: 1rem;
    color: #3d3d3d;
    font-weight: 600;
}

.casesWrap .moreCasesWrap .head img {
    height: 0.8rem;
    width: auto;
    margin-left: 0.5rem;
}

/* 更多案例横向滚动容器（隐藏滚动条） */
.casesWrap .moreCasesWrap .casesList {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;       /* 水平滚动 */
    margin-top: 6rem;
    position: relative;
}

/* 隐藏 Webkit 滚动条 */
.casesWrap .moreCasesWrap .casesList::-webkit-scrollbar{
    display: none;
}

/* 每页案例容器：宽度与父容器一致，保证一次滚动一页 */
.casesWrap .moreCasesWrap .casesList .casesListPage {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    min-width: 100%;
    margin-right: 1.25%;
}

/* 单条案例卡片：占页面约 1/3 宽度 */
.casesWrap .moreCasesWrap .casesList .casesListPage .caseWrap {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 32.5%;
    background-color: #ffffff;
}

.casesWrap .moreCasesWrap .casesList .casesListPage .caseWrap:hover {
    cursor: pointer;
}

.casesWrap .moreCasesWrap .casesList .caseWrap img {
    width: 100%;
    height: auto;
}

/* 案例日期 */
.casesWrap .moreCasesWrap .casesList .caseWrap .createTime {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.4);
    margin-top: 3%;
}

/* 案例标题：最多 2 行省略号 */
.casesWrap .moreCasesWrap .casesList .caseWrap .title {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-right: 5%;
    margin-top: 1%;
    font-weight: 500;
    text-overflow: -o-ellipsis-lastline; 
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
}

/* 分页指示点容器 */
.casesWrap .moreCasesWrap .pointersWrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 4.5rem;
}

.casesWrap .moreCasesWrap .pointersWrap .pointer {
    width: 0.7rem;
    height: 0.7rem;
    background-color: #bfbfbf;
    border-radius: 0.5rem;
    margin: 0 0.3rem;
}

.casesWrap .moreCasesWrap .pointersWrap .pointerSelected {
    background-color: #000000;
}

.casesWrap .moreCasesWrap .pointersWrap .pointer:hover {
    cursor: pointer;
}

/* ==========================================
   联系我们模块
   ========================================== */

.contactUsWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10rem;
    background-image: url(./assets/image/home/contactUsBackground.png);
    background-size: cover;
}

/* 标题栏 */
.contactUsWrap .head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 0 15%;
}

.contactUsWrap .head .text {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #3d3d3d;
    font-weight: 600;
}

.contactUsWrap .head .dash {
    height: 1px;
    background-color: #3d3d3d;
    flex: 1;
}

/* 内容区域：左侧文字信息 + 右侧地图图片 */
.contactUsWrap .contentWrap {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    width: 100%;
    height: auto;
    margin-top: 4rem;
    padding: 0 15%;
}

/* 左侧文字信息容器 */
.contactUsWrap .contentWrap .contentTextWrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 45%;
    height: auto;
}

.contactUsWrap .contentWrap .contentTextWrap .companyName {
    font-size: 1.6rem;
    font-weight: 600;
}

/* 地址行 */
.contactUsWrap .contentWrap .contentTextWrap .addressWrap {
    display: flex;
    flex-direction: row;
    margin-top: 3rem;
    align-items:center;
}

.contactUsWrap .contentWrap .contentTextWrap .addressWrap .text {
    font-size: 1.1rem;
    margin-left: 1.5rem;
    line-height: 100%;
    color: #3d3d3d;
}

.contactUsWrap .contentWrap .contentTextWrap .addressWrap img {
    height: 1.5rem;
    width: auto;
}

/* 电话行（支持换行） */
.contactUsWrap .contentWrap .contentTextWrap .phoneWrap {
    display: flex;
    flex-direction: row;
    margin-top: 3rem;
    align-items:center;
}

.contactUsWrap .contentWrap .contentTextWrap .phoneWrap .text {
    font-size: 1.1rem;
    margin-left: 1.5rem;
    line-height: 100%;
    color: #3d3d3d;
    white-space: pre-line;   /* 保留换行符 */
}

.contactUsWrap .contentWrap .contentTextWrap .phoneWrap img {
    height: 1.5rem;
    width: auto;
}

/* 邮箱行 */
.contactUsWrap .contentWrap .contentTextWrap .emailWrap {
    display: flex;
    flex-direction: row;
    margin-top: 3rem;
    align-items:center;
}

.contactUsWrap .contentWrap .contentTextWrap .emailWrap .text {
    font-size: 1.1rem;
    margin-left: 1.5rem;
    line-height: 100%;
    color: #3d3d3d;
}

.contactUsWrap .contentWrap .contentTextWrap .emailWrap img {
    height: 1.5rem;
    width: auto;
}

/* 微信公众号二维码区域 */
.contactUsWrap .contentWrap .contentTextWrap .publicWrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-top: 6rem;
}

.contactUsWrap .contentWrap .contentTextWrap .publicWrap .public1Wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contactUsWrap .contentWrap .contentTextWrap .publicWrap .public1Wrap img {
    height: 6.5rem;
    width: auto;
}

.contactUsWrap .contentWrap .contentTextWrap .publicWrap .public1Wrap .text {
    font-size: 1.1rem;
    color: #3d3d3d;
    margin-top: 1.6rem;
}

.contactUsWrap .contentWrap .contentTextWrap .publicWrap .public2Wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 3.5rem;
}

.contactUsWrap .contentWrap .contentTextWrap .publicWrap .public2Wrap img {
    height: 6.5rem;
    width: auto;
}

.contactUsWrap .contentWrap .contentTextWrap .publicWrap .public2Wrap .text {
    font-size: 1.1rem;
    color: #3d3d3d;
    margin-top: 1.6rem;
}

/* 右侧地图图片 */
.contactUsWrap .contentWrap .map {
    width: 50%;
    height: auto;
}

/* ==========================================
   页脚（首页）
   ========================================== */

/* 页脚外层：半透明黑色背景 */
.contactUsWrap .footWrap {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2% 15%;
    width: 100%;
    margin-top: 5rem;
}

/* 链接列 */
.contactUsWrap .footWrap .urlWrap {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.contactUsWrap .footWrap .urlWrap a {
    color: #ffffff;
    text-decoration: none;
}

/* 父级链接：加粗 */
.contactUsWrap .footWrap .urlWrap .parent {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 子级链接：细体 */
.contactUsWrap .footWrap .urlWrap .child {
    font-size: 0.9rem;
    font-weight: 300;
    margin-top: 0.8rem;
}

/* 页脚二维码 */
.contactUsWrap .footWrap .publicWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 9rem;
}

.contactUsWrap .footWrap .publicWrap img {
    width: 6rem;
    height: auto;
}

.contactUsWrap .footWrap .publicWrap .text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 300;
    margin-top: 1rem;
}