/* 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: auto;
    display: block;
    width: 41%;
  }

  .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: rgba(23, 50, 113, .99);
    z-index: 9998;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: 60px;
    display: block;
  }

  .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;
    display: block;
  }

  .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;
    transform: rotate(180deg);
  }

  .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;
  }

  .search-bar {
    display: none;
  }

  .section-title {
    font-size: 20px;
  }

  .banner-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .banner-swiper .swiper-pagination {
    bottom: 5px !important;
  }

  .section-icon {
    width: 23%;
  }

  .more-link img {
    width: 100%;
  }

  .more-link {
    width: 68px;
  }

  .section-header {
    margin-bottom: 15px;
  }

  .news-slide-item {
    height: 100%;
  }

  .news-slide-info {
    height: 68px;
    padding-bottom: 5px;
    line-height: 34px;
  }

  .news-slide-info .news-date {
    font-size: 12px;
    padding-left: 11px;
  }

  .news-slide-info .news-title {
    font-size: 12px;
    overflow: hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    line-height: 34px;
  }

  .news-list-item {
    padding: 10px;
  }

  .news-list-item h3 {
    font-size: 14px;
  }

  .news-meta {
    margin-bottom: 5px;
  }

  .news-meta .news-date {
    font-size: 12px;
  }

  .news-desc {
    font-size: 12px;
  }

  .work-dynamic-section {
    padding: 0 15px;
  }

  .main-content {
    padding: 20px 0;
  }

  .three-columns-section {
    width: 100%;
    display: block;
    margin-top: 20px;
    padding: 0 15px;
  }

  .notice-item {
    padding: 10px 0;
    margin-bottom: 5px;
    padding-bottom: 0;
  }

  .notice-header {}

  .notice-date {}

  .date-day {
    font-size: 16px;
  }

  .date-year {
    font-size: 16px;
  }

  .notice-title h3 {
    font-size: 14px;
  }

  .detail-link {
    font-size: 14px;
    padding: 5px 10px;
  }

  .detail-link .arrow-default {
    width: 2%;
  }

  .three-columns-section .column-item:nth-child(2),
  .three-columns-section .column-item:nth-child(3) {
    margin-top: 15px;
  }

  .bottom-section {
    display: block;
    margin-top: 20px;
    padding: 0 10px;
  }

  .material-item {
    padding: 10px;
  }

  .material-date {
    font-size: 12px;
  }

  .material-title {
    font-size: 14px;
  }

  .material-desc {
    font-size: 12px;
  }

  .tab-item {
    font-size: 18px;
    padding: 5px 10px;
  }

  .education-tabs {
    justify-content: space-between;
    align-items: center;
  }

  .education-pagination {
    display: none;
  }

  .education-text {
    font-size: 14px;
  }

  .policy-list {
    display: block;
  }

  .policy-title {
    font-size: 14px;
  }

  .policy-item {
    height: 57px;
  }

  .policy-item:nth-child(5n) {
    border-bottom: 1px dashed #e5e5e5;
  }

  .policy-section {
    padding: 0 10px;
  }

  .policy-item:nth-child(9) {
    border-bottom: 1px dashed #e5e5e5;
  }

  .policy-content {
    background: url(../images/zcfgBg.png) no-repeat bottom;
    background-size: 100% 100%;
  }

  .footer-info h3 {
    font-size: 21px;
    text-align: center;
  }

  .footer-left img {
    display: block;
    margin: 0 auto;
  }

  .footer-right {
    margin-top: 24px;
    height: 100%;
  }

  .link-group {
    width: 100%;
    gap: 5px;
    display: block;
  }

  .link-icon {}

  .link-list {
    grid-template-columns: repeat(2, auto);
    gap: 5px 20px;
    width: 100%;
    margin-top: 20px;
  }

  .link-list a,
  .link-list p {}

  .footer-info {
    width: 100%;
  }

  .footer {
    height: auto;
    display: block;
    position: relative;
  }

  .link-group:last-child {
    margin-top: 10px;
  }

  .footer-bottom p {
    font-size: 14px;
  }

  /* 移动端控件容器 */
  .mobile-header-controls {
    display: none;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 12px;
  }

  /* 移动端搜索按钮 */
  .mobile-search-btn {
    width: 30px;
    height: 30px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .mobile-search-btn:hover {
    background: #069090;
  }

  .mobile-search-btn img {
    width: 100%;
  }

  /* 汉堡菜单按钮 */
  .hamburger-menu {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .hamburger-line {
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  /* 汉堡菜单激活状态 */
  .hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }

  .hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }

  /* 移动端搜索覆盖层 */
  .mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
  }

  .mobile-search-container {
    width: 90%;
    max-width: 95%;
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 20px;
    position: relative;
    margin: 0 auto;
  }

  .mobile-search-box {
    display: flex;
    align-items: center;
    border: 2px solid rgba(23, 50, 113, .99);
    border-radius: 25px;
    overflow: hidden;
  }

  .mobile-search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #000;
    /* background: transparent; */
  }

  .mobile-search-submit {
    width: 40px;
    height: 40px;
    background: url("../images/search_ph.png") no-repeat rgba(23, 50, 113, .99);
    background-size: 100% 100%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 100%;
    margin-right: 8px;
  }

  .mobile-search-submit img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
  }

  .mobile-search-close {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
  }


  body.mobile-menu-open {
    overflow: hidden;
  }

  .main-nav .mobile-menu-open {}

  .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .submenu.mobile-active {
    max-height: 200px;

  }

  .sidebar>ul li a:after {
    display: none;
  }
  .list_ul ul li a{
    overflow: hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    display: block;
}
}