/*!
 * CMS 标签配套样式（筛选 / 本地分页 / 表单提示）
 * 仅补充交互态样式，不改动原有版式
 */

/* 筛选项（zd:screening 生成的 data-url 选项） */
.cms-filter-option {
  cursor: pointer;
}

.cms-screen-select {
  cursor: pointer;
}

/* 本地分页（服务支持资料 / 常见问题等一次性输出的列表） */
.cms-local-pager {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cms-local-pager.is-hidden {
  display: none !important;
}

.cms-local-pager .items a {
  cursor: pointer;
}

.cms-local-pager .prev.is-disabled,
.cms-local-pager .next.is-disabled {
  opacity: .35;
  cursor: not-allowed;
}

/* 全站搜索 */
.search-page {
  padding: 5rem 0 7rem;
}

.search-page-form {
  display: flex;
 
  margin: 0 auto;
  border: 1px solid #d9d9d9;
  height: 3.5rem;
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 1.25rem;
  font-size: 1rem;
}

.search-page-form button {
  width: 7rem;
  border: 0;
  color: #fff;
  background: var(--main-color, #e50026);
  cursor: pointer;
}

.search-result-head {
 
  margin: 3rem auto 1.25rem;
  color: #666;
  font-size: 1rem;
}

.search-result-list {
 
  margin: 0 auto;
  border-top: 1px solid #ededed;
}

.search-result-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #ededed;
}

.search-result-pic {
  flex: 0 0 12rem;
  height: 7rem;
  overflow: hidden;
  background: #f5f5f5;
}

.search-result-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  min-width: 0;
  flex: 1;
}

.search-result-meta {
  display: flex;
  gap: 1rem;
  color: #999;
  font-size: .875rem;
}

.search-result-meta em {
  font-style: normal;
}

.search-result-info h2 {
  margin: .5rem 0;
  color: #222;
  font-size: 1.25rem;
  line-height: 1.6;
}

.search-result-info p {
  overflow: hidden;
  color: #777;
  font-size: .9375rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-empty {
  padding: 6rem 0;
  text-align: center;
  color: #999;
  font-size: 1.125rem;
}

.search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.search-page-arrow,
.search-page-numbers a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #e2e2e2;
  color: #333;
}

.search-page-numbers {
  display: flex;
  gap: .5rem;
}

.search-page-numbers a.active {
  color: #fff;
  border-color: var(--main-color, #e50026);
  background: var(--main-color, #e50026);
}

.search-page-arrow.disabled {
  color: #ccc;
  pointer-events: none;
}

@media (max-width: 1025px) {
  .search-page {
    padding: 40px 0 60px;
  }

  .search-page-form {
    height: 42px;
  }

  .search-page-form input {
    padding: 0 12px;
    font-size: 14px;
  }

  .search-page-form button {
    width: 70px;
  }

  .search-result-head {
    margin: 30px auto 12px;
    font-size: 14px;
  }

  .search-result-item {
    gap: 12px;
    padding: 16px 0;
  }

  .search-result-pic {
    flex-basis: 110px;
    height: 70px;
  }

  .search-result-meta,
  .search-result-info p {
    font-size: 12px;
  }

  .search-result-info h2 {
    margin: 4px 0;
    font-size: 16px;
  }

  .search-empty {
    padding: 60px 0;
    font-size: 16px;
  }

  .search-pagination {
    gap: 12px;
    margin-top: 32px;
  }

  .search-page-arrow,
  .search-page-numbers a {
    min-width: 36px;
    height: 36px;
  }
}

/* 表单提交提示 */
.cms-msg-tip {
  display: none;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.cms-msg-tip.is-error {
  display: block;
  color: #d93025;
}

.cms-msg-tip.is-success {
  display: block;
  color: #1e8e3e;
}

.cms-field-error {
  border-color: #d93025 !important;
}

/* 无附件资料 */
.cms-file-unavailable {
  cursor: pointer;
}

/* 产品筛选（行业应用页 模块选型推荐） */
.ps p.is-empty {
  display: none;
}

.ps p.active {
  color: var(--main-color, #e50026);
  background: #fef3f5;
}

/* 图形验证码（留言表单） */
.cms-captcha-li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cms-captcha-li input {
  flex: 1;
  min-width: 0;
}

.cms-captcha {
  flex: none;
  width: auto;
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
  background: #f5f5f5;
}

/* 留言提示跟随表单常用占位 */
.form-msg:empty {
  display: none;
}

.form-msg:not(:empty) {
  display: block;
}

.form-msg.is-error {
  color: #d93025;
}

.form-msg.is-success {
  color: #1e8e3e;
}

.cms-msg-submit.is-loading {
  opacity: .6;
  pointer-events: none;
}
