/* Reference-style brand navigation, scoped to the category route. */
.brand-category-page {
  color: #303133;
  background: #fff;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.brand-category-page .site-header { background: #fff; box-shadow: 0 2px 7px #0000000b; }
.brand-category-page .header-inner { min-height: 64px; padding-block: 8px; }
.brand-category-page .search-form,
.brand-category-page .site-footer { display: none; }
.brand-category-page .tab-bar { background: #fff; }
#main-content.brand-category-layout {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  background: #fff;
}
.brand-directory { width: 100%; min-width: 0; }
.brand-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  padding: 0 6px;
  color: #666;
  font-size: 14px;
  line-height: 28px;
}
.brand-breadcrumb a { color: #303133; font-weight: 600; }
.brand-search-form {
  display: flex;
  align-items: center;
  height: 36px;
  margin: 9px 15px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f8f8f8;
}
.brand-search-form:focus-within { border-color: #ff4544; }
#brand-search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 34px;
  padding: 0 0 0 18px;
  border: 0;
  outline: 0;
  border-radius: inherit;
  background: transparent;
  color: #303133;
  font-size: 14px;
  line-height: 34px;
}
#brand-search-input::placeholder { color: #858585; opacity: 1; }
.brand-search-form button {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
}
.brand-search-form button img { width: 18px; height: 18px; object-fit: contain; opacity: .6; }
.brand-category-workspace {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  width: 100%;
  height: calc(100dvh - var(--brand-workspace-top, 153px) - var(--tab-height, 70px) - env(safe-area-inset-bottom, 0px));
  min-height: 240px;
  border-top: 1px solid #eee;
}
.brand-category-sidebar,
.brand-category-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.brand-category-sidebar::-webkit-scrollbar,
.brand-category-panel::-webkit-scrollbar { display: none; }
.brand-category-sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 5px 0 16px;
  background: #f8f8f8;
}
.brand-category-tab {
  position: relative;
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #909090;
  border-radius: 7px;
  background: transparent;
  color: #303133;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  line-height: 38px;
}
.brand-category-tab span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-category-tab[aria-current="page"] { border-color: #ff4544; color: #ff4544; background: #fff; }
.brand-category-tab[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #ff4544;
}
.brand-category-panel { padding: 15px 15px 18px; background: #fff; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  justify-items: center;
  gap: 20px 0;
  min-width: 0;
}
.brand-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 57px;
  max-width: 100%;
  min-width: 0;
  min-height: 82px;
  color: #303133;
  text-align: center;
}
.brand-logo { display: block; flex: 0 0 auto; width: 57px; height: 57px; max-width: 100%; object-fit: contain; }
.brand-name {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 10px;
  overflow: hidden;
  color: #303133;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 400;
  line-height: 15px;
}
.brand-category-tab:focus-visible,
.brand-tile:focus-visible,
.brand-search-form button:focus-visible,
.brand-breadcrumb a:focus-visible { outline: 2px solid #ff4544; outline-offset: -2px; }
@media (max-width: 350px) {
  .brand-category-panel { padding-inline: 9px; }
  .brand-tile,
  .brand-logo { width: 52px; }
  .brand-logo { height: 52px; }
  .brand-tile { min-height: 77px; }
}
@media (min-width: 720px) {
  .brand-category-workspace { grid-template-columns: 120px minmax(0, 1fr); }
  .brand-category-tab { min-height: 44px; flex-basis: 44px; font-size: 14px; }
  .brand-category-panel { padding: 20px 24px; }
  .brand-grid { row-gap: 26px; }
  .brand-tile,
  .brand-logo { width: 96px; }
  .brand-logo { height: 96px; }
  .brand-tile { min-height: 123px; }
  .brand-name { font-size: 14px; line-height: 17px; }
}


.brand-logo-light { background: #29241f; padding: 4px; box-sizing: border-box; border-radius: 4px; }
