/* ============================================
   中国玉雕大师网 - 响应式样式表
   ============================================ */

/* ---------- Large tablets / small laptops ---------- */
@media screen and (max-width: 1200px) {
  .wrap { width: 100%; padding: 0 20px; }

  .header .ts h3 { font-size: 18px; }
  .naver li > h3 { padding: 0 14px; }
  .naver li > h3 > a { font-size: 15px; }

  .zuneizy ul { grid-template-columns: repeat(2, 1fr); }
  .masters-grid { grid-template-columns: repeat(3, 1fr); }
  .exh-grid { grid-template-columns: repeat(3, 1fr); }
  .masters-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Tablets ---------- */
@media screen and (max-width: 992px) {
  .header .wrap { flex-wrap: wrap; }

  /* show hamburger, hide desktop nav */
  .gh { display: block; order: 3; }
  .naver {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
    padding: 80px 0 30px;
    overflow-y: auto;
    transition: right .35s ease;
    z-index: 999;
  }
  .naver.open { right: 0; }
  .naver ul { flex-direction: column; align-items: stretch; }
  .naver li > h3 { padding: 0; border-bottom: 1px solid #f0ede5; }
  .naver li > h3 > a { padding: 16px 24px; font-size: 16px; }
  .naver li > h3 > a::after { display: none; }
  .naver .hnli {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    background: var(--cream);
    padding: 4px 0;
  }
  .naver .hnli dd a { padding: 10px 40px; }

  /* overlay */
  .nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0; visibility: hidden;
    transition: all .35s;
    z-index: 998;
  }
  .nav-overlay.show { opacity: 1; visibility: visible; }

  .banner .ban-text h2 { font-size: 30px; letter-spacing: 4px; }
  .banner .ban-text p { font-size: 14px; }

  .sub-banner { height: 240px; }
  .sub-banner .sb-text h2 { font-size: 28px; letter-spacing: 5px; }

  /* sidebar stacks above content */
  .uwmain .wrap { flex-direction: column; }
  .uwlts { width: 100%; }
  .uwlts ul { display: flex; flex-wrap: wrap; gap: 0; }
  .uwlts ul li { flex: 1 1 auto; border-bottom: none; border-right: 1px solid var(--border); }
  .uwlts ul li:last-child { border-right: none; }
  .uwlts ul li a { padding: 12px 16px; }
  .side-contact { display: none; }

  .home-intro .intro-wrap { flex-direction: column; }
  .home-stats .stat-wrap { flex-wrap: wrap; gap: 24px; }
  .home-stats .stat-item { flex: 1 1 40%; }

  .masters-grid { grid-template-columns: repeat(2, 1fr); }
  .exh-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-wrap { flex-direction: column; }
  .contact-map { min-height: 300px; }

  .msg-form .row { flex-direction: column; gap: 0; }

  .footer .flax { flex-direction: column; gap: 24px; text-align: center; }
  .footer .txt { flex-direction: column; text-align: center; }
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 640px) {
  body { font-size: 13px; }

  .header .wrap { padding: 12px 16px; }
  .header .logo { height: 42px; }
  .header .ts h3 { font-size: 15px; letter-spacing: 1px; }
  .header .ts h6 { font-size: 9px; }

  .banner .ban-text h2 { font-size: 22px; letter-spacing: 2px; }
  .banner .ban-text p { font-size: 12px; letter-spacing: 1px; }

  .sub-banner { height: 180px; }
  .sub-banner .sb-text h2 { font-size: 22px; letter-spacing: 3px; }
  .sub-banner .sb-text p { font-size: 12px; }

  .uwmain { padding: 30px 0; }
  .uwlts ul { flex-direction: column; }
  .uwlts ul li { border-right: none; border-bottom: 1px solid var(--border); }

  .sec-title h2 { font-size: 22px; }
  .home-section { padding: 40px 0; }
  .home-intro .intro-txt h2 { font-size: 22px; }

  .zuneizy ul,
  .masters-grid,
  .exh-grid,
  .masters-list { grid-template-columns: 1fr; }

  .zuneizy .pic,
  .exh-item img { height: 220px; }
  .master-card .av,
  .masters-list .master-card .av { height: 300px; }

  .home-stats .stat-wrap { flex-direction: column; }
  .home-stats .stat-item .num { font-size: 32px; }

  .news-list li { flex-direction: column; gap: 12px; }
  .news-list .nlt {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .news-list .nlt .day { font-size: 22px; }

  .cert-box { padding: 30px 20px; }
  .cert-form .captcha-row { flex-direction: column; align-items: stretch; }
  .cert-form .captcha-box { width: 100%; height: 46px; }

  .detail-head h1 { font-size: 20px; }
  .detail-head .meta { flex-wrap: wrap; gap: 10px; }
  .detail-head .meta .share { margin-left: 0; }
  .detail-body { font-size: 14px; }
  .detail-specs .sp-row .k { width: 100px; }

  .footer { padding: 30px 0 0; }
  .footer .link dl { gap: 4px 10px; }
  .footer .copyright { font-size: 12px; padding: 16px 0; }

  .back-top { right: 16px; bottom: 20px; width: 40px; height: 40px; font-size: 18px; }

  .pages dd a { min-width: 34px; height: 34px; line-height: 34px; font-size: 13px; }
}

/* ---------- Very small ---------- */
@media screen and (max-width: 380px) {
  .header .ts h6 { display: none; }
  .banner .ban-text h2 { font-size: 18px; }
}
