
@charset "UTF-8";


/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    user-select: none; /* 防复制粘*/
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* 顶部栏样*/
#div1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.logo-text {
    font-family: '黑体', Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    display: inline-block;
    transform: scaleX(1.5);
    transform-origin: left;
}

/* ================== 语言切换：电脑同行，手机下拉框（向下展开，显示全部语言================== */
.language-switch {
    display: flex;
    gap: 5px;
}
.language-switch button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 4px;
    white-space: nowrap;
}
.language-switch button:hover {
    color: #007BFF;
}

/* 手机端：下拉菜单 向下展开，显示所有语言 */
@media (max-width: 768px) {
    .language-switch {
        position: relative;
        display: inline-block;
    }
    .language-switch::before {
        content: "语言Language";
        padding: 5px 10px;
        background: #f5f5f5;
        border-radius: 4px;
        cursor: pointer;
        display: block;
    }
    /* 默认隐藏所有按*/
    .language-switch button {
        display: none !important;
    }

 /* hover 时显示容器 + 样式 */
    .language-switch:hover button {
        display: block !important;
        background: #fff !important;
        border: 1px solid #ddd !important;
        width: 130px !important;
        padding: 6px !important;
        text-align: left !important;
        border-bottom: none;
    }

    /* 最后一个按钮保留底部边框 */
    .language-switch:hover button:last-child {
        border-bottom: 1px solid #ddd !important;
    }

    /* 下拉容器：绝对定位，所有按钮竖排 */
    .language-switch:hover {
        display: inline-block;
    }
    .language-switch:hover::after {
        content: "";
        display: block;
        position: absolute;
        top: 100%;
        right: 0;
        width: 180px;
        background: #fff;
        z-index: 9999;
    }

    /* 让所有按钮在下拉容器内竖排，不重叠 ✅ */
    .language-switch:hover button {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        z-index: 9999 !important;
        margin: 0 !important;
    }
}



/* 导航栏样*/
#div2 {
    background-color: #0f38c0;
    width: 100%;
}

#div2 .container {
    display: flex;
    align-items: center;
}

#div2 a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
	display: inline-block;
    white-space: nowrap; /* 禁止文字自动换行 */
}

#div2 a:hover {
    background-color: #141268;
}

/* ======================
   手机端自适应（重点）
====================== */
@media (max-width: 768px) {
    #div2 a {
        padding: 10px 6px; /* 手机上自动缩小间距 */
        font-size: 14px;   /* 自动缩小字体 */
    }
}

/* 横幅样式 */
#div3 img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文字介绍样式 */
#div4, #div12 {
    background-color: #66CCFF;
    color: #000000;
    padding: 10px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
}

#div4 p, #div12 p {
    margin: 0;
}

/* 公司介绍样式 */
#div5 {
    background-color: #f0f0f0;
    padding: 10px;
    text-indent: 2em; 
}
#div5 p {
    margin: 0;
}

/* 大类介绍样式 */
#div6 {
    text-align: center;
}

/* ================== 产品项：文字上、图片下 + 文字加粗 ================== */
.product-category {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.product-item {
    width: 24%;
    background: #ffffff;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
    text-align: center;
}
/* 文字移到上方并加*/
.product-item p {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: bold;
}
.product-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
/* 手机端：2张一*/
@media (max-width: 768px) {
    .product-item {
        width: 48%;
    }
}

/* 分类产品介绍样式 */
.category-product {
    margin-top: 30px;
}
.category-product h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1px;
	
}

.more-btn {
    text-decoration: none;
    background-color: transparent;
    border: 1px solid #666;
    color: #666;
    font-size: 0.6em;
    padding: 2px 8px;
    border-radius: 20px;
	/* 核心：按钮永远不换行 */
  white-space: nowrap;
  flex-shrink: 0;
}
.more-btn:hover {
    border-color: #333;
    color: #333;
    background-color: #ccc; 
}

/* ================== 产品介绍4栏：边距 + 留白收窄 ================== */
.product-intro {
    background-color: #c2e8c2;
    padding: 3px; /* 收窄外间*/
    display: flex;
    flex-wrap: wrap;
    gap: 0.5%; /* 收窄留白 */
    font-size: 11px;
}
.product-intro p {
    width: 24.5%; /* 轻微调宽，更紧凑 */
    padding: 2px; /* 收窄内边*/
    margin: 0 0 4px 0;
    background: rgba(255,255,255,0.6);
    border-radius: 6px;
    min-height: 80px; /* 收窄高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
	 /* ========= 修复手机不换行、溢出核心代码 ========= */
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    overflow: hidden;
}
/* 手机�?�?*/
@media (max-width: 768px) {
    .product-intro p {
        width: 49%;
    }
}

.product-intro2 {
    background-color: #c2e8c2;
    padding: 10px;
    font-size: 11px;
	border-radius: 0px; /* 小圆倒角，数值越小角越尖，越大越圆 */
}
.product-intro2 p {
    width: 100%;
    margin: 2px; 
    padding: 2px; 
    text-align: left;
}


/* 大字标题样式 */
.intro-big-font {
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    background: none !important;
    min-height: auto !important;
	
	 /* ========= 修复：手机英文不换行、溢出屏幕 ========= */
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
}


/* 大字标题样式 */
.sys-big-font {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background: none !important;
    min-height: auto !important;
	
	 /* ========= 修复：手机英文不换行、溢出屏幕 ========= */
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
}



/* ================== 4组独立：上文+ 下图 ================== */
.product-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1%;
    margin-top: 10px;
    /* 核心：让子元素可以居中 */
    justify-content: flex-start;
}

/* 默认 4 张图片时：每张 24% */
.product-item-group {
    width: 24%;
    text-align: center;
    margin-bottom: 15px;
    padding-top: 8px;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 12px;

    box-sizing: border-box;
    overflow: hidden;
}

/* ============== 1 张图片：居中 + 宽度 48% ============== */
.product-group:has(.product-item-group:only-child) {
    justify-content: center;
}
.product-group:has(.product-item-group:only-child) .product-item-group {
    width: 48%;
}

/* ============== 2 张图片：居中 + 宽度 48% ============== */
.product-group:has(.product-item-group:nth-child(2):last-child) {
    justify-content: center;
}
.product-group:has(.product-item-group:nth-child(2):last-child) .product-item-group {
    width: 48%;
}

.product-item-group .intro-big-font {
    margin-top: 0;
    margin-bottom: 8px;
}
.product-item-group img {
    width: 100%;
    border-radius: 6px;
    object-fit: contain;
}

/* ================== 移动端适配 ================== */
@media (max-width: 768px) {
    /* 4张图：2张一行 */
    .product-item-group {
        width: 49%;
    }

    /* 2张图：1张一行 + 居中 */
    .product-group:has(.product-item-group:nth-child(2):last-child) .product-item-group {
        width: 100%;
    }

    /* 1张图：全屏 + 居中 */
    .product-group:has(.product-item-group:only-child) .product-item-group {
        width: 100%;
    }
}

/* ================== 图片布局 ================== */
.product-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1%;
    margin-top: 5px;
	justify-content: center; /* 让所有图片盒子 水平居中对齐 */
}
.product-images a {
    width: 24%;
}
.product-images img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    border-radius: 6px;
}
@media (max-width: 768px) {
    .product-images a {
        width: 49%;
    }
}

.product-images img:hover {
    transform: none; 
}



/* ================== 系统图片布局 ================== */
.sys-product-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1%;
    margin-top: 5px;
    justify-content: center;
}
.sys-product-images a {
    width: 15.83%; /* 电脑端一行6张 */
    display: block; /* 关键修复：保证a标签正常占宽 */
}
.sys-product-images img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    border-radius: 6px;
}

.sys-product-images img:hover {
    transform: none; 
}

/* 中等屏幕：一行3张 */
@media (max-width: 992px) {
    .sys-product-images a {
        width: 32% !important; /* 强制生效 */
    }
}

/* 小屏幕（手机）：一行2张 */
@media (max-width: 576px) {
    .sys-product-images a {
        width: 49% !important; /* 强制生效 */
    }
}





/* 分页 */
.pagination {
    text-align: center;
    margin-top: 40px; 
    margin-bottom: 20px; 
}
.pagination a {
    color: #000;
    text-decoration: none;
}
.pagination a:hover {
    color: #007BFF;
}

/* 页脚 */
footer {
    background-color: #0f38c0;
    color: white;
    padding: 20px;
    text-align: center;
}
footer img {
    width: 100px;
    height: auto;
    margin-top: 10px;
}

.friend-links {
    text-align: center;
    padding: 10px;
}
.friend-links a {
    text-decoration: none; /* 默认无下划线 */
    color: #000;
}
.friend-links a:hover,
.friend-links a:active {
    text-decoration: underline; /* 鼠标悬停/点击显示下划线 */
}


.page-title {
    text-align: center;
}

/* 手机端自动缩小字体 */
@media (max-width: 768px) {
    h1.page-title {
        font-size: 20px !important;
    }
    h2.page-title {
        font-size: 16px !important;
    }
}


.product-title-row { display: flex; justify-content: space-between; margin-top: 20px; }
.product-title-col { width: 95%; align-items: center; line-height: 2.0; /* 文字行间距变大！ */}
.product-title-link { overflow: auto; color: #000; text-decoration: none; padding-left: 20px; display: block; margin-bottom: 10px; clear: both; }
.product-title-link::before { content: '>>'; float: left; margin-left: -20px; margin-right: 5px; }
.product-title-link:hover { text-decoration: underline; }
.knowledge-link { position: relative; color: #000; text-decoration: none; padding-left: 20px; margin-bottom: 5px; display: block; }
.knowledge-link::before { content: '>>'; position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.knowledge-link:hover { text-decoration: underline; }
.contact-info { padding-left: 20px; }
.article-table { width: 100%; border-collapse: collapse; }
.article-table td { border: 1px solid #ccc; padding: 4px; text-align: left;  vertical-align: top; /* �ؼ��������ݶ������� */}
.article-table[data-columns="6"] td { width: 16.66%; }
.article-table[data-columns="5"] td { width: 20%; }
.article-table[data-columns="4"] td { width: 25%; }
.article-table[data-columns="3"] td { width: 33.33%; }
.article-table[data-columns="2"] td { width: 50%; }
.article-table[data-columns="1"] td { width: 100%; }
@media (max-width: 768px) {
    table.article-table td { 
        width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    /* 手机端去掉所有 <br> 换行效果 */
    .article-table td br {
        display: none !important;
    }
}

.article-images { text-align: center; margin-top: 20px; }
.article-images img { width: auto; height: auto; margin: 5px; }



/* 电脑端：4张同行 */
.repair-images {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 20px;
	gap: 10px; 
  width: 100%; /* 容器全屏 */
}

/*给 a 标签设置间距，而不是 img */
.repair-images a {
  margin: 5px;
	max-width: 22%; 
}

.repair-images img {
  width: 100%;
  height: auto;
  display: block; /* 消除图片底部间隙 */
}

/* ================================== */
/* 手机端：2张一行 + 图片缩小显示 */
/* ================================== */
@media (max-width: 768px) {
  .repair-images {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 5px;
  }

  /* 手机端一行 2 张 */
  .repair-images a {
    width: calc(50% - 10px); /* 👈 保证2张一行 */
    max-width: unset;
    margin: 0;
  }

  /* 图片自动缩小，不拉伸 */
  .repair-images img {
    width: 94%; /* 👈 手机端图片再缩小一点，更美观 */
    height: auto;
    margin: 0 auto;
  }
}






.article-images-height {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  column-gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

/* 强制所有图片 同一高度 + 不挤压 + 保持比例 */
.article-images-height img {
  width: auto !important;
  height: 280px !important; /* 4张图统一高度 */
  object-fit: contain !important;
  flex-shrink: 1 !important;
  min-width: 0 !important;
  margin: 0;
  display: block;
	 border-radius: 6px !important; /* 统一圆角 */
}

/* 自动匹配：1/2/3/4张图 自动对应高度 */
.article-images-height.one-image img {
  height: 380px !important;
}
.article-images-height.two-images img {
  height: 360px !important;
}
.article-images-height.three-images img {
  height: 320px !important;
}
.article-images-height.four-images img {
  height: 280px !important; /* 第4张图强制缩到这个高度*/
}


.article-images-height.big-single-image {
  justify-content: center !important; /* 这行让容器居中 */
}
.article-images-height.big-single-image img {
  height: 550px !important;
}


/* 手机端 */
@media (max-width: 768px) {
  .article-images-height {
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    width: 100% !important;
  }
  .article-images-height a {
    display: block !important;
    margin: 0 !important;
  }

  /* 竖图：2张/行 */
  .article-images-height img.portrait {
    width: 100% !important;
    height: auto !important;
  }
  .article-images-height a:has(img.portrait) {
    width: calc(50% - 4px) !important;
  }

  /* 横图：1张/行 */
  .article-images-height img.landscape {
    width: 100% !important;
    height: auto !important;
  }
  .article-images-height a:has(img.landscape) {
    width: 100% !important;
  }

  /* 全局统一 */
  .article-images-height img {
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
	  border-radius: 4px !important; /* 手机端小圆角*/
  }
}