/* ===== 响应式工具类（Bootstrap 3 精简版）===== */
/* 全局 reset：消除浏览器默认边距（原站靠 bootstrap.css 的 body{margin:0}） */
html, body { margin: 0 !important; }
/* 仅保留站点模板用到的 hidden/visible 工具类 */

/* ---- 默认（桌面端 >= 992px）---- */
.visible-xs,
.visible-sm,
.visible-md,
.visible-lg { display: none !important; }

/* ---- 小屏手机 (<768px) ---- */
@media (max-width: 767px) {
  .hidden-xs { display: none !important; }
  .visible-xs { display: block !important; }
  table.visible-xs { display: table !important; }
  tr.visible-xs { display: table-row !important; }
  th.visible-xs, td.visible-xs { display: table-cell !important; }
}

/* ---- 平板 (768px - 991px) ---- */
@media (min-width: 768px) and (max-width: 991px) {
  .hidden-sm { display: none !important; }
  .visible-sm { display: block !important; }
  table.visible-sm { display: table !important; }
  tr.visible-sm { display: table-row !important; }
  th.visible-sm, td.visible-sm { display: table-cell !important; }
}

/* ---- 小桌面 (992px - 1199px) ---- */
@media (min-width: 992px) and (max-width: 1199px) {
  .hidden-md { display: none !important; }
  .visible-md { display: block !important; }
  table.visible-md { display: table !important; }
  tr.visible-md { display: table-row !important; }
  th.visible-md, td.visible-md { display: table-cell !important; }
}

/* ---- 大桌面 (>=1200px) ---- */
@media (min-width: 1200px) {
  .hidden-lg { display: none !important; }
  .visible-lg { display: block !important; }
  table.visible-lg { display: table !important; }
  tr.visible-lg { display: table-row !important; }
  th.visible-lg, td.visible-lg { display: table-cell !important; }
}

/* 详情页视频/iframe 响应式适配 */
.xypg-detail-con iframe,
.xypg-detail-con video,
.product-detail-tabcon iframe,
.product-detail-tabcon video {
    max-width: 100%;
    height: auto;
}

/* ===== 分页控件 li 水平排布修复 ===== */
.xypg-pagination li {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}
.xypg-pagination li a {
    display: inline-block;
    font-size: 14px;
    color: #333;
    line-height: 26px;
    border: 1px solid #cbcbcb;
    margin: 0 3px;
    padding: 0 10px;
    background: #fff;
    transition: all .2s;
}
.xypg-pagination li.active a {
    color: #fff;
    border-color: #e60012;
    background: #e60012;
}
.xypg-pagination li a:hover {
    color: #fff;
    border-color: #e60012;
    background: #e60012;
}

/* ===== 底部 footer 背景色：覆盖 EyouCMS 默认深蓝 #121e42，改为原站深灰 #414141 ===== */
.x-footer {
    background: #414141 !important;
}


/* ===== 底部 footer 文字靠左 + 友情链接布局（原站趋同）=====
   注意：这里绝不涉及 .wwll 二维码图标区，图标由 main.css 原站样式控制 */
.x-footer {
    text-align: left;              /* 底部文字靠左，与原站一致 */
}
.x-footer .lxwm_a {
    text-align: left;
}
.x-footer .seo_a {
    text-align: left;
}

/* 友情链接横向排列美化 */
.x-footer .links .con {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 18px;
}
.x-footer .links .con .button {
    flex-shrink: 0;
    color: #fff;
    font-size: 16px;
    line-height: 40px;
}
.x-footer .links dd {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
    line-height: 30px;
}
.x-footer .links dd a {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    text-decoration: none;
    transition: color .2s;
}
.x-footer .links dd a:hover {
    color: #fff;
}

/* 地图 iframe 样式已迁移到下方 lxwm 布局规则 */

/* ===== 图集列表标题链接颜色：继承 h3 白色，去掉下划线 ===== */
.xypg-album-list li h3 a {
    color: #fff;
    text-decoration: none;
}
.xypg-album-list li h3 a:hover {
    color: #fff;
    text-decoration: none;
}


/* ===== 首页 banner 手机端高度自适应（原站：img width:100% 等比缩放）===== */
@media (max-width: 767px) {
    .banner_slide {
        height: auto;
    }
    .banner_slide .swiper-slide {
        height: auto;
    }
    .banner_slide .swiper-slide img {
        width: 100%;
        height: auto;
        display: block;
    }
    .banner_slide .swiper-slide .b1 {
        height: auto;
    }
}

/* ===== 手机端 body 上内边距：给 fixed 顶部导航让位（覆盖 fullPage 的 .fp-enabled body padding:0）===== */
@media (max-width: 768px) {
    body {
        padding-top: 60px !important;
    }
}

/* ===== 在线留言表单样式（inquiry 页）===== */
.xypg-right-title h3 {
    font-size: 22px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: 600;
}
.xypg-right-title h3 span {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    margin-left: 6px;
    text-transform: uppercase;
}
#message-form { padding: 10px 0 30px; }
#message-form .gb-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
#message-form .gb-label {
    width: 90px;
    flex-shrink: 0;
    line-height: 40px;
    font-size: 14px;
    color: #333;
    text-align: right;
    padding-right: 12px;
}
#message-form .red-star { color: #e60012; margin-right: 2px; }
#message-form .gb-input { flex: 1; min-width: 0; }
#message-form .gb-control {
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s;
}
#message-form .gb-control:focus { border-color: #e60012; }
#message-form textarea.gb-textarea {
    height: auto;
    line-height: 1.6;
    padding: 10px 12px;
    resize: none;
}
#message-form .gb-radio { line-height: 40px; }
#message-form .radio-label {
    margin-right: 24px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    font-weight: 400;
}
#message-form .radio-label input { margin-right: 4px; vertical-align: middle; }
#message-form .gb-verify { display: flex; align-items: center; gap: 10px; }
#message-form .gb-verify-input { width: 180px; flex-shrink: 0; }
#message-form .gb-verify img { height: 40px; cursor: pointer; border-radius: 4px; }
#message-form .gb-submit {
    height: 40px;
    padding: 0 40px;
    border: none;
    border-radius: 4px;
    background: #e60012;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s;
}
#message-form .gb-submit:hover { background: #cc0010; }
#message-form .gb-submit-row .gb-input { margin-left: 90px; }

@media (max-width: 768px) {
    #message-form .gb-row { flex-direction: column; }
    #message-form .gb-label {
        width: auto;
        text-align: left;
        line-height: 28px;
        padding-right: 0;
    }
    #message-form .gb-submit-row .gb-input { margin-left: 0; }
    #message-form .gb-verify { flex-wrap: wrap; }
}

/* ===== 联系我们：联系信息块 + 全宽地图布局 ===== */
.xypg-detail-con .lxwm-wrap {
    display: flex;
    gap: 30px;
    align-items: stretch;
}
.xypg-detail-con .lxwm-info {
    width: 340px;
    flex-shrink: 0;
    padding: 10px 0;
}
.xypg-detail-con .lxwm-item {
    display: flex;
    align-items: center;
    line-height: 3em;
    font-size: 16px;
    color: #333;
}
.xypg-detail-con .lxwm-item img {
    width: 22px !important;
    height: 22px !important;
    margin-right: 10px;
    flex-shrink: 0;
    vertical-align: middle;
}
.xypg-detail-con .lxwm-company span {
    font-weight: bold;
}
.xypg-detail-con .lxwm-map {
    flex: 1;
    min-width: 0;
    min-height: 460px;
}
.xypg-detail-con .lxwm-map iframe {
    width: 100%;
    height: 100%;
    min-height: 460px;
    display: block;
}

/* 移动端：信息块与地图上下堆叠，地图保持足够高度 */
@media (max-width: 768px) {
    .xypg-detail-con .lxwm-wrap {
        flex-direction: column;
        gap: 20px;
    }
    .xypg-detail-con .lxwm-info {
        width: 100%;
        padding: 0;
    }
    .xypg-detail-con .lxwm-item {
        line-height: 2.6em;
        font-size: 15px;
    }
    .xypg-detail-con .lxwm-map {
        min-height: 360px;
    }
    .xypg-detail-con .lxwm-map iframe {
        min-height: 360px;
    }
}

/* ===== 产品图集缩略图横向排布（覆盖 owl 单占满样式）===== */
.product-detail-slick .slick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.product-detail-slick a.slick-item {
    display: block;
    width: 86px;
    height: 86px;
    flex-shrink: 0;
    font-size: 0;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
}
.product-detail-slick a.slick-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}
.product-detail-slick a.slick-item.active {
    border-color: #e60012;
}

/* 二维码图标显示 */
.product-detail-item .icon-qrcode {
    cursor: pointer;
}

/* 分享插件位置 */
#xy-share {
    margin-top: 20px;
    text-align: right;
}

/* 移动端图集缩略图 */
@media (max-width: 768px) {
    .product-detail-slick a.slick-item {
        width: 70px;
        height: 70px;
    }
}

/* ===== 产品参数面板 ===== */
.product-attr-panel {
    margin-bottom: 24px;
}
.product-attr-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    padding-left: 12px;
    border-left: 3px solid #e60012;
    margin-bottom: 12px;
}
.product-attr-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #eee;
    background: #fafafa;
}
.product-attr-table tr {
    border-bottom: 1px solid #eee;
}
.product-attr-table tr:last-child {
    border-bottom: none;
}
.product-attr-table th {
    width: 160px;
    padding: 10px 16px;
    text-align: left;
    font-weight: 400;
    font-size: 14px;
    color: #999;
    background: #f4f4f4;
    border-right: 1px solid #eee;
    box-sizing: border-box;
}
.product-attr-table td {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    word-break: break-all;
}

/* 移动端：参数名宽度收窄 */
@media (max-width: 768px) {
    .product-attr-table th {
        width: 96px;
        padding: 8px 10px;
        font-size: 13px;
    }
    .product-attr-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    .product-attr-title {
        font-size: 15px;
    }
}


/* ===== 搜索结果页（v2 优化版）===== */
.xypg-search-result .xypg-search-form {
    margin-bottom: 24px;
    padding: 28px 30px;
    text-align: center;
    background: #f7f8fa;
    border: 1px solid #eceef1;
    border-radius: 6px;
}
.xypg-search-result .xypg-search-form .xypg-search-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.4;
}
.xypg-search-result .xypg-search-form .xypg-search-title span {
    color: #e60012;
    font-weight: 600;
}
.xypg-search-result .xypg-search-form form {
    display: flex;
    max-width: 640px;
    margin: 0 auto;
}
.xypg-search-result .xypg-search-form input[type="text"] {
    flex: 1;
    height: 44px;
    line-height: 44px;
    padding: 0 16px;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 22px 0 0 22px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s;
}
.xypg-search-result .xypg-search-form input[type="text"]:focus {
    border-color: #e60012;
}
.xypg-search-result .xypg-search-form button {
    height: 44px;
    padding: 0 34px;
    border: none;
    border-radius: 0 22px 22px 0;
    background: #e60012;
    color: #fff;
    font-size: 15px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background .2s;
}
.xypg-search-result .xypg-search-form button:hover {
    background: #cc0010;
}

/* 分类标签 */
.xypg-search-result .search-tag {
    margin-bottom: 24px;
    border: none;
    background: #f7f8fa;
    border-radius: 6px;
    padding: 6px;
    overflow: hidden;
}
.xypg-search-result .search-tag a {
    display: inline-block;
    vertical-align: middle;
    line-height: 36px;
    padding: 0 26px;
    font-size: 15px;
    color: #666;
    border-radius: 20px;
    margin-right: 4px;
    transition: all .2s;
}
.xypg-search-result .search-tag a:hover {
    color: #e60012;
}
.xypg-search-result .search-tag a.on {
    color: #fff;
    background: #e60012;
}

/* 文字列表项（新闻/案例搜索结果） */
.xypg-search-result .search-text-item {
    display: block;
    width: auto;
    margin: 0;
    padding: 15px 20px;
    border: none;
    border-bottom: 1px dashed #e8e8e8;
    font-size: 0;
}
.xypg-search-result .search-text-item:last-child {
    border-bottom: none;
}
.xypg-search-result .search-text-item a {
    display: inline-block;
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    max-width: 78%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    transition: color .2s;
}
.xypg-search-result .search-text-item a:hover {
    color: #e60012;
}
.xypg-search-result .search-text-item span {
    float: right;
    font-size: 13px;
    color: #aaa;
    line-height: 1.7;
    vertical-align: middle;
}
.xypg-search-result .no-result {
    display: block;
    width: 100%;
    margin: 0;
    padding: 50px 0;
    text-align: center;
    font-size: 15px;
    color: #bbb;
}

/* 移动端 */
@media (max-width: 768px) {
    .xypg-search-result .xypg-search-form {
        padding: 20px 16px;
    }
    .xypg-search-result .xypg-search-form form {
        max-width: 100%;
    }
    .xypg-search-result .xypg-search-form button {
        padding: 0 22px;
        letter-spacing: 1px;
    }
    .xypg-search-result .search-tag a {
        padding: 0 18px;
        font-size: 14px;
        line-height: 32px;
    }
    .xypg-search-result .search-text-item a {
        max-width: 100%;
        white-space: normal;
    }
    .xypg-search-result .search-text-item span {
        float: none;
        display: block;
        margin-top: 2px;
    }
}
