/* 自定义搜索框样式 - 嵌入 .tel 内部 */
.search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.search-form:hover,
.search-form:focus-within {
    border-color: #c00;
    box-shadow: 0 0 0 2px rgba(204,0,0,0.1);
}
.search-input {
    flex: 1;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: #333;
}
.search-input::placeholder {
    color: #b0b3b8;
    font-size: 13px;
}
.search-btn {
    background: #c00;
    border: none;
    color: #fff;
    font-size: 14px;
    padding: 0 18px;
    height: 36px;
    line-height: 36px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: normal;
    border-radius: 0 32px 32px 0;
    letter-spacing: 1px;
}
.search-btn:hover {
    background: #a00;
}

/* ----- 全局重置，完全兼容 IE8 及更早版本（不使用 CSS3）----- */
* {
    margin: 0;
    padding: 0;
}
body {
    background: #e9f0f5;
    font-family: 'Segoe UI', 'Lucida Grande', 'Microsoft YaHei', Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #1a2c3e;
    padding: 20px 15px;
}
/* 主容器 */
.twofenlei {
    max-width: 100%;
    margin: 0 auto;
}
/* 头部样式 */
.nav-header {
    margin-bottom: 25px;
    border-left: 5px solid #0077b6;
    padding-left: 15px;
}
.nav-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #0a2b3b;
}
.nav-header p {
    color: #3d6b8c;
    margin-top: 6px;
    font-size: 12px;
}
/* 分类网格：采用浮动布局（完美兼容 IE6-8） */
.category-grid {
    overflow: hidden;
    margin: 0 -12px;
}
.cat-card {
    float: left;
    width: 31%;
      margin: 0 12px 24px 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    /* 模拟圆角降级为直角，不影响使用 */
    overflow: hidden;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.05);
}
.cat-card2 {
    float: left;
    width: 100%;
      margin: 0 12px 24px 0px;
    background: #fff;
    border: 1px solid #cbd5e1;
    /* 模拟圆角降级为直角，不影响使用 */
    overflow: hidden;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.05);
}
/* 小屏幕调整卡片宽度 */
@media (max-width: 800px) {
    .cat-card {
        width: 47%;
    }
}
@media (max-width: 540px) {
    .cat-card {
        width: auto;
        float: none;
        margin-left: 0;
        margin-right: 0;
    }
    
    .cat-card2 {
        width: auto;
        float: none;
        margin-left: 0;
        margin-right: 0;
    }

    .category-grid {
        margin: 0;
    }
}
/* 一级分类头部 */
.primary-cat {
    background: #f8fafd;
    padding: 12px 16px;
    border-bottom: 2px solid #dee4ec;
}
.primary-cat a {
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: #005c8a;
    display: inline-block;
}
.primary-cat a:hover {
    text-decoration: underline;
    color: #003f5c;
}
.primary-icon {
    font-size: 20px;
    margin-right: 6px;
    vertical-align: middle;
}
.badge-tip {
    font-size: 13px;
    background: #eef2fc;
    border: 1px solid #bfd9f0;
    padding: 2px 6px;
    margin-left: 8px;
    border-radius: 12px;
    color: #2c7a47;
    white-space: nowrap;
}
/* 二级分类区域 */
.subcategory-area {
    padding: 14px 16px 18px;
}
/* 二级列表：采用 inline-block / 浮动处理，兼容所有浏览器 */
.sub-list {
    list-style: none;
    overflow: hidden;
    margin: -6px;
}
.sub-item {
    float: left;
   
    margin: 8px;
}
/* 让二级链接显示为块级，适应小屏幕 */
.sub-item a {
    display: block;
    background: #f7fafc;
    border: 1px solid #e2eaf0;
    padding: 6px 8px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    color: #2c3e4e;
    border-radius: 20px;  /* IE8 忽略但不报错 */
    transition: none;     /* 去除渐变效果，兼容性更好 */
}
.sub-item a:hover {
    background: #e2edf9;
    border-color: #b9d0e4;
    color: #005c8a;
}
/* 无二级分类优雅占位 */
.no-sub {
    background: #fff8e7;
    border: 1px dashed #bcbcbc;
    padding: 12px;
    text-align: center;
    color: #8a6e3d;
    font-size: 13px;
}
/* 底部 */
.footer-note {
    margin-top: 30px;
    text-align: center;
    font-size: 11px;
    color: #5d7f9a;
    border-top: 1px solid #cfdfed;
    padding-top: 16px;
    clear: both;
}
/* 清除浮动 */
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
 /* 全局样式，保证表格容器自适应 */
        .table-wrapper {
            width: 100%;
            overflow-x: auto;      /* 内容过宽时出现滚动条 */
            -webkit-overflow-scrolling: touch; /* 移动端平滑滚动 */
            margin: 1em 0;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        /* 表格基本样式 */
        .responsive-table {
            width: 100%;
            border-collapse: collapse;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 14px;
            min-width: 600px;      /* 防止列太窄时过度挤压，可根据列数调整或移除 */
            table-layout: auto;    /* 让列宽根据内容自动分配 */
        }

        /* 表头与单元格样式 */
        .responsive-table th,
        .responsive-table td {
            border: 1px solid #ddd;
            padding: 10px 12px;
            text-align: left;
            vertical-align: top;
            word-break: break-word;  /* 长单词/URL 自动换行 */
        }

        .responsive-table th {
            background-color: #f2f2f2;
            font-weight: 600;
            white-space: nowrap;     /* 表头文字不换行，保持可读性（若列太多可去掉） */
        }

        /* 隔行变色，提高可读性 */
        .responsive-table tr:nth-child(even) {
            background-color: #f9f9f9;
        }

        /* 移动端小屏幕下调整字体和内边距 */
        @media (max-width: 640px) {
            .responsive-table th,
            .responsive-table td {
                padding: 8px 10px;
                font-size: 12px;
            }
            .responsive-table th {
                white-space: normal;   /* 小屏下表头允许换行 */
            }
        }
        
         /* ===== 产品详情 - 移动优先 + 全兼容 ===== */
    .pd-wrapper {
        box-sizing: border-box;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
        background: #ffffff;  /* 强制白底 */
        color: #222222;       /* 深色文字，确保可见 */
        line-height: 1.6;
        margin: 16px 0;
        padding: 20px 16px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        /* 防止任何溢出隐藏 */
        overflow: visible;
    }
    .pd-wrapper *,
    .pd-wrapper *::before,
    .pd-wrapper *::after {
        box-sizing: border-box;
        /* 继承颜色，避免被覆盖 */
        color: inherit;
    }

    /* --- 弹性行 --- */
    .pd-row {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 20px 30px;
        width: 100%;
    }

    /* --- 图片列 --- */
    .pd-col-image {
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 260px;
        -ms-flex: 0 0 260px;
        flex: 0 0 260px;
        max-width: 100%;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        background: #fafafa;
        border-radius: 6px;
        padding: 6px;
        min-height: 160px;
    }
    .pd-image {
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 400px;
        -o-object-fit: contain;
        object-fit: contain;
        border-radius: 4px;
    }

    /* --- 信息列（文字主体） --- */
    .pd-col-info {
        -webkit-box-flex: 1;
        -webkit-flex: 1 1 0;
        -ms-flex: 1 1 0;
        flex: 1 1 0;
        min-width: 240px;
        width: 100%;       /* 移动端占满 */
        overflow: visible; /* 确保文字不被裁剪 */
        word-wrap: break-word;
        word-break: break-word;
    }

    /* --- 标题 --- */
    .pd-title {
        font-size: 22px;
        font-weight: 600;
        color: #111;
        margin: 0 0 12px 0;
        line-height: 1.4;
    }

    /* --- 属性列表 --- */
    .pd-attr-list {
        list-style: none;
        margin: 0 0 10px 0;
        padding: 0;
    }
    .pd-attr-item {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-align: baseline;
        -webkit-align-items: baseline;
        -ms-flex-align: baseline;
        align-items: baseline;
        font-size: 14px;
        padding: 4px 0;
        border-bottom: 1px dashed #efefef;
        color: #222; /* 显式深色 */
    }
    .pd-attr-item:last-child {
        border-bottom: none;
    }
    .pd-attr-label {
        color: #555;
        font-weight: 500;
        min-width: 70px;
        -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
        flex-shrink: 0;
    }
    .pd-attr-value {
        color: #111;
        word-break: break-word;
    }
    .pd-attr-value a {
        color: #0066cc;
        text-decoration: none;
    }
    .pd-attr-value a:hover {
        text-decoration: underline;
    }

    /* --- 价格区域 --- */
    .pd-price-section {
        margin: 10px 0 8px 0;
        padding: 12px 16px;
        background: #f8faff;
        border-radius: 6px;
        border-left: 4px solid #ff6600;
        color: #222;
    }
    .pd-price-market {
        font-size: 14px;
        color: #777;
    }
    .pd-price-market s {
        color: #00aacc;
        font-weight: 500;
    }
    .pd-price-member {
        font-size: 20px;
        font-weight: 700;
        color: #ff6600;
        margin-left: 2px;
    }
    .pd-price-negotiable {
        font-size: 13px;
        color: #666;
        margin-left: 8px;
    }
    .pd-price-face {
        font-size: 18px;
        font-weight: 600;
        color: #ff6600;
    }

    /* --- 库存 & 更新 --- */
    .pd-stock-update {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 4px 20px;
        font-size: 14px;
        color: #333;
        margin: 6px 0 8px 0;
        padding: 4px 0;
    }
    .pd-stock-update .pd-label {
        color: #555;
        font-weight: 500;
    }
    .pd-stock-status {
        color: #cc0000;
        font-weight: 600;
    }
    .pd-update-date {
        color: #666;
    }

    /* --- 联系方式 --- */
    .pd-contact {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        gap: 4px 18px;
        font-size: 14px;
        color: #333;
        margin: 6px 0 10px 0;
        padding: 8px 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    .pd-contact .pd-label {
        color: #555;
        font-weight: 500;
    }
    .pd-contact-tel {
        color: #222;
        font-weight: 500;
    }
    .pd-contact-qq a {
        display: -webkit-inline-box;
        display: -webkit-inline-flex;
        display: -ms-inline-flexbox;
        display: inline-flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        gap: 4px;
        color: #0066cc;
        text-decoration: none;
        font-weight: 500;
    }
    .pd-contact-qq a:hover {
        color: #004499;
    }
    .pd-contact-qq .qq1 {
        display: inline-block;
        width: 20px;
        height: 20px;
        background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBmaWxsPSIjMTJCN0Y1IiBkPSJNMTAgMEM0LjQ4IDAgMCA0LjQ4IDAgMTBzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE1LjUyIDAgMTAgMHoiLz48cGF0aCBmaWxsPSIjRkZGIiBkPSJNNy4yIDEzLjZjLS42LS42LTEuNC0xLjQtMS40LTIuNCAwLTEuMiAxLjItMi4yIDIuNC0yLjIgMS4yIDAgMi40IDEgMi40IDIuMiAwIDEuMC0uOCAxLjgtMS40IDIuNC0uMi4yLS40LjItLjYgMC0uMi0uMi0uNC0uMi0uNiAwTTEyLjggMTMuNmMtLjYtLjYtMS40LTEuNC0xLjQtMi40IDAtMS4yIDEuMi0yLjIgMi40LTIuMiAxLjIgMCAyLjQgMSAyLjQgMi4yIDAgMS4wLS44IDEuOC0xLjQgMi40LS4yLjItLjQuMi0uNiAwLS4yLS4yLS40LS4yLS42IDB6Ii8+PC9zdmc+) no-repeat center;
        background-size: contain;
        -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
        flex-shrink: 0;
    }

    /* --- 产品简述 --- */
    .pd-summary {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #eee;
    }
    .pd-summary-title {
        font-size: 15px;
        font-weight: 600;
        color: #222;
        display: block;
        margin-bottom: 6px;
    }
    .pd-summary-body {
        font-size: 14px;
        color: #333;
        line-height: 1.8;
        word-break: break-word;
    }
    .pd-summary-body p {
        margin: 0 0 8px 0;
    }
    .pd-summary-body img {
        max-width: 100%;
        height: auto;
    }

    /* ===== 移动端专项调整 ===== */
    @media screen and (max-width: 768px) {
        .pd-wrapper {
            padding: 16px 12px;
            margin: 10px 0;
        }
        .pd-row {
            gap: 16px;
        }
        .pd-col-image {
            -webkit-flex: 0 0 200px;
            -ms-flex: 0 0 200px;
            flex: 0 0 200px;
            min-height: 140px;
        }
        .pd-title {
            font-size: 20px;
        }
        .pd-price-member {
            font-size: 18px;
        }
    }

    @media screen and (max-width: 576px) {
        .pd-wrapper {
            padding: 12px 10px;
            border-radius: 4px;
        }
        .pd-row {
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -webkit-flex-direction: column;
            -ms-flex-direction: column;
            flex-direction: column;
            gap: 12px;
        }
        .pd-col-image {
            -webkit-flex: 0 0 auto;
            -ms-flex: 0 0 auto;
            flex: 0 0 auto;
            width: 100%;
            min-height: 120px;
            padding: 4px;
        }
        .pd-image {
            max-height: 260px;
        }
        .pd-col-info {
            min-width: 0;
            width: 100%;
        }
        .pd-title {
            font-size: 18px;
            margin-bottom: 8px;
        }
        .pd-attr-item {
            font-size: 13px;
            padding: 3px 0;
        }
        .pd-attr-label {
            min-width: 60px;
        }
        .pd-price-section {
            padding: 10px 12px;
        }
        .pd-price-member {
            font-size: 17px;
        }
        .pd-price-market {
            font-size: 13px;
        }
        .pd-stock-update {
            font-size: 13px;
            gap: 2px 12px;
        }
        .pd-contact {
            font-size: 13px;
            gap: 4px 12px;
            padding: 6px 0;
        }
        .pd-summary-title {
            font-size: 14px;
        }
        .pd-summary-body {
            font-size: 13px;
            line-height: 1.7;
        }
    }

    @media screen and (max-width: 400px) {
        .pd-wrapper {
            padding: 8px 6px;
        }
        .pd-title {
            font-size: 16px;
        }
        .pd-attr-item {
            font-size: 12px;
        }
        .pd-attr-label {
            min-width: 50px;
        }
        .pd-price-member {
            font-size: 15px;
        }
        .pd-contact {
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -webkit-flex-direction: column;
            -ms-flex-direction: column;
            flex-direction: column;
            -webkit-box-align: start;
            -webkit-align-items: flex-start;
            -ms-flex-align: start;
            align-items: flex-start;
            gap: 2px 0;
        }
    }

    /* 打印样式忽略 */