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

:root {
    --primary-color: #252b3a;
    --brand-color: #08a557;
    --huawei-red: #08a557;
    --header-height: 80px;
    --mobile-nav-height: 54px;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--brand-color);

    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #525252;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f7f8fa;
}

a {
    text-decoration: none
}
p{
    margin-bottom: 0;
}
/* ===========================
   1. 导航栏样式
=========================== */
.custom-navbar {
    background-color: #fff;
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container-1600 {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Logo 样式 */
.brand-text {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    letter-spacing: 1px;
    margin-left: 10px;
}

/* 菜单链接样式 */
.navbar-nav .nav-link {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 0 20px !important;
    line-height: var(--header-height);
}

.navbar-nav .nav-link:hover {
    color: var(--brand-color);
}

.logo {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 1600px) {
    .flex-lg-row {margin-left: 40px;}
}
/* ===========================
   手机端导航栏适配
=========================== */
@media (max-width: 991.98px) {
    .custom-navbar {
        height: 50px;
        /* padding: 10px 0; */
    }

    .navbar {
        --bs-navbar-padding-y: 0
    }

    .navbar-toggler {
        border: none;
        padding: 0;
        box-shadow: none;
    }

    .navbar-collapse {
        background-color: #fff;
        width: 100%;
        border-top: 1px solid #eee;
        position: absolute;
        top: 100%;
        left: 0;
        padding-bottom: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0 !important;
        line-height: 44px;
        font-size: 16px;
        border-bottom: 1px solid #f9f9f9;
    }

    .d-flex.align-items-center.flex-column.flex-lg-row {
        width: 100%;
        margin-top: 15px;
    }

    .search-pill {
        width: 90% !important;
        margin: 0 auto 15px auto !important;
        height: 40px;
    }

    .contact-text {
        display: block;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .logo {
        width: 130px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* === 2. 居中大标题 (修正间距) === */
.section-header {
    text-align: center;
    /* PC端：上80px 下50px */
    padding: 60px 0 50px;
}

.section-header h2 {
    letter-spacing: 4px;
    font-size: 42px;
    font-weight: bold;
    color: #000;
    margin: 0;
}

/* 搜索框样式 */
.search-pill {
    border: 1px solid #eee;
    border-radius: 50px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    width: 220px;
    height: 38px;
    background: #f9f9f9;
    margin-right: 20px;
}

.search-pill input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    margin-left: 8px;
    color: #666;
    background: transparent;
}

.sousuo {
    background: unset;
    border: unset;
    padding: 0;
    cursor: pointer;
}

input:-internal-autofill-selected {
    background-color: unset !important;
}

.contact-text {
    font-weight: bold;
    color: var(--brand-color);
    white-space: nowrap;
    font-size: 20px;
}

/* ===========================
   2. 全屏轮播图样式
=========================== */
.homeswiper {
    width: 100%;
    height: 750px;
}

.homeswiper .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

@media (max-width: 992px) {
    .homeswiper {
        height: 168px;
    }

    .search-pill {
        width: 100%;
        margin: 10px 0;
    }
}


/* ====底部==== */
/* === PC端基础样式 (保持不变) === */
.custom-footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding-top: 25px;
    font-size: 14px;
    color: #333;
}

.footer-top-slogan {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 25px;
    margin-bottom: 40px;
}

.footer-slogan-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--brand-color);
}

.footer-main-row {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 50px;
}

.footer-left {
    width: 280px;
    flex-shrink: 0;
    margin-right: 80px;
    padding-top: 10px;
}

.footer-logo {
    width: 190px;
    margin-bottom: 15px;
    display: block;
}

.footer-logo-desc {
    color: var(--brand-color);
    font-size: 14px;
    margin-top: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.footer-links-group {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
}

.footer-col {
    min-width: 140px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 25px;
    border-left: 4px solid var(--brand-color);
    padding-left: 12px;
    line-height: 1;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: #555;
    transition: color 0.3s;
    text-decoration: none;
    display: block;
    font-size: 15px;
}

.footer-col ul li a:hover {
    color: var(--brand-color);
    transform: translateX(5px);
}

.footer-col-wide {
    flex-basis: 45%;
}

.product-grid-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
}

.footer-bottom-bar {
    background-color: var(--brand-color);
    color: #fff;
    padding: 18px 0;
    font-size: 14px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-left span,
.copyright-left a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.copyright-left a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright-right a {
    color: #fff;
    margin-left: 25px;
    padding-left: 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0.9;
}

.copyright-right a:first-child {
    border-left: none;
}

.copyright-right a:hover {
    opacity: 1;
}

/* =========================================
       手机端适配 (核心修改区域)
    ========================================= */
@media (max-width: 991.98px) {
    .footer-main-row {
        flex-direction: column;
        padding-bottom: 20px;
        /* 减少底部留白 */
    }

    /* Logo区域 */
    .footer-left {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
        text-align: center;
        border-bottom: 1px solid #f5f5f5;
        /* 加个分割线 */
        padding-bottom: 20px;
    }

    .footer-logo {
        margin: 0 auto 10px;
        width: 160px;
    }

    .footer-logo-desc {
        font-size: 13px;
        margin-top: 5px;
    }

    /* 链接组容器：改为弹性换行布局 */
    .footer-links-group {
        flex-direction: row;
        /* 允许横向排列 */
        flex-wrap: wrap;
        /* 允许换行 */
        justify-content: space-between;
        /* 两端对齐 */
        gap: 0;
        /* 间距由宽度控制 */
    }

    /* 通用列样式：让前两列并排 */
    .footer-col {
        width: 48%;
        /* 两个并排，留点缝隙 */
        margin-bottom: 30px;
        min-width: auto;
        /* 取消最小宽度限制 */
    }

    /* 产品介绍列：强制占满一行 */
    .footer-col-wide {
        width: 100%;
        flex-basis: 100%;
        border-top: 1px dashed #eee;
        /* 加个虚线分割 */
        padding-top: 20px;
    }

    /* 标题调整 */
    .footer-col h4 {
        font-size: 16px;
        margin-bottom: 15px;
        padding-left: 8px;
        border-left-width: 3px;
    }

    /* 链接文字调小，防止换行 */
    .footer-col ul li a {
        font-size: 13px;
        color: #666;
    }

    /* 核心修改：手机端产品介绍也保持双列 */
    .product-grid-links {
        grid-template-columns: 1fr 1fr;
        /* 强制两列 */
        column-gap: 15px;
        /* 减小列间距 */
        row-gap: 0;
    }

    /* 底部版权 */
    .footer-bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .copyright-left {
        justify-content: center;
        font-size: 12px;
        gap: 5px;
    }

    .copyright-right {
        display: none;
    }
}


/* 面包屑导航 */
.breadcrumb-bar {
    padding: 20px 0;
    color: #666;
    font-size: 14px;
}

.breadcrumb-bar a {
    color: #666;
    transition: 0.3s;
}

.breadcrumb-bar a:hover {
    color: var(--brand-color);
}

.breadcrumb-bar .sep {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-bar .current {
    color: var(--brand-color);
}


/* ================= 分页条样式优化 Start ================= */

/* 1. 分页容器布局 */
.pagination-block {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    /* 防止小屏幕溢出 */
    gap: 15px;
    /* 分页条和统计信息之间的间距 */
    padding: 20px 0;
}

/* 2. 重置 ul 样式 */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    margin: 0;
    gap: 5px;
    /* 按钮之间的间距 */
}

/* 3. 按钮通用样式 (包括 a 标签和 span 标签) */
.pagination li a,
.pagination li span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    /* 最小宽度，保证正方形效果 */
    height: 38px;
    /* 高度 */
    padding: 0 12px;
    /* 左右内边距，适应 "上一页" 这种长文字 */
    font-size: 14px;
    color: #666;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    /* 4px圆角 */
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

/* 4. 鼠标悬停效果 (排除 active 和 disabled) */
.pagination li:not(.active):not(.disabled) a:hover,
.pagination li:not(.active):not(.disabled) span:hover {
    color: var(--brand-color, #08a557);
    /* 使用品牌绿 */
    border-color: var(--brand-color, #08a557);
    background-color: #f0fbf5;
    /* 极淡的绿色背景 */
    transform: translateY(-2px);
    /* 轻微上浮 */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

/* 5. 选中状态 (Active) */
.pagination li.active span,
.pagination li.active a {
    z-index: 1;
    color: #fff;
    background-color: var(--brand-color, #08a557);
    border-color: var(--brand-color, #08a557);
    cursor: default;
    /* 选中后不可点击手型 */
    box-shadow: 0 4px 10px rgba(8, 165, 87, 0.3);
    /* 绿色投影 */
}

/* 6. 禁用状态 (Disabled) */
.pagination li.disabled span,
.pagination li.disabled a {
    color: #ccc;
    background-color: #f9f9f9;
    border-color: #eee;
    cursor: not-allowed;
    /* 禁止手型 */
    pointer-events: none;
    /* 禁止鼠标事件 */
}

/* 7. 统计信息文字 (共 X 页 X 条) */
.pagination_info {
    font-size: 13px;
    color: #999;
    margin-left: 5px;
    height: 38px;
    line-height: 38px;
    /* 垂直居中 */
}

/* 8. 手机端适配 */
@media (max-width: 768px) {
    .pagination-block {
        flex-direction: column;
        /* 上下排列 */
        gap: 10px;
    }

    .pagination {
        gap: 3px;
    }

    .pagination li a,
    .pagination li span {
        min-width: 32px;
        /* 手机端按钮稍微小一点 */
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
    }

    .pagination_info {
        height: auto;
        line-height: 1.5;
    }
}


/* 详情 */

.detail-content-box th, td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #b9b9b9;
}
.detail-content-box table{
    width: 100%;
}
@media (max-width: 992px) {
    .detail-content-box th, td{
        padding: 5px;
    }
    .detail-content-box table{
        font-size: 14px;
    }
}
.product-grid-wrapper .category-title {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
    border-left: 4px solid var(--huawei-red);
    padding-left: 12px;
    line-height: 1.2;
}

.product-grid-wrapper .category-title a {
    display: block;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    color: #000;
    margin: 20px 0;
    line-height: 1.2;
    text-decoration: none;
}

/* 1. PC端鼠标悬停自动展开下拉菜单 */
@media (min-width: 992px) {
    /* 一级菜单悬停显示二级 */
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0; /* 修正间隙导致鼠标移开消失的问题 */
    }
    
    /* 二级菜单悬停显示三级 */
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

/* 2. 三级菜单位置修正 (PC端向右弹出) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%; /* 向右偏移 100% */
    margin-top: -1px; /* 稍微向上对齐 */
    margin-left: 0px;
}

/* 3. 菜单样式微调 */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
}

.dropdown-item {
    font-size: 14px;
    padding: 8px 20px;
    color: #555;
    transition: 0.3s;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #f0fbf5; /* 浅绿背景 */
    color: #08a557; /* 品牌绿 */
}

/* 4. 解决下拉菜单箭头方向 (可选) */
/* 让二级菜单的箭头指向右边 */
.dropdown-submenu .dropdown-toggle::after {
    transform: rotate(-90deg);
    margin-left: auto; /* 让箭头靠右 */
    float: right;
    margin-top: 5px;
}

/* 5. 手机端适配 */
@media (max-width: 991.98px) {
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 20px; /* 手机端层级缩进 */
        background-color: #f9f9f9;
    }
    
    .dropdown-submenu > .dropdown-menu {
        padding-left: 15px; /* 三级菜单再缩进 */
    }
    
    /* 手机端箭头不旋转 */
    .dropdown-submenu .dropdown-toggle::after {
        transform: none;
        float: none;
    }
}