body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
   background: linear-gradient(0deg, #F5F8FB 0%, #F5F8FB 100%), linear-gradient(0deg, #F7F9FC 0%, #F7F9FC 100%), #F7F9FC;
    margin: 0;
    padding: 0;
}
html {
  font-size: 16px !important;
}
.containergbk2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    /* margin-bottom: 25px; */
    /* border-bottom: 1px solid #e9ecef; */
    /* padding-bottom: 20px; */
}

.main-header .logo2 {
    width: 90px;
    height: 90px;
}

.main-header h1 {
    font-size: 2.5rem;
 

    font-weight: 600;
    color: #357AC0;



font-weight: 600;

letter-spacing: -0.56px;
}

.search-form-container {
    background-color: #f4f7fe;
    padding:15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 15px;
    width: 20px;
    height: 20px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}
.icon_arrow-left{
    display: inline-block;

  width: 20px;
  height: 20px;
  background-image: url('../img/cp/icon_arrow-left.png');
  background-size: cover;
    vertical-align: middle;
}
.icon_row-left{
    display: inline-block;
  
  width: 20px;
  height: 20px;
  background-image: url('../img/cp/icon_row-left.png');
  background-size: cover;
  vertical-align: middle;
}
 
.icon_arrow-right{
    display: inline-block;

  width: 20px;
  height: 20px;
  background-image: url('../img/cp/icon_arrow-right.png');
  background-size: cover;
    vertical-align: middle;
}
.icon_row-right{
    display: inline-block;
  
  width: 20px;
  height: 20px;
  background-image: url('../img/cp/icon_row-right.png');
  background-size: cover;
  vertical-align: middle;
}
 
.filter-label {
   font-weight: 400;
    display: inline-block;
     width: 110px;
     /* padding: 4px 20px; */
    color: #fff;

    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius:  6px;
    border: 1px solid  #357AC0;
    background:  #357AC0;
       font-size: 0.9rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 110px;
    height: 32px;
    font-size: 0.9rem;
    border: 1px solid #d1dce5;
    background-color: #fff;
    color: #495057;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.filter-btn.active::before {
    content: '✔';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 16px;
    height: 16px;
    background-color: #357AC0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-bottom-right-radius: 8px;
}

.filter-btn .icon {
    width: 24px;
    height: 24px;
}

.filter-btn .icon-active {
    display: none;
}

.filter-btn .icon-default {
    display: inline-block;
}

.filter-btn.active .icon-default {
    display: none;
}

.filter-btn.active .icon-active {
       display: inline-block;
}

.filter-btn.active {
    /* background-color: #e9f2f9; */
    color: #357AC0;
    font-weight: 500;
    border-color: #357AC0;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.btn-search, .btn-reset {
    padding: 5px 40px;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-search {
   border-radius:  6px;
background:#357AC0;
color: #fff;
}

.btn-reset {
    background-color: #7B7B7B;
    color: #fff;
    border: 1px solid #ddd;
}

.results-summary {
    font-size: 1rem;


font-style: normal;
font-weight: 500;
line-height: 24px; /* 150% */
letter-spacing: -0.176px;
    color: #171717;
    margin-bottom: 15px;
    text-align: right;
}
.results-summary .value{
color: #357AC0;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #357AC0;
    border-radius: 8px;
    /* overflow: hidden; */
    background-color: #fff;
}
.results-table .tag-ban {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    text-align: center;
    margin-left: 15px;
    background-color: #C0DB22;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor:pointer;
}
.results-table th, .results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #357AC0;
    border-right: 1px solid #357AC0;
}

.results-table th {
    background-color: #eaf2f9;
    font-weight: 500;
    font-size:16px;
    color: #357AC0;

    border-bottom: 1px solid #357AC0;
    text-align: center;
}

.results-table td {
    font-size: 0.9rem;
    background-color: #fff;
}

.results-table tbody tr:hover {
    background-color: #f8fbff;
}

.results-table th:first-child,
.results-table td:first-child {
    text-align: center;
    width: 80px;
}

.results-table th:nth-child(3),
.results-table td:nth-child(3) {
    text-align: center;
    width: 180px;
}

.results-table th:nth-child(4),
.results-table td:nth-child(4) {
    text-align: center;
    width: 150px;
}

.results-table th:last-child,
.results-table td:last-child {
    border-right: none;
}

.results-table a {
    color: #171717;
    text-decoration: none;
}

.results-table a:hover {
    color: #357AC0;
    text-decoration: underline;
}

.results-table a:hover {
    text-decoration: underline;
}

.file-name-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.file-name-cell a {
    flex: 1;
    margin-right: 10px;
}


.pagination2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    color: #5C5C5C;
}

.page-nav, .page-num, .page-size {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    border-radius: 10px;
    cursor: pointer;
    margin:0 3px;
}

.page-num.active {
    background-color: #357AC0;
    color: #fff;
    border-color: #357AC0;
}

.page-ellipsis {
    padding: 8px 0;
}

.page-size {
    margin-left: 15px;
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 768px) {
     html {
        font-size: 14px; /* 在中等屏幕上缩小基准字体 */
    }

    .container {
        padding: 10px;
    }

    .filter-label {
       width: auto;
    }

    .filter-btn {
        width: auto;
    
    }

    .main-header h1 {
        font-size: 1.2rem;
    }

  

    .category-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-label {
        margin-bottom: 10px;
        text-align: center;
    }

    .action-buttons {
        flex-direction: column;
    }

    /* 将表格转换为卡片列表 */
    .results-table thead {
        display: none; /* 隐藏表头 */
    }

    .results-table, .results-table tbody, .results-table tr, .results-table td {
        display: block;
        width: 100%;
    }
      .results-table{
    border: none;
}
    .results-table tr {
        margin-bottom: 15px;
        border: 1px solid #357AC0;
        border-radius: 8px;
        padding: 10px;
        box-sizing: border-box;
    }

    .results-table td {
        border: none;
        padding: 12px 4px;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
    }

    .results-table td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-bottom: 8px;
        color: #171717;
        font-size: 0.85rem;
    }
    
    .results-table td:nth-child(2) {
        align-items: stretch;
    }

    .results-table td:nth-child(2) .file-name-cell {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 15px;
        width: 100%;
    }

    .results-table td:nth-child(2) .file-name-cell a {
        flex: 1;
        margin-right: 0;
        line-height: 1.5;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .results-table td:nth-child(2) .file-name-cell .tag-ban {
        flex-shrink: 0;
        margin-left: 0;
    }

    .results-table td:first-child {
        display: none; /* 在卡片模式下隐藏序号 */
    }

    .pagination2 {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .pagination2 > span:first-of-type {
        order: -1;
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 10px;
    }

    .pagination2 .page-controls {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        align-items: center;
    }

    .page-nav, .page-num {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: 40px;
        text-align: center;
    }

    .page-size {
        order: 1;
        margin-left: 0;
        margin-top: 10px;
        padding: 8px 15px;
        min-width: 120px;
    }
}
