/* ==================== 基础设定 ==================== */
:root {
    --primary: #1565c0;
    --primary-dark: #0d47a1;
    --primary-light: #1e88e5;
    --accent: #ff9800;
    --text-dark: #333;
    --text-gray: #666;
    --text-light: #999;
    --bg-gray: #f5f7fa;
    --border: #e0e6ed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a:hover, a:focus {
    text-decoration: none;
    outline: none;
}

button:focus,
button:active,
.btn:focus,
.btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* ==================== 导航栏 ==================== */
.navbar-custom {
    background: #fff;
    border: none;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    margin-bottom: 0;
    border-radius: 0;
}

.navbar-custom .navbar-brand {
    height: 70px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    width: 120px;
    height: 40px;
    object-fit: contain;
}

@media (max-width: 767px) {
    .navbar-brand img {
        width: 130px;
        height: 43px;
    }
}

.navbar-custom .navbar-brand i {
    margin-right: 6px;
    color: var(--accent);
}

.navbar-custom .nav > li > a {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 40px;
    padding: 15px 20px;
    transition: all .25s;
}

.navbar-custom .nav > li > a:hover,
.navbar-custom .nav > li > a:focus {
    color: var(--primary);
    background: transparent;
}

.navbar-custom .nav > li > a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary);
    margin-top: -3px;
    transition: width .25s;
}

.navbar-custom .nav > li > a:hover::after,
.navbar-custom .nav > li.active > a::after {
    width: 100%;
}

.navbar-custom .nav > li.active > a {
    color: var(--primary);
    background: transparent;
}

.navbar-custom .nav > li.active > a:hover,
.navbar-custom .nav > li.active > a:focus {
    color: var(--primary);
    background: transparent;
}

/* ========== 多语言切换下拉 ========== */
.lang-switch {
    position: relative;
}

.lang-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* 禁用导航下划线伪元素，防止 hover 时 width:100% 撑宽导致换行 */
.lang-toggle::after,
.navbar-custom .lang-switch > a::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.lang-toggle .fa-globe {
    margin-right: 0;
}

.lang-arrow {
    font-size: 12px;
    opacity: .7;
    transition: transform .25s;
}

/* 桌面端：hover 显示下拉 */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 170px;
    background: #fff;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    border: 1px solid var(--border);
    z-index: 999;
    /* 默认隐藏 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all .22s ease;
}

.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 22px;
    border: 6px solid transparent;
    border-bottom-color: #fff;
    z-index: 1;
}

.lang-dropdown li {
    display: block;
}

.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-dark);
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}

.lang-dropdown li a:hover {
    background: #f3f8ff;
    color: var(--primary);
}

.lang-dropdown li a i {
    color: var(--primary);
    font-size: 14px;
}

.lang-dropdown li.active a {
    background: #eaf3ff;
    color: var(--primary);
    font-weight: 600;
}

/* 桌面端 hover 触发展开 */
@media (min-width: 768px) {
    .lang-switch:hover .lang-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .lang-switch:hover .lang-arrow {
        transform: rotate(180deg);
    }
}

/* 移动端：点击展开类 .open */
@media (max-width: 767px) {
    .lang-dropdown {
        position: static;
        float: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border);
        border-radius: 0;
        padding: 0;
        background: #fafbfc;
        /* 默认用 max-height 折叠 */
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .lang-dropdown::before { display: none; }
    .lang-switch.open .lang-dropdown {
        max-height: 500px;
    }
    .lang-switch.open .lang-arrow {
        transform: rotate(180deg);
    }
    .lang-dropdown li a {
        padding: 10px 40px;
    }
}

.navbar-custom .lang-switch > a {
    color: var(--primary);
    font-weight: 600;
}

.navbar-custom .navbar-toggle {
    margin-top: 18px;
    border-color: var(--primary);
    outline: none !important;
    box-shadow: none !important;
}
.navbar-custom .navbar-toggle:focus,
.navbar-custom .navbar-toggle:active {
    background: transparent;
    outline: none !important;
    box-shadow: none !important;
}

/* 去掉导航栏所有点击/聚焦时的默认边框（包括移动端折叠按钮） */
.navbar-custom .nav > li > a,
.navbar-custom .nav > li > a:focus,
.navbar-custom .nav > li > a:active,
.navbar-custom .nav > li > a:hover,
.navbar-custom .lang-switch > a,
.navbar-custom .lang-switch > a:focus,
.navbar-custom .lang-switch > a:active,
.navbar-custom .lang-toggle,
.navbar-custom .lang-toggle:focus,
.navbar-custom .lang-toggle:active {
    outline: none !important;
    box-shadow: none !important;
}

.navbar-custom .navbar-toggle .icon-bar {
    background: var(--primary);
}

@media (max-width: 767px) {
    /* 导航栏头部始终在最上 */
    .navbar-custom .navbar-header {
        position: relative;
        z-index: 9999;
        background: #fff;
    }

    /* 全屏覆盖菜单 */
    .navbar-custom .navbar-collapse {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh !important;
        max-height: 100vh !important;
        background: #fff;
        z-index: 9990;
        padding-top: 80px;
        padding-bottom: 30px;
        overflow-y: auto;
        border: none;
        box-shadow: 0 0 40px rgba(0, 0, 0, .15);
    }

    .navbar-custom .navbar-collapse .nav {
        margin: 0;
    }

    .navbar-custom .navbar-collapse .nav > li {
        float: none;
        border-bottom: 1px solid var(--border);
    }

    .navbar-custom .navbar-collapse .nav > li > a {
        line-height: 40px;
        padding: 14px 24px;
        font-size: 16px;
    }

    /* 手机端菜单不要下划线 */
    .navbar-custom .navbar-collapse .nav > li > a::after,
    .navbar-custom .navbar-collapse .nav > li.active > a::after {
        display: none !important;
    }
}

/* ==================== Banner 轮播 ==================== */
#banner {
    margin-top: 70px;
}

#bannerCarousel .item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

#bannerCarousel .carousel-control {
    background: none;
    opacity: .8;
    width: 50px;
    font-size: 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
    z-index: 10;
}

#bannerCarousel .carousel-control:hover {
    opacity: 1;
}

#bannerCarousel .carousel-control .fa {
    color: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    text-align: center;
}

.carousel-caption {
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(13, 71, 161, .45);
    text-shadow: none;
}

.carousel-caption h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.carousel-caption p {
    font-size: 18px;
    opacity: .9;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators li {
    width: 10px;
    height: 4px;
    margin: 0 3px;
    border: none;
    background: rgba(255, 255, 255, .4);
    border-radius: 2px;
    transition: width .3s ease;
}

.carousel-indicators .active {
    width: 15px;
    height: 4px;
    margin: 0;
    background: #fff;
    border: none;
    border-radius: 2px;
}

/* 淡入淡出轮播 — 彻底覆盖 Bootstrap 滑动 */
.carousel-fade .carousel-inner {
    position: relative;
    height: 500px;
}

.carousel-fade .item {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    transition: opacity .8s ease-in-out;
}

.carousel-fade .item.active {
    opacity: 1;
    z-index: 1;
}

/* 切换中：新图片淡入 */
.carousel-fade .item.next.left,
.carousel-fade .item.prev.right {
    opacity: 1;
    z-index: 2;
}

/* 阻止 Bootstrap 滑动定位 */
.carousel-fade .item.next,
.carousel-fade .item.prev,
.carousel-fade .item.active.left,
.carousel-fade .item.active.right {
    left: 0;
    transform: none !important;
}

@media (max-width: 767px) {
    .carousel-fade .carousel-inner {
        height: 260px;
    }
}

@media (max-width: 767px) {
    #bannerCarousel .item img {
        height: 260px;
    }
    .carousel-caption h2 {
        font-size: 24px;
    }
    .carousel-caption p {
        font-size: 14px;
    }
}

/* ==================== 通用 Section ==================== */
.section {
    padding: 70px 0;
}

.section-gray {
    background: var(--bg-gray);
}

.section-header {
    margin-bottom: 45px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

.section-divider {
    text-align: center;
    margin-top: 15px;
}

.section-divider span {
    display: inline-block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

@media (max-width: 767px) {
    .section { padding: 45px 0; }
    .section-title { font-size: 24px; }
}

/* ==================== 页面头图（非首页） ==================== */
.page-header-banner {
    margin-top: 70px;
    height: 100px;
    background: var(--bg-color) url(../img/bs-docs-masthead-pattern.png) repeat center center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.page-header-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .5;
}

.page-header-banner .ph-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.page-header-banner .ph-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header-banner .ph-subtitle {
    font-size: 16px;
    opacity: .85;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.page-breadcrumb {
    background: var(--bg-gray);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.page-breadcrumb .breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
    font-size: 14px;
}

.page-breadcrumb .breadcrumb > li + li::before {
    content: '/\00a0';
    padding: 0 6px;
    color: var(--text-light);
}

.page-breadcrumb .breadcrumb a {
    color: var(--text-gray);
}

.page-breadcrumb .breadcrumb a:hover {
    color: var(--primary);
}

.page-breadcrumb .breadcrumb .active {
    color: var(--primary);
    font-weight: 500;
}

@media (max-width: 767px) {
    .page-header-banner { height: 120px; }
    .page-header-banner .ph-title { font-size: 26px; }
}

/* ==================== 主营产品 ==================== */
/* 搜索框 */
.product-search {
    margin-bottom: 30px;
}

.product-search .input-group {
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.product-search .form-control {
    height: 46px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 15px;
    box-shadow: none;
}

.product-search .form-control:focus {
    border-color: var(--primary);
}

.btn-search {
    background: var(--primary);
    color: #fff;
    border: none;
    height: 46px;
    padding: 0 24px;
    font-size: 15px;
    border-radius: 0 4px 4px 0;
    transition: background .25s;
}

.btn-search:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* 分类标签 */
.product-tabs {
    margin-bottom: 35px;
}

.btn-tab {
    display: inline-block;
    padding: 8px 26px;
    margin: 0 4px;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--text-gray);
    font-size: 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all .25s;
    outline: none;
}

.btn-tab:hover,
.btn-tab.active {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

/* 产品卡片 */
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all .3s;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(21,101,192,.15);
    transform: translateY(-4px);
}

.product-card .product-img {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f9f9f9;
    cursor: pointer;
    text-decoration: none;
}

.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-card .product-body {
    padding: 18px 16px;
    text-align: center;
}

.product-card .product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 固定预留两行标签高度，保证同行卡片等高对齐 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    height: 48px;
    margin-bottom: 12px;
    overflow: hidden;
}

.product-tags .tag {
    display: inline-block;
    padding: 2px 10px;
    margin: 2px;
    font-size: 12px;
    line-height: 16px;
    color: var(--primary);
    background: #e3f0ff;
    border-radius: 12px;
}

/* 按钮组：两按钮强制等宽并排填满一行；文案过长时在按钮内换行，高度自动对齐 */
.product-card .product-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 6px;
}

.product-card .product-btns .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 4px;
    margin: 0;
    white-space: normal;
}

.btn-detail {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

.btn-detail:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-contact {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-contact:hover {
    background: var(--primary);
    color: #fff;
}

/* 空状态 */
.no-result {
    text-align: center;
    padding: 60px 0;
    color: var(--text-light);
    font-size: 16px;
}

/* 分页 */
.pagination > li > a,
.pagination > li > span {
    color: var(--primary);
    border-color: var(--border);
    margin: 0 3px;
    border-radius: 4px !important;
}

.pagination > li > a:hover,
.pagination > li > span:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ========== 首页分类展示（Tab 切换 + 查看更多按钮） ========== */
.home-tabs {
    margin-bottom: 35px;
}

.home-tab {
    display: inline-block;
    padding: 8px 26px;
    margin: 0 4px;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--text-gray);
    font-size: 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all .25s;
}

.home-tab:hover,
.home-tab.active {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.home-tab i {
    margin-right: 4px;
}

/* 手机端下拉框 */
.home-select-wrap {
    display: none;
}

.home-select {
    width: 80%;
    max-width: 280px;
    padding: 8px 12px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    font-size: 15px;
    color: var(--primary);
    background: #fff;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231565c0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

@media (max-width: 767px) {
    .home-tabs {
        display: none;
    }
    .home-select-wrap {
        display: block;
        margin-bottom: 30px;
    }
}
.cat-block {
    margin-bottom: 45px;
}

.cat-block:last-child {
    margin-bottom: 0;
}

.cat-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 15px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 25px;
}

.cat-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.cat-block-title i {
    font-size: 22px;
    color: var(--primary);
}

.cat-block-subtitle {
    color: var(--text-light);
    font-size: 13px;
    margin-left: 8px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-more {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 6px 20px;
    border-radius: 25px;
    font-size: 14px;
    transition: all .25s;
}

.btn-more:hover {
    background: var(--primary);
    color: #fff;
    transform: translateX(3px);
}

.btn-more i {
    margin-left: 4px;
}

/* ==================== 产品详情页 ==================== */
.detail-gallery {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
}

.detail-gallery #detailCarousel .item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.detail-gallery .carousel-indicators {
    bottom: 10px;
}

.detail-gallery .carousel-indicators li {
    background: rgba(0, 0, 0, .2);
    border: none;
}

.detail-gallery .carousel-indicators li.active {
    width: 15px;
    height: 4px;
    margin: 0;
    background: var(--primary);
    border: none;
}

.detail-gallery .carousel-control {
    background: none;
    opacity: .8;
    width: 40px;
    font-size: 30px;
    z-index: 10;
}

.detail-gallery .carousel-control:hover {
    opacity: 1;
}

.detail-gallery .carousel-control .fa {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    text-align: center;
}

.detail-info {
    padding: 10px 0 10px 30px;
}

.detail-name {
    font-size: 24px;
    color: var(--text-dark);
    margin: 0 0 12px;
    line-height: 1.4;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.detail-tags .tag {
    display: inline-block;
    padding: 2px 0;
    color: var(--text-gray);
    font-size: 13px;
}

.detail-tags .tag::after {
    content: ' ·';
    color: var(--border);
}

.detail-tags .tag:last-child::after {
    content: '';
}

/* 产品参数表 */
.detail-specs {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 14px;
}

.detail-specs th {
    width: 110px;
    padding: 6px 10px;
    text-align: left;
    color: var(--text-gray);
    background: #f7f9fc;
    border: 1px solid var(--border);
    font-weight: 600;
    white-space: nowrap;
}

.detail-specs td {
    padding: 6px 10px;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.detail-quote {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--border);
}

.btn-quote {
    display: inline-block;
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    /* 兜底色：Bootstrap 的 .btn:active 会移除 background-image（即上面的渐变），
       没有兜底 background-color 时按钮点击瞬间变透明，白字白底导致"闪烁消失" */
    background-color: var(--primary-dark);
    color: #fff;
    border: 2px solid transparent;
    padding: 12px 40px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    transition: all .25s;
    text-decoration: none;
    text-align: center;
}

.btn-quote:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21,101,192,.35);
}

.btn-quote i {
    margin-right: 6px;
}

/* 手机号按钮：与报价按钮等宽等高，红色文字 + 边框 */
.btn-phone {
    display: inline-block;
    flex: 1;
    background: #fff;
    color: #e53935;
    border: 2px solid #e53935;
    padding: 12px 40px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    transition: all .25s;
    text-decoration: none;
    text-align: center;
}

.btn-phone:hover {
    color: #c62828;
    background: #ffebee;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229,57,53,.2);
}

.btn-phone i {
    margin-right: 6px;
}

.detail-desc-wrap {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border);
}

.detail-desc-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.detail-desc-title i {
    margin-right: 8px;
    color: var(--primary);
}

.detail-desc-content {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 2;
}

.detail-desc-content p {
    margin-bottom: 15px;
}

.detail-desc-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.detail-desc-content li {
    margin-bottom: 8px;
    list-style: disc;
}

.detail-desc-content strong {
    color: var(--text-dark);
}

.section-gray {
    background: #f7f9fc;
}

@media (max-width: 767px) {
    .detail-gallery #detailCarousel .item img {
        height: 260px;
    }
    .detail-info {
        padding: 20px 0 0;
    }
    .detail-name {
        font-size: 20px;
    }
    .detail-quote {
        flex-direction: column;
        gap: 12px;
    }
    .btn-quote, .btn-phone {
        display: block;
        flex: none;
        width: 100%;
        text-align: center;
    }
}
.about-content {
    display: flex;
    align-items: flex-start;
}

/* 手机端：图片显示在文字上方，取消右栏高度限制 */
@media (max-width: 767px) {
    .about-content.row {
        display: flex;
        flex-direction: column;
    }
    .about-content > .col-md-6:first-child {
        order: -1;
    }
    .about-text {
        max-height: none !important;
        overflow-y: visible !important;
    }
}

.about-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,.1);
    display: block;
}

.about-text {
    overflow-y: auto;
    padding-right: 10px;
}

/* 电脑端：右栏超出滚动，高度由 JS 同步左侧图片 */
@media (min-width: 768px) {
    .about-text {
        overflow-y: auto;
    }
}

/* 自定义滚动条 */
.about-text::-webkit-scrollbar {
    width: 6px;
}
.about-text::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}
.about-text::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.about-text h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 18px;
    font-weight: 700;
}

.about-text p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    margin-top: 25px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-item .stat-num {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
}

.stat-item .stat-label {
    font-size: 13px;
    color: var(--text-light);
}

/* About 独立页 */
.about-detail {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

.about-detail p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 14px;
    text-indent: 2em;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.about-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform .3s;
}

.about-gallery img:hover {
    transform: scale(1.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 25px 15px;
    background: var(--bg-gray);
    border-radius: 8px;
    transition: all .3s;
}

.feature-item:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: 0 6px 20px rgba(21,101,192,.1);
}

.feature-item i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-item h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    text-indent: 0;
}

@media (max-width: 991px) {
    .about-gallery { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .about-content .col-md-6 {
        margin-bottom: 20px;
    }
    .about-text h3 { font-size: 20px; }
    .about-detail { padding: 20px; }
    .about-gallery { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== 分页 ==================== */
/* 手机端（<768px）仅保留：上一页 / 首页码 / 当前页 / 尾页码 / 下一页 */
@media (max-width: 767px) {
    .pagination > li:not(.page-prev):not(.page-next):not(.page-first):not(.page-last):not(.page-current) {
        display: none;
    }
}

/* ==================== 联系我们 ==================== */
/* 联系卡片：flex 等高布局，防止某卡片内容过高（如长地址）时浮动列错位 */
.contact-info {
    display: flex;
    flex-wrap: wrap;
}

.contact-info > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.contact-info .contact-card {
    flex: 1;
    height: auto;
}

/* 手机端（<768px）列宽强制 100%：col-md-4/col-sm-6 无 xs 宽度定义，会按内容收缩导致错乱 */
@media (max-width: 767px) {
    .contact-info > [class*='col-'] {
        width: 100%;
    }
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 35px 20px;
    text-align: center;
    margin-bottom: 25px;
    transition: all .3s;
}

.contact-card:hover {
    box-shadow: 0 8px 30px rgba(21,101,192,.12);
    transform: translateY(-4px);
}

.contact-card i {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-card h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-gray);
    font-size: 14px;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-card strong {
    color: var(--primary);
    font-size: 16px;
}

/* 留言表单 */
.message-form-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    margin-top: 40px;
}

.message-form-wrap h3 {
    font-size: 22px;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 0;
}

.message-form-wrap .form-subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 25px;
}

.message-form .form-group {
    margin-bottom: 18px;
}

.message-form label {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 6px;
}

.message-form label .required {
    color: #e53935;
    margin-left: 2px;
}

.message-form .form-control {
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: none;
    font-size: 14px;
    transition: border-color .2s;
}

.message-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.message-form textarea.form-control {
    height: auto;
    min-height: 110px;
    resize: vertical;
}

/* 验证码 */
.captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-group .form-control {
    flex: 1;
}

.captcha-code {
    height: 42px;
    width: 120px;
    background: linear-gradient(135deg, #e3f0ff, #bbdefb);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
    cursor: pointer;
    user-select: none;
    font-family: "Courier New", monospace;
    font-style: italic;
    transition: all .2s;
}

.captcha-code:hover {
    background: linear-gradient(135deg, #bbdefb, #90caf9);
    transform: scale(1.02);
}

.captcha-refresh {
    height: 42px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--primary);
    cursor: pointer;
    transition: all .2s;
    font-size: 14px;
}

.captcha-refresh:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 表单按钮区：重置左对齐，提交右对齐 */
.form-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-btns .btn-reset {
    margin-left: 0;
    margin-right: 0;
}

.form-btns .btn-submit {
    margin-left: auto;
}

.btn-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 40px;
    border-radius: 4px;
    font-size: 15px;
    transition: all .25s;
}

.btn-submit:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21,101,192,.3);
}

.btn-reset {
    background: #fff;
    color: var(--text-gray);
    border: 1px solid var(--border);
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 15px;
    transition: all .25s;
}

.btn-reset:hover {
    background: var(--bg-gray);
    color: var(--text-dark);
    border-color: var(--text-light);
}

@media (max-width: 767px) {
    .message-form-wrap { padding: 20px; }
    .captcha-group { flex-wrap: wrap; }
    .captcha-group .form-control { flex: 1 1 100%; }
    .captcha-code { flex: 1; min-width: 100px; }
    .captcha-refresh { flex: 0 0 auto; }
    /* 手机端按钮纵向堆叠，仍然右对齐 */
    .form-btns { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
    .form-btns .btn { width: 100%; margin-left: 0; margin-right: 0; }
    .form-btns .btn-reset { margin-right: 0; }
}

/* ==================== 底部 ==================== */
footer {
    background: #1a2733;
    color: #b0bec5;
    padding: 25px 0;
    text-align: center;
}

.footer-contact {
    margin-bottom: 12px;
}

.footer-contact span {
    display: inline-block;
    margin: 0 15px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--accent);
    margin-right: 5px;
}

.footer-record p {
    font-size: 13px;
    color: #78909c;
    margin: 0;
}

/* 底部备案号链接样式 */
.footer-record .icp {
    color: #78909c;
    font-size: 13px;
    text-decoration: none;
    transition: color .2s ease;
    outline: none;
}
.footer-record .icp:hover,
.footer-record .icp:focus {
    color: var(--primary);
    text-decoration: none;
    outline: none;
}
.footer-record .icp:active {
    opacity: .85;
}

@media (max-width: 767px) {
    .footer-contact span {
        display: block;
        margin: 5px 0;
    }
}

/* ==================== 右侧悬浮栏 ==================== */
.right-sidebar {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-item {
    position: relative;
    width: 50px;
    height: 50px;
    /* 图标+文字在弹性居中基础上整体下移（视觉下移量 = padding 的一半，即约 3px），微调改这里 */
    padding-top: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: all .25s;
}

.side-item:hover,
.side-item.side-hover {
    background: var(--primary);
    border-color: var(--primary);
}

.side-item:hover i,
.side-item:hover .side-label,
.side-item.side-hover i,
.side-item.side-hover .side-label {
    color: #fff;
}

.side-item i {
    font-size: 18px;
    color: var(--primary);
    transition: color .25s;
}

.side-item .side-label {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 2px;
    transition: color .25s;
}

/* 悬浮提示 */
.side-tooltip {
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all .25s;
    z-index: 100;
}

.side-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #fff;
}

.side-item:hover .side-tooltip,
.side-item.side-hover .side-tooltip {
    opacity: 1;
    visibility: visible;
    right: 62px;
}

.side-tooltip-phone p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

.side-tooltip-phone strong {
    font-size: 18px;
    color: var(--primary);
    display: block;
    margin: 2px 0;
}

.side-tooltip-qr {
    text-align: center;
    padding: 10px;
}

.side-tooltip-qr img {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    display: block;
    /* 等比缩放适配正方形展示框，防止非正方形上传图被拉伸变形 */
    object-fit: contain;
    background: #fff;
}

.side-tooltip-qr p {
    font-size: 12px;
    color: var(--text-gray);
    margin: 8px 0 0;
}

/* 回到顶部默认隐藏（还原为基础 side-item 50x50 纵向布局） */
#sideTop {
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
}

#sideTop.show {
    display: flex!important;
    opacity: 1;
    visibility: visible;
}

@media (max-width: 767px) {
    .right-sidebar {
        right: 10px;
        bottom: 60px;
    }
    .side-item {
        width: 44px;
        height: 44px;
    }
    .side-tooltip {
        right: 50px;
    }
    .side-item:hover .side-tooltip,
    .side-item.side-hover .side-tooltip {
        right: 50px;
    }
    .side-tooltip-qr img {
        width: 100px;
        height: 100px;
    }
}
