.help-center {
  min-width: 320px;
  background: var(--color-bg);
}

.help-center__hero {
  height: 280px;
  background: #d9e4f2 url("help-hero-bg-01.jpg") center center / cover no-repeat;
}

.help-center__hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  width: 764px;
  height: 100%;
  margin: 0 auto;
}

.help-center__title {
  margin: 0 0 28px;
  color: var(--color-text);
  font-size: 30px;
  font-weight: 400;
  line-height: 42px;
  text-align: center;
}

.help-center__search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  height: 50px;
  box-shadow: 0 10px 24px rgba(34, 88, 153, 0.08);
}

.help-center__search-label,
.help-center__category-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.help-center__search-input {
  min-width: 0;
  height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--color-text);
  background: #ffffff;
  font-size: 16px;
}

.help-center__search-input::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}

.help-center__search-input::-ms-clear {
  display: none;
}

.help-center__search-input:focus {
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

.help-center__search-clear {
  position: absolute;
  top: 0;
  right: 120px;
  z-index: 2;
  width: 42px;
  height: 50px;
  padding: 0;
  border: 0;
  color: var(--color-muted);
  background: transparent;
  cursor: pointer;
}

.help-center__search-clear[hidden] {
  display: none;
}

.help-center__search-clear::before,
.help-center__search-clear::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
  content: "";
}

.help-center__search-clear::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.help-center__search-clear::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.help-center__search-clear span {
  display: none;
}

.help-center__search-clear:hover {
  color: var(--color-primary);
}

.help-center__search-button {
  height: 50px;
  border: 0;
  color: #ffffff;
  background: var(--color-primary);
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s ease;
}

.help-center__search-button:hover {
  background: var(--color-primary-dark);
}

.help-center__hot-searches {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 10px 0 0;
  padding: 0;
  color: var(--color-muted);
  list-style: none;
  font-size: 14px;
  line-height: 20px;
}

.help-center__hot-searches button {
  padding: 0;
  border: 0;
  color: var(--color-muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

.help-center__hot-searches button:hover {
  color: var(--color-primary);
}

.help-center__hot-label {
  color: #353b43;
}

.help-center__category-nav {
  border-bottom: 1px solid var(--color-border);
  background: #ffffff;
}

.help-center__category-shell {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  width: calc(100% - 48px);
}

.help-center__category-scroll {
  overflow: visible;
}

.help-center__category-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.help-center__category-table td {
  padding: 0;
}

.help-center__category-table a {
  display: block;
  text-align: center;
  line-height: 60px;
  width: 100%;
  height: 60px;
  border: 0;
  color: var(--color-text);
  background: #ffffff;
  cursor: pointer;
  font-size: 18px;
  transition: color 0.2s ease, background 0.2s ease;
}

.help-center__category-table a:hover {
  color: var(--color-primary);
  background: #f7faff;
}

.help-center__category-table a.is-active {
  color: #ffffff;
  background: var(--color-primary);
}

.help-center__category-toggle,
.help-center__category-menu {
  display: none;
}

.help-center__articles {
  max-width: 1360px;
  margin: 0 auto;
  padding: 26px 0 0;
  width: calc(100% - 48px);
}

.help-center__article {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  gap: 20px;
  box-sizing: border-box;
  min-height: 192px;
  padding: 28px 24px;
  border-bottom: 1px solid #dfe3e8;
  background: #ffffff;
  transition: background 0.2s ease;
  width: calc(100% - 48px);
}

.help-center__article:hover {
  background: #f5f8ff;
}

.help-center__article:hover h2 {
  color: var(--color-primary);
}

.help-center__article-image {
  display: block;
  width: 204px;
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 0;
  object-fit: cover;
}

.help-center__article-content {
  min-width: 0;
}

.help-center__article-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.help-center__article-heading h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  transition: color 0.2s ease;
}

.help-center__article-heading time {
  padding-top: 2px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 24px;
}

.help-center__article-content p {
  display: -webkit-box;
  min-height: 48px;
  max-height: 48px;
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 24px;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.help-center__detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  height: 34px;
  padding: 0 20px;
  border: 1px solid var(--color-primary);
  border-radius: 18px;
  color: var(--color-primary);
  background: #ffffff;
  font-size: 14px;
  line-height: 32px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.help-center__detail-button:hover {
  color: #ffffff;
  background: var(--color-primary);
  transform: translateY(-1px);
}

.help-center__empty {
  padding: 100px 0;
  color: var(--color-muted);
  font-size: 16px;
  text-align: center;
}

.help-center__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 42px 0 70px;
}

.help-center__page-numbers {
  display: flex;
  gap: 8px;
}

.help-center__page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dfe3e8;
  border-radius: 4px;
  color: var(--color-text);
  background: #ffffff;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.help-center__page-button:hover:not(:disabled),
.help-center__page-button.is-active {
  border-color: var(--color-primary);
  color: #ffffff;
  background: var(--color-primary);
}

.help-center__page-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.help-center__page-button--direction {
  font-size: 22px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 767px) {
  .help-center__hero {
    height: 250px;
    background-position: 55% center;
  }

  .help-center__hero-inner {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 0 20px;
  }

  .help-center__title {
    margin-bottom: 22px;
    font-size: 27px;
  }

  .help-center__search {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .help-center__search-clear {
    right: 92px;
  }

  .help-center__hot-searches {
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .help-center__category-shell,
  .help-center__articles {
    box-sizing: border-box;
    width: 100%;
  }

  .help-center__category-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    overflow: visible;
  }

  .help-center__category-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .help-center__category-scroll::-webkit-scrollbar {
    display: none;
  }

  .help-center__category-table {
    width: 166.6667%;
    min-width: 0;
  }

  .help-center__category-toggle {
    position: relative;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 60px;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--color-border);
    color: var(--color-text);
    background: #ffffff;
    cursor: pointer;
    box-shadow: -8px 0 16px rgba(28, 54, 88, 0.06);
    transition: color 0.2s ease;
  }

  .help-center__category-toggle span {
    display: block;
    box-sizing: border-box;
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 1px;
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.2s ease;
  }

  .help-center__category-toggle[aria-expanded="true"] {
    color: var(--color-primary);
  }

  .help-center__category-toggle[aria-expanded="true"] span {
    transform: translateY(3px) rotate(225deg);
  }

  .help-center__category-menu {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    z-index: 11;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--color-border);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(28, 54, 88, 0.16);
  }

  .help-center__category-menu:not([hidden]) {
    display: grid;
  }

  .help-center__category-menu button {
    height: 44px;
    padding: 0 8px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    background: #ffffff;
    cursor: pointer;
    font-size: 16px;
  }

  .help-center__category-menu button.is-active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #f5f8ff;
  }

  .help-center__articles {
    padding: 10px 20px 0;
  }

  .help-center__article {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0;
  }

  .help-center__article-image {
    width: 100%;
    max-width: 408px;
  }

  .help-center__article-heading {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .help-center__pagination {
    padding: 32px 0 50px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {

  .help-center__category-shell,
  .help-center__articles {
    box-sizing: border-box;
    width: 100%;
    padding-right: 32px;
    padding-left: 32px;
  }

  .help-center__article {
    grid-template-columns: 204px minmax(0, 1fr);
  }
}

.pagination>*>* {
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dfe3e8;
  border-radius: 4px;
  color: var(--color-text);
  background: #ffffff;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;

}

.pagination>*>*:hover {
  border-color: var(--color-primary);
}

/* ==================== 文章详情页两栏布局 ==================== */
.help-center__detail {
  background-color: rgba(240 242 246);
}

.help-center__detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  box-sizing: border-box;
  width: 1360px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

.help-center__detail-main {
  box-sizing: border-box;
  min-width: 0;
  padding: 28px 32px 36px;
  background: #ffffff;
}

.help-center__detail-main .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 10px;
  padding: 0;
  color: #999999;
  list-style: none;
  font-size: 14px;
  line-height: 20px;
  background-color: #fff;
}

.help-center__detail-main .breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.help-center__detail-main .breadcrumb li:not(:last-child)::after {
  content: "";
}

.help-center__detail-main .breadcrumb a {
  color: #999999;
  text-decoration: none;
  transition: color 0.2s ease;
}

.help-center__detail-main .breadcrumb a:hover {
  color: var(--color-primary);
}

.help-center__detail-main .article-info {
  padding: 0;
  border: 0;
  background: transparent;
}

.help-center__detail-main .article-info .title {
  margin: 0 0 10px !important;
  color: #333333;
  font-size: 26px;
  font-weight: 500;
  line-height: 38px;
  text-align: left;
}

.help-center__detail-main .article-info .tit-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px;
  padding: 0 0 30px !important;
  border-bottom: 1px solid #e5e5e5 !important;
  color: #999999;
  text-align: left;
  font-size: 14px;
  line-height: 20px;
    justify-content: center;
}

.help-center__detail-main .article-info .tit-bar .iconfont {
  color: #cccccc;
  font-size: 14px;
}

.help-center__detail-main .article-info .content {
  color: #333333;
  font-size: 15px;
  line-height: 1.85;
}

.help-center__detail-main .article-info .content img {
  max-width: 100%;
  height: auto;
}

.help-center__detail-main .article-info .content p {
  margin: 0 0 16px;
}

.help-center__detail-main .article-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.help-center__detail-main .article-nav a,
.help-center__detail-main .article-nav span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 48%;
  color: #666666;
  font-size: 14px;
  line-height: 22px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.help-center__detail-main .article-nav a:hover {
  color: var(--color-primary);
}

.help-center__detail-main .article-nav em {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  color: #999999;
  font-style: normal;
  font-size: 12px;
}

.help-center__detail-main .article-nav span>span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.help-center__detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.help-center__recommend {
  box-sizing: border-box;
  padding: 25px;
  background: #ffffff;
}

.help-center__recommend-title {
  position: relative;
  font-weight: bold;
  margin: 0 0 10px;
  padding: 0 0 12px;
  /* border-bottom: 1px solid #f0f0f0; */
  color: #333333;
  font-size: 20px;
  line-height: 26px;
}

.help-center__recommend-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-center__recommend-list li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px dashed #eeeeee;
}

.help-center__recommend-list li:last-child {
  border-bottom: 0;
}

.help-center__recommend-list a {
  display: -webkit-box;
  overflow: hidden;
  color: #333333;
  font-size: 16px;
  line-height: 22px;
  text-decoration: none;
  transition: color 0.2s ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.help-center__recommend-list a:hover {
  color: var(--color-primary);
}

.help-center__recommend-empty {
  padding: 10px 0;
  color: #999999;
  font-size: 14px;
}

.help-center__ads {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.help-center__ads-item {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  line-height: 0;
}

.help-center__ads-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.help-center__ads-item:hover img {
  transform: scale(1.03);
}

/* ==================== 文章详情页响应式 ==================== */
@media (max-width: 1380px) {
  .help-center__detail-layout {
    box-sizing: border-box;
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 1024px) {
  .help-center__detail-layout {
    grid-template-columns: 1fr;
  }

  .help-center__detail-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .help-center__recommend,
  .help-center__ads {
    flex: 1 1 calc(50% - 10px);
    min-width: 280px;
  }

  .help-center__ads {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .help-center__detail-layout {
    padding: 10px 0 40px;
  }

  .help-center__detail-main {
    padding: 20px;
  }

  .help-center__detail-main .article-info .title {
    font-size: 20px;
    line-height: 30px;
  }

  .help-center__detail-main .article-nav {
    flex-direction: column;
    gap: 14px;
  }

  .help-center__detail-main .article-nav a,
  .help-center__detail-main .article-nav span {
    max-width: 100%;
  }

  .help-center__detail-sidebar {
    flex-direction: column;
  }

  .help-center__recommend,
  .help-center__ads {
    flex: 1 1 auto;
    min-width: auto;
  }

  .help-center__ads {
    display: flex;
    flex-direction: column;
  }
}