/**
 * 移动端导航样式
 * 包含汉堡菜单、响应式导航等
 */

/* PC端隐藏汉堡菜单 */
.mobile-menu-toggle {
  display: none;
}

/* 平板适配 */
@media screen and (max-width: 1024px) {
  .indexshixinav {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    transform: none;
    left: 0;
  }
  
  .indexshixinav::before,
  .indexshixinav::after {
    display: none;
  }
  
  .indexshixinav > :first-child img {
    width: 280px;
  }
  
  .header-tabs > * a {
    padding: 0 12px;
    font-size: 16px;
  }
  
  .indexshixinav .el-input {
    width: 200px !important;
  }
}

/* 手机端适配 */
@media screen and (max-width: 768px) {
  .indexshixinav {
    height: auto;
    min-height: auto;
    padding: 10px 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* 左侧Logo区域 - 第一行左侧 */
  .indexshixinav > :first-child {
    flex: 0 0 auto;
    order: 1;
  }
  
  .indexshixinav > :first-child img {
    width: 160px;
    height: auto;
  }
  
  /* 右侧区域 */
  .right-box {
    display: contents;
  }
  
  /* 右侧logo图片 - 第一行右侧 */
  .right-box > :first-child {
    display: block;
    flex: 0 0 auto;
    order: 2;
  }
  
  .right-box > :first-child img {
    margin-right: 0;
    width: 70px;
    height: auto;
  }
  
  /* 导航和搜索区域 - 第二行 */
  .right-box > :nth-child(2) {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    order: 3;
    margin-top: 10px;
  }
  
  /* 搜索框移动端样式 - 加宽 */
  .indexshixinav .el-input {
    width: 220px !important;
    margin-top: 0;
  }
  
  .indexshixinav .el-input .el-input__inner {
    height: 34px !important;
    line-height: 34px !important;
    font-size: 14px;
  }
  
  /* 隐藏PC端导航菜单 */
  .header-tabs {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: auto;
    padding: 0;
    z-index: 9999;
  }
  
  .header-tabs.mobile-show {
    display: flex !important;
  }
  
  .header-tabs > * {
    width: 100%;
    height: auto;
    line-height: normal;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .header-tabs > * a {
    padding: 15px 20px;
    display: block;
    font-size: 15px;
  }
  
  .header-tabs > * a.one {
    text-align: left;
  }
  
  .secondary-menu {
    position: static;
    display: none;
    width: 100%;
    transform: none;
    box-shadow: none;
    background-color: #f8f8f8;
    padding: 0;
    opacity: 1 !important;
  }
  
  .secondary-menu div {
    height: auto;
    line-height: normal;
  }
  
  .secondary-menu a {
    padding: 12px 30px !important;
    justify-content: flex-start !important;
    font-size: 14px;
    color: #666;
  }
  
  /* 移动端汉堡菜单按钮 */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 10000;
    background-color: #f5f5f5;
    border-radius: 4px;
  }
  
  .mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #333;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* tips-url 移动端适配 */
  .tips-url {
    height: auto;
    padding: 15px;
  }
  
  .tips-url p {
    font-size: 12px;
    line-height: 1.8;
  }
  
  .tips-url span {
    margin: 0 4px;
  }
  
  /* 分页移动端适配 */
  .pagination {
    margin-bottom: 15px;
  }
  
  .pagination > * {
    min-width: 28px;
    height: 26px;
    font-size: 12px;
  }
  
  /* 搜索按钮样式 */
  .search {
    width: 40px;
    height: 36px;
  }
}

/* 小屏手机适配 */
@media screen and (max-width: 480px) {
  .indexshixinav {
    padding: 8px 10px;
  }
  
  .indexshixinav > :first-child img {
    width: 120px;
  }
  
  .right-box > :first-child img {
    width: 55px;
  }
  
  .right-box > :nth-child(2) {
    margin-top: 8px;
  }
  
  /* 搜索框更紧凑 */
  .indexshixinav .el-input {
    width: 160px !important;
  }
  
  .indexshixinav .el-input .el-input__inner {
    height: 30px !important;
    line-height: 30px !important;
    font-size: 12px;
  }
  
  .mobile-menu-toggle {
    width: 32px;
    height: 32px;
  }
  
  .mobile-menu-toggle span {
    width: 18px;
  }
  
  .tips-url p {
    font-size: 11px;
  }
  
  .header-tabs > * a {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .secondary-menu a {
    padding: 10px 25px !important;
    font-size: 13px;
  }
  
  /* 搜索按钮 */
  .search {
    width: 32px;
    height: 30px;
  }
}
