/* ============================================================
   index-bootstrap.css - 首页 Bootstrap 定制样式
   ============================================================ */

/* ---------- 基础 ---------- */
body {
    background: #f5f7f9;
    color: #3c3c3c;
    font-size: 14px;
    font-family: "Microsoft Yahei", Tahoma, sans-serif;
}
a {
    color: #666;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.fl { float: left; }
.fr { float: right; }
.clear { clear: both; height: 0; line-height: 0; font-size: 0; }

/* 工具色 */
.text-orange { color: #fa7821 !important; }
.bg-orange { background: #fa7821 !important; }

.container {
    max-width: 1200px;
}

/* 全局字体调整 */
.text-muted.small,
small.text-muted {
    font-size: 13px;
}

/* ---------- 页头 ---------- */
.topp {
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

/* 公司描述 */
.logoinfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
    padding: 0 0 0 20px;
    margin-right: auto;
    background: url(/style/images/head_line.png) 8px center no-repeat;
    font-size: 16px;
    color: #4b5563;
}
.logoinfo .bold {
    padding: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}
.logoinfo p {
    margin: 0;
    line-height: 1.5;
}
.logoinfo span {
    color: #c01f31;
}

/* 搜索框 */
.top-r h2 {
    padding: 4px 0 0 28px;
    background: url(/style/images/top_icon1.png) no-repeat left 6px;
}
.top-r .input-group {
    width: 290px;
}
.top-r .form-control {
    border-color: #ced4da;
    font-size: 13px;
    padding: 4px 12px;
    height: 34px;
}
.top-r .form-control:focus {
    border-color: #fa7821;
    box-shadow: 0 0 0 0.2rem rgba(250, 120, 33, 0.15);
}
.btn-search-submit {
    background: linear-gradient(135deg, #fa7821, #ff8c42);
    border: 1px solid #fa7821;
    color: #fff;
    padding: 4px 12px;
    transition: all 0.2s;
}
.btn-search-submit:hover {
    background: linear-gradient(135deg, #e0681a, #fa7821);
    color: #fff;
}

/* ---------- 导航栏 ---------- */
.navbar-custom {
    background: #078a60;
    border-top: 1px solid #edf0f2;
    border-bottom: 1px solid #edf0f2;
}
.navbar-custom .nav-link {
    color: #fff !important;
    font-size: 15px;
    padding: 0 15px !important;
    line-height: 50px;
    transition: background 0.2s;
    white-space: nowrap;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    background: #fa7821;
    color: #fff !important;
}
.navbar-custom .nav-link span {
    display: inline-block;
}
@media (max-width: 1199.98px) {
    .navbar-custom .nav-link {
        font-size: 12px;
        padding: 0 6px !important;
    }
    /* iPad 横屏优化 */
    .top-c h1 {
        flex-shrink: 0;
    }
    .top-c h1 img {
        height: 28px !important;
    }
    .top-c .logoinfo .bold {
        font-size: 13px;
        padding-bottom: 2px;
    }
    .top-c .logoinfo p {
        font-size: 11px;
    }
    .top-c .logoinfo {
        font-size: 11px;
        min-height: 36px;
        padding: 0 0 0 10px;
    }
    .top-c .logoinfo span {
        display: none;
    }
    .top-r h2 {
        font-size: 13px !important;
        padding-left: 20px;
        background-size: 14px;
    }
    .top-r h2 span {
        font-size: 14px !important;
    }
    .top-r .input-group {
        width: 210px;
    }
    .header .container {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 6px 12px !important;
    }
    .carousel-img {
        height: 280px;
    }
    .pro-img-col .pro-cover-img {
        height: 200px;
        object-fit: cover;
    }
    .pro-desc-col {
        min-height: auto;
        padding: 8px 12px !important;
    }
    .pro-desc-col h3 {
        font-size: 14px;
        margin-bottom: 4px !important;
    }
    .pro-desc-col .text-muted.small {
        font-size: 12px;
        line-height: 1.4;
    }
    .pro-thumb-txt {
        font-size: 12px;
        line-height: 28px;
        height: 28px;
    }
    .pro-sort-desc {
        font-size: 12px;
        line-height: 1.4;
    }
    .pro-sort-desc a {
        font-size: 14px;
    }
    .product-img {
        height: 140px;
    }
    .in_pro .col-lg-9 {
        padding-left: 12px;
    }
    .info-card {
        padding: 12px !important;
    }
}
.navbar-custom .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}
.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 导航栏下拉 Mega Menu */
.dropdown-mega .dropdown-menu {
    width: 560px;
    padding: 0;
    border: none;
    border-radius: 0 0 8px 8px;
    background: #078a60;
    margin-top: 0;
}
.mega-left {
    flex: 0 0 280px;
    width: 280px;
    padding: 18px 0 0 16px;
}
.mega-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: normal;
    background: url(../images/xtd_bor1.gif) repeat-x left bottom;
}
.mega-title a {
    display: inline-block;
    line-height: 33px;
    padding: 0;
    border-bottom: 2px solid #fff;
    color: #fff;
    text-decoration: none;
}
.mega-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
}
.mega-list li {
    line-height: 36px;
}
.mega-list li a {
    display: block;
    height: 36px;
    line-height: 36px;
    padding: 0 8px 0 10px;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mega-list li a:hover {
    text-decoration: underline;
}
.mega-right {
    position: relative;
    flex: 0 0 240px;
    width: 240px;
    height: 160px;
    margin: 10px 16px 0 auto;
    overflow: hidden;
}
.mega-right > a:first-child {
    display: block;
    width: 240px;
    height: 160px;
    overflow: hidden;
}
.mega-right > a:first-child img {
    display: block;
    width: 240px;
    height: 160px;
    object-fit: cover;
}
.mega-img-txt {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 240px;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* ---------- 轮播图 ---------- */
.fullSlide {
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    margin-bottom: 28px;
}
.carousel-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.fullSlide:hover .carousel-img {
    transform: scale(1.02);
}
.fullSlide .carousel-indicators button {
    width: 42px;
    height: 11px;
    background: #078a60;
    opacity: 0.8;
    border: 0;
}
.fullSlide .carousel-indicators .active {
    background: #fa7821;
    opacity: 1;
}
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    opacity: 0;
    transition: opacity 0.3s;
}
.fullSlide:hover .carousel-control-prev,
.fullSlide:hover .carousel-control-next {
    opacity: 1;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-size: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

/* ---------- 产品推荐区域 ---------- */
.pro-section {
    background: transparent;
}
.pro-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.06);
    background: #fff;
}
.pro-card-alt {
    /* 交替样式：pro-c3 */
}
.pro-desc-col {
    background: #eee;
    min-height: 393px;
}
.pro-desc-col-alt {
    /* pro-c2 的描述列背景 */
}
.pro-img-col {
    position: relative;
    overflow: hidden;
}
.pro-img-col .pro-cover-img {
    width: 100%;
    height: 393px;
    object-fit: cover;
    display: block;
}
.pro-sort-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 40px 24px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 2;
}
.pro-sort-desc {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.8;
}
.pro-sort-desc a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}
.pro-sort-desc a:hover {
    text-decoration: underline;
    color: #fa7821;
}
.pro-thumb-img {
    aspect-ratio: 230 / 176;
    object-fit: cover;
    border-radius: 4px;
}
.pro-thumb-txt {
    height: 36px;
    line-height: 36px;
    font-size: 14px;
}
.pro-thumb-txt:hover {
    color: #fa7821 !important;
}

/* ---------- 产品中心 Tab ---------- */
.in_pro {
    width: 100%;
    padding: 40px 0 50px !important;
    background: #f7f7f7;
}

/* 左侧分类导航 */
.cate {
    border-radius: 10px;
    overflow: hidden;
}
.cate-tit {
    background: linear-gradient(to top, #ea3516, #ee5e45);
}
.procate li > a {
    display: block;
    line-height: 42px;
    border-bottom: 1px dotted #ddd;
    color: #333;
    background: linear-gradient(to left, #fff, #f5f5f5);
}
.procate li > a:hover {
    color: #fff;
    background: rgba(240, 89, 45, 0.9);
}
.cate .tel em {
    color: #ea3516;
}

/* 右侧产品区 */
.box {
    border-radius: 10px;
    overflow: hidden;
}
.tab-nav {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    background: linear-gradient(to top, #fff, #eee);
    border: 1px solid #eee;
    border-top: 0;
}
.tab-nav .nav-link {
    color: #333 !important;
    font-size: 16px;
    padding: 0 22px;
    line-height: 44px;
    border: none !important;
    border-radius: 0 !important;
    background: linear-gradient(to top, #fff, #ccc);
}
.tab-nav .nav-link.active {
    color: #fff !important;
    background: linear-gradient(to top, #ea3516, #ee5e45) !important;
}
.tab-nav .more-link {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #fa7821, #ff8c42);
    padding: 4px 14px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}
.tab-nav .more-link:hover {
    background: linear-gradient(135deg, #e0681a, #fa7821);
    color: #fff;
    box-shadow: 0 2px 8px rgba(250, 120, 33, 0.3);
}

/* 产品卡片 */
.product-item {
    background: linear-gradient(to bottom, #fff, #eee);
    box-shadow: 0 0 1px #ccc;
}
.product-img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-item:hover .product-img {
    transform: scale(1.05);
}
.product-item a:hover {
    color: #ea3516 !important;
}
.btn-product {
    line-height: 30px;
    padding: 0 14px;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(to top, #ea3516, #ee5e45);
    border: none;
    border-radius: 2px;
}
.btn-product:hover {
    color: #fff !important;
    opacity: 0.85;
}
.btn-product-outline {
    line-height: 30px;
    padding: 0 14px;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(to top, #f0592d, #f37f5d);
    border: none;
    border-radius: 2px;
}
.btn-product-outline:hover {
    color: #fff !important;
    opacity: 0.85;
}

/* ---------- 新闻中心 ---------- */
.information {
    background: transparent;
}
.info-card {
    border-radius: 16px;
    border: 1px solid #e7ebef;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: 0 12px 28px rgba(16, 33, 52, 0.06);
}
.info-card .more {
    background: linear-gradient(135deg, #fa7821, #ff9860);
    font-weight: normal;
    font-size: 12px;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 999px;
}
.info-highlight {
    background: linear-gradient(135deg, #fff7f1, #fffdfb);
}
.info-dl-top {
    background: #fafbfc;
}
.info-date {
    width: 54px;
    padding: 6px 4px;
    background: #078a60;
    color: #fff;
    border-radius: 8px;
    line-height: 1.2;
}
.case-img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.case-list li {
    padding-left: 18px;
    background: url(/style/images/dynamic_icon3.gif) no-repeat left center;
}

/* ---------- Footer ---------- */
.foot-c {
    margin-top: 22px;
    padding: 20px 0 0 0;
    background: linear-gradient(135deg, #0b7b58 0%, #0a5a46 100%);
    font-size: 15px;
}
.foot-c .small {
    font-size: 15px;
}
.foot-l h2 {
    padding: 0 0 13px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
}
.foot-l p {
    color: #fff;
}
.foot-l p a {
    font-weight: bold;
}
.foot-r {
    color: #fff;
    display: inline-block;
    text-align: left;
}
.foot-r p a:hover {
    opacity: 0.8;
}

/* ---------- 友情链接 ---------- */
.link {
    overflow: hidden;
    background: #1f2937;
}
.link h2 {
    line-height: 40px;
}
.link p {
    font-size: 14px;
    line-height: 40px;
}
.link p a:hover {
    color: #ffb07e !important;
    text-decoration: none;
}

/* ---------- 侧边客服悬浮栏 ---------- */
.main-im {
    position: fixed;
    right: 14px;
    top: 230px;
    z-index: 100;
    width: 110px;
    height: 272px;
}
.main-im .qq-a {
    display: block;
    width: 106px;
    height: 116px;
    font-size: 14px;
    color: #0484cd;
    text-align: center;
    position: relative;
}
.main-im .qq-a span {
    position: absolute;
    left: 10px;
    bottom: 5px;
    width: 90px;
}
.main-im .qq-hover-c {
    position: absolute;
    left: 18px;
    top: 10px;
    z-index: 9;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 35px;
}
.main-im .qq-container {
    position: absolute;
    z-index: 99;
    width: 109px;
    height: 118px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px solid #ddd;
    background: url(/style/images/qq-icon-bg.png) no-repeat center 8px;
}
.main-im .img-qq {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    max-width: 70px;
    transition: all 0.5s;
}
.main-im .im-qq:hover .img-qq {
    left: 1px;
    top: 8px;
}
.main-im .im_main {
    border: 1px solid #ddd;
    border-radius: 14px;
    background: rgba(249, 250, 251, 0.98);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(8px);
}
.main-im .im_main .im-tel {
    width: 109px;
    padding-top: 3px;
    text-align: center;
    color: #000;
    border-bottom: 1px solid #ddd;
}
.main-im .im_main .im-tel div {
    margin-top: 11px;
    font-size: 12px;
    font-weight: bold;
}
.main-im .im_main .im-tel .tel-num,
.main-im .im_main .im-tel .tel-num a,
.main-im .im_main .im-tel .tel-num2 a {
    color: #f30;
    font-weight: bold;
}
.main-im .im_main .im-footer {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
}
.main-im .im_main .weixing-container {
    width: 55px;
    height: 47px;
    border-right: 1px solid #ddd;
    border-bottom-left-radius: 10px;
    background: #f5f5f5 url(/style/images/weixing-icon.png) no-repeat center center;
    position: relative;
    cursor: pointer;
}
.main-im .im_main .weixing-show {
    position: absolute;
    left: -125px;
    top: -109px;
    display: none;
    width: 112px;
    height: 155px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}
.main-im .im_main .weixing-show .weixing-sanjiao {
    position: absolute;
    left: 112px;
    top: 124px;
    z-index: 2;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px;
    border-color: transparent transparent transparent #fff;
}
.main-im .im_main .weixing-show .weixing-sanjiao-big {
    position: absolute;
    left: 112px;
    top: 122px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px;
    border-color: transparent transparent transparent #ddd;
}
.main-im .im_main .weixing-show .weixing-ma {
    width: 104px;
    height: 103px;
    padding-left: 5px;
    padding-top: 5px;
}
.main-im .im_main .weixing-show .weixing-txt {
    position: absolute;
    top: 110px;
    left: 7px;
    width: 100px;
    text-align: center;
}
.main-im .im_main .go-top {
    width: 50px;
    height: 47px;
    border-bottom-right-radius: 10px;
    background: #f5f5f5 url(/style/images/toTop-icon.png) no-repeat center center;
}
.main-im .im_main .go-top a {
    display: block;
    width: 52px;
    height: 47px;
}
.main-im .close-im {
    position: absolute;
    right: 10px;
    top: -12px;
    z-index: 100;
    width: 24px;
    height: 24px;
}
.main-im .close-im a {
    display: block;
    width: 24px;
    height: 24px;
    background: url(/style/images/close_im.png) no-repeat left top;
}
.main-im .open-im {
    display: none;
    width: 40px;
    height: 133px;
    margin-left: 68px;
    cursor: pointer;
    background: url(/style/images/open_im.png) no-repeat left top;
}
.main-im .xiaoq img {
    margin-right: 5px;
    vertical-align: bottom;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
    .fullSlide {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .navbar-custom .nav-link {
        line-height: 40px;
        padding: 0 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .dropdown-mega .dropdown-menu {
        width: 100%;
        position: static !important;
    }
    .mega-left {
        flex: 1 1 auto;
        width: 100%;
    }
    .mega-right {
        display: none;
    }
    .mega-list {
        grid-template-columns: 1fr;
    }
    .in_pro .row {
        flex-direction: column;
    }
    .information .row .col-lg-5 {
        margin-top: 16px;
    }
    .foot-c .footer .row .col-lg-5 {
        margin-top: 16px;
        text-align: left !important;
    }
    /* 产品卡片堆叠 */
    .pro-img-col,
    .pro-desc-col {
        flex: 0 0 100%;
        width: 100%;
    }
    .pro-img-col .pro-cover-img {
        height: auto;
        max-height: 300px;
    }
    .pro-desc-col {
        min-height: auto;
        padding: 16px !important;
    }
    .pro-card .row {
        flex-direction: column;
    }
    .pro-card .row.flex-lg-row-reverse {
        flex-direction: column !important;
    }
    /* 平板间距优化 */
    .header .container {
        padding: 12px;
    }
    .pro-section {
        padding: 12px 0;
    }
    .information {
        padding: 12px 0;
    }
    /* 手机端样式 */
    .carousel-img {
        height: 280px;
    }
    .product-img {
        height: 160px;
    }
    .main-im {
        top: 157px !important;
    }
    .logoinfo {
        display: none;
    }
    .top-r {
        text-align: left !important;
    }
    .top-r .input-group {
        width: 200px;
    }
    .tab-nav {
        flex-wrap: wrap;
        height: auto;
    }
    .tab-nav .more-link {
        font-size: 11px;
        padding: 3px 10px;
        right: 8px;
    }
}
@media (max-width: 576px) {
    .product-item .card-body {
        padding: 8px;
    }
    .tab-nav .nav-link {
        font-size: 13px;
        padding: 0 12px;
    }
}

/* 手机端按钮 */
.btn-orange {
    background: linear-gradient(135deg, #fa7821, #ff8c42);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-orange:hover {
    background: linear-gradient(135deg, #e0681a, #fa7821);
    color: #fff;
}

/* iPad Air 及平板竖屏列宽保护（768-991px保持桌面布局） */
@media (min-width: 768px) and (max-width: 991.98px) {
    .pro-img-col {
        flex: 0 0 41.666667% !important;
        max-width: 41.666667% !important;
        width: 41.666667% !important;
    }
    .pro-desc-col {
        flex: 0 0 58.333333% !important;
        max-width: 58.333333% !important;
        width: 58.333333% !important;
    }
    .in_pro .col-lg-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
    .in_pro .col-lg-9 {
        flex: 0 0 75% !important;
        max-width: 75% !important;
    }
    .information .col-lg-7 {
        flex: 0 0 58.333333% !important;
        max-width: 58.333333% !important;
    }
    .information .col-lg-5 {
        flex: 0 0 41.666667% !important;
        max-width: 41.666667% !important;
    }
}
