/* 柯南网络服务页顶部美化 */
/* 仅影响服务页面横幅 */

.cp-page.cp-services .cp-directory-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,440px);
  align-items: center;
  column-gap: 36px;
  row-gap: 14px;
  padding: 34px 40px !important;
  background: linear-gradient(110deg,#ffe348 0%,#ffeb78 58%,#fff2a8 100%);
  overflow: hidden;
  border-radius: 0;
  isolation: isolate;
}

/* 品牌标识 */
.cp-page.cp-services .cp-directory-head .cp-brand {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 2px;
  color: #172b49;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  position: relative;
  z-index: 1;
}

.cp-page.cp-services .cp-directory-head .cp-brand svg {
  width: 20px;
  height: 20px;
}

/* 主标题 */
.cp-page.cp-services .cp-directory-head h1 {
  grid-column: 1;
  margin: 0 !important;
  color: #142b49;
  font-size: clamp(27px,3vw,38px);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

/* 副标题 */
.cp-page.cp-services .cp-directory-head > p {
  grid-column: 1;
  margin: 0 !important;
  font-size: 13px;
  line-height: 1.7;
  color: #655719;
  position: relative;
  z-index: 1;
}

/* 搜索框所在区域 */
.cp-page.cp-services .cp-directory-head > :last-child:not(p):not(h1):not(.cp-brand) {
  grid-column: 2;
  grid-row: 1 / span 3;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
}

/* 搜索框输入 */
.cp-page.cp-services .cp-directory-head input[type="search"],
.cp-page.cp-services .cp-directory-head input[type="text"] {
  min-width: 0;
  outline-offset: 2px;
}

/* 手机适配 */
@media(max-width:720px) {
  .cp-page.cp-services .cp-directory-head {
    grid-template-columns: minmax(0,1fr);
    padding: 25px 20px !important;
    row-gap: 10px;
  }

  .cp-page.cp-services .cp-directory-head .cp-brand,
  .cp-page.cp-services .cp-directory-head h1,
  .cp-page.cp-services .cp-directory-head > p {
    grid-column: 1;
  }

  .cp-page.cp-services .cp-directory-head h1 {
    font-size: 29px;
  }

  .cp-page.cp-services .cp-directory-head > :last-child:not(p):not(h1):not(.cp-brand) {
    grid-column: 1;
    grid-row: auto;
    margin-top: 12px;
  }
}
