/* WordPress 集成样式：统一页脚、表单状态与后台无关的细节。 */

/* 内页复用首页页脚，仅补充上下留白 */
.contact-footer--page {
  margin-top: 0;
  padding: 38px 0 24px;
  background: var(--white);
}

@media (max-width: 1100px) {
  .contact-footer--page {
    padding: 30px 0 18px;
  }
}

/* 首页紧凑页脚（site-footer--home） */
.tech-theme.ppt-home .site-footer.site-footer--home {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 14px 0 10px;
  color: #5f7d95;
  background: transparent;
  border-top: 1px solid rgba(37, 110, 170, .14);
}

.site-footer--home .site-footer__main {
  display: grid;
  grid-template-columns: 1.45fr .95fr 1fr 1.15fr;
  gap: clamp(20px, 3vw, 42px);
  align-items: start;
}

.site-footer--home .site-footer__brand img {
  display: block;
  width: auto;
  height: 26px;
}

.site-footer--home .site-footer__brand p {
  margin: 7px 0 0;
  color: #5f7d95;
  font-size: 10px;
  line-height: 1.5;
}

.site-footer--home .site-footer__brandlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 7px;
}

.site-footer--home .site-footer__brandlinks a {
  color: #456b8b;
  font-size: 10px;
}

.site-footer--home .site-footer__brandlinks a:hover,
.site-footer--home .site-footer__col a:hover {
  color: #1976d2;
}

.site-footer--home .site-footer__col h3,
.site-footer--home .site-footer__contact h3 {
  margin: 0 0 7px;
  color: #64849e;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.site-footer--home .site-footer__col a {
  display: block;
  margin-bottom: 4px;
  color: #456b8b;
  font-size: 10.5px;
  line-height: 1.4;
}

.site-footer--home .site-footer__contact a {
  display: inline-block;
  margin-bottom: 5px;
  color: #176fb9;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.site-footer--home .site-footer__contact span {
  display: block;
  color: #5f7d95;
  font-size: 9.5px;
  line-height: 1.55;
}

.site-footer--home .site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding-top: 9px;
  color: #6f8ba1;
  border-top: 1px solid rgba(37, 110, 170, .1);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .02em;
}

@media (min-width: 1101px) {
  .tech-theme.ppt-home #contact .site-footer--home .site-footer__main,
  .tech-theme.ppt-home #contact .site-footer--home .site-footer__bottom {
    padding-right: 210px;
  }
}

@media (min-width: 1101px) and (max-height: 820px) {
  .site-footer--home {
    padding: 10px 0 8px;
  }

  .site-footer--home .site-footer__main {
    gap: 22px;
  }

  .site-footer--home .site-footer__brand p,
  .site-footer--home .site-footer__brandlinks {
    margin-top: 5px;
  }

  .site-footer--home .site-footer__col a {
    margin-bottom: 3px;
  }

  .site-footer--home .site-footer__bottom {
    margin-top: 7px;
    padding-top: 7px;
  }
}

@media (max-width: 1100px) {
  .site-footer--home {
    padding: 20px 0 12px;
  }

  .site-footer--home .site-footer__main {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 26px;
  }

  .site-footer--home .site-footer__brand {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
  }

  .site-footer--home .site-footer__brand p,
  .site-footer--home .site-footer__brandlinks {
    margin: 0;
  }

  .site-footer--home .site-footer__contact {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
  }

  .site-footer--home .site-footer__contact h3 {
    width: 100%;
    margin-bottom: 0;
  }

  .site-footer--home .site-footer__bottom {
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .site-footer--home .site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .site-footer--home .site-footer__contact {
    grid-column: 1 / -1;
  }

  .site-footer--home .site-footer__bottom {
    display: block;
  }

  .site-footer--home .site-footer__bottom span {
    display: block;
    margin-top: 6px;
  }
}

@media (max-width: 420px) {
  .site-footer--home .site-footer__main {
    grid-template-columns: 1fr;
  }
}

/* 内页默认页脚 */
.site-footer--default .site-footer__main {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-block: 62px 52px;
}

.site-footer--default .site-footer__brand img {
  width: auto;
  height: 46px;
}

.site-footer--default .site-footer__brand p {
  max-width: 320px;
  margin: 20px 0;
  color: #7f93a3;
  font-size: 12px;
}

.site-footer--default .site-footer__brandlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer--default .site-footer__brandlinks a,
.site-footer--default .site-footer__col a,
.site-footer--default .site-footer__contact a,
.site-footer--default .site-footer__contact span {
  display: block;
  margin-bottom: 9px;
  color: #8195a5;
  font-size: 12px;
}

.site-footer--default .site-footer__brandlinks a:hover,
.site-footer--default .site-footer__col a:hover,
.site-footer--default .site-footer__contact a:hover {
  color: var(--white);
}

.site-footer--default .site-footer__col h3,
.site-footer--default .site-footer__contact h3 {
  margin-bottom: 18px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .09em;
}

.site-footer--default .site-footer__contact a {
  color: var(--white);
  font-size: 16px;
}

.site-footer--default .site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  color: #607585;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 10px;
}

@media (max-width: 980px) {
  .site-footer--default .site-footer__main {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .site-footer--default .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-footer--default .site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-block: 46px 38px;
  }

  .site-footer--default .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer--default .site-footer__bottom {
    display: block;
  }

  .site-footer--default .site-footer__bottom span {
    display: block;
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .site-footer--default .site-footer__main {
    grid-template-columns: 1fr;
  }
}

/* 预约表单 */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  display: block;
  grid-column: 1 / -1;
  padding: 12px;
  color: #8a2a24;
  background: #fff1f0;
  border: 1px solid #f0c2be;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* 内页沿用首页导航视觉 */
body.inner-page .site-header {
  position: sticky;
  background: rgba(252, 254, 255, .92);
  border-bottom-color: #deebf5;
  box-shadow: 0 8px 30px rgba(35, 96, 144, .06);
}

body.tech-theme.inner-page .site-header .nav-link {
  color: #315778;
}

body.tech-theme.inner-page .site-header .nav-link:hover,
body.tech-theme.inner-page .site-header .nav-item.is-active > .nav-link {
  color: #1976d2;
  text-shadow: none;
}

body.tech-theme.inner-page .site-header .header-phone {
  color: #7891a8;
}

body.tech-theme.inner-page .site-header .header-phone strong {
  color: #214968;
}

body.tech-theme.inner-page .site-header .mega-menu {
  background: #fff;
  border-color: #e1edf6;
  box-shadow: 0 22px 60px rgba(26, 91, 142, .14);
}

body.tech-theme.inner-page .site-header .mega-title {
  color: #7891a7;
  border-color: #e9f0f6;
}

body.tech-theme.inner-page .site-header .mega-link strong {
  color: #204a71;
}

body.tech-theme.inner-page .site-header .mega-link small {
  color: #6d8499;
}

body.tech-theme.inner-page .site-header .mega-link:hover {
  background: #f2f8fd;
}

body.tech-theme.inner-page .site-header .mega-icon {
  color: #1976d2;
  background: rgba(37, 136, 232, .07);
  border-color: rgba(37, 136, 232, .16);
}

body.tech-theme.inner-page .mobile-toggle {
  color: #246397;
  border-color: #d1e4f2;
}

@media (max-width: 980px) {
  body.tech-theme.inner-page .main-nav {
    background: rgba(250, 253, 255, .98);
    border-color: #dceaf4;
  }

  body.tech-theme.inner-page .nav-item {
    border-color: #e3edf5;
  }
}

body.inner-page .entry-content {
  margin-top: 24px;
  color: var(--steel);
  line-height: 1.8;
}

body.inner-page .entry-content a {
  color: var(--brand);
}

/* MES 产品页 */
.product-detail .cta-copy h2 {
  font-size: clamp(32px, 3.2vw, 44px);
  text-wrap: balance;
}

.product-detail .ui-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-detail .ui-shot {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbeaf6;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(25, 93, 141, .07);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.product-detail .ui-shot:hover {
  transform: translateY(-3px);
  border-color: #a9d2f1;
  box-shadow: 0 22px 44px rgba(25, 93, 141, .12);
}

.product-detail .ui-shot__img {
  width: 100%;
  height: auto;
  background: #f7fbfe;
  border-bottom: 1px solid #e2eef8;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.product-detail .ui-shot figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
}

.product-detail .ui-shot figcaption strong {
  color: #1e4b74;
  font-size: 14px;
}

.product-detail .ui-shot figcaption span {
  color: #6b8399;
  font-size: 12px;
  line-height: 1.6;
}

.product-detail .faq-item summary {
  gap: 12px;
}

.product-detail .faq-item__index {
  flex: 0 0 auto;
  color: #8aa3b8;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
}

.product-detail .faq-item__q {
  flex: 1;
  text-align: left;
}

.product-detail .faq-support {
  position: relative;
  overflow: hidden;
  align-self: start;
  padding: 30px;
  background: linear-gradient(160deg, #f2faff, #fff 58%);
  border: 1px solid #dbeaf6;
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(25, 93, 141, .07);
}

.product-detail .faq-support::before {
  position: absolute;
  top: -70px;
  right: -60px;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid rgba(55, 146, 215, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(73, 163, 225, .045);
  pointer-events: none;
}

.product-detail .faq-support__eyebrow {
  display: block;
  color: #7d9cb4;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
}

.product-detail .faq-support h3 {
  margin: 12px 0 8px;
  color: #1e4b74;
  font-size: 23px;
}

.product-detail .faq-support > p {
  color: #6b8399;
  font-size: 12.5px;
  line-height: 1.75;
}

.product-detail .faq-support__list {
  margin: 20px 0 24px;
  padding: 0;
  border-top: 1px solid #e2eef8;
  list-style: none;
}

.product-detail .faq-support__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #e2eef8;
  font-size: 12px;
}

.product-detail .faq-support__list span {
  color: #7894a9;
}

.product-detail .faq-support__list strong {
  color: #1e4b74;
  font-weight: 650;
}

.product-detail .faq-support > .btn {
  width: 100%;
}

.product-detail .faq-support__link {
  display: flex;
  width: fit-content;
  gap: 6px;
  align-items: center;
  margin-top: 14px;
  color: #2588e8;
  font-size: 12px;
  font-weight: 600;
}

.product-detail .faq-support__link:hover {
  color: #126bc1;
  text-decoration: underline;
}

@media (max-width: 980px) {
  .product-detail .ui-gallery {
    grid-template-columns: 1fr;
  }

  .product-detail .ui-shot__img {
    aspect-ratio: auto;
  }
}

@media (max-width: 600px) {
  .product-detail .faq-support {
    padding: 24px;
  }
}

/* WMS 产品页 */
.product-detail .problem-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-detail .compare-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9e8f2;
  border-radius: 14px;
}

.product-detail .compare-matrix__col {
  padding: 28px;
}

.product-detail .compare-matrix__col + .compare-matrix__col {
  background: #f0f8fd;
  border-left: 1px solid #d9e8f2;
}

.product-detail .compare-matrix h3 {
  margin-bottom: 18px;
  color: #174b73;
  font-size: 20px;
}

.product-detail .compare-matrix h3 span {
  display: block;
  margin-bottom: 6px;
  color: #4b91bf;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
}

.product-detail .compare-matrix ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-detail .compare-matrix li {
  position: relative;
  padding-left: 18px;
  color: #607f95;
  font-size: 13px;
  line-height: 1.65;
}

.product-detail .compare-matrix li::before {
  position: absolute;
  top: .7em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: #9eb7c7;
  border-radius: 50%;
}

.product-detail .compare-matrix__col:last-child li::before {
  background: #238bd0;
  box-shadow: 0 0 0 4px rgba(35, 139, 208, .1);
}

@media (max-width: 1000px) {
  .product-detail .problem-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .product-detail .compare-matrix {
    grid-template-columns: 1fr;
  }

  .product-detail .compare-matrix__col + .compare-matrix__col {
    border-top: 1px solid #d9e8f2;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .product-detail .problem-grid--four {
    grid-template-columns: 1fr;
  }

  .product-detail .page-anchor-link {
    padding: 8px 7px;
  }
}
