/* ============ 重置 ============ */
.directory-page,
.directory-page *,
.directory-page *::before,
.directory-page *::after {
  box-sizing: border-box;
}

/* 目录页专用 body：与首页保持白底与默认继承链，不把字号/灰底写在 body 上，避免公共底部 foot-msgboard、footer_bot 与首页不一致 */
body.page-directory {
  margin: 0;
  padding: 0;
  background: #fff;
}

/* 主题变量与正文排版仅作用于目录主区域，避免覆盖全站 :root */
.directory-page {
  --primary: #ff5c04;
  --primary-light: #ff8a3d;
  --primary-dark: #ff5a0e;
  --primary-bg: #fff3eb;
  --text: #1f2533;
  --text-2: #535a6b;
  --text-3: #8b91a0;
  --border: #ececf0;
  --bg-page: #f6f7fa;
  font-family:
          "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
          sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: #f6f7fa;
}

/* 仅作用于目录主内容区，避免影响公共底部 .foot-msgboard 内 input/button 及全站列表链接 */
.directory-page a {
  color: inherit;
  text-decoration: none;
}

.directory-page img {
  display: block;
  max-width: 100%;
  border: 0;
}

.directory-page ul,
.directory-page li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.directory-page button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

.directory-page input {
  font-family: inherit;
  outline: none;
  border: 0;
  background: none;
}

.directory-page h1,
.directory-page h2,
.directory-page h3,
.directory-page h4 {
  margin: 0;
  font-weight: 600;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.directory-page .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

@media (max-width: 1300px) {
  .directory-page .container {
    max-width: 1100px;
  }
}

/* ============ Banner ============ */
.dir-banner {
  position: relative;
  background: #f9fafb;
  overflow: hidden;
}

.banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 300px;
  max-height: 300px;
  background-image: url("../img/bg1.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 600px 300px;
}

.banner-text {
  flex: 1;
  max-width: 540px;
  position: relative;
  z-index: 2;
}

.banner-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--primary);
  border-radius: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}

.banner-title {
  font-size: 42px;
  font-weight: 800;
  color: #1f2533;
  line-height: 1.3;
  margin-bottom: 18px;
  letter-spacing: 1.5px;
}

.banner-title em {
  font-style: normal;
  color: var(--primary);
}

.banner-desc {
  color: #535a6b;
  font-size: 13px;
  line-height: 1.8;
  max-width: 480px;
  margin: 0;
}

/* ============ 筛选区 ============ */
.filter {
  background: #fff;
  padding: 22px 0 4px;
  border-bottom: 1px solid #f0f0f3;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  padding: 8px 0;
  gap: 16px;
  flex-wrap: nowrap;
}

.filter-label {
  flex-shrink: 0;
  width: 64px;
  font-size: 16px;
  color: #666;
  line-height: 32px;
}

.filter-tags {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 14px;
  color: #535a6b;
  background: #fff;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid #e6e6e6;
}

.tag:hover {
  color: var(--primary);
}

.tag i {
  font-style: normal;
  font-size: 16px;
  color: #aaa;
  font-weight: normal;
}

.tag.active {
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--primary-bg);
}

.tag.active i {
  color: var(--primary);
}

/* —— 多选行（认证厂商）：复选框样式 —— */
.filter-row.multi .filter-tags {
  gap: 10px 18px;
}

.filter-row.multi .tag {
  background: transparent;
  color: #535a6b;
  font-weight: 400;
  height: auto;
  padding: 4px 0;
  border-radius: 0;
  gap: 6px;
  font-size: 16px;
  border: none;
}

.filter-row.multi .tag::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 1px solid #d0d4dc;
  border-radius: 2px;
  box-sizing: border-box;
  transition: all 0.2s;
}

.filter-row.multi .tag:hover {
  color: var(--primary);
}

.filter-row.multi .tag:hover::before {
  border-color: var(--primary);
}

.filter-row.multi .tag.active {
  background: transparent;
  color: var(--primary);
}

.filter-row.multi .tag.active::before {
  width: 18px;
  height: 18px;
  background: #ff5c04 url("../img/check.png") no-repeat center;
  background-size: 12px 12px;
  border-radius: 2px;
  border: 1px solid #ff5c04;
}

.filter-row.multi .tag.active i {
  color: var(--primary);
}

/* ============ 主内容 ============ */
.dir-main {
  padding: 24px 0 60px;
}

.main-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.courses {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: 10px;
  background-color: #fff;
}

/* 课程卡 */
.course-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition:
          transform 0.25s ease,
          box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 106, 26, 0.12);
}

.card-img {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.card-img-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* 模拟机房/网络风格的背景 */
.card-img-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
          linear-gradient(
                  115deg,
                  rgba(255, 255, 255, 0.06) 0%,
                  transparent 30%,
                  rgba(255, 255, 255, 0.1) 60%,
                  transparent 100%
          ),
          repeating-linear-gradient(
                  90deg,
                  rgba(255, 255, 255, 0.04) 0 1px,
                  transparent 1px 24px
          ),
          repeating-linear-gradient(
                  0deg,
                  rgba(255, 255, 255, 0.04) 0 1px,
                  transparent 1px 24px
          );
}

/* 暖色光晕 */
.card-img-bg::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -10px;
  width: 140px;
  height: 140px;
  background: radial-gradient(
          circle at 30% 30%,
          rgba(255, 165, 90, 0.35),
          transparent 60%
  );
  filter: blur(14px);
  pointer-events: none;
}

.brand-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) skewX(-12deg);
  background: linear-gradient(135deg, #ff7d2e 0%, #ff5a0e 100%);
  color: #fff;
  padding: 10px 22px;
  border-radius: 4px;
  box-shadow:
          0 6px 18px rgba(255, 90, 14, 0.45),
          inset 0 -2px 0 rgba(0, 0, 0, 0.08),
          inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-align: center;
  min-width: 200px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-banner > span {
  display: block;
  transform: skewX(12deg);
}

.brand-banner-title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.brand-banner-sub {
  font-size: 9px;
  opacity: 0.95;
  margin-top: 3px;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.brand-cisco {
  background: linear-gradient(135deg, #ff9046 0%, #ff5a0e 100%);
}

.brand-aws {
  background: linear-gradient(135deg, #ff7d2e 0%, #ff5a0e 100%);
}

.brand-aws .brand-banner-title {
  font-size: 14px;
}

.badge-level {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  background: #1fa856;
  color: #fff;
  font-size: 14px;
  padding: 1px 10px;
  border-radius: 13px;
}

.badge-level.badge-level--pro {
  background: #ff9e04;
}

.badge-level.badge-level--expert {
  background: #ff5c04;
}

.badge-hot {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 60px;
  height: auto;
  z-index: 3;
}

.card-body {
  padding: 15px 0px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-title {
  font-size: 16px;
  color: #333333;
  font-weight: 700;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 39px;
  padding: 0 15px;
}

.card-title.primary {
  color: var(--primary);
}

.card-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 36px;
  padding: 0 15px;
}

.card-foot {
  border-top: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 13px 15px 0;

}

.hours {
  font-size: 14px;
  color: #999999;
}

.hours b {
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
  margin-right: 2px;
}

.btn-view {
  display: inline-block;
  width: 100px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 18px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ff8a3d, #ff5a0e);
  transition: filter 0.2s;
}

.btn-view:hover {
  filter: brightness(1.05);
}

/* ============ 侧边栏 ============ */
.sidebar {
  width: 330px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 咨询卡 */
.card-consult {
  background: #fff5f3;
  border-radius: 20px;
  border: 1px solid #ffc6a7;
  padding: 18px 25px 22px;
  position: relative;
}

.consult-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  padding: 2px 15px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.consult-tag img {
  width: 14px;
  height: 14px;
}

.consult-title {
  font-size: 27px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 20px;
}

.consult-title em {
  font-style: normal;
  color: var(--primary);
}

.consult-desc {
  font-size: 16px;
  color: #666666;
  line-height: 1.6;
  margin: 0 0 14px;
}

/* 兼容 button / a，避免全站 a{color:inherit} 导致链接按钮样式丢失 */
.directory-page .btn-primary,
.directory-page a.btn-primary {
  display: block;
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 22px;
  background: #ff5c04;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 44px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 4px 12px #f9cbb2;
  cursor: pointer;
  transition:
          filter 0.2s,
          transform 0.2s;
}

.directory-page .btn-primary:hover,
.directory-page a.btn-primary:hover,
.directory-page a.btn-primary:visited,
.directory-page a.btn-primary:focus {
  color: #fff !important;
  text-decoration: none;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.consult-tel {
  text-align: center;
  margin: 12px 0 0;
  font-size: 16px;
  color: #1a1a2e;
}

.consult-tel strong {
  color: #999999;
  font-weight: 700;
  margin-left: 10px;
}

.consult-stats {
  position: relative;
  margin: 18px -25px -22px;
  padding: 18px 0 20px;
  border-top: 1px solid #ffc6a7;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.consult-stats::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #ffc6a7;
}

.consult-stats .stat {
  flex: 1;
  position: relative;
}

.stat .num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.stat .num i {
  font-style: normal;
  font-size: 14px;
  margin-left: 1px;
  font-weight: 700;
}

.stat .label {
  font-size: 12px;
  color: #999999;
  margin-top: 2px;
  display: block;
}

/* 排行榜 */
.card-rank {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.rank-title {
  font-size: 20px;
  font-weight: 700;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.rank-title img {
  width: 24px;
  height: 24px;
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f5f6fa;
}

.rank-list li:last-child {
  border-bottom: 0;
}

.rank-num {
  flex-shrink: 0;
  width: 22px;
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
  text-align: left;
}

.rank-num.top {
  color: var(--primary);
}

.rank-logo {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rank-logo.cisco {
  background: rgba(4, 154, 210, 0.08);
  color: #049ad2;
}

.rank-logo.huawei {
  background: rgba(201, 10, 43, 0.08);
  color: #c90a2b;
}

.rank-logo.pmp {
  background: rgba(76, 51, 145, 0.08);
  color: #4c3391;
}

.rank-logo.nisp {
  background: rgba(0, 133, 189, 0.08);
  color: #0085bd;
}

.rank-info {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rank-info h4 {
  font-size: 16px;
  color: #333333;
  font-weight: 700;
  margin: 0 0 2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info p {
  font-size: 14px;
  color: #999999;
  margin: 0;
}

/* 企业 */
.card-enterprise {
  background-color: #fff5f3;
  background-image: url("../img/ticket.png");
  background-repeat: no-repeat, no-repeat;
  background-position: right bottom;
  background-size: 124px 155px;
  border-radius: 20px;
  padding: 25px 20px;
  border: 1px solid #ffc6a7;
  position: relative;
  overflow: hidden;
}

.card-enterprise::before {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.ent-head img {
  width: 24px;
  height: 24px;
}

.ent-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 8px;
  position: relative;
}

.ent-desc {
  font-size: 16px;
  color: #666666;
  line-height: 1.6;
  margin: 15px 0 20px;
  position: relative;
}

.directory-page .btn-primary.btn-light,
.directory-page a.btn-primary.btn-light {
  display: block;
  width: 190px;
  height: 40px;
  margin: 0 auto;
  line-height: 40px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: normal;
  background: #ff5c04;
  box-shadow: 0 11px 12px 0 #f9cbb2;
}

/* ============ 响应式：移动端 ≤ 768px ============ */
@media (max-width: 768px) {
  body.page-directory {
    background: #fff;
    /* 为全站固定 m_header + m_navbar 留出空间，避免主内容贴顶或被遮挡 */
    padding-top: calc(108px + env(safe-area-inset-top, 0px));
  }

  .directory-page {
    font-size: 13px;
    background: #f4f5f8;
  }

  .directory-page .container {
    padding: 0 12px;
  }

  /* 隐藏PC头部，显示移动头部 */
  .header-inner,
  .nav,
  .dir-banner {
    display: none;
  }

  .m-header {
    display: block;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .m-header-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 12px;
  }

  .m-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .m-logo .logo-mark {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .m-logo .logo-text {
    margin-left: 4px;
  }

  .m-logo .logo-text strong {
    font-size: 14px;
  }

  .m-logo .logo-text em {
    font-size: 9px;
  }

  .m-search {
    flex: 1;
    height: 30px;
    background: #f5f6fa;
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
  }

  .m-search input {
    flex: 1;
    height: 100%;
    font-size: 12px;
  }

  .m-menu {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  .m-menu span {
    display: block;
    width: 18px;
    height: 2px;
    background: #1f2533;
    border-radius: 1px;
  }

  /* 筛选 */
  .filter {
    background: transparent;
    padding: 10px 0 6px;
    border-bottom: none;
  }

  .filter-row {
    flex-direction: row;
    gap: 0;
    padding: 6px 0;
    align-items: center;
  }

  .filter-row:first-child {
    display: none; /* 移动端只显示一行 */
  }

  .filter-label {
    display: none;
  }

  .filter-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-tags::-webkit-scrollbar {
    display: none;
  }

  .tag {
    flex-shrink: 0;
    height: 28px;
    font-size: 14px;
    padding: 0 15px;
    font-size: 12px;
    border-radius: 15px;
    font-weight: bold;
    border: none;
    background: transparent;
    color: #333333;
  }

  .tag.active {
    color: var(--primary);
    border: 1px solid var(--primary-bg);
  }

  /* 主内容布局：垂直堆叠 */
  .dir-main {
    padding: 0px 0 30px;
  }

  .main-inner {
    flex-direction: column;
    gap: 14px;
  }

  .courses {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
    background: transparent;
  }

  .card-img {
    height: 100px;
  }

  .brand-banner {
    min-width: 0;
    max-width: 90%;
    padding: 6px 10px;
  }

  .brand-banner-title {
    font-size: 11px;
  }

  .brand-banner-sub {
    font-size: 8px;
  }

  .badge-hot {
    height: 22px;
  }

  .badge-level {
    font-size: 12px;
    width: 52px;
    height: 22px;
    line-height: 20px;
    padding: 0;
    text-align: center;
  }

  .card-body {
    padding: 10px 0px 10px;
    border-radius: 10px;
    gap: 4px;
  }

  .card-title {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .card-desc {
    font-size: 12px;
  }

  .card-foot {
    border-top: 1px solid #ECECEC;
    padding: 10px 10px 0px 10px;
  }

  .hours {
    font-size: 12px;
  }

  .hours b {
    font-size: 20px;
    font-weight: normal;

  }

  .btn-view {
    width: 80px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 14px;
    background: #FF5C04;
    box-shadow: 0px 24px 48px 0px #F9CBB2;
  }

  /* 侧边栏：横铺展示 */
  .sidebar {
    width: auto;
    padding: 0px;
    gap: 12px;
  }

  .card-consult {
    padding: 16px;
  }

  .consult-title {
    font-size: 18px;
  }

  .consult-desc {
    font-size: 13px;
  }

  .stat .num {
    font-size: 22px;
  }

  .rank-list li {
    padding: 10px 0;
  }

  .rank-logo {
    width: 40px;
    height: 40px;
    font-size: 13px;
    border-radius: 6px;
  }

  .rank-info {
    min-height: 40px;
  }

  .rank-info h4 {
    font-size: 14px;
  }

  .rank-info p {
    font-size: 12px;
  }

  .card-enterprise {
    padding: 14px;
  }

  .consult-stats {
    margin: 18px -16px -17px;
  }
}

/* 首屏与主内容外层使用 dir-banner / dir-main，避免与全站 /static/css/style.css 中通用类 .banner、.main 叠加 */

/* Banner 区字号 / 字重：与全站 body、h1{font-size:100%}、base 标签重置、Layui * 字体栈隔离 */
.directory-page .dir-banner .container.banner-inner {
  font-family:
          "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
          sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.directory-page .dir-banner span.banner-tag {
  font-size: 13px;
  font-weight: 500;
}

.directory-page .dir-banner h1.banner-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 1.5px;
  color: #1f2533;
}

.directory-page .dir-banner h1.banner-title em {
  font-size: inherit;
  font-style: normal;
  font-weight: inherit;
  color: var(--primary);
}

.directory-page .dir-banner p.banner-desc {
  font-size: 13px;
  line-height: 1.8;
  color: #535a6b;
}

/* 筛选区：global.css 中 .tag、.tag[href]:hover（绿底白字）与目录页 <a class="tag"> 类名冲突，提高选择器优先级覆写 */
.directory-page .filter .filter-tags > a.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 14px;
  color: #535a6b;
  background: #fff;
  border: 1px solid #e6e6e6;
  line-height: normal;
  margin-bottom: 0;
  text-align: left;
}

.directory-page .filter .filter-tags > a.tag i {
  font-style: normal;
  font-size: 16px;
  color: #aaa;
  font-weight: normal;
}

.directory-page .filter .filter-tags > a.tag[href]:hover,
.directory-page .filter .filter-tags > a.tag[href]:focus {
  color: var(--primary);
  background-color: #fff;
  border-color: #e6e6e6;
  text-decoration: none;
}

.directory-page .filter .filter-tags > a.tag.active {
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--primary-bg);
}

.directory-page .filter .filter-tags > a.tag.active i {
  color: var(--primary);
}

.directory-page .filter-row.multi .filter-tags > a.tag {
  background: transparent;
  color: #535a6b;
  font-weight: 400;
  height: auto;
  padding: 4px 4px;
  border-radius: 0;
  gap: 6px;
  font-size: 16px;
  border: none;
}

.directory-page .filter-row.multi .filter-tags > a.tag[href]:hover,
.directory-page .filter-row.multi .filter-tags > a.tag[href]:focus {
  color: var(--primary);
  background-color: transparent;
  text-decoration: none;
}

.directory-page .filter-row.multi .filter-tags > a.tag.active {
  background: transparent;
  color: var(--primary);
}

/* 热门排行：.rank-num / .rank-list 易被全站 ul、li、span 字号与浮动规则叠加 */
.directory-page .card-rank .rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.directory-page .card-rank .rank-list > li {
  float: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f5f6fa;
}

.directory-page .card-rank .rank-list > li:last-child {
  border-bottom: 0;
}

.directory-page .card-rank span.rank-num {
  flex-shrink: 0;
  width: 25px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--primary);
  font-weight: 700;
  text-align: left;
}

.directory-page .card-rank span.rank-num.top {
  color: var(--primary);
}

/* 底部留言条表单：与 public/static/css/style.css 中 .foot-msgboard-* 尺寸一致。
   历史上全页 * { box-sizing:border-box } 会使 width:155px 含 padding，视觉上“变小”；已收窄 box-sizing 范围，此处再固化一层以防 Layui 等对 input 的全局覆盖 */
body.page-directory .foot-msgboard .foot-msgboard-con .form-item input[type="text"] {
  box-sizing: content-box;
  width: 155px;
  height: 24px;
  padding: 5px 15px;
  padding-left: 22%;
  font-size: 16px;
  background-color: #fff;
  outline: none;
}

body.page-directory .foot-msgboard .foot-msgboard-con .form-item .b_name {
  background: #fff url(/static/img/images/home2021/b_name.png) no-repeat 8% center;
}

body.page-directory .foot-msgboard .foot-msgboard-con .form-item .b_qq {
  background: #fff url(/static/img/images/home2021/b_qq.png) no-repeat 8% center;
}

body.page-directory .foot-msgboard .foot-msgboard-con .form-item .b_tel {
  background: #fff url(/static/img/images/home2021/b_tel.png) no-repeat 8% center;
}

body.page-directory .foot-msgboard .foot-msgboard-con .form-item:nth-child(4) .btn-submit {
  box-sizing: content-box;
  width: 130px;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(to right, #ffc928, #ff9d19);
  background-color: transparent;
  font-size: 18px;
  cursor: pointer;
  outline: none;
  border: none;
  padding: 0;
}

/* ============ 新版解决方案列表：一级厂商（非复选框）+ 二级 Tab ============ */
.directory-page .filter-row.jjfa-brand-row .filter-tags {
  gap: 8px 6px;
}

.directory-page .filter-row.jjfa-brand-row .filter-tags > a.tag {
  text-decoration: none;
}

/* 认证厂商：PC 端 6 列网格，每排 6 个；标签等宽铺满格（手机端不应用） */
@media (min-width: 769px) {
  .directory-page .filter-row.jjfa-brand-row .filter-tags {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px 6px;
    align-items: stretch;
  }

  .directory-page .filter-row.jjfa-brand-row .filter-tags > a.tag.jjfa-brand-link {
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    justify-content: flex-start;
    overflow: hidden;
  }

  .directory-page .filter-row.jjfa-brand-row .filter-tags > a.tag.jjfa-brand-link .jjfa-brand-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .directory-page .filter-row.jjfa-brand-row .filter-tags > a.tag.jjfa-brand-link i {
    flex-shrink: 0;
  }
}

.directory-page .jjfa-dir-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.directory-page .jjfa-dir-tab.tag {
  border: 0;
  background: #fff;
  font: inherit;
  line-height: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.directory-page .jjfa-dir-tab.tag:focus {
  outline: none;
}

.directory-page .jjfa-dir-tab.tag.active {
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--primary-bg);
}

.directory-page .jjfa-dir-tab.tag.active i {
  color: var(--primary);
}

.directory-page .filter .filter-tags > button.jjfa-dir-tab.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 14px;
  color: #535a6b;
  background: #fff;
  border: 1px solid #e6e6e6;
  line-height: normal;
  margin-bottom: 0;
  text-align: left;
  cursor: pointer;
}

.directory-page .filter .filter-tags > button.jjfa-dir-tab.tag i {
  font-style: normal;
  font-size: 16px;
  color: #aaa;
  font-weight: normal;
}

.directory-page .filter .filter-tags > button.jjfa-dir-tab.tag:hover {
  color: var(--primary);
}

.directory-page .jjfa-courses.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

/* 新版解决方案列表：筛选区与下方课程列同宽（与 .main-inner 中 .sidebar 330px + gap 24px 对齐） */
.directory-page #jjfa-list-root .jjfa-filter-main {
  width: calc(100% - 310px);
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .directory-page #jjfa-list-root .jjfa-filter-main {
    width: 100%;
  }
}
