/**
 * dmyys template custom styles
 */

/* ========== 手机端：Logo 宽度限制，避免超出页面 ========== */
@media (max-width: 767px) {
  #header .head-list .left img,
  .header .head-list .left img,
  .header .head-list img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }
    #header .head-list .right { display: none !important; }
}

/* ========== 手机端：导航栏折叠展开（确保 .in 时显示） ========== */
@media (max-width: 767px) {
  .met-nav .navbar-collapse.collapse { display: none; }
  .met-nav .navbar-collapse.collapse.in { display: block !important; }
}

/* ========== 手机端：二级栏目展开/收起（.open 时显示） ========== */
@media (max-width: 767px) {
  .met-nav .navlist .dropdown .dropdown-menu { display: none; }
  .met-nav .navlist .dropdown.open .dropdown-menu { display: block !important; }
  .met-nav .navlist .dropdown .dropdown-menu {
    position: static;
    float: none;
    box-shadow: none;
    border: none;
    padding-left: 15px;
    margin-top: 4px;
  }
  .met-nav .navlist .dropdown .dropdown-menu li a { padding: 8px 15px; }
}

/* ========== Nav: dropdown on hover (desktop) ========== */
@media (min-width: 768px) {
.met-nav .nav > li.dropdown:hover .dropdown-menu,
.met-nav .nav > li.dropdown.open .dropdown-menu { display: block !important; }
}

/* ========== Banner ========== */
.dmyys-swiper-banner { width: 100%; }
.dmyys-swiper-banner .swiper-slide { display: flex; align-items: center; justify-content: center; }
.dmyys-swiper-banner .swiper-slide a { display: block; width: 100%; }
.dmyys-swiper-banner .slideshow { width: 100%; height: auto; display: block; vertical-align: top; }
.dmyys-swiper-banner .swiper-button-prev,
.dmyys-swiper-banner .swiper-button-next { color: #0e8044; z-index: 10; }
.dmyys-swiper-banner .swiper-button-prev { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0,22L22,0l2.1,2.1L4.2,22l19.9,19.9L22,44L0,22L0,22L0,22z' fill='%230e8044'/%3E%3C/svg%3E"); }
.dmyys-swiper-banner .swiper-button-next { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27,22L27,22L5,44l-2.1-2.1L22.8,22L2.9,2.1L5,0L27,22L27,22z' fill='%230e8044'/%3E%3C/svg%3E"); }
.dmyys-swiper-banner .swiper-button-prev:after,
.dmyys-swiper-banner .swiper-button-next:after { content: none; }
.dmyys-swiper-banner .swiper-pagination-bullet { background: rgba(255,255,255,0.5); opacity: 1; }
.dmyys-swiper-banner .swiper-pagination-bullet-active { background: #fff; }

/* ========== 核心技术与产品：Swiper 轮播 ========== */
.dmyys-product-swiper-wrap { position: relative; padding: 20px 0 50px; overflow: visible; }
.dmyys-swiper-product { overflow: hidden; }
.dmyys-swiper-product .swiper-slide { height: auto; box-sizing: border-box; }
.dmyys-swiper-product .row { margin: 0; align-items: stretch; }
.dmyys-swiper-product .dmyys-product-img { padding: 0 10px 0 0; display: flex; align-items: center; justify-content: flex-start; }
.dmyys-swiper-product .dmyys-product-img img { width: auto; max-width: 100%; height: auto; display: block; object-fit: cover;}
.dmyys-swiper-product .dmyys-product-text { padding: 10px 0 0 15px; }
.dmyys-swiper-product .dmyys-product-text h3 { margin: 0 0 15px; color: #333; }
.dmyys-swiper-product .dmyys-product-text h3 span { color: #0e8044; font-weight: normal; }
.dmyys-swiper-product .dmyys-product-desc { margin-bottom: 15px; }
.dmyys-swiper-product .dmyys-product-desc h4 { margin: 10px 0 5px; color: #555; }
.dmyys-swiper-product .dmyys-product-desc p { margin-bottom: 20px; font-size: 15px;color: #666; line-height: 1.6; }
.dmyys-product-prev,
.dmyys-product-next { color: #0e8044; z-index: 10; top: 50%; margin-top: -22px; }
.dmyys-product-prev { left: -60px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0,22L22,0l2.1,2.1L4.2,22l19.9,19.9L22,44L0,22L0,22L0,22z' fill='%230e8044'/%3E%3C/svg%3E"); }
.dmyys-product-next { right: -60px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27,22L27,22L5,44l-2.1-2.1L22.8,22L2.9,2.1L5,0L27,22L27,22z' fill='%230e8044'/%3E%3C/svg%3E"); }
.dmyys-product-prev:after,
.dmyys-product-next:after { content: none; }
/* ========== 手机端：隐藏左右箭头 ========== */
@media (max-width: 767px) {
  .dmyys-product-prev,
  .dmyys-product-next { display: none !important; }
}