/* ============================================================
   全局移动端适配 responsive.css
   加载顺序在所有模板主 CSS 之后
   ============================================================ */

/* ============================================================
   联系页留言表单（全局基础样式，4 套模板共用）
   ============================================================ */
.cform{max-width:760px; margin:28px auto 0; background:#ffffff; border:1px solid #ece1e7; border-radius:14px; padding:30px 32px; text-align:left; box-shadow:0 10px 30px rgba(0,0,0,.06);}
.cform-title{font-size:20px; font-weight:700; color:#333; margin-bottom:8px; padding-left:12px; border-left:4px solid #ac1d9b; line-height:1.3;}
.cform-desc{font-size:13.5px; color:#8a8a8a; margin-bottom:20px; line-height:1.6;}
.cform-ok{background:#e8f8ee; color:#1a7f37; border:1px solid #b7ebc5; padding:12px 16px; border-radius:8px; margin-bottom:16px; font-size:13.5px; line-height:1.6;}
.cform-err{background:#fdecec; color:#c0392b; border:1px solid #f5c6c6; padding:12px 16px; border-radius:8px; margin-bottom:16px; font-size:13.5px; line-height:1.6;}
.cform-form input,.cform-form textarea{width:100%; box-sizing:border-box; border:1.5px solid #dfe3e8; border-radius:8px; padding:11px 14px; font-size:14px; color:#3a3f45; outline:none; margin-bottom:14px; font-family:inherit; background:#fff; transition:border-color .2s, box-shadow .2s;}
.cform-form input::placeholder,.cform-form textarea::placeholder{color:#a5adb7;}
.cform-form input:focus,.cform-form textarea:focus{border-color:#ac1d9b; box-shadow:0 0 0 3px rgba(172,29,155,.12);}
.cform-form textarea{resize:vertical; min-height:110px;}
.cform-row2{display:flex; gap:14px;}
.cform-row2 input{flex:1;}
.cform-btn{display:inline-block; background:linear-gradient(135deg,#c738ab,#ac1d9b); color:#ffffff; border:none; border-radius:24px; padding:12px 44px; font-size:15px; font-weight:600; cursor:pointer; transition:transform .15s, box-shadow .2s, opacity .2s; box-shadow:0 4px 14px rgba(172,29,155,.3);}
.cform-btn:hover{transform:translateY(-2px); box-shadow:0 8px 20px rgba(172,29,155,.4); opacity:.95;}
.cform-btn:active{transform:translateY(0);}
@media (max-width: 480px){ .cform{padding:22px 18px;} .cform-row2{flex-direction:column; gap:0;} }


/* ---------- 汉堡菜单按钮（通用） ---------- */
.nav-toggle {
  display: none;
  width: 40px; height: 40px; margin-left: 8px;
  border: 1px solid #d5d5d5; border-radius: 8px; background: #fff;
  cursor: pointer; flex-shrink: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: #555; border-radius: 2px; transition: all .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
}

/* ============================================================
   tpl1 经典复刻：固定 1010px 布局 → 流动式移动端
   ============================================================ */
@media (max-width: 1000px) {
  body { min-width: 0; }
  .top, .ny, .c3 { width: 100%; }
  .top { overflow: visible; }
  .logo { float: none; width: 100%; text-align: center; }
  .logo img { max-width: 90%; height: auto; margin: 10px auto 0; }
  .topr { float: none; width: 100%; }
  .toprt { width: 100%; height: auto; min-height: 38px; flex-wrap: wrap; padding: 6px 0; gap: 6px 0; }
  .toprt .site-search { margin-left: 8px; }
  .toprt .site-search input { width: 130px; }
  .toprt .cp3 { margin-right: 8px; }
  .tel { width: 100%; }
  .dh { width: 100%; height: auto; margin-top: 8px; position: relative; }
  .dh ul { padding-left: 0; display: none; width: 100%; }
  body.nav-open .dh ul { display: block; }
  .dh ul li { float: none; width: 100%; text-align: center; }
  .dh ul li.li1 { display: none; }
  .dh ul li a { width: 100%; height: auto; padding: 12px 0; border-top: 1px solid #eee; }
  .dh ul li ul { position: static; left: auto; width: 100%; top: auto; }
  .dh ul li ul li { width: 100%; background: #f5f0f4; }
  .dh ul li ul li a { width: 100%; height: auto; line-height: 36px; padding: 0; }
  .dh .nav-toggle { position: absolute; right: 8px; top: 6px; }

  .nyl { float: none; width: 100%; margin-bottom: 18px; }
  .nyl .nystop, .nyl .nysbai, .nyl .nyads { width: 100%; margin-left: 0; }
  .nyl .nysbai .rf1 a, .nyl .nysbai .rfz a { width: 100%; }
  .nyl .nysbai .rf1, .nyl .nysbai .rfz { padding-left: 0; }
  .nyr { float: none; width: 100%; margin-left: 0; }
  .nyrz { width: 100%; margin-left: 0; }
  .nyrtop, .nyrtopz { width: 100%; }
  .nybanc { width: 100%; height: 140px; }
  .nyrbai .mypro ul { width: 100%; }
  .nyrbai .mypro li { width: 48%; margin-right: 2%; }
  .nyrbai .mypro li a { width: 100%; }
  .nyrbai .mypro li .pp, .nyrbai .mypro li .pp img { width: 100%; height: auto; max-height: 150px; }
  .c3l, .c3c, .c3r { float: none; width: 100%; margin-left: 0; margin-bottom: 10px; }
  .c3lt, .c3lc, .c3ct, .c3cc, .c3rt, .c3rc { width: 100%; }
  .c3lc li, .c3cc li, .c3rc li { width: 100%; }
  .foot { width: 100%; }
  .c1c, .c1cl, .runlist { width: 100%; }
  .movead { width: 100%; }
  .movead .pcont { width: 100%; margin: 0; }
  .movead .LeftBotton, .movead .RightBotton { display: none; }
  .movead .pl { width: 46%; margin: 0 2%; }
  .movead .pl img { width: 100%; height: auto; }
  .pimg { float: none; width: 100%; }
  .ptxt { float: none; width: 100%; }
  .nyrp5 iframe { width: 100% !important; height: auto !important; }
  .cform-row2 { flex-direction: column; gap: 0; }
}

@media (max-width: 480px) {
  .nyrbai .mypro li { width: 100%; margin-right: 0; }
  .nyrbai .mypro li .pp { height: auto; }
  .nyrbai .mypro li .pp img { height: auto; }
  .c3lc li, .c3cc li, .c3rc li { float: none; }
  .toprt .site-search { width: 100%; margin: 4px 8px; }
  .toprt .site-search input { flex: 1; width: auto; }
}

/* ---------- tpl1 轮播/滚动条 移动端 ---------- */
@media (max-width: 700px) {
  #imageShow .bannerbg, #imageShow .imagebg, #imageShow .imagebg li,
  #imageShow .bannerbg_main { height: 180px; }
  #imageShow .imagebg li { width: 100%; }
  #imageShow .bannerbg_main a { width: 100%; }
  .scrollbg { display: none; }
  .scroll { width: 100%; }
  .outScroll_pic { width: 100%; margin-left: 0; }
  .scroll_pic { width: auto; }
  .scroll_pic li { width: 100px; }
  .scroll_pic li img { width: 100px; height: 65px; }
  .current { width: 99px; }
  .movead, .movead .pcont, .c1cl, .runlist { overflow: hidden; }
}

/* ============================================================
   tpl2 青蓝专业：移动端导航折叠
   ============================================================ */
@media (max-width: 900px) {
  .t2-navbar-in { gap: 10px; }
  .t2-navbar { position: relative; }
  .t2-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
              flex-direction: column; background: #fff; border-top: 1px solid var(--line);
              box-shadow: 0 16px 30px rgba(0,0,0,.12); z-index: 300; padding: 10px; }
  body.nav-open .t2-nav { display: flex !important; }
  .t2-nav > a, .t2-has-menu > a { display: block; padding: 12px 14px; }
  .t2-menu { position: static; opacity: 1; visibility: visible; transform: none;
              box-shadow: none; border: none; padding-left: 16px; }
  .t2-navbar .site-search input { width: 110px; }
  .t2-navbar-phone { font-size: 15px; }
}

@media (max-width: 640px) {
  .t2-navbar .site-search { display: none; }
  .t2-utility-addr { display: none; }
  .t2-utility .t2-utility-item, .t2-utility-link { font-size: 12px; }
  .t2-contact-strip { grid-template-columns: 1fr; }
  .cform-row2 { flex-direction: column; gap: 0; }
}

/* ============================================================
   tpl3 碧波清新：移动端导航折叠
   ============================================================ */
@media (max-width: 960px) {
  .t3-head-in { position: relative; gap: 12px; }
  .t3-nav { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
            flex-direction: column; align-items: stretch; background: #fff;
            border: 1px solid var(--line); border-radius: 16px;
            box-shadow: 0 18px 40px rgba(10,110,100,.16); z-index: 300; padding: 10px; }
  body.nav-open .t3-nav { display: flex; }
  .t3-nav > a, .t3-drop > a { padding: 12px 14px; }
  .t3-drop-menu { position: static; transform: none; opacity: 1; visibility: visible;
                  box-shadow: none; border: none; padding-left: 16px; }
  .t3-head-in .site-search input { width: 110px; }
}

@media (max-width: 640px) {
  .t3-head-in .site-search { display: none; }
  .t3-logo-img { height: 40px; }
  .cform-row2 { flex-direction: column; gap: 0; }
}

/* ============================================================
   tpl4 深空科技：移动端导航折叠
   ============================================================ */
@media (max-width: 960px) {
  .t4-head-in { position: relative; }
  .t4-nav { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
            flex-direction: column; background: #fff; border: 1px solid var(--line);
            border-radius: 14px; box-shadow: 0 18px 40px rgba(11,59,107,.14); z-index: 300; padding: 10px; }
  body.nav-open .t4-nav { display: flex !important; }
  .t4-nav > a, .t4-has-menu > a { padding: 12px 14px; }
  .t4-menu { position: static; opacity: 1; visibility: visible; transform: none;
             box-shadow: none; border: none; padding-left: 16px; }
  .t4-head-right .site-search input { width: 110px; }
  .t4-phone { font-size: 13px; }
}

@media (max-width: 640px) {
  .t4-head-right .site-search { display: none; }
  .t4-crumb-in { padding: 0 16px; }
  .cform-row2 { flex-direction: column; gap: 0; }
}
