/* 自定义搜索框样式 - 嵌入 .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;   /* 小屏下表头允许换行 */
            }
        }