/* ============================================================
   Daotian Theme - Responsive Styles
   ============================================================ */

/* Large Tablets & Small Desktops */
@media (max-width: 1199px) {
  .product-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .foot-list {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  /* Banner ( aspect-ratio 16:9 + max-height: 50vh†™úšØ¦ */
  .about-l img {
    height: 350px;
  }
}

/* Tablets */
@media (max-width: 991px) {
  .head-contact p:not(:first-child) {
    display: none;
  }
  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .news .container {
    flex-direction: column;
  }
  .news-l, .news-r {
    flex: 0 0 100%;
  }
  .advantage-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .about .swiper-slide {
    flex-direction: column;
  }
  .about-l, .about-r {
    flex: 0 0 100%;
  }
  /* Banner ( aspect-ratio 16:9 + max-height: 50vh†™úšØ¦ */
  .foot-list {
    grid-template-columns: 1fr 1fr;
  }
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Landscape */
@media (max-width: 767px) {
  .head-t {
    display: none;
  }
  nav {
    display: none;
  }
  .search-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
  }
  .searchtxt {
    width: calc(100% - 50px);
  }
  .head-search-btn, .mob-search {
    display: block;
  }
  .mob-menu {
    display: flex;
  }
  header .head-b .container {
    position: relative;
  }
  .logo {
    max-width: 160px;
  }
  .logo img {
    max-height: 40px;
  }
  /* Banner ( aspect-ratio 16:9 + max-height: 50vh†™úšØ¦ */
  .about, .product, .news, .advantage {
    padding: 50px 0;
  }
  .home-tit {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .product-list {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .product-img {
    height: 180px;
  }
  .advantage-list {
    grid-template-columns: 1fr;
  }
  .foot-list {
    grid-template-columns: 1fr;
  }
  .mobile-bottom {
    display: flex;
  }
  .gotop {
    bottom: 70px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
  .contact-info {
    grid-template-columns: 1fr;
  }
  .about-r h3 {
    font-size: 22px;
  }
  .news-l h4, .news-r h4 {
    font-size: 22px;
  }
  .about .swiper-button-prev,
  .about .swiper-button-next {
    width: 35px;
    height: 35px;
  }
  .about-l img {
    height: 280px;
  }
  #swiper-banner .swiper-button-prev,
  #swiper-banner .swiper-button-next {
    width: 40px;
    height: 40px;
  }

  /* Mobile Nav */
  nav.active {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
  }
  nav.active .nav {
    flex-direction: column;
  }
  nav.active .nav > li > a {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 15px;
  }
  nav.active .submenu {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 15px;
  }
  nav.active .submenu.show {
    display: block;
  }

  /* Page templates mobile */
  .page-content {
    padding: 40px 0;
  }
  .page-content h1 {
    font-size: 24px;
  }
  #swiper-banner .swiper-slide img {
    height: 100%;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .product-list {
    grid-template-columns: 1fr;
  }
  .product-img {
    height: 220px;
  }
  /* Banner ( aspect-ratio 16:9 + max-height: 50vh†™úšØ¦ */
  .about-l img {
    height: 220px;
  }
  .about .swiper-button-prev,
  .about .swiper-button-next {
    display: none;
  }
  .home-tit {
    font-size: 20px;
  }
  .advantage-list li {
    padding: 25px 20px;
  }
  .news-list li {
    flex-direction: column;
  }
  .news-item-data {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .news-item-data p:first-child {
    font-size: 18px;
  }
  .news-item-data p:last-child {
    font-size: 14px;
  }
  .contact-card {
    padding: 20px;
  }
}

/* Menu Open Body Lock */
body.menu-open {
  overflow: hidden;
}

/* Success Message */
.contact-success {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: none;
}