/* Footer and back-to-top control — generated by the conservative CSS/JS modular refactor. */

.footer {background: #165921; color: rgba(255,255,255,0.78); padding: 86px 0 0;}

.footer-grid {width: 100%;
    max-width: 1660px;
    margin: 0 auto 58px;
    padding-left: clamp(28px, 3vw, 54px);
    padding-right: clamp(28px, 3vw, 54px);
    display: grid;
    grid-template-columns: minmax(360px, 1.8fr) minmax(190px, 1fr) minmax(210px, 1fr) minmax(190px, 1fr) minmax(320px, 1.15fr);
    column-gap: clamp(34px, 3vw, 72px);
    row-gap: 28px;
    align-items: start;}

.footer-brand .logo {display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: auto;}

.footer-brand .logo-icon {width: 112px;
    height: 46px;
    flex: 0 0 auto;}

.footer-brand .logo-icon img {display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;}

.footer-brand .logo-text {display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    line-height: 1.08;
    flex: 0 1 auto;
    text-align: left;}

.footer-brand .logo-name {color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;}

.footer-brand .logo-tagline {color: rgba(255,255,255,0.72);
    font-size: 0.94rem;
    letter-spacing: 0.08em;
    white-space: nowrap;}

.footer-brand p {font-size: 0.98rem;
    margin-top: 34px;
    line-height: 1.72;
    max-width: 360px;
    color: rgba(255,255,255,0.86);}

.footer-socials {display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px;}

.footer-socials a {width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.86);
    font-size: 1rem;
    transition: var(--transition);}

.footer-socials a:hover {background: rgba(118, 202, 118, 0.3); color: #ffffff;}

.footer-col h4 {color: #ffffff; font-family: var(--font-head); font-size: 0.98rem; font-weight: 800; margin-bottom: 26px; letter-spacing: 0.01em;}

.footer-col ul li {margin-bottom: 16px;}

.footer-col ul li a {color: rgba(255,255,255,0.74); font-size: 0.96rem; line-height: 1.35;}

.footer-col ul li a:hover {color: #ffffff;}

.footer-contacts {display: flex; flex-direction: column; gap: 18px;}

.footer-contacts p {display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 0;
    color: rgba(255,255,255,0.82);}

.footer-contacts i {color: #57c05c; margin-top: 4px; flex-shrink: 0; font-size: 1rem;}

.footer-contacts a {color: rgba(255,255,255,0.82);}

.footer-contacts a:hover {color: #ffffff;}

.btn-newsletter {display: inline-block; margin-top: 16px; padding: 10px 20px; border-radius: 6px; background: rgba(76,175,80,0.2); border: 1px solid rgba(76,175,80,0.4); color: var(--green-light); font-size: 0.82rem; font-weight: 600; transition: var(--transition);}

.btn-newsletter:hover {background: var(--green-main); color: var(--white); border-color: var(--green-main);}

.footer-bottom {border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0;}

.footer-bottom-inner {width: 100%;
    max-width: 1660px;
    margin: 0 auto;
    padding-left: clamp(28px, 3vw, 54px);
    padding-right: clamp(28px, 3vw, 54px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;}

.footer-bottom p {font-size: 0.82rem; color: rgba(255,255,255,0.62);}

.footer-bottom-links {display: flex; gap: 20px;}

.footer-bottom-links a {font-size: 0.82rem; color: rgba(255,255,255,0.62);}

.footer-bottom-links a:hover {color: #ffffff;}

.back-to-top {position: fixed; bottom: 28px; right: 28px; z-index: 9999; width: 46px; height: 46px; border-radius: 50%; background: var(--green-main); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; box-shadow: 0 4px 16px rgba(45,122,53,0.4); opacity: 0; visibility: hidden; transform: translateY(16px); transition: var(--transition);}

.back-to-top.visible {opacity: 1; visibility: visible; transform: translateY(0);}

.back-to-top:hover {background: var(--green-dark); transform: translateY(-3px);}

.footer-bottom-inner {padding-right: 96px;}

@media (max-width: 900px) {
.footer-bottom-inner {padding-right: 0;}
}

@media (max-width: 520px) {
.footer-bottom {padding: 18px 0 78px;}

.footer-bottom-inner {align-items: flex-start;
        gap: 10px;}

.footer-bottom p,
.footer-bottom-links a {font-size: 0.76rem;
        line-height: 1.45;}

.footer-bottom-links {width: 100%;
        justify-content: flex-start;}

.back-to-top {right: 18px;
        bottom: 18px;}
}

@media (max-width: 1100px) {
.footer-grid {grid-template-columns: minmax(280px, 1.4fr) 1fr 1fr;}

.footer-brand {grid-column: 1 / -1;}
}

@media (max-width: 1450px) {
.footer-grid {grid-template-columns: minmax(320px, 1.6fr) repeat(3, minmax(170px, 1fr)) minmax(280px, 1.1fr);
        column-gap: 30px;}
}

@media (max-width: 1279px) {
.footer-grid {grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(160px, 1fr)) minmax(250px, 1fr);
        column-gap: 22px;}

.footer-brand p {max-width: 320px;
        font-size: 0.92rem;}
}

@media (max-width: 768px) {
.footer-grid {grid-template-columns: 1fr 1fr;}
}

@media (max-width: 480px) {
.footer-grid {grid-template-columns: 1fr 1fr; gap: 28px 16px;}
}

/* Language overrides, only on pages that originally loaded them. */
:where(body.has-language-overrides) .footer-col h4 {font-size: 0.95rem;
    letter-spacing: 0.05em;}

:where(body.has-language-overrides) .footer-col a,
:where(body.has-language-overrides) .footer-col li {font-size: 0.88rem;
    letter-spacing: 0.02em;}

:where(body.has-language-overrides) .footer-contacts p {font-size: 0.88rem;
    line-height: 1.8;}

:where(body.has-language-overrides) .footer-bottom p {font-size: 0.82rem;
    letter-spacing: 0.02em;}

/* Legacy inner-page footer variant. */
body.has-inner-pages .footer {background: var(--green-dark); color: rgba(255,255,255,0.75); padding: 72px 0 0;}

body.has-inner-pages .footer-grid {display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 48px;}

body.has-inner-pages .footer-brand .logo {margin-bottom: 16px;}

body.has-inner-pages .footer-brand p {font-size: 0.88rem; margin-top: 16px; line-height: 1.65; max-width: 280px;}

body.has-inner-pages .footer-desc {font-size: 0.87rem; line-height: 1.7; color: rgba(255,255,255,0.6); margin-bottom: 20px;}

body.has-inner-pages .footer-social {display: flex; gap: 12px;}

body.has-inner-pages .footer-social a {width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: var(--transition);}

body.has-inner-pages .footer-social a:hover {background: var(--green-main); color: var(--white);}

body.has-inner-pages .footer-socials {display: flex; gap: 10px; margin-top: 20px;}

body.has-inner-pages .footer-socials a {width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: var(--transition);}

body.has-inner-pages .footer-socials a:hover {background: var(--green-main); color: var(--white);}

body.has-inner-pages .footer-col h4 {font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--font-head);}

body.has-inner-pages .footer-col ul li {margin-bottom: 9px;}

body.has-inner-pages .footer-col ul li a {font-size: 0.87rem; color: rgba(255,255,255,0.6);}

body.has-inner-pages .footer-col ul li a:hover {color: var(--green-light); padding-left: 4px;}

body.has-inner-pages .footer-contact-list li {display: flex; align-items: flex-start; gap: 10px; font-size: 0.87rem; color: rgba(255,255,255,0.65); margin-bottom: 10px;}

body.has-inner-pages .footer-contact-list li i {color: var(--green-light); margin-top: 3px; flex-shrink: 0;}

body.has-inner-pages .footer-bottom {border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; font-size: 0.82rem; color: rgba(255,255,255,0.45);}

body.has-inner-pages .footer-bottom a {color: rgba(255,255,255,0.55);}

body.has-inner-pages .footer-bottom a:hover {color: var(--green-light);}

body.has-inner-pages .footer-bottom-inner {display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;}

body.has-inner-pages .footer-bottom-links {display: flex; gap: 16px;}

body.has-inner-pages .footer-contacts p {font-size: 0.87rem; color: rgba(255,255,255,0.65); margin-bottom: 8px; display: flex; align-items: center; gap: 8px;}

body.has-inner-pages .footer-contacts p i {color: var(--green-light); flex-shrink: 0;}

body.has-inner-pages .footer-contacts p a {color: rgba(255,255,255,0.65);}

body.has-inner-pages .footer-contacts p a:hover {color: var(--green-light);}

body.has-inner-pages .back-to-top {position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--green-main); color: var(--white); font-size: 1rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: var(--transition); z-index: 9999;}

body.has-inner-pages .back-to-top:hover {background: var(--green-dark); transform: translateY(-3px);}

@media (max-width: 900px) {
body.has-inner-pages .footer-grid {grid-template-columns: 1fr 1fr 1fr;}

body.has-inner-pages .footer-brand {grid-column: 1 / -1;}
}

@media (max-width: 600px) {
body.has-inner-pages .footer-grid {grid-template-columns: 1fr 1fr; gap: 28px 16px;}
}

/* Product-catalog footer variant. */
body.product-catalog-page .footer {background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;}

body.product-catalog-page .footer-grid {display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 48px;}

body.product-catalog-page .footer-about {color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 16px 0 20px;}

body.product-catalog-page .footer-socials {display: flex; gap: 10px; margin-top: 20px;}

body.product-catalog-page .footer-socials a {width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);}

body.product-catalog-page .footer-socials a:hover {background: var(--green-main); color: var(--white);}

body.product-catalog-page .footer-col h4 {font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  border-bottom: none;
  padding-bottom: 0;}

body.product-catalog-page .footer-col ul {display: flex; flex-direction: column; gap: 0;}

body.product-catalog-page .footer-col ul li {margin-bottom: 10px;}

body.product-catalog-page .footer-col ul li a {color: rgba(255,255,255,0.65); font-size: 0.87rem; transition: var(--transition);}

body.product-catalog-page .footer-col ul li a:hover {color: var(--green-light); padding-left: 4px;}

body.product-catalog-page .footer-col ul li i {color: var(--green-light); font-size: 0.8rem; margin-top: 3px; flex-shrink: 0;}

body.product-catalog-page .footer-bottom {border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;}

body.product-catalog-page .footer-bottom .container {display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;}

body.product-catalog-page .footer-bottom p {font-size: 0.82rem; color: rgba(255,255,255,0.5);}

body.product-catalog-page .footer-bottom-links {display: flex; gap: 20px;}

body.product-catalog-page .footer-bottom-links a {font-size: 0.82rem; color: rgba(255,255,255,0.5); transition: var(--transition);}

body.product-catalog-page .footer-bottom-links a:hover {color: var(--green-light);}

body.product-catalog-page .footer-contacts p {font-size: 0.87rem; color: rgba(255,255,255,0.65); margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px;}

body.product-catalog-page .footer-contacts p i {color: var(--green-light); margin-top: 3px; flex-shrink: 0;}

body.product-catalog-page .footer-contacts p a {color: rgba(255,255,255,0.75);}

body.product-catalog-page .footer-contacts p a:hover {color: var(--white);}

@media (max-width: 1024px) {
body.product-catalog-page .footer-grid {grid-template-columns: 1fr 1fr; gap: 32px;}

body.product-catalog-page .footer-brand {grid-column: 1 / -1;}
}

@media (max-width: 768px) {
body.product-catalog-page .footer-grid {grid-template-columns: 1fr 1fr; gap: 28px;}

body.product-catalog-page .footer-brand {grid-column: 1 / -1;}
}

/* AI widget clearance for the back-to-top control. */
body.has-ai-chat .back-to-top {bottom: 28px;
    right: 100px; /* 向左偏移，避免与聊天按钮重叠 */
    z-index: 9980;}

@media (max-width: 480px) {
body.has-ai-chat .back-to-top {right: 84px; bottom: 16px; z-index: 9980;}
}

/* ============================================================
   MOSINTER GROUP NETWORK
   Agricultural green treatment aligned with this site.
   ============================================================ */
.group-network {
  width: 100%;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, rgba(45, 122, 53, 0.2), rgba(26, 74, 31, 0.14));
  border-block: 1px solid rgba(118, 202, 118, 0.22);
  font-family: var(--font-main);
}

.group-network__inner {
  padding-top: 30px;
  padding-bottom: 32px;
}

.group-network__title {
  margin: 0 0 16px;
  color: #9add9e;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.group-network__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.group-network__grid > li {
  min-width: 0;
  margin: 0;
}

.group-network__item {
  display: flex;
  min-width: 0;
  min-height: 82px;
  padding: 14px 15px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius, 10px);
  text-decoration: none;
  transition: var(--transition);
}

a.group-network__item:hover {
  color: var(--white);
  background: rgba(76, 175, 80, 0.22);
  border-color: #76ca76;
  transform: translateY(-2px);
}

a.group-network__item:focus-visible {
  outline: 3px solid #9add9e;
  outline-offset: 3px;
}

.group-network__item.is-current {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-main), #24662c);
  border-color: var(--green-light);
  box-shadow: inset 0 3px 0 #8bd38f;
}

.group-network__name {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.group-network__domain {
  min-width: 0;
  color: inherit;
  font-size: 0.72rem;
  line-height: 1.35;
  opacity: 0.75;
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .group-network__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .group-network__inner {
    padding-top: 24px;
    padding-bottom: 26px;
  }

  .group-network__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .group-network__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .group-network__item {
    transition: none;
  }
}
