/* ==========================================
   一恒仪器 - 现代化手机版
   Material Design 风格 + 卡片布局
   ========================================== */

/* PC端隐藏汉堡按钮 */
.mobile-nav-toggle {
  display: none;
}

@media screen and (max-width: 768px) {
  /* === 全局 === */
  * { box-sizing: border-box; }
  body, html {
    width: 100% !important;
    min-width: 100% !important;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background: #f5f7fa !important;
  }

  /* 容器重置 */
  .g-wrap, .content, .header, .footer, .top_bg .header,
  .isearch-wrap .content, .f_nav_wrap .content, .ipro .content,
  .iclient .box, .inaq .content, .links.content, .container-f, .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .fl, .fr { float: none !important; width: 100% !important; }

  /* === 顶栏 === */
  .top-bar {
    display: none !important;
  }

  /* === Logo区 === */
  .top_bg {
    height: auto;
    padding: 16px 0;
    background: linear-gradient(135deg, #0051a3 0%, #003d7a 100%) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .h_con {
    height: auto;
    text-align: center;
  }
  .h_con h1 {
    float: none;
    padding: 0;
    display: block;
    margin: 0;
  }
  .h_con .h_dw {
    float: none;
    display: block;
    text-align: center;
  }
  .h_dw img {
    width: 140px !important;
    height: auto;
    filter: brightness(1.1);
  }
  .h_con .tel { display: none; }

  /* 搜索框现代化 */
  .isearch {
    float: none;
    width: calc(100% - 32px);
    margin: 12px auto 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 24px;
    overflow: hidden;
  }
  .isearch .text {
    width: calc(100% - 70px);
    padding: 12px 20px;
    border: none;
    border-radius: 24px 0 0 24px;
    font-size: 14px;
  }
  .isearch .but {
    border-radius: 0 24px 24px 0;
    background: #46af33;
    border: none;
  }

  /* === 导航 === */
  .h_nav {
    background: #0051a3;
    position: relative;
  }
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #0051a3 0%, #004590 100%);
    border: none;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    letter-spacing: 1px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .h_nav > ul {
    display: none;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    margin-top: 2px;
  }
  .h_nav > ul.open { display: block; }
  .h_nav > ul > li {
    float: none;
    width: 100%;
    height: auto;
    border-bottom: 1px solid #f0f0f0;
  }
  .h_nav > ul > li > a {
    padding: 14px 20px;
    font-size: 15px;
    float: none;
    display: block;
    color: #333 !important;
    font-weight: 500;
  }
  .h_nav > ul > li.cur > a,
  .h_nav > ul > li:hover > a {
    background: #f5f7fa;
    color: #0051a3 !important;
    border-left: 3px solid #0051a3;
  }
  .h_nav > ul > li:after { display: none; }
  .h_nav .erji {
    position: static;
    width: 100%;
    background: #fafafa;
  }
  .h_nav .erji a {
    padding-left: 40px !important;
    color: #666 !important;
    font-size: 14px;
  }

  /* === Banner === */
  .banner, .fullSlide {
    height: 200px !important;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    margin-bottom: 16px;
  }
  .banner .bd li {
    background-size: cover !important;
    background-position: center !important;
    height: 200px !important;
  }
  .banner .prev, .banner .next { display: none; }
  .banner .hd { bottom: 12px; }

  /* === 热门搜索 - 卡片式 === */
  .isearch-wrap {
    background: #fff;
    margin: 16px;
    padding: 12px 16px !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: none !important;
  }
  .isearch-wrap span { display: inline; font-size: 13px; color: #999; }
  .isearch-wrap a {
    display: inline-block;
    margin: 4px 6px;
    padding: 4px 12px;
    background: #f0f4f8;
    border-radius: 16px;
    font-size: 12px;
    color: #0051a3;
    text-decoration: none;
  }

  /* === 分类推荐 - 现代卡片 === */
  .container-f {
    padding: 0 !important;
    margin: 16px !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
  }
  .container-f .left-f {
    width: 100% !important;
    float: none !important;
    padding: 16px !important;
  }
  .container-f .left-f h2 {
    font-size: 17px !important;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #0051a3;
  }
  .fl-ul-f .fl-li-f {
    width: 100% !important;
    margin: 0 0 12px 0 !important;
  }
  .introduceSpan {
    margin-left: 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e8eaed !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    display: block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .introduceSpan a {
    font-size: 15px !important;
    color: #0051a3 !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .introduceSpan a:after {
    content: '›';
    font-size: 20px;
    color: #ccc;
  }
  .introduceBody { display: none !important; }

  /* === 产品网格 - Material Cards === */
  .ipro { background: #f5f7fa !important; padding: 16px 0 !important; }
  .ipro .content { padding: 0 !important; }
  .ipro_column { display: none !important; }
  .ipro-small {
    margin: 0 16px !important;
  }
  .ipro-small h2 {
    font-size: 17px;
    color: #333;
    margin: 0 0 12px 0;
    padding-left: 8px;
    border-left: 4px solid #0051a3;
  }
  .ipro-small .ipro_as {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  /* 手机端只显示前10个产品 */
  .ipro-small .ipro_as a:nth-child(n+11) {
    display: none;
  }
  .ipro-small .ipro_as a {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  .ipro-small .ipro_as a:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  }
  .ipro-small .ipro_as a img {
    width: 100% !important;
    height: 150px !important;
    object-fit: contain;
    background: #fafafa;
    display: block;
    padding: 12px;
  }
  .ipro-small .ipro_as a .ti {
    display: block;
    padding: 10px 12px;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    text-align: center;
    font-weight: 500;
    border-top: 1px solid #f0f0f0;
  }

  /* === 公司简介（手机端隐藏） === */
  .iabout { display: none !important; }
  .iabout > div {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .iabout-video {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .iabout-video img {
    width: 100% !important;
    height: auto !important;
    max-height: 240px;
    object-fit: cover;
    display: block;
  }
  .iabout-cont {
    width: 100% !important;
    float: none !important;
    padding: 16px !important;
  }
  .iabout-cont .ti {
    font-size: 17px !important;
    font-weight: 600;
    color: #0051a3;
    margin-bottom: 8px;
  }
  .iabout-cont .desc {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #666;
  }

  /* === 核心优势 === */
  .iclient {
    margin: 0 !important;
    padding: 16px !important;
    background: #fff;
  }
  .iclient .box {
    width: 100% !important;
    height: auto !important;
  }
  h2.imain-ti {
    font-size: 17px !important;
    text-align: center;
    margin-bottom: 16px;
  }
  .iclient .iclient-ul {
    white-space: normal !important;
    text-align: center !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 12px;
  }
  .iclient-ul a {
    width: 28% !important;
    display: inline-block !important;
    background: #fafafa;
    border-radius: 8px;
    padding: 8px;
  }
  .iclient-ul a img {
    width: 100% !important;
    height: auto !important;
    filter: grayscale(20%);
  }

  /* === 新闻 - List Cards === */
  .inaq {
    padding: 16px !important;
    background: #f5f7fa !important;
  }
  .inaq .content { min-height: auto !important; }
  .inews, .hydt {
    width: 100% !important;
    float: none !important;
    margin: 0 0 16px 0 !important;
    padding: 16px !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: none !important;
  }
  .inews .hd, .hydt .hd {
    font-size: 16px;
    height: auto;
    line-height: 2;
    color: #333;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0051a3;
  }
  .inews-pic dt img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover;
    border-radius: 8px;
  }
  .inews-pic dd p {
    width: 100% !important;
    float: none !important;
    border: none !important;
    padding: 8px 0 !important;
  }
  .inews-list li {
    padding: 12px 0 !important;
    height: auto !important;
    line-height: 1.6 !important;
    border-bottom: 1px solid #f0f0f0;
    display: block;
    clear: both;
  }
  .inews-list li:last-child { border-bottom: none; }
  .inews-list li span {
    float: right;
    font-size: 11px;
    color: #999;
    margin-left: 10px;
  }
  .inews-list li a {
    font-size: 14px !important;
    color: #333;
    white-space: normal !important;
    width: auto !important;
    font-weight: 500;
    display: inline;
  }

  /* === 内页 === */
  .left, .right, .right_main {
    width: 100% !important;
    float: none !important;
    margin: 0 0 16px 0 !important;
  }
  .sidebar-menu {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .sidebar-menu h3 {
    font-size: 16px;
    padding: 14px;
    text-align: center;
    background: linear-gradient(135deg, #0051a3 0%, #004590 100%);
    color: #fff;
    margin: 0;
  }
  .sidebar-menu ul { max-height: none; }
  .sidebar-menu ul li a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
  }

  /* === 产品详情 === */
  .pro-detail-top .fl {
    width: 100% !important;
    float: none !important;
    margin: 0 0 16px 0 !important;
  }
  .pro-detail-top .pro-img img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 300px;
    border-radius: 8px;
  }
  .pro-detail-top .pro-info {
    width: 100% !important;
    margin-left: 0 !important;
  }
  .pro-detail-top .pro-info h1 {
    font-size: 18px !important;
    color: #333;
  }

  /* === 表格 === */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 12px !important;
    width: 100%;
    border-radius: 8px;
  }
  table td, table th {
    padding: 8px !important;
    white-space: nowrap;
  }

  /* === Footer === */
  .links.content {
    padding: 12px 0;
    text-align: center;
    background: #fff;
  }
  .links_l, .links_c {
    width: 100% !important;
    text-align: center !important;
    float: none !important;
  }
  .f_bg {
    height: auto !important;
    padding: 20px 0 !important;
    background: linear-gradient(180deg, #001f3f 0%, #001529 100%) !important;
  }
  .f_logo, .f_ban {
    width: 100% !important;
    float: none !important;
    height: auto !important;
    padding: 12px 0 !important;
    background: none !important;
    text-align: center !important;
  }
  .f_logo img {
    width: 160px !important;
    height: auto !important;
  }
  .f_ban p {
    font-size: 12px !important;
    line-height: 1.8 !important;
    color: rgba(255,255,255,0.7);
  }
  .f_er {
    width: 100% !important;
    float: none !important;
    text-align: center !important;
    padding: 12px 0 !important;
    display: flex;
    justify-content: center;
    gap: 16px;
  }
  .f_er p {
    width: auto !important;
    float: none !important;
    padding: 0 !important;
  }
  .f_er img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 8px;
  }

  /* === 绿色导航条 === */
  .f_nav_wrap {
    height: auto !important;
    padding: 10px 0;
    background: #46af33;
  }
  .f_nav {
    height: auto !important;
    line-height: 2 !important;
    text-align: center;
  }
  .f_nav li { display: inline-block !important; }
  .f_nav li::after { padding: 0 5px !important; }
  .f_nav a {
    font-size: 12px !important;
    padding: 0 4px !important;
    color: #fff;
  }

  /* === 浮动客服 === */
  .youce {
    right: 10px !important;
    bottom: 60px !important;
  }
  .youce ul li {
    margin-bottom: 4px;
    width: 42px;
  }
  .youce ul li a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  /* === 面包屑 === */
  .plc {
    font-size: 12px;
    padding: 10px 16px;
    background: #fff;
    margin-bottom: 8px;
  }
  .topadcs {
    height: 100px !important;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
  }
  .topadcs .fullad {
    height: 100px !important;
    background-size: cover !important;
  }

  /* === 字体 === */
  h1 { font-size: 20px !important; }
  h2 { font-size: 17px !important; }
  h3 { font-size: 15px !important; }
  body { font-size: 14px; }
}

/* === 超小屏 === */
@media screen and (max-width: 480px) {
  .ipro-small .ipro_as { grid-template-columns: 1fr; }
  .ipro-small .ipro_as a img { height: 180px !important; }
  .banner, .fullSlide { height: 160px !important; }
  .banner .bd li { height: 160px !important; }
  .h_dw img { width: 120px !important; }
  .f_nav li { display: block !important; }
  .f_nav li::after { display: none !important; }
  .iclient-ul a { width: 45% !important; }
}
