.zhiting-download-list {
  padding: var(--gap-100) 0;
  background: var(--bg-color);
}

/* 搜索栏 */
.zhiting-download-list-search {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin: 0 auto var(--gap-100);
}

.zhiting-download-list-search-input {
  flex: 1;
  min-width: 0;
  max-width: 821px;
  height: 57px;
  padding: 0 20px;
  border: 1px solid #DDD;
  border-radius: 5px;
  background: #F6F6F6;
  color: #000;
  font-family: var(--zhiting-font-accent);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5; /* 24px */
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.zhiting-download-list-search-input::placeholder {
  color: #454545;
}

.zhiting-download-list-search-input:focus {
  border-color: var(--color-primary);
}

.zhiting-download-list-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 57px;
  padding: 0 87px;
  border: none;
  border-radius: 5px;
  background: var(--zhiting-accent-gradient);
  color: #fff;
  font-family: var(--zhiting-font-accent);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.zhiting-download-list-search-btn:hover {
  opacity: 0.9;
}

.zhiting-download-list-search-btn svg {
  flex-shrink: 0;
}

/* Tabs */
.zhiting-download-list-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: var(--gap-50);
}

.zhiting-download-list-tabs {
  display: inline-flex;
  gap: 55px;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: scroll;
  border-bottom: 1px solid #DDD;
}

.zhiting-download-list-tabs::-webkit-scrollbar {
  display: none;
}

.zhiting-download-list-tabs-item {
  text-align: center;
  white-space: nowrap;
  position: relative;
}

.zhiting-download-list-tabs-item a {
  display: block;
  color: #474747;
  font-family: var(--zhiting-font-accent);
  font-size: var(--font-20);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  transition: all 0.3s ease;
  padding-bottom: 30px;
}

.zhiting-download-list-tabs-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background: var(--zhiting-accent-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.zhiting-download-list-tabs-item.active::after,
.zhiting-download-list-tabs-item:hover::after {
  transform: scaleX(1);
}

.zhiting-download-list-tabs-item.active a,
.zhiting-download-list-tabs-item:hover a {
  background: var(--zhiting-accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Table */
.zhiting-download-list-table {
  overflow: hidden;
  margin-bottom: var(--gap-60);
}

.zhiting-download-list-table-head {
  display: grid;
  grid-template-columns: 2.6fr 1fr 1fr 1fr;
  align-items: center;
  background: #454545;
}

.zhiting-download-list-table-head .zhiting-download-list-col {
  padding: 10px var(--gap-60);
  color: #FFF;
  font-family: var(--zhiting-font-accent);
  font-size: 22px;
  line-height: normal;
}

.zhiting-download-list-table-body {
  display: flex;
  flex-direction: column;
}

.zhiting-download-list-row {
  display: grid;
  grid-template-columns: 2.6fr 1fr 1fr 1fr;
  align-items: center;
  transition: background 0.3s ease;
}

.zhiting-download-list-row:nth-of-type(even){
  background: #F6F6F6;
}

.zhiting-download-list-row:hover {
  background: #FAFAFA;
}

.zhiting-download-list-row .zhiting-download-list-col {
  padding: 30px var(--gap-60);
  color: #000;
  font-family: var(--zhiting-font-accent);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

.zhiting-download-list-name-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zhiting-download-list-mobile-label {
  display: none;
  color: #888;
  font-weight: 700;
  margin-right: 8px;
}

/* Action button */
.zhiting-download-list-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #000;
  font-family: var(--zhiting-font-accent);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.zhiting-download-list-action-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.zhiting-download-list-empty {
  padding: 60px 20px;
  text-align: center;
  color: #888;
  font-family: var(--zhiting-font-accent);
  font-size: 16px;
}

/* 响应式 */
@media screen and (max-width: 992px) {
  .zhiting-download-list-tabs {
    gap: 30px;
  }

  .zhiting-download-list-table-head,
  .zhiting-download-list-row {
    padding: 0 20px;
  }

  .zhiting-download-list-table-head .zhiting-download-list-col,
  .zhiting-download-list-row .zhiting-download-list-col {
    padding: 18px 8px;
  }
}

@media screen and (max-width: 768px) {
  .zhiting-download-list-search {
    margin-bottom: 30px;
  }

  .zhiting-download-list-search-btn {
    padding: 0 20px;
  }

  .zhiting-download-list-search-btn span {
    display: none;
  }

  .zhiting-download-list-tabs {
    justify-content: flex-start;
    gap: 20px;
  }

  .zhiting-download-list-tabs-item a {
    padding: 10px 20px;
  }

  .zhiting-download-list-tabs-wrapper {
    margin-bottom: 30px;
  }

  /* Table 转为卡片 */
  .zhiting-download-list-table {
    border: none;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 40px;
  }

  .zhiting-download-list-table-head {
    display: none;
  }

  .zhiting-download-list-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border: 1px solid #EEE;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #fff;
  }

  .zhiting-download-list-row:last-child {
    margin-bottom: 0;
  }

  .zhiting-download-list-row .zhiting-download-list-col {
    padding: 6px 0;
    align-items: flex-start;
  }

  .zhiting-download-list-mobile-label {
    display: inline-block;
    white-space: nowrap;
    width: 50%;
  }

  .zhiting-download-list-name-text {
    -webkit-line-clamp: 3;
    flex: 1;
  }

  .zhiting-download-list-col-action {
    margin-top: 10px;
  }

  .zhiting-download-list-action-btn {
    width: 100%;
  }
}
