/* =========================================================
 * nuviatech 主题样式覆盖（按外部站 HTML 对齐）
 * ========================================================= */

/* 外部站没有顶部广告条，隐藏旧模板的 top-bar 以避免遮挡 */
.top-bar {
  display: none !important;
}

/* 首页 hero 高度统一 530px */
.block--banner {
  height: 530px !important;
  background-size: cover !important;
  background-position: center !important;
}

/* 内页 hero 高度统一 259px */
.single-header {
  height: 259px !important;
  background-size: cover !important;
  background-position: center !important;
  overflow: hidden;
}
.single-header .row {
  min-height: 259px !important;
  box-sizing: border-box;
}

/* 兼容旧模板首页结构：只保留外部站 hero，其他区块先隐藏 */
.index-banner-slider,
.index-service,
.index-case,
.index-news,
.index-partner,
.index-contact,
.index-process {
  display: none !important;
}

/* =========================================================
 * 程序分页样式（适配 #page > ul.pagination > li > a/span）
 * ========================================================= */
#page {
  text-align: center;
  margin: 0 auto;
}

#page > ul.pagination {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

#page > ul.pagination > li {
  display: inline-flex;
}

#page > ul.pagination > li > a,
#page > ul.pagination > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #1f2937;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}

#page > ul.pagination > li > a:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.04);
}

#page > ul.pagination > li.active > span {
  background: #20222f;
  border-color: #20222f;
  color: #fff;
}

#page > ul.pagination > li.disabled > span {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 产品详情：正文上方信息区（左文右图） */
.product-detail-summary {
  width: 100%;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.product-detail-summary__info--solo {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  padding-right: 0 !important;
}

.product-detail-summary__info {
  padding-right: 1.5rem;
}

.product-detail-summary__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #20222f;
}

.product-detail-summary__model {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
}

.product-detail-summary__label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b7280;
}

.product-detail-summary__model .product-detail-summary__label {
  display: inline;
  margin-right: 0.35rem;
  font-size: inherit;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: #374151;
}

.product-detail-summary__intro-body {
  font-size: 1rem;
  line-height: 1.65;
  color: #4b5563;
}

.product-detail-summary__media {
  text-align: center;
}

.product-detail-summary__figure {
  margin: 0;
  display: inline-block;
  max-width: 100%;
}

.product-detail-summary__thumb {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  background: #f9fafb;
}

.product-detail-summary__figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.product-stock-badge {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(90deg, #de2f2f 0%, #f0482d 100%);
}

.product-detail-summary__contact {
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 1rem;
}

.product-detail-summary__contact-label {
  color: #334155;
  font-weight: 600;
}

.product-detail-summary__contact-phone {
  color: #2b6cb0;
  font-weight: 700;
  word-spacing: 0.5rem;
}

.product-detail-content {
  margin-top: 0.5rem;
}

.product-detail-content__title {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  line-height: 1.35;
  font-weight: 700;
  color: #1e293b;
}

.single--product .list--files .item-title {
  width: auto;
  max-width: none;
  white-space: normal;
}

.single--product .list--files .list-item {
  width: 100%;
  padding-right: 0;
}

.product-related-products {
  margin-top: 2rem;
}

.product-related-products__title {
  margin-bottom: 1rem;
}

.product-related-products__list {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 767px) {
  .product-detail-summary__info {
    padding-right: 0;
    margin-bottom: 1.5rem;
  }
}

/* 头部工具栏搜索：keyword + 模型下拉 + 提交 */
.form--search-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.form--search-toolbar .form-text {
  flex: 1 1 140px;
  min-width: 120px;
}

.form--search-toolbar .form-select--search-module {
  flex: 0 0 auto;
  min-width: 6.5rem;
  max-width: 9rem;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  background: #fff;
  color: #20222f;
}

/* 搜索页：外层不与 .row 混用；表单与主题 .form--search 胶囊框一致 */
.search-page-bar {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
  margin: 20px auto 1.5rem;
  display: flex;
  justify-content: center;
}

/* 内页搜索：继承 theme 的 62px 圆角输入框，提交改为右侧同色胶囊文字按钮（非 40px 空圆） */
.search-page-bar .form.form--search.form--search-page {
  position: relative;
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0;
  box-sizing: border-box;
}

/* 范围下拉 + 关键词：同一胶囊；边框与主题蓝统一，聚焦时外框与内分隔线同步变色 */
.search-page-bar .form--search.form--search-page .search-page-composite {
  --search-capsule-border: rgba(2, 33, 105, 0.22);
  --search-capsule-border-hover: rgba(0, 68, 137, 0.38);
  --search-capsule-border-focus: #004489;
  --search-capsule-ring: rgba(0, 68, 137, 0.22);
  --search-divider: rgba(0, 68, 137, 0.2);
  --search-divider-focus: rgba(0, 68, 137, 0.45);
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 62px;
  border-radius: 31px;
  background: #fff;
  border: 1px solid var(--search-capsule-border);
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-page-bar .form--search.form--search-page .search-page-composite:hover:not(:focus-within) {
  border-color: var(--search-capsule-border-hover);
}

.search-page-bar .form--search.form--search-page .search-page-composite:focus-within {
  border-color: var(--search-capsule-border-focus);
  box-shadow: 0 0 0 2px var(--search-capsule-ring);
}

.search-page-bar .form--search.form--search-page .search-page-composite .form-select--search-module {
  flex: 0 0 100px;
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  height: auto;
  margin: 0;
  padding: 0 1.35rem 0 0.35rem;
  border: none;
  border-right: 1px solid var(--search-divider);
  border-radius: 0;
  background-color: #f4f7fb;
  color: #1e293b;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-align-last: center;
  box-sizing: border-box;
  align-self: stretch;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23004489' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 10px 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.search-page-bar .form--search.form--search-page .search-page-composite .form-select--search-module:hover {
  background-color: #eaf0f8;
  color: #022169;
}

.search-page-bar .form--search.form--search-page .search-page-composite:focus-within .form-select--search-module {
  border-right-color: var(--search-divider-focus);
  background-color: #e3edf8;
  color: #022169;
}

.search-page-bar .form--search.form--search-page .search-page-composite .form-select--search-module:focus {
  outline: none;
}

.search-page-bar .form--search.form--search-page .search-page-composite .form-select--search-module option {
  text-align: center;
  font-weight: normal;
  color: #1e293b;
  background: #fff;
  padding: 0.5rem;
}

.search-page-bar .form--search.form--search-page .search-page-composite .form-text--search-page {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  width: auto;
  max-width: none;
  height: auto !important;
  min-height: 62px;
  margin: 0;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
  color: #1e293b;
  /* 右侧留给「确定」胶囊按钮 */
  padding: 0 7.5rem 0 0.75rem !important;
  box-sizing: border-box;
  transition: color 0.2s ease;
}

.search-page-bar .form--search.form--search-page .search-page-composite:focus-within .form-text--search-page::placeholder {
  color: rgba(30, 41, 59, 0.45);
}

.search-page-bar .form--search.form--search-page .form-submit--search-page {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  width: auto;
  min-width: 4.25em;
  height: 44px;
  margin: 0;
  padding: 0 20px;
  border: none;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  font-size: 15px;
  color: #fff;
  background-color: #022169;
  cursor: pointer;
  overflow: visible;
  white-space: nowrap;
  text-indent: 0;
  box-sizing: border-box;
}

.search-page-bar .form--search.form--search-page .form-submit--search-page:hover,
.search-page-bar .form--search.form--search-page .form-submit--search-page:focus,
.search-page-bar .form--search.form--search-page .form-submit--search-page:active {
  background-color: #0079be;
}

.search-toolbar__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.single--search .search-keyword {
  font-weight: 400;
  color: #004489;
}

/* 搜索结果卡片：显示完整缩略图，避免 center crop */
.single--search .post-card .post-image {
  aspect-ratio: 4 / 3;
  background: #f8fafc;
}

.single--search .post-card .post-image img {
  -o-object-fit: contain;
     object-fit: contain;
  object-position: center center;
}

/* 新闻列表 / 首页公司动态：大图走 news.css 默认（.post-image 整卡宽 + cover），勿在这里再压成 contain */

.search-result-excerpt {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #6b7280;
  font-weight: normal;
}

.search-empty {
  padding: 2rem 1rem;
  font-size: 1rem;
  color: #6b7280;
}

/* 首页公司动态 + 侧栏：与 news.css 中 .home-news .posts-list 宽度规则对齐，避免第三列被撑满一行 */
.home-news-about-inner {
  align-items: stretch;
}
.home-news-about-inner > .home-news {
  min-width: 0;
  /* 防止子级负 margin / 溢出盖住右侧侧栏 */
  overflow-x: hidden;
  padding-right: 0.25rem;
}

/* 使用 Grid + gap，避免 flex 下 33.333% 宽度 + 负 margin 溢出到侧栏 */
.home-news-about-wrap .home-news.home-news--cols-3 .posts-list {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: stretch;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (min-width: 768px) {
  .home-news-about-wrap .home-news.home-news--cols-3 .posts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-news-about-wrap .home-news.home-news--cols-3 .posts-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-news-about-wrap .home-news.home-news--cols-3 .posts-list .post-wrapper {
  float: none !important;
  clear: none !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.home-news-about-wrap .home-news.home-news--cols-3 .post-card {
  max-width: 100%;
  overflow: hidden;
}

/* 首页公司动态图片：与备份 index 一致，整列大图（不限制 200px 小图），样式由 news.css .post-image 控制 */

/* 首页右侧「关于阿升」侧栏：与原 home-events 一致的品牌蓝底（提高优先级防被覆盖） */
.home-about-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  --tw-bg-opacity: 1;
  background-color: rgb(0 68 137 / var(--tw-bg-opacity)) !important;
  color: #fff !important;
  padding: 1.25rem 1.5rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 18px rgba(0, 68, 137, 0.35);
}
@media (max-width: 1279px) {
  .home-about-sidebar {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  /* 在 22rem 基础上缩小三分之一 → 约为 14.67rem */
  .home-news-about-inner .home-about-sidebar {
    width: calc(22rem * 2 / 3);
    min-width: calc(22rem * 2 / 3);
    max-width: calc(22rem * 2 / 3);
    flex-shrink: 0;
  }
}
.home-about-sidebar__title {
  font-size: 1.375rem;
  line-height: 1.35;
  font-weight: 700;
  color: #fff !important;
  margin: 0 0 1rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  letter-spacing: 0.02em;
}
.home-about-sidebar__list {
  list-style: disc;
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.88) !important;
}
.home-about-sidebar__list li {
  margin-bottom: 0.875rem;
  line-height: 1.5;
}
.home-about-sidebar__list li::marker {
  color: rgba(255, 255, 255, 0.45);
}
.home-about-sidebar__list a {
  color: #fff !important;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.home-about-sidebar__list a:hover {
  color: #bfdbfe !important;
  text-decoration: underline;
}

/* 当前位置容器：统一限制宽度与位置，承接 {catpos} 纯文本输出 */
.breadcrumb-wrap {
  margin-top: 30px;
  margin-bottom: 20px;
}
.breadcrumb-wrap.row--small {
  max-width: 1280px;
}
.breadcrumb-current {
  color: #18223b;
  font-size: 16px;
  line-height: 1.6;
  word-break: break-word;
}
.breadcrumb-current a {
  color: #18223b;
  text-decoration: none;
  margin-left: 8px;
  margin-right: 8px;
}
.breadcrumb-current a:first-of-type {
  margin-left: 0;
}
.breadcrumb-current a:hover {
  color: #004489;
  text-decoration: underline;
}

/* 右侧工具条：QQ / 微信（素材图 + 与主题 #004489 统一的高亮与展开层） */
.nav--toolbars .nav-item .nav-toolbar-icon-img {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  line-height: 0;
  display: block;
}
.nav--toolbars .nav-item .nav-toolbar-icon-img img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  -o-object-fit: contain;
  vertical-align: top;
  opacity: 0.9;
  -webkit-transform: scale(1);
      -ms-transform: scale(1);
          transform: scale(1);
  -webkit-transition: opacity 0.2s ease, -webkit-transform 0.2s ease;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav--toolbars .nav-item.nav-item--qq > a:hover .nav-toolbar-icon-img img,
.nav--toolbars .nav-item.item-wechat > a.item-toggle:hover .nav-toolbar-icon-img img,
.nav--toolbars .nav-item.item-wechat.is-active > a.item-toggle .nav-toolbar-icon-img img {
  opacity: 1;
  -webkit-transform: scale(1.06);
      -ms-transform: scale(1.06);
          transform: scale(1.06);
}
.nav--toolbars .nav-item.nav-item--qq > a:hover,
.nav--toolbars .nav-item.item-wechat > a.item-toggle:hover {
  background-color: #f0f5fa !important;
  color: #004489;
}
.nav--toolbars .nav-item.item-wechat.is-active > a.item-toggle {
  background-color: #e8f1f9 !important;
  color: #004489;
  -webkit-box-shadow: inset 3px 0 0 0 #004489;
          box-shadow: inset 3px 0 0 0 #004489;
}
.nav--toolbars .nav-item.nav-item--qq > a:focus-visible,
.nav--toolbars .nav-item.item-wechat > a.item-toggle:focus-visible {
  outline: 2px solid #004489;
  outline-offset: -2px;
}
.nav--toolbars .item-wechat .item-content.item-content--wechat-qr {
  height: auto;
  min-height: 63px;
  min-width: 200px;
  max-width: min(220px, calc(100vw - 100px));
  padding: 12px 12px 14px;
  background: #fff;
  border: 1px solid #c8d6e4;
  border-radius: 4px;
  -webkit-box-shadow: 0 8px 24px rgba(0, 68, 137, 0.12);
          box-shadow: 0 8px 24px rgba(0, 68, 137, 0.12);
  z-index: 30;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.nav--toolbars .item-wechat.is-active .item-content.item-content--wechat-qr {
  z-index: 30;
}
.nav--toolbars .item-wechat .toolbar-wechat-hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  color: #004489;
  text-align: center;
  letter-spacing: 0.02em;
}
.nav--toolbars .item-wechat .toolbar-wechat-qr-frame {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  padding: 8px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.nav--toolbars .item-wechat .toolbar-wechat-qr-img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto;
  border-radius: 2px;
}
@media screen and (max-width: 1200px) {
  .nav--toolbars .item-wechat .item-content.item-content--wechat-qr {
    min-height: 53px;
  }
}

