
/* BG EBIKE：仅调整页脚菜单 */
.site-footer #astra-footer-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 8px 24px;
  width: 100%;
}

.site-footer #astra-footer-menu > li {
  margin: 0;
  min-width: 0;
}

.site-footer #astra-footer-menu > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 0;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
  transition: color .2s ease, transform .2s ease;
}

.site-footer #astra-footer-menu > li > a:is(:hover, :focus-visible) {
  transform: translateX(3px);
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer #astra-footer-menu > li > a {
    transition: none;
    transform: none;
  }
}

/* 页脚报价按钮动效 */
.site-footer .bge-footer-quote {
  transition: background-color .2s ease, transform .2s ease;
}

.site-footer .bge-footer-quote > span:last-child {
  transition: transform .2s ease;
}

.site-footer .bge-footer-quote:focus-visible {
  outline: 2px solid #f5f3ee;
  outline-offset: 4px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .site-footer .bge-footer-quote:hover {
    background-color: #a94020 !important;
    transform: translateY(-2px);
  }

  .site-footer .bge-footer-quote:hover > span:last-child {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .bge-footer-quote,
  .site-footer .bge-footer-quote > span {
    transition: none;
  }
}
@media (max-width: 767px) {
  .site-footer .bge-footer-cta {
    margin-top: 24px;
  }
}
/* BG EBIKE：产品详情页样式，不修改首页及页脚 */

/* 内容区域 */
body.single-product #content {
  background: #f6f5ef;
  color: #203c30;
}

body.single-product #content .ast-container {
  max-width: 1280px;
}

body.single-product #primary {
  margin-top: 40px;
  margin-bottom: 64px;
}

body.single-product div.product {
  font-family: "Manrope", Arial, sans-serif;
}

/* 产品图片：保持完整，不裁切 */
body.single-product div.product .woocommerce-product-gallery {
  background: #fff;
  border: 1px solid #e3e5dd;
  border-radius: 8px;
  overflow: hidden;
}

body.single-product div.product
.woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

/* 标题与简介 */
body.single-product div.product .product_title {
  color: #193b2d;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

body.single-product
.woocommerce-product-details__short-description {
  color: #4e5d54;
  font-size: 17px;
  line-height: 1.85;
}

body.single-product .woocommerce-breadcrumb {
  font-size: 13px;
  line-height: 1.7;
  color: #647167;
  margin-bottom: 22px;
}

body.single-product #content .woocommerce-breadcrumb a,
body.single-product #content .product_meta a {
  color: #315843;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.single-product div.product .product_meta {
  border-top: 1px solid #dce1d7;
  margin-top: 26px;
  padding-top: 18px;
  font-size: 14px;
  color: #647167;
}

/* 详情标签 */
body.single-product div.product .woocommerce-tabs {
  clear: both;
  padding-top: 32px;
}

body.single-product div.product
.woocommerce-tabs ul.tabs {
  padding: 0;
  margin-bottom: 0;
}

body.single-product div.product
.woocommerce-tabs ul.tabs li {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0 24px 0 0;
  padding: 0;
}

body.single-product div.product
.woocommerce-tabs ul.tabs li::before,
body.single-product div.product
.woocommerce-tabs ul.tabs li::after {
  display: none;
}

body.single-product div.product
.woocommerce-tabs ul.tabs li a {
  color: #56645b;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 0;
}

body.single-product div.product
.woocommerce-tabs ul.tabs li.active a {
  color: #b94b20;
  box-shadow: inset 0 -3px #b94b20;
}

/* 详情正文 */
body.single-product div.product
.woocommerce-tabs .panel {
  background: #fff;
  border: 1px solid #e3e5dd;
  border-radius: 0 0 8px 8px;
  padding: clamp(22px, 4vw, 48px);
  color: #4e5d54;
  font-size: 16px;
  line-height: 1.85;
}

body.single-product div.product
.woocommerce-tabs .panel h2 {
  color: #193b2d;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 22px;
}

body.single-product div.product
.woocommerce-tabs .panel h3 {
  color: #193b2d;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  margin: 30px 0 12px;
}

body.single-product div.product
.woocommerce-tabs .panel p,
body.single-product div.product
.woocommerce-tabs .panel ul {
  max-width: 850px;
  margin-bottom: 20px;
}

body.single-product div.product
.woocommerce-tabs .panel li {
  margin-bottom: 8px;
}

/* 产品内容区按钮 */
body.single-product div.product .button,
body.single-product div.product button.button {
  background: #bd4d20;
  color: #fff;
  border: 1px solid #bd4d20;
  border-radius: 4px;
  padding: 15px 24px;
  font-weight: 700;
  line-height: 1.4;
  transition: background-color .2s ease;
}

body.single-product div.product .button:hover {
  background: #193b2d;
  border-color: #193b2d;
  color: #fff;
}

body.single-product div.product a:focus-visible,
body.single-product div.product button:focus-visible {
  outline: 3px solid #bd4d20;
  outline-offset: 4px;
}

/* 手机端 */
@media (max-width: 767px) {
  body.single-product #primary {
    margin-top: 24px;
    margin-bottom: 40px;
  }

  body.single-product div.product
  .woocommerce-product-gallery,
  body.single-product div.product .summary {
    width: 100% !important;
    float: none !important;
  }

  body.single-product div.product .summary {
    margin-top: 28px;
  }

  body.single-product div.product
  .woocommerce-product-gallery__image img {
    max-height: 380px;
  }

  body.single-product div.product
  .woocommerce-tabs ul.tabs li {
    margin-right: 16px;
  }

  body.single-product div.product
  .woocommerce-tabs ul.tabs li a {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product div.product .button {
    transition: none;
  }
}
/* 统一产品描述的阅读宽度 */
body.single-product #tab-description {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.single-product #tab-description table {
  width: 100%;
  table-layout: auto;
}

body.single-product #tab-description th {
  width: 34%;
  text-align: left;
  background: #f6f5ef;
}

body.single-product #tab-description th,
body.single-product #tab-description td {
  padding: 14px 18px;
  vertical-align: top;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  body.single-product #tab-description th,
  body.single-product #tab-description td {
    padding: 10px;
    font-size: 14px;
  }
}

/* BG EBIKE：限制 B2B 配件主图高度，完整显示不裁切 */
body.single-product .bge-parts-page img.bge-parts-photo {
  width: 100%;
  height: 520px;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

@media (max-width: 767px) {
  body.single-product .bge-parts-page img.bge-parts-photo {
    height: 360px;
    max-height: 360px;
  }
}

/* BG EBIKE：移动端询价条/浮钮避让页脚与商品页 H12026-11-13）
   追加到「外观  自定  附加 CSS」末尾后发布。
   不要 BGE Multilang 插件、不要改 Code Snippets、不要直接改   /wp-content/uploads/bge-assets/a53844937ed5ebe4.css 这个哈希文件。   自定义器保存后，站点会重新生成 wp-custom-css-ext 文件 */
/* 1) mobile footer clearance */@media (max-width: 767px) {  footer.bge-foot {    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));  }  body.single-product footer.bge-foot {    padding-bottom: calc(208px + env(safe-area-inset-bottom, 0px));  }
}

/* 2) product H1 clearance beside floating button */@media (max-width: 767px) {  body.single-product .bge-gb h1 {    padding-inline-end: 56px;  }}

