/* category_page   ---- 开始---- */
#jackery-product-section .banner_content {
  width: 100%;
  display: flex;
  gap: 20px;
}
#jackery-product-section .banner_right {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}
#jackery-product-section .banner {
  max-width: 100%;
  height: 200px;
}
#jackery-product-section .manual-tabs-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

#jackery-product-section .manual-tabs-left,
#jackery-product-section .banner_left {
  width: 200px;
}

#jackery-product-section .manual-tabs-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

#jackery-product-section .tab-item {
  padding: 10px 15px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.3s;
}

#jackery-product-section .tab-item.active {
  background-color: #f0f4ff;
  border-left: 3px solid var(--jk-accent);
  font-weight: bold;
}

#jackery-product-section .tab-item:hover {
  background-color: #f9f9f9;
}

#jackery-product-section .manual-tabs-right {
  flex: 1;
  min-width: 0; /* 允许收缩到内容最小宽度以下，nowrap 标题才能正常省略号截断 */
  padding: 15px;
  border-radius: 5px;
  background-color: var(--jk-surface);
}

#jackery-product-section .tab-content h3 {
  margin-top: 0;
  /* 长 section 标题不要撑大右侧、挤变形左侧 tab 菜单 */
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* banner 上的分类名（h1）— 长名称同样不要撑破 banner 容器 */
#jackery-product-section .banner_right h1 {
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* 文章列表排序工具条 */
#jackery-product-section .article-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 2px 0 12px;
}
#jackery-product-section .article-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}
#jackery-product-section .article-sort-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}
#jackery-product-section .article-sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 7px 32px 7px 12px;
  font-size: 13px;
  color: var(--jk-ink);
  background: #fff;
  border: 1px solid #e2e6ed;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#jackery-product-section .article-sort-select:hover {
  border-color: var(--jk-accent);
}
#jackery-product-section .article-sort-select:focus {
  outline: none;
  border-color: var(--jk-accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
#jackery-product-section .article-sort-field::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 2px solid #9aa3b2;
  border-bottom: 2px solid #9aa3b2;
  transform: rotate(45deg);
  pointer-events: none;
}

/* 文章列表（限定分类页 wrapper 作用域，避免影响 section 页同名 ul） */
#jackery-product-section .article-list-wrapper .article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
#jackery-product-section .article-item {
  margin-bottom: 0;
  border-bottom: 1px solid #f0f0f0;
}
#jackery-product-section .article-item:last-child {
  border-bottom: none;
}
#jackery-product-section .article-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--jk-ink);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
#jackery-product-section .article-link:hover {
  background-color: #f5f7fa;
  color: var(--jk-accent);
  text-decoration: none;
}
#jackery-product-section .article-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f0f4fa;
  color: var(--jk-accent);
}
#jackery-product-section .article-icon svg {
  width: 18px;
  height: 18px;
}
#jackery-product-section .article-main {
  flex: 1 1 auto;
  min-width: 0; /* 让标题能正常省略号截断 */
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#jackery-product-section .article-item .article-link .product-article-title {
  display: block;
  font-size: 14.5px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--jk-ink);
  /* 长标题最多显示 1 行，超出部分省略号截断 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#jackery-product-section .product-article-meta {
  font-size: 12px;
  color: #98a1b0;
}
#jackery-product-section .article-chevron {
  flex: 0 0 auto;
  display: inline-flex;
  color: #c2c9d6;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
#jackery-product-section .article-chevron svg {
  width: 16px;
  height: 16px;
}
#jackery-product-section .article-link:hover .article-chevron {
  opacity: 1;
  transform: translateX(0);
  color: var(--jk-accent);
}
#jackery-product-section .show-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-width: 168px;
  margin: 18px auto 4px;
  padding: 10px 26px;
  background: #fff;
  border: 1px solid var(--jk-accent);
  border-radius: 999px;
  color: var(--jk-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
/* 下箭头（跟随文字色，hover 时轻微下移） */
#jackery-product-section .show-more-btn::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.2s ease;
}
#jackery-product-section .show-more-btn:hover {
  background-color: var(--jk-accent);
  border-color: var(--jk-accent);
  color: var(--jk-on-accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}
#jackery-product-section .show-more-btn:hover::after {
  transform: translateY(2px) rotate(45deg);
}
#jackery-product-section .show-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

#jackery-product-section .banner {
  object-fit: contain;
}

@media (max-width: 767px) {
  #jackery-product-section .banner_content {
    display: block;
  }

  #jackery-product-section .banner_left {
    display: none;
  }

  #jackery-product-section .manual-tabs-container {
    display: block;
  }

  #jackery-product-section .manual-tabs-left {
    width: 100%;
    margin-bottom: 16px;
  }

  #jackery-product-section .manual-tabs-menu {
    display: flex;
    overflow-x: auto;
  }

  #jackery-product-section .tab-item {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  #jackery-product-section .manual-tabs-right {
    padding: 0;
  }
}
