﻿/* Mobile specific styles (phone.css) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  /* header */
  body {
    min-width: auto;
  }
  .header-top {
    height: 64px;
    padding: 0 12px;
    align-items: center;
  }
  .logo img {
    height: 40px;
    display: block;
  }
  .search-wrap {
    display: none;
  }
  .headBg {
    background-size: cover;
  }

  /* hamburger button */
  .nav-toggle {
    display: block;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 44px;
    height: 44px;
    z-index: 120;
  }
  .nav-toggle .hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    position: relative;
    margin: 20px auto 0;
    transition: transform .25s ease;
  }
  .nav-toggle .hamburger::before,
  .nav-toggle .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform .25s ease, top .25s ease;
  }
  .nav-toggle .hamburger::before { top: -7px; }
  .nav-toggle .hamburger::after { top: 7px; }
  .site-nav.open .nav-toggle .hamburger {
    transform: rotate(90deg);
  }

  /* nav layout mobile */
  .site-nav {
    position: relative;
    background: #9b2226;
  }
  .site-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    margin: 0;
    list-style: none;
  }
  .site-nav.open ul {
    display: flex;
  }
  .site-nav ul li {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: #fff;
  }
  .site-nav ul li a {
    display: block;
    color: #404040;
    font-size: 18px;
    font-weight: 700;
  }
  .site-nav ul li.has-sub > a::after {
    content: " ?";
    float: right;
    color: #666;
    font-weight: 600;
  }
  .site-nav .sub-menu {
    display: none;
    padding-left: 12px;
    background: #fff;
  }
  .site-nav li.open-sub > .sub-menu {
    display: block;
  }
  .site-nav .sub-menu li a {
    padding: 10px 0;
    font-size: 16px;
    color: #666;
    font-weight: 500;
  }

  /* banner image adjust */
  .main-swiper .swiper-slide img {
    width: 100%;
    height: auto;
  }
 
  /* Mobile overlay behavior when nav is opened */
  .site-nav.open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 220;
    background: rgba(155,34,38,0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px; /* leave space for header/logo */
  }

  .site-nav.open ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
    height: calc(100% - 60px);
    overflow: auto;
    padding: 20px 0;
    margin: 0;
  }

  .site-nav.open ul li {
    width: 100%;
    padding: 0;
    border-bottom: none;
    background: transparent;
  }

  .site-nav.open ul li a {
    display: block;
    width: 86%;
    margin: 0 auto;
    background: #fff;
    color: #404040;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 18px;
    border-radius: 6px;
    text-align: center;
  }

  /* Sub-menu inside overlay: show as stacked items under parent */
  .site-nav.open .sub-menu {
    display: none;
    position: static;
    width: 86%;
    margin: 8px auto 0;
    background: transparent;
    box-shadow: none;
    padding-left: 0;
  }
  .site-nav.open li.open-sub > .sub-menu {
    display: block;
  }
  .site-nav.open .sub-menu li a {
    background: #fff;
    padding: 12px 16px;
    margin: 6px auto;
    border-radius: 6px;
    color: #666;
    width: 100%;
    text-align: center;
  }

  /* prevent page scroll when nav open */
  body.nav-open {
    overflow: hidden;
    height: 100%;
  }
  .mobile-header-controls{
    display: flex;
    gap:5px;
  }
  /* 显示移动端控件，隐藏PC端搜索 */
  .mobile-header-controls {
    display: flex !important;
  }

  .header-search {
    display: none !important;
  }

  /* 导航栏移动端样式 */
  .navbar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #9b2226;
    z-index: 9998;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: 60px;
  }

  .navbar.mobile-menu-open {
    left: 0;
  }

  /* 移动端导航遮罩 */
  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    display: none;
  }

  .mobile-nav-overlay.show {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    border-radius: 0;
    color: #fff;
  }

  .nav-link:hover::after {
    display: none;
  }

  /* 移动端二级菜单样式 */
  .submenu {
    position: static;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    border-top: none;
    border-left: 3px solid #069090;
    margin: 0;
    transform: none;
    background: rgba(255, 255, 255, 0.95);
    /* 默认隐藏子菜单 */
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  /* 移动端激活状态的子菜单 */
  .submenu.mobile-active {
    display: block;
    opacity: 1;
    max-height: 300px;
  }

  .submenu a {
    padding: 10px 30px;
    font-size: 14px;
    border-left: 2px solid transparent;
  }

  .submenu a:hover {
    border-left-color: #069090;
    padding-left: 35px;
  }

  /* 移动端子菜单箭头调整 */
  .submenu-arrow {
    display: block !important;
    float: right;
    margin-right: 10px;
    font-size: 12px;
    transition: transform 0.3s ease;
    font-style: normal;
  }

  .nav-item.has-submenu.menu-open .submenu-arrow {
    transform: rotate(180deg);
  }


  .gzdt-content{
    flex-direction: column;
  }
  .gzdt-section{
    width: 96%;
    margin: 0 auto;
    padding-bottom: 20px;
  }
  .gzdt-left, .gzdt-right{
    width: 100%;
  }
  .gzdt-info{
    width: 100%;
    padding: 5px 0;
    background: #9b2226;
    align-items: flex-start;
  }
  .gzdt-prev,.gzdt-next{
    bottom: 60%;
    transform: translateY(40%);
    width: 30px;
    height: 30px;
  }
  .gzdt-prev{
    right: initial;
    left: 10px !important;
  }
  .gzdt-date-right{
    background: transparent;
  }
  .gzdt-list li a.gzdt-link-right{
    height: 60px;
  }
  .gzdt-content{
    gap: 20px;
  }
  .gzdt-list li{
    margin-bottom: 10px;
  }
  .dual-module{
    width: 100%;
  }
  .dual-row{
    flex-direction: column;
    gap: 25px;
  }
  .dual-col{
    width: 100%;
  }
  .dual-list li a{
    padding: 0;
    height: 50px;
  }
  .dual-module{
    padding: 0;
    margin: 15px auto 0;
  }
  .dual-list li a .dual-dot{
    width: 60%;
    font-size: 16px;

  }
  .gzdt-date-right{
    width: 140px;
  }
  .gzdt-list li .gzdt-item{
    font-size: 18px;
  }
  .dual-list li a .dual-date{
    font-size: 16px;
    line-height: 35px;
  }
  .dual-list li a .dual-date img{
    width: 16px;
    height: auto;
  }

  .zbfc-section{
    width: 100%;
    margin: 0 auto;
    padding-top: 20px;
  }
  .gzdt-desc{
    font-size: 19px;
  }
  .zbfc-swiper-wrap{
    width: 96%;
    margin: 0 auto;
  }
  .zbfc-header{
    margin-bottom: 0;
    width: 96%;
    margin: 0 auto;
  }
  .gzdt-day{
    font-size: 20px;
  }
  .ghfc-section{
    width: 96%;
    margin: 0 auto;
    background: none;
  }
  .ghfc-content{
    width: 100%;
    flex-direction: column;
  }
  .ghfc-left{
    width: 100%;
  }
  .ghfc-image img{
    height: auto;
  }
  .ghfc-body{
    top: initial;
    width: 100%;
  }
  .ghfc-right{
    width: 100%;
  }
  .ghfc-feature{
    flex-direction: column;
  }
  .feature-item{
    width: 100%;
  }
  .feature-item figure{
    width: 100%;
    height: auto;
  }
  .feature-body h5{
    min-height: auto;
  }
  .feature-item figure::after{
    width: 100%;
  }
  .yjx-content{
    width: 100%;
    height: auto;
    background: none;
  }
  .yjx-title{
    font-size: 18px;
    margin-bottom: 0;
  }
  .yjx-title img{
    width: 20px;
  }
  .yjx-phone, .yjx-email{
    height: auto;
    font-size: 18px;
  }
  .yjx-info{
    flex-direction: column;
  }
  .yjx-phone, .yjx-email{
    background: none;
    font-size: 16px;
    line-height: initial;
    padding: 0;
  }
  .yjx-ewm{
    width: 100px;
  }
  .ghfc-section{
    padding-bottom: 20px;
  }
  .yjx-box{
    margin-top: 20px;
  }
  .site-footer .footer-inner{
    width: 100%;
    flex-direction: column;
  }
  .site-footer .footer-left img{
    display: block;
    width:80%;
    margin: 0 auto;
    height:auto;
  }
  .site-footer{
    padding: 30px 0;
  }
  .right-style li a .bullet{
    font-size: 16px;
  }
}

