/* 找服务：列表/详情页（布局参照 ucloud 客户案例列表） */
.ai-tm-fs .breadcrumb-title {
  margin-top: 14px;
}

.ai-tm-fs__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
}

@media (max-width: 991px) {
  .ai-tm-fs__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.ai-tm-fs__side {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 18px 16px;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  background: #fff;
}

@media (max-width: 991px) {
  .ai-tm-fs__side {
    position: relative;
    top: auto;
  }
}

.ai-tm-fs__side-title {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  text-align: center;
}

.ai-tm-fs__cats {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid #eef0f4;
}

.ai-tm-fs__cat {
  margin: 10px 0;
}

.ai-tm-fs__cat a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 12px 14px 18px;
  color: #334155;
  text-decoration: none;
  position: relative;
}

/* 移动端：分类横向滚动，更接近“筛选 tabs”的浏览体验 */
@media (max-width: 991px) {
  .ai-tm-fs__side {
    padding: 12px 12px;
  }
  .ai-tm-fs__side-title {
    text-align: left;
    margin-bottom: 8px;
  }
  .ai-tm-fs__cats {
    border-left: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ai-tm-fs__cats::-webkit-scrollbar {
    display: none;
  }
  .ai-tm-fs__cat {
    margin: 0;
    flex: 0 0 auto;
  }
  .ai-tm-fs__cat a {
    padding: 10px 12px;
    border: 1px solid #eef0f4;
    border-radius: 999px;
    background: #fff;
  }
  .ai-tm-fs__cat.is-active a::before {
    display: none;
  }
}

.ai-tm-fs__cat a:hover {
  color: #111827;
}

.ai-tm-fs__cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  flex: 0 0 auto;
}

.ai-tm-fs__cat.is-active a {
  color: #0f172a;
  font-weight: 800;
}

.ai-tm-fs__cat.is-active .ai-tm-fs__cat-dot {
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.ai-tm-fs__cat.is-active a::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #2563eb;
}

.ai-tm-fs__empty {
  padding: 22px 18px;
  border: 1px dashed #dbe3ee;
  border-radius: 14px;
  color: #64748b;
  background: #fff;
}

.ai-tm-fs__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.ai-tm-fs-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  padding: 16px;
}

.ai-tm-fs-card__head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
}

@media (max-width: 575px) {
  .ai-tm-fs-card__head {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }
  .ai-tm-fs-card__action {
    grid-column: 1 / -1;
  }
}

.ai-tm-fs-card__logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid #eef0f4;
  background: #fff;
}

.ai-tm-fs-card__logo-fallback {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid #eef0f4;
  background: linear-gradient(135deg, #f1f5f9, #ffffff);
}

.ai-tm-fs-card__name {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.ai-tm-fs-card__sub {
  margin-top: 8px;
  color: #64748b;
  font-weight: 600;
}

.ai-tm-fs-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  border-radius: 0;
  border: none;
  color: #334155;
  text-decoration: none;
  background: transparent;
  font-weight: 600;
  white-space: nowrap;
  font-size: 13px;
  gap: 6px;
}

.ai-tm-fs-card__link:hover {
  color: #2563eb;
}

.ai-tm-fs-card__body {
  margin-top: 18px;
}

.ai-tm-fs-card__intro {
  color: #334155;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ai-tm-fs-card__biz {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #e7edf6;
  padding-left: 18px;
}

/* 仅找服务模板：去掉全局链接下划线（与站内其它页面保持一致） */
body.page-find-services a,
body.page-find-service-detail a,
body.page-find-services a:hover,
body.page-find-service-detail a:hover {
  text-decoration: none !important;
}

.ai-tm-fs-card__biz-title {
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 14px;
}

.ai-tm-fs-card__biz-empty {
  color: #94a3b8;
}

.ai-tm-fs-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.ai-tm-fs-card__tag {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #0f172a;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ai-tm-fs-card__tag-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.ai-tm-fs-card__tag-icon--svg svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ai-tm-fs-card__tag-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.7);
  flex: 0 0 auto;
}

.ai-tm-fs-card__tag-icon--dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
}

.ai-tm-fs-card__tag-text {
  color: #0f172a;
  line-height: 1.2;
}

@media (max-width: 575px) {
  .ai-tm-fs-card__tags {
    gap: 18px 22px;
  }
  .ai-tm-fs-card__tag-icon-wrap {
    width: 36px;
    height: 36px;
  }
}

.ai-tm-fs-card__more {
  margin-top: 10px;
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

/* 详情页 */
.ai-tm-fs-detail__head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  background: #fff;
}

.ai-tm-fs-detail__logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid #eef0f4;
  background: #fff;
}

.ai-tm-fs-detail__name {
  margin: 0;
  font-size: 20px !important;
  font-weight: 1000;
  color: #0f172a;
}

.ai-tm-fs-detail__sub {
  margin-bottom: 6px;
  color: #64748b;
  font-weight: 700;
  font-size: 16px !important;
}

.ai-tm-fs-detail__facts {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.ai-tm-fs-detail__fact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #334155;
  line-height: 1.6;
}

.ai-tm-fs-detail__fact i {
  margin-top: 3px;
  color: #64748b;
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
}

.ai-tm-fs-detail__fact-label {
  color: #64748b;
  font-weight: 600;
  font-size: 13px;
}

.ai-tm-fs-detail__fact-value {
  color: #0f172a;
  font-weight: 600;
  font-size: 13px;
  word-break: break-word;
}

.ai-tm-fs-detail__website-link {
  color: #2563eb;
  word-break: break-all;
}

.ai-tm-fs-detail__layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

@media (max-width: 991px) {
  .ai-tm-fs-detail__layout {
    grid-template-columns: 1fr;
  }
}

.ai-tm-fs-detail__side {
  position: sticky;
  top: 110px;
  align-self: start;
}

@media (max-width: 991px) {
  .ai-tm-fs-detail__side {
    position: relative;
    top: auto;
  }
}

.ai-tm-fs-detail__side-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  padding: 16px;
}

.ai-tm-fs-detail__side-title {
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 10px;
}

.ai-tm-fs-detail__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid #eef0f4;
}

.ai-tm-fs-detail__nav li {
  margin: 10px 0;
}

.ai-tm-fs-detail__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  color: #334155;
  text-decoration: none;
  position: relative;
  font-weight: 800;
}

.ai-tm-fs-detail__nav a:hover {
  color: #0f172a;
}

.ai-tm-fs-detail__nav a.is-active {
  color: #0f172a;
}

.ai-tm-fs-detail__nav a.is-active::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #2563eb;
}

@media (max-width: 991px) {
  .ai-tm-fs-detail__nav {
    border-left: none;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .ai-tm-fs-detail__nav::-webkit-scrollbar {
    display: none;
  }
  .ai-tm-fs-detail__nav li {
    margin: 0;
    flex: 0 0 auto;
  }
  .ai-tm-fs-detail__nav a {
    padding: 10px 12px;
    border: 1px solid #eef0f4;
    border-radius: 999px;
    background: #fff;
  }
  .ai-tm-fs-detail__nav a.is-active::before {
    display: none;
  }
}

.ai-tm-fs-detail__cards {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ai-tm-fs-detail__biz-cards {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ai-tm-fs-detail__biz-card {
  border: 1px solid #eef0f4;
  border-radius: 16px;
  padding: 18px 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.ai-tm-fs-detail__biz-subs {
  margin: 12px 0 16px;
}

.ai-tm-fs-detail__biz-html {
  margin-top: 14px;
}

.ai-tm-fs-detail__atts {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.ai-tm-fs-detail__atts-title {
  font-weight: 900;
  margin-bottom: 12px;
}

.ai-tm-fs-detail__atts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ai-tm-fs-detail__atts-list a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #2563eb;
  font-weight: 800;
}

.ai-tm-fs-detail__section {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  padding: 18px;
}

.ai-tm-fs-detail__h2 {
  margin: 0 0 12px;
  font-size: 18px !important;
  font-weight: 900;
  color: #0f172a;
}

.ai-tm-fs-detail__content {
  color: #334155;
  line-height: 1.9;
}

.ai-tm-fs-detail__muted {
  color: #94a3b8;
}

.ai-tm-fs-detail__biz-block {
  margin-top: 14px;
}

.ai-tm-fs-detail__biz-title {
  font-weight: 900;
  margin-bottom: 10px;
}

.ai-tm-fs-detail__kv {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #e7edf6;
}

.ai-tm-fs-detail__kv:last-child {
  border-bottom: none;
}

.ai-tm-fs-detail__k {
  color: #64748b;
  font-weight: 800;
}

.ai-tm-fs-detail__v {
  color: #0f172a;
  font-weight: 700;
  word-break: break-word;
}

.ai-tm-fs-detail__qr {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ai-tm-fs-detail__qr-title {
  font-weight: 900;
  margin-bottom: 8px;
}

.ai-tm-fs-detail__qr img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  background: #fff;
}

.ai-tm-fs-detail__qr-tip {
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.ai-tm-fs-detail__contact-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 18px;
  align-items: center;
}

@media (max-width: 991px) {
  .ai-tm-fs-detail__contact-grid {
    grid-template-columns: 1fr;
  }
  .ai-tm-fs-detail__qr {
    margin-top: 12px;
  }
}

