
body, ol, ul, h1, h2, h3, h4, h5, h6, p, th, td, dl, dd, form, fieldset, legend, input, textarea, select, figure, figcaption {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, b, strong {
    font-size: 100%;
    font-weight: normal;
}

i, em {
    font-style: normal;
}

li {
    list-style: none;
}


a {
    text-decoration: none; /* 去除默认的下划线 */
    color: inherit; /* 继承父元素的文字颜色 */
    outline: none; /* 去除焦点时的边框 */
}

a:hover {
    text-decoration: none; /* 鼠标悬停时去掉加下划线 */
}

a:focus {
    outline: none; /* 移除聚焦时的边框 */
    text-decoration: none; /* 鼠标悬停时去掉加下划线 */
}


body, html {
    font: 14px "微软雅黑", Arial;
    color: #333;
    /* 兜底：防止任何元素意外溢出导致页面横滚（移动端必备） */
    overflow-x: hidden;
    max-width: 100%;
}

/* 全局图片防溢出：图片永远不超过其容器宽度 */
img {
    max-width: 100%;
}

input {
    outline: none;
}

.clearfix {
    *zoom: 1;
}

.clearfix:after {
    content: '';
    display: block;
    height: 0;
    overflow: hidden;
    clear: both;
}


.page {
    width: 100%;
    /*min-width: 1440px;*/
}


.crumbs {
    font-size: 14px;
    color: #999999;
    line-height: 20px;
    height: 20px;
    margin-bottom: 50px;
}

.crumbs .last {
    color: #1A1A1A;
}

.topbar {
    width: 100%;
    height: 7.1429rem;
    /* 左右 padding 用 clamp 自适应：1280px 屏 ≈ 38px，1920px ≈ 64px 上限 */
    padding: 1.4286rem clamp(20px, 3.3vw, 4.5714rem);
    box-sizing: border-box;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #333;
    text-align: center;
    position: relative;
    z-index: 100;
}

/* logo.png 已重新上色为红色品牌色，白底直接显示原色，不再压黑 */
.topbar .left img {
    filter: none;
}

.topbar .menu-toggle {
    /*display: flex;*/
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 4.2857rem;
    height: 4.2857rem;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 0.5714rem;
    cursor: pointer;
    padding: 0;
}

.topbar .menu-toggle span {
    display: block;
    width: 2.1429rem;
    height: 0.2143rem;
    background: #333;
    border-radius: 0.2143rem;
    margin: 0.2143rem 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.topbar .menu-toggle.active span:nth-child(1) {
    transform: translateY(0.6429rem) rotate(45deg);
}

.topbar .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-1.4286rem);
}

.topbar .menu-toggle.active span:nth-child(3) {
    transform: translateY(-0.6429rem) rotate(-45deg);
}

.topbar .left {
    width: auto;
    height: 100px;       /* logo 按高度定尺寸，与页脚 logo 统一比例 */
    flex-shrink: 0;     /* logo 永远不被挤压 */
}

.topbar .left a {
    display: flex;
    align-items: center;
    width: auto;
    height: 100%;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.topbar .left a:hover {
    opacity: 0.75;
}

.left img {
    width: auto;
    height: 64px;        /* PC navbar logo 尺寸 */
    object-fit: contain;
    display: block;
}

.topbar .right {
    width: 28.5714rem;
    height: 2.8571rem;
    line-height: 2.8571rem;
    text-align: center;
}

.topbar .right {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: clamp(10px, 1.2vw, 1.4286rem);   /* 窄屏减小右侧元素间距 */
    height: auto;
    background: transparent;
    position: relative;
    flex-shrink: 0;                        /* 右侧元素不被挤压 */
}

.topbar .user-info {
    display: flex;
    align-items: center;
    gap: 0.7143rem;
    cursor: pointer;
}

.topbar .avatar {
    width: 2.8571rem;
    height: 2.8571rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #039CEA;
    font-weight: bold;
}

.topbar .avatar img {
    width: 100% !important;
    height: 100% !important;
}

.topbar .username {
    font-size: 1.1429rem;
    font-weight: 500;
}

.topbar .right img {
    /*vertical-align: middle;*/
    width: 1.1429rem;
    height: 1.1429rem;
    cursor: pointer;
    transform: translateY(0.19rem);
    /* 原图标为白色，白底需反相成深灰 */
    filter: invert(35%);
    transition: filter 0.2s ease;
}

.topbar .right img:hover {
    /* hover 变主蓝色 #039CEA（filter 算出来的近似） */
    filter: brightness(0) saturate(100%) invert(15%) sepia(89%) saturate(1700%) hue-rotate(202deg) brightness(88%) contrast(102%);
}

.topbar .language-select {
    background: transparent;
    border: none;
    color: #333;
    cursor: pointer;
    outline: none;
    font-size: 1.1429rem;
}

.topbar .language-select option {
    background: #fff;
    color: #333;
}

/*.topbar .search-icon {*/
/*    width: 2.8571rem;*/
/*    height: 2.8571rem;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    cursor: pointer;*/
/*    border-radius: 50%;*/
/*}*/

/* 搜索栏样式 */
.search-bar {
    display: flex;
    align-items: center;
    width: 21.4286rem;
    height: 2.8571rem;
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 0.2857rem;
    padding: 0 1.0714rem;
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
}

.search-bar.active {
    opacity: 1;
    visibility: visible;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 0.7143rem;
    font-size: 1.1429rem;
    outline: none;
    color: #333;
    height: 100%;
}

.search-bar .product-icon {
    cursor: pointer;
    width: 2.5714rem;
    height: 2.5714rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #039CEA;
}

.search-bar .product-icon:hover {
    background: #0286CC;
}

/* 蓝色按钮内的白色 search 图标：保持白色，覆盖外层 invert filter */
.search-bar .product-icon img {
    filter: none !important;
}
.search-bar .product-icon img:hover {
    filter: none !important;
}

.search-bar .product-icon i {
    color: white;
    font-size: 1.1429rem;
}

/* 隐藏其他元素 */
.right.active .user-info,
.right.active .avatar,
.right.active .language-select,
.right.active .search-icon {
    display: none !important;
}

.topbar .middle {
    flex: 1;
    font-size: 1.4286rem;
}

.topbar .middle ul {
    padding: 0;
    font-size: 1.4286rem;
    max-width: 54.2143rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style-type: none;
    box-sizing: border-box;
}

.topbar .middle ul li {
    min-width: 5.7143rem;
    height: 7.1429rem;
    line-height: 7.1429rem;
    position: relative;
    cursor: pointer;
}

.topbar .middle ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.topbar .middle ul li a:focus {
    outline: none;
    color: #333;
}

.topbar .middle ul li a:active {
    color: #039CEA;
    text-decoration: none;
}

/* 鼠标悬浮：一级菜单字蓝 */
.topbar .middle ul li:hover > a {
    color: #039CEA;
}

/* 当前所在页面：一级菜单字蓝 + 加粗 */
.topbar .middle ul li.active > a {
    color: #039CEA;
    font-weight: 600;
}

/* 旧的底部白色长条不再需要（壹连风格只用字色高亮） */
.topbar .middle ul li .bottom-line {
    display: none;
}

/* 底部 */
.footer {
    background-color: #039CEA;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2.5714rem 3.4286rem;
}

/* 左侧 logo */
.footer-logo {
    width: 14.8571rem;
    height: 5.8571rem;
}

.footer-logo img {
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
}

/* 第二列 页面跳转 */
.footer-links {
    padding-top: 1.1429rem;
    width: 55rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    margin-bottom: 6.5rem;
    padding-inline-start: 0;
}

.footer-links ul li {
    min-width: 5.1429rem;
    height: 1.7857rem;
    font-weight: 500;
    font-size: 1.2857rem;
    color: #FFFFFF;
    cursor: pointer;
}

.footer-links .safety {
    display: block;
    font-size: 1.2857rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5714rem;
}

/* 第三列 联系方式 */
.footer-contact {
    padding-top: 1.1429rem;
}

.footer-contact .box {
    margin-bottom: 1.4286rem;
}

.footer-contact .title {
    margin: 0;
    font-weight: 500;
    font-size: 1.2857rem;
    color: #FFFFFF;
    height: 1.7857rem;
    margin-bottom: 0.5714rem;
}

.footer-contact .txt {
    font-size: 1.1429rem;
    color: rgba(255, 255, 255, 0.5);
    width: 14.4286rem;
    height: 3.1429rem;
    margin: 0;
}

/* 右侧二维码 */
.footer-qr {
    padding-top: 1.1429rem;
    width: 12.8571rem;
    height: 12.8571rem;
}

.footer-qr img {
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
}

/* 分页器样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 20px 0;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: block;
    padding: 5px 9.5px;
    border-radius: 28px;
    text-decoration: none;
    color: #333333;
    transition: all 0.3s;
    font-size: 16px;
    background: #FFFFFF;
}

.page-link:hover:not(.disabled):not(.active) {
    /*background-color: #f8f9fa;*/
    color: #039CEA;
}

.page-link.active {
    /*border-color: #039CEA;*/
    background: #039CEA;
    color: #FFFFFF;
}

.page-link.disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: #f8f9fa;
}

.page-info {
    margin-left: 15px;
    color: #6c757d;
}

/* ====================================================================
   响应式断点（重写 — 简化为 1200 / 1024 / 768 / 480）
   - 1200px 以下：略缩字号，PC navbar 还能用
   - 1024px 以下：navbar 切抽屉式（详见 topbar.html inline style）
                  + footer 单列堆叠
   - 768px 以下：内边距进一步收紧
   - 480px 以下：极小屏微调
   注意：navbar 抽屉相关规则在 topbar.html inline style 里（PC 端隐藏抽屉）
   ==================================================================== */

@media (max-width: 1200px) {
    html {
        font-size: 15px !important;
    }
}

@media (max-width: 1024px) {
    html {
        font-size: 14px !important;
    }

    /* footer 四栏 → 单列堆叠 */
    .footer-content {
        flex-direction: column;
        align-items: center;
        padding: 32px 24px;
        gap: 28px;
        text-align: center;
    }
    .footer-logo {
        width: 140px;
        height: auto;
    }
    .footer-links {
        width: 100%;
        padding: 0;
    }
    .footer-links ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
        margin-bottom: 16px;
    }
    .footer-links ul li {
        min-width: 0;
        height: auto;
        font-size: 15px;
    }
    .footer-links .safety {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .footer-contact {
        padding-top: 0;
        text-align: center;
    }
    .footer-contact .title {
        font-size: 15px;
        height: auto;
    }
    .footer-contact .txt {
        font-size: 14px;
        width: auto;
        height: auto;
        line-height: 1.6;
    }
    .footer-qr {
        padding-top: 0;
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    /* 顶部 navbar 已经在 topbar.html 抽屉模式接管，这里只动其他公共元素 */
    .crumbs {
        font-size: 13px;
        margin-bottom: 24px;
    }
    .page-link {
        font-size: 14px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 24px 16px;
    }
    .footer-links ul li {
        font-size: 14px;
    }
}
