.inventory-section {
  padding: 40px 0;
  background: #fff;
  min-height: 600px;
}

.inventory-search-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.inventory-search-form {
  width: 100%;
  max-width: 670px;
  display: flex;
}

.inventory-input-box {
  flex: 1;
  border: 1px solid #2057A5;
  border-right: none;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 16px 19px;
}

.inventory-input-box span{
    font-family: Arial;
    font-weight: 400;
    font-size: 17px;
    color: #000000;
    position: relative;
    padding-right: 12px;
    margin-right: 11px;
}

.inventory-input-box span::after{
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    content: '';
    width: 1px;
    height: 14px;
    background-color: #D9D9D9;
}

.inventory-input {
    border: 0;
    color: #000000;
    outline: none;
    font-family: Arial;
    font-weight: 400;
    font-size: 17px;
}

.inventory-input::-webkit-input-placeholder {
  color: #B3B3B3;
}

.inventory-input::-moz-placeholder {
  color: #B3B3B3;
}

.inventory-input:-ms-input-placeholder {
  color: #B3B3B3;
}

.inventory-input::placeholder {
  color: #B3B3B3;
}

.inventory-search-btn {
  border: 0;
  background: #0e4b9d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0 28px;
}

.inventory-search-btn span{
    font-family: Arial;
    font-weight: 400;
    font-size: 17px;
    color: #fff;
}

.inventory-records {
  font-family: Arial;
  text-align: right;
  font-size: 16px;
  color: #000;
  padding-right: 8px;
  margin-bottom: 14px;
}

.inventory-records span {
  color: #666;
}

.inventory-table-wrap {

    box-shadow: 0px 4px 40px 0px #0000001A;
}

.inventory-grid {
  width: 100%;
}

.inventory-grid-row {
  display: grid;
  grid-template-columns: 25% 20% 20% 20% 15%;
}

.inventory-grid-head {
  background: #2057A5;
}

.inventory-grid-head .inventory-grid-cell {
  font-family: Arial;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  padding: 18px 26px;
}

.inventory-grid-body{
    min-height: auto !important;
}

.inventory-grid-body .inventory-grid-row:nth-child(odd) {
  background: #fff;
}

.inventory-grid-body .inventory-grid-row:nth-child(even) {
  background: #F5F5F5;
}

.inventory-grid-body .inventory-grid-cell {
  padding: 14px 26px;
  font-size: 18px;
  color: #4D4D4D;
  font-family: Arial;
  line-height: 1;
  font-weight: 400;
  display: flex;
  align-items: center;

}

.inventory-grid-cell:nth-child(2),
.inventory-grid-cell:nth-child(3),
.inventory-grid-cell:nth-child(4),
.inventory-grid-cell:nth-child(5) {
  justify-content: center;
  text-align: center;
}

.inventory-mail {
  display: block;
}

.page-pagination{
    margin: 40px 0 0;
}

.page-pagination a{
    background: #F4F4F4;
    color: #7F7F7F;
}

.inventory-empty{
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 30px 0;
}

.inventory-empty i{
    font-size: 42px;
    color: #999;
    margin-bottom: 15px;
}

.inventory-empty p{
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.inventory-empty span{
    font-size: 14px;
    color: #999;
}

/* 防止小屏撑破 */
.inventory-section,
.inventory-section * {
    box-sizing: border-box;
}

.inventory-search-form,
.inventory-input-box,
.inventory-input,
.inventory-table-wrap,
.inventory-grid {
    min-width: 0;
}

/* 1200 以下：整体缩小 */
@media (max-width: 1200px) {
    .inventory-section {
        padding: 36px 0;
    }

    .inventory-grid-head .inventory-grid-cell,
    .inventory-grid-body .inventory-grid-cell {
        padding-left: 18px;
        padding-right: 18px;
        font-size: 16px;
    }

    .inventory-grid-row {
        grid-template-columns: 28% 20% 17% 20% 15%;
    }
}

/* 992 以下：表格允许横向滚动 */
@media (max-width: 992px) {
    .inventory-search-wrap {
        margin-bottom: 30px;
    }

    .inventory-search-form {
        max-width: 100%;
    }

    .inventory-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .inventory-grid {
        min-width: 820px;
    }

    .inventory-grid-head .inventory-grid-cell,
    .inventory-grid-body .inventory-grid-cell {
        padding: 14px 16px;
        font-size: 15px;
    }

    .inventory-records {
        font-size: 15px;
    }
}

/* 768 以下：搜索框压缩 */
@media (max-width: 768px) {
    .inventory-section {
        padding: 28px 0;
        min-height: auto;
    }

    .inventory-search-wrap {
        margin-bottom: 24px;
    }

    .inventory-input-box {
        padding: 13px 14px;
    }

    .inventory-input-box span,
    .inventory-input,
    .inventory-search-btn span {
        font-size: 15px;
    }

    .inventory-search-btn {
        padding: 0 20px;
    }

    .inventory-search-btn svg {
        width: 20px;
        height: 20px;
    }

    .inventory-records {
        text-align: left;
        padding-right: 0;
        margin-bottom: 12px;
    }

    .page-pagination {
        margin-top: 28px;
    }

    .page-pagination a{
      margin: 5px;
    }
}

/* 576 以下：保持表格，横向滑动，不改卡片 */
@media (max-width: 576px) {
    .inventory-section {
        padding: 24px 0;
        min-height: auto;
    }

    .inventory-search-wrap {
        margin-bottom: 24px;
    }

    .inventory-search-form {
        flex-direction: column;
        max-width: 100%;
    }

    .inventory-input-box {
        width: 100%;
        border: 1px solid #2057A5;
        padding: 12px 14px;
    }

    .inventory-input-box span {
        flex-shrink: 0;
        font-size: 14px;
        margin-right: 8px;
        padding-right: 9px;
    }

    .inventory-input {
        width: 100%;
        min-width: 0;
        font-size: 14px;
    }

    .inventory-search-btn {
        width: 100%;
        height: 46px;
        margin-top: 10px;
        padding: 0;
    }

    .inventory-search-btn span {
        font-size: 15px;
    }

    .inventory-records {
        text-align: left;
        padding-right: 0;
        font-size: 14px;
        margin-bottom: 12px;
    }

    .inventory-table-wrap {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0px 4px 24px 0px #00000014;
    }

    .inventory-grid {
        width: 720px;
        min-width: 720px;
    }

    .inventory-grid-row {
        grid-template-columns: 28% 20% 16% 20% 16%;
    }

    .inventory-grid-head .inventory-grid-cell {
        padding: 13px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .inventory-grid-body .inventory-grid-cell {
        padding: 12px;
        font-size: 13px;
        line-height: 1.35;
        min-height: 45px;
        word-break: break-word;
    }

    .inventory-mail svg {
        width: 24px;
        height: 24px;
    }

    .page-pagination {
        margin-top: 26px;
    }

    .inventory-empty {
        padding: 40px 16px;
        margin: 20px 0;
    }

    .inventory-empty p {
        font-size: 18px;
    }

    .inventory-empty span {
        font-size: 13px;
    }
}

/* 400 以下：只压缩搜索框，不动表格结构 */
@media (max-width: 400px) {
    .inventory-input-box {
        padding: 11px 12px;
    }

    .inventory-input-box span {
        font-size: 13px;
    }

    .inventory-input {
        font-size: 13px;
    }

    .inventory-grid {
        width: 680px;
        min-width: 680px;
    }

    .inventory-grid-head .inventory-grid-cell,
    .inventory-grid-body .inventory-grid-cell {
        padding-left: 10px;
        padding-right: 10px;
    }
}