/* ===== Mobile Hamburger ===== */
.nav-toggle {
  display: none;
}
body.nav-open {
  overflow: hidden;
}

/* ===== Tablet (≤900px) ===== */
@media (max-width: 900px) {
  /* --- Header / Nav --- */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: 0;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
  }
  .nav-toggle span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
  }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .header-box {
    top: 0;
    background: #ea8b2e;
    border-bottom: 0;
    box-shadow: 0 10px 28px rgba(143, 103, 72, 0.14);
  }
  .header-box .header .nav {
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    width: 100vw;
    transform: translateX(-50%);
    max-height: 0;
    background: #ea8b2e;
    box-shadow: 0 18px 28px rgba(143, 103, 72, 0.16);
    z-index: 1000;
    transition: max-height 0.28s ease, opacity 0.2s ease;
    overflow: hidden;
    opacity: 0;
  }
  .header-box .header .nav.is-open {
    max-height: 300px;
    opacity: 1;
  }
  .header-box .header .nav ul {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    width: 100%;
    padding: 0;
    gap: 0;
    background: #ea8b2e;
  }
  .header-box .header .nav ul li {
    width: 100%;
    margin: 0;
  }
  .header-box .header .nav ul li a {
    display: block;
    width: 100%;
    padding: 14px 20px 12px;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    position: relative;
    transition: color 0.25s ease, background 0.25s ease;
  }
  .header-box .header .nav ul li a::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: #fff7ec;
    transition: width 0.25s ease;
  }
  .header-box .header .nav ul li a:hover,
  .header-box .header .nav ul li a.active,
  .header-box .header .nav ul li a.is-active {
    color: #fff7ec;
    background: rgba(255, 255, 255, 0.1);
  }
  .header-box .header .nav ul li a:hover::after,
  .header-box .header .nav ul li a.active::after,
  .header-box .header .nav ul li a.is-active::after {
    width: calc(100% - 40px);
  }
  .header-box .header .nav ul li a:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .header-box .header .nav ul li:last-child a {
    border-bottom: 0;
  }

  .header-box .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    background: #ea8b2e;
  }
  .header-box .header .logo,
  .header-box .header .logo a {
    width: 160px;
    height: 56px;
    background-size: contain;
  }

  /* --- Top banner & Shortcut --- */
  .top-banner { display: none; }
  .shortcut { display: none; }

  /* --- Header box offset --- */
  /* --- Footer --- */
  .footer { height: auto; padding-bottom: 40px; margin-top: 60px; }
  .footer .subscribe {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 24px 0 20px;
    gap: 16px;
  }
  .footer .subscribe div:nth-child(1) span:nth-child(1) { font-size: 24px; }
  .footer .subscribe div:nth-child(1) span:nth-child(2) { font-size: 16px; }
  .footer .subscribe div:nth-child(2) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    width: 100%;
  }
  .footer .subscribe div:nth-child(2) input { width: 100%; }
  .footer .contact-list {
    flex-direction: column;
    height: auto;
    gap: 22px;
  }
  .footer .contact-list .footer-contact {
    width: 100%;
    height: auto;
  }
  .footer .contact-list .footer-contact div:nth-child(1) {
    width: 180px;
    height: 56px;
    background-size: contain;
  }
  .footer .contact-list .footer-contact div:nth-child(2) {
    margin-top: 18px;
  }
  .footer .contact-list .footer-contact div:nth-child(2) p {
    margin-top: 6px;
    line-height: 1.6;
  }
  .footer .contact-list .footer-nav {
    margin: 0;
    flex-wrap: wrap;
    gap: 20px 16px;
    justify-content: flex-start;
  }
  .footer .contact-list .footer-nav dl { width: calc(50% - 12px); }

  /* --- Body padding for fixed header --- */
  .apple-banner {
    margin-top: 64px;
    height: calc(100vw * 800 / 1920);
    min-height: 0;
  }
  .apple-banner .swiper-container {
    height: 100%;
    margin-top: 0;
  }
  .apple-banner .swiper-slide img {
    object-fit: contain !important;
    object-position: center center;
    background: #f7f3ec;
  }
  .bgd { display: none; }

  .ab_box1,
  .blog-main,
  .content,
  .products-page,
  .blog-detail-main {
    margin-top: 88px;
  }
}

/* ===== Phone (≤600px) ===== */
@media (max-width: 600px) {
  .header-box .header .logo,
  .header-box .header .logo a { width: 120px; height: 44px; }

  .header-box .header .nav ul li a {
    font-size: 16px;
    padding: 12px 16px 10px;
  }

  .header-box .header .nav ul li a::after {
    left: 16px;
  }

  .header-box .header .nav ul li a:hover::after,
  .header-box .header .nav ul li a.active::after,
  .header-box .header .nav ul li a.is-active::after {
    width: calc(100% - 32px);
  }

  .apple-banner .swiper-container { height: 100%; }
  .swiper-button-prev span,
  .swiper-button-next span { display: none; }
  .apple-banner .swiper-pagination { bottom: 20px; }
  .apple-banner .swiper-pagination-bullet { width: 30px; height: 20px; }
  .apple-banner .swiper-pagination-bullet span { width: 30px; }

  /* --- Footer --- */
  .copyright { height: auto; padding: 12px 0; }
  .footer {
    margin-top: 44px;
    padding-bottom: 28px;
  }
  .footer .subscribe {
    padding: 20px 0 16px;
    gap: 14px;
  }
  .footer .subscribe div:nth-child(1) span:nth-child(1) {
    font-size: 21px;
  }
  .footer .subscribe div:nth-child(1) span:nth-child(2) {
    font-size: 15px;
  }
  .footer .subscribe div:nth-child(2) {
    grid-template-columns: 1fr 88px;
  }
  .footer .subscribe div:nth-child(2) input,
  .footer .subscribe div:nth-child(2) .subButton,
  .footer .subscribe div:nth-child(2) .subButton span {
    height: 42px;
    line-height: 42px;
  }
  .footer .contact-list {
    gap: 18px;
  }
  .footer .contact-list .footer-contact div:nth-child(1) {
    width: 150px;
    height: 48px;
  }
  .footer .contact-list .footer-contact div:nth-child(2) {
    margin-top: 14px;
  }
  .footer .contact-list .footer-contact div:nth-child(2) p {
    font-size: 14px;
    line-height: 1.55;
  }
  .footer .contact-list .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    width: 100%;
  }
  .footer .contact-list .footer-nav dl { width: 100%; }
  .footer .contact-list .footer-nav dl dt,
  .footer .contact-list .footer-nav dl dd {
    width: 100%;
  }
  .footer .contact-list .footer-nav dl dd:nth-child(2) {
    margin-top: 14px;
  }
  .footer .contact-list .footer-nav dl:last-child {
    grid-column: 2;
  }

  .ab_box1,
  .blog-main,
  .content,
  .products-page,
  .blog-detail-main {
    margin-top: 76px;
  }
}

/* ===== Index page ===== */
@media (max-width: 900px) {
  .who { flex-direction: column; }
  .who .intruduce { width: 100%; text-align: center; }
  .who .who-video { width: 100%; }
  .who .who-video video { width: 100%; height: auto; }
  .in {
    height: auto;
    padding: 24px 0;
  }
  .in .wrapper ul {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }
  .in .wrapper ul li {
    width: auto;
    min-height: 148px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
  }
  .in .wrapper ul li span:nth-child(1) {
    display: block;
    font-size: 44px;
    line-height: 1;
  }
  .in .wrapper ul li span:nth-child(2) {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.35;
  }
  .in .wrapper ul li:nth-child(2) span:nth-child(1)::after,
  .in .wrapper ul li:nth-child(3) span:nth-child(1)::after,
  .in .wrapper ul li:nth-child(4) span:nth-child(1)::after {
    font-size: 18px;
    line-height: 1;
  }
  .hot .products-banner { width: 100%; height: auto; }
  .hot .products-banner ul a { width: 100%; height: auto; margin-right: 16px; }
  .hot .products-banner ul a li { width: calc(50% - 8px); height: auto; }
  .hot .products-banner ul a li img { width: 100%; height: auto; }
  .hot .products-banner ul a li div:nth-child(1) { width: 100%; height: auto; }
  .hot .products-banner ul a li div:nth-child(2) { width: 100%; }
  .hot .hot-left,
  .hot .hot-right {
    font-size: 32px;
    margin-top: 160px;
    z-index: 2;
  }
  .hot .hot-left { left: 0; }
  .hot .hot-right { right: 0; }
  .news .news-content { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .in {
    padding: 18px 0;
  }
  .in .wrapper ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .in .wrapper ul li {
    padding: 24px 16px 28px;
  }
  .in .wrapper ul li:nth-child(2) span:nth-child(1)::after,
  .in .wrapper ul li:nth-child(3) span:nth-child(1)::after,
  .in .wrapper ul li:nth-child(4) span:nth-child(1)::after {
    font-size: 16px;
  }
  .hot .products-banner ul a li { width: 100%; }
  .hot .products-banner ul a { margin-right: 0; }
  .hot .hot-left,
  .hot .hot-right {
    font-size: 28px;
    margin-top: 120px;
  }
}
@media (max-width: 600px) {
  .in {
    padding: 18px 0;
  }
  .in .wrapper ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .in .wrapper ul li {
    min-height: 122px;
    padding: 16px 12px;
  }
  .in .wrapper ul li span:nth-child(1) {
    font-size: 38px;
  }
  .in .wrapper ul li span:nth-child(2) {
    margin-top: 12px;
    font-size: 15px;
  }
  .in .wrapper ul li:nth-child(2) span:nth-child(1)::after,
  .in .wrapper ul li:nth-child(3) span:nth-child(1)::after,
  .in .wrapper ul li:nth-child(4) span:nth-child(1)::after {
    font-size: 16px;
  }
  .hot .products-banner ul a li { width: 100%; }
  .hot .products-banner ul a { margin-right: 0; }
}
/* ===== About page ===== */
@media (max-width: 1180px) {
  .ab_box2 {
    min-height: auto;
  }
  .ab_box2 .wrapper > div:nth-child(2) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ab_box1 {
    display: flex;
    flex-direction: column;
    margin-top: 112px;
  }
  .ab_box1 .left,
  .ab_box1 .right {
    width: 100%;
  }
  .ab_box1 .right {
    margin-left: 0;
    margin-top: 24px;
  }
  .ab_box1 .right img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
  }
  .ab_box2 {
    height: auto;
    padding: 0 0 28px;
  }
  .ab_box2 .wrapper > div:first-child {
    height: auto;
    padding: 28px 0 20px;
    font-size: 34px;
    line-height: 1.15;
  }
  .ab_box2 .wrapper > div:nth-child(2) {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ab_box2 .wrapper > div:nth-child(2) > div {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0 18px 18px;
  }
  .ab_box2 .wrapper > div:nth-child(2) > div > div:nth-child(1) {
    width: 100%;
    height: auto;
    min-height: 50px;
    padding: 14px 0 12px;
    line-height: 1.35;
    font-size: 19px;
  }
  .ab_box2 .wrapper > div:nth-child(2) > div > div:nth-child(2) {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.7;
    word-break: break-word;
  }
  .time_line {
    height: auto;
    padding: 42px 0;
  }
  .time_line:before {
    left: 26px;
    transform: none;
  }
  .time_line .entries {
    width: calc(100% - 32px);
    left: 0;
  }
  .time_line .entries .entry,
  .time_line .entries .entry:nth-child(2n) {
    width: 100%;
    padding-left: 56px;
    padding-right: 0;
    left: 0;
  }
  .time_line .entries .entry .title,
  .time_line .entries .entry:nth-child(2n) .title {
    float: none;
    width: 100%;
    text-align: left;
    font-size: 20px;
  }
  .time_line .entries .entry .title:before,
  .time_line .entries .entry .title.big:before,
  .time_line .entries .entry:nth-child(2n) .title:before,
  .time_line .entries .entry:nth-child(2n) .title.big:before {
    left: -40px;
    right: auto;
    transform: none;
  }
  .time_line .entries .entry .body {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.7;
  }
  .ab_box3 {
    height: 360px;
    margin-top: 72px;
  }
  .ab_box3 .swiper-slide {
    padding: 14px;
    transform: scale(0.92);
  }
  .ab_box3 .swiper-slide img {
    max-height: 220px;
  }
}
@media (max-width: 600px) {
  .ab_box1 {
    margin-top: 92px;
  }
  .ab_box1 .left > div:nth-child(1) {
    font-size: 34px;
    line-height: 1.15;
  }
  .ab_box1 .left > div:nth-child(2) {
    font-size: 16px;
    line-height: 1.75;
  }
  .ab_box1 .right {
    margin-top: 18px;
  }
  .ab_box1 .right img {
    max-height: 280px;
  }
  .ab_box2 .wrapper > div:first-child {
    font-size: 28px;
    padding: 24px 0 16px;
  }
  .ab_box2 .wrapper > div:nth-child(2) {
    gap: 12px;
  }
  .ab_box2 .wrapper > div:nth-child(2) > div {
    padding: 0 14px 16px;
  }
  .ab_box2 .wrapper > div:nth-child(2) > div > div:nth-child(1) {
    font-size: 17px;
  }
  .ab_box2 .wrapper > div:nth-child(2) > div > div:nth-child(2) {
    font-size: 15px;
    line-height: 1.72;
  }
  .time_line {
    padding: 34px 0;
  }
  .time_line:before {
    left: 20px;
  }
  .time_line .entries {
    width: calc(100% - 20px);
  }
  .time_line .entries .entry,
  .time_line .entries .entry:nth-child(2n) {
    padding-left: 42px;
  }
  .time_line .entries .entry .title,
  .time_line .entries .entry:nth-child(2n) .title {
    font-size: 18px;
  }
  .time_line .entries .entry .title:before,
  .time_line .entries .entry .title.big:before,
  .time_line .entries .entry:nth-child(2n) .title:before,
  .time_line .entries .entry:nth-child(2n) .title.big:before {
    left: -31px;
    width: 14px;
    height: 14px;
  }
  .time_line .entries .entry .body {
    font-size: 14px;
  }
  .ab_box3 {
    height: 300px;
    margin-top: 48px;
  }
  .ab_box3 .swiper-slide {
    padding: 10px;
    transform: scale(0.96);
  }
  .ab_box3 .swiper-slide-active,
  .ab_box3 .swiper-slide-duplicate-active {
    transform: scale(1);
  }
  .ab_box3 .swiper-slide img {
    max-height: 180px;
  }
  .ab_box3 .swiper-pagination {
    bottom: 8px !important;
  }
}

/* ===== Products page ===== */
@media (max-width: 900px) {
  .product-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
  .product-list { grid-template-columns: 1fr; }
  .products-filter { flex-wrap: wrap; gap: 8px; }
}

/* ===== Product detail page ===== */
@media (max-width: 900px) {
  .content .right .shortIn { flex-direction: column; }
  .content .right .shortIn .InImg .large { display: none !important; }
  .content .right .shortIn .InImg .middle { width: 100%; height: auto; }
  .content .right .shortIn .InImg .middle img { width: 100%; height: auto; }
  .content .right .shortIn .InImg .middle .layer { display: none !important; }
  .content .right .shortIn .InImg .small { justify-content: flex-start; }
  .content .right .shortIn .simpleIntruduce { width: 100%; }
  .detail-back { margin-left: 16px; }
}
@media (max-width: 600px) {
  .product-detail-content { margin-top: 104px; }
  .detail-images { flex-direction: column; }
}

/* ===== Blogs pages ===== */
@media (max-width: 900px) {
  .blog-layout,
  .blog-detail-layout {
    grid-template-columns: 1fr;
  }
  .blog-card {
    grid-template-columns: 1fr;
  }
  .blog-article { padding: 28px 22px 34px; }
  .related-blogs { position: static; }
  .blog-side { position: static; }
}

/* ===== Contact page ===== */
@media (max-width: 900px) {
  .contact-page .ab_box1 {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    margin-top: 210px;
  }
  .contact-page .ab_box1 .left,
  .contact-page .ab_box1 .right { padding: 36px 28px; }
  .contact-page .ab_box1 .left { border-radius: 10px 10px 0 0; }
  .contact-page .ab_box1 .right { border-radius: 0 0 10px 10px; }
  .contact-page .phone-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .contact-page .ab_box1 { margin-top: 104px; }
}
