
@layer legacy {
/* ==========================================================================
   Ricodisk Enterprise Theme — 30-global-header-fit-keep-desktop-navigation-insid.css
   由 main.css 自动拆分(保序连续段 30/30,作用域: global)
   ========================================================================== */
.search-result-card {
  margin: 0;
  border: 1px solid #e2e7ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(37, 43, 66, .045);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.search-result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 6, 19, .24);
  box-shadow: 0 22px 52px rgba(37, 43, 66, .09);
}

.search-result-card__main {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 22px;
  min-height: 154px;
  padding: 25px 28px;
  border-radius: inherit;
}

.search-result-card__index {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3f5f8;
  color: #9aa4b2;
  font-size: 13px;
  font-weight: 900;
  transition: background .2s ease, color .2s ease;
}

.search-result-card:hover .search-result-card__index {
  background: #fcecee;
  color: #d50714;
}

.search-result-card__content {
  display: block;
  min-width: 0;
}

.search-result-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.search-result-card__type {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fcecee;
  color: #c80511;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.search-result-card__meta time {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.search-result-card__title {
  display: block;
  color: #20273a;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -.025em;
  transition: color .2s ease;
}

.search-result-card:hover .search-result-card__title {
  color: #c80511;
}

.search-result-card__excerpt {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: #697586;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-result-card mark {
  padding: 0;
  background: transparent;
  color: #d50714;
  font-weight: inherit;
  box-shadow: inset 0 -.3em rgba(227, 6, 19, .09);
}

.search-result-card__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e2e7ef;
  border-radius: 50%;
  color: #7d8796;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.search-result-card:hover .search-result-card__arrow {
  border-color: #e30613;
  background: #e30613;
  color: #fff;
}

.search-experience .search-pagination {
  margin-top: 42px;
}

.search-experience .search-pagination > .pagination {
  margin-top: 0;
}

.search-empty {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  min-height: 250px;
  margin: 0;
  padding: 48px;
  border: 1px solid #e2e7ef;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 14%, rgba(227, 6, 19, .07), transparent 24%),
    #fff;
  box-shadow: 0 18px 48px rgba(37, 43, 66, .06);
}

.search-empty__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: #fcecee;
  color: #d50714;
}

.search-empty h2 {
  margin: 12px 0 0;
  color: #20273a;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -.04em;
}

.search-empty p {
  margin: 12px 0 0;
  color: #697586;
  font-size: 16px;
  line-height: 1.75;
}

@media (max-width: 980px) {
  .search-scope__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .search-stage {
    padding: 54px 0 50px;
  }

  .search-experience.has-query .search-stage {
    padding: 44px 0 42px;
  }

  .search-stage__inner,
  .search-scope,
  .search-results-shell {
    width: min(calc(100% - 28px), 560px);
  }

  .search-stage__heading h1 {
    margin-top: 16px;
    font-size: clamp(36px, 11vw, 48px);
  }

  .search-experience.has-query .search-stage__heading h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .search-stage__heading p {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
  }

  .search-experience .site-search-form {
    grid-template-columns: 44px minmax(0, 1fr);
    margin-top: 28px;
    padding: 7px;
    border-radius: 16px;
  }

  .search-experience .site-search-form input[type="search"] {
    min-height: 56px;
    padding-right: 8px;
    font-size: 16px;
  }

  .search-experience .site-search-form button {
    grid-column: 1 / -1;
    min-height: 52px;
    margin-top: 6px;
  }

  .search-experience .search-suggestions {
    margin-top: 18px;
  }

  .search-scope-section,
  .search-results-section {
    padding: 54px 0 72px;
  }

  .search-results-header {
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 24px;
  }

  .search-results-header__copy h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .search-results-header__copy p {
    max-width: 260px;
    font-size: 13px;
    line-height: 1.6;
  }

  .search-results-count {
    display: block;
    text-align: right;
  }

  .search-results-count strong,
  .search-results-count span {
    display: block;
  }

  .search-results-count strong {
    font-size: 42px;
  }

  .search-results-count span {
    margin-top: 8px;
  }

  .search-result-card__main {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 15px;
    min-height: 0;
    padding: 21px 18px;
  }

  .search-result-card__index {
    align-self: start;
    width: 40px;
    height: 40px;
  }

  .search-result-card__arrow {
    display: none;
  }

  .search-result-card__title {
    font-size: 19px;
  }

  .search-result-card__excerpt {
    font-size: 14.5px;
    -webkit-line-clamp: 3;
  }

  .search-empty {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding: 32px 24px;
  }
}

@media (max-width: 560px) {
  .search-scope__grid {
    grid-template-columns: 1fr;
  }

  .search-scope-card {
    min-height: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-experience *,
  .search-experience *::before,
  .search-experience *::after {
    scroll-behavior: auto;
    transition-duration: .01ms;
  }
}

/* Header fit: keep desktop navigation inside the available grid column. */
@media (min-width: 1181px) and (max-width: 1600px) {
  body .psd-nav,
  body.home-psd-real .psd-nav,
  .site-header .container.navbar {
    grid-template-columns: 200px minmax(0, 1fr) 92px 70px;
    column-gap: clamp(8px, 1vw, 14px);
  }

  body .psd-logo,
  body.home-psd-real .psd-logo,
  .site-header .brand-logo {
    width: 200px;
    flex-basis: 200px;
  }

  body .psd-logo img,
  body.home-psd-real .psd-logo img,
  .site-header .brand-logo img {
    width: 200px;
  }

  body .psd-menu .design-menu > li > a,
  body.home-psd-real .psd-menu .design-menu > li > a,
  .site-header .primary-nav .design-menu > li > a {
    padding-left: clamp(8px, .8vw, 13px);
    padding-right: clamp(8px, .8vw, 13px);
  }

  body .psd-menu .design-menu > li.menu-item-has-children > a,
  body.home-psd-real .psd-menu .design-menu > li.menu-item-has-children > a,
  .site-header .primary-nav .design-menu > li.menu-item-has-children > a {
    padding-right: clamp(23px, 1.65vw, 27px);
  }

  body .psd-menu .design-menu > li.menu-item-has-children > a::before,
  body.home-psd-real .psd-menu .design-menu > li.menu-item-has-children > a::before,
  .site-header .primary-nav .design-menu > li.menu-item-has-children > a::before {
    right: clamp(8px, .7vw, 11px);
  }

  body .header-cta,
  body .header-search,
  body .psd-contact,
  body .psd-search {
    width: 92px;
    min-width: 92px;
  }

  body .language-switcher {
    width: 70px;
    min-width: 70px;
  }

  body .language-switcher__item {
    width: 31px;
  }
}

@media (min-width: 1181px) and (max-width: 1380px) {
  body.steady-lang-en .psd-menu .design-menu > li > a,
  body.steady-lang-en .site-header .primary-nav .design-menu > li > a {
    padding-left: 6px;
    padding-right: 6px;
  }

  body.steady-lang-en .psd-menu .design-menu > li.menu-item-has-children > a,
  body.steady-lang-en .site-header .primary-nav .design-menu > li.menu-item-has-children > a {
    padding-right: 20px;
  }

  body.steady-lang-en .psd-menu .design-menu > li.menu-item-has-children > a::before,
  body.steady-lang-en .site-header .primary-nav .design-menu > li.menu-item-has-children > a::before {
    right: 6px;
  }
}

/* Download center filters: category selectors and keyword search. */
body.post-type-archive-download .download-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 1fr);
  gap: 24px;
  margin: 0 0 34px;
  padding: 26px 28px 28px;
  border: 1px solid rgba(37, 43, 66, .1);
  background: #f7f8fa;
  box-shadow: 0 14px 34px rgba(37, 43, 66, .07);
}

body.post-type-archive-download .download-filter__field {
  min-width: 0;
}

body.post-type-archive-download .download-filter__field label {
  display: block;
  margin-bottom: 9px;
  color: #252b42;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

body.post-type-archive-download .download-filter select,
body.post-type-archive-download .download-filter input {
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  border: 1px solid #d8dde5;
  border-radius: 0;
  outline: 0;
  color: #252b42;
  background: #fff;
  font: inherit;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

body.post-type-archive-download .download-filter select {
  padding: 0 42px 0 16px;
  cursor: pointer;
}

body.post-type-archive-download .download-filter input {
  padding: 0 68px 0 16px;
}

body.post-type-archive-download .download-filter select:focus,
body.post-type-archive-download .download-filter input:focus {
  border-color: #e30613;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, .1);
}

body.post-type-archive-download .download-filter__search-control {
  position: relative;
}

body.post-type-archive-download .download-filter__search-control button {
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #252b42;
  cursor: pointer;
  transition: background-color .2s ease;
}

body.post-type-archive-download .download-filter__search-control button:hover,
body.post-type-archive-download .download-filter__search-control button:focus-visible {
  background: #e30613;
}

body.post-type-archive-download .download-filter__search-control svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

@media (max-width: 900px) {
  body.post-type-archive-download .download-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.post-type-archive-download .download-filter__field--search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body.post-type-archive-download .download-filter {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  body.post-type-archive-download .download-filter__field--search {
    grid-column: auto;
  }
}

/* ==========================================================================
   移动端页脚布局（≤760px）：参考设计图重排，桌面端不受影响。
   必须放在全局最后加载的样式段，以级联覆盖 03/05/17/20 段内的移动端旧规则。
   ========================================================================== */
@media (max-width: 760px) {
  body .psd-footer .psd-footer__inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 12px !important;
  }

  /* 三栏导航：关于锐科 / 产品中心 / 帮助中心 并排横列 */
  body .psd-footer .psd-footer__nav {
    order: 1 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 12px !important;
    margin: 0 !important;
  }

  body .psd-footer .psd-footer__nav-group:nth-child(n+4) {
    display: none !important;
  }

  /* 二维码区：标题 + 二维码整体水平居中 */
  body .psd-footer .psd-footer__qr {
    order: 2 !important;
    width: 100% !important;
    margin: -12px 0 0 !important;
    text-align: center !important;
  }

  body .psd-footer .psd-footer__qr strong {
    display: none !important;
  }

  body .psd-footer .psd-footer__qr img {
    width: 160px !important;
    height: 160px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }

  /* 品牌区：Logo + 双行标语居中 */
  body .psd-footer .psd-footer__brand {
    order: 3 !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
  }

  body .psd-footer .psd-footer__brand > img {
    width: min(160px, 40vw) !important;
    height: auto !important;
    margin: 0 auto 22px !important;
  }

  /* 底部备案信息行：整体居中 */
  body .psd-footer .psd-footer__bottom {
    order: 4 !important;
    margin: 0 !important;
  }
}
}

/* ── Header 垂直居中修正 ───────────────────────────────────────────────
   原 .site-header 带 padding-top: 5px，但内部 .container.navbar 被固定为
   70px（移动端 80px）高，导致内容整体下移 5px、底部溢出。
   去掉该内边距后，logo、主导航、右侧按钮与 header 中心完全对齐。 */
.site-header {
  padding-top: 0;
}
