/* 移动端基础样式 */
@media screen and (max-width: 768px) {
  /* 隐藏PC端导航 */
  .pc-nav .logo span {
    display: none;
  }
  .pc-nav .nav-links {
    display: none;
  }
  .pc-nav .container {
    height: auto;
  }

  .pc-nav .container .logo img {
    position: relative;
    top: 5px;
    width: 150px;
  }

  /* 隐藏轮播图左右按钮 */
  .slider-controls button {
    display: none;
  }

  /* 显示手机端导航 */
  .mobile-nav-btn,
  .mobile-nav {
    display: block;
  }

  /* 显示移动端导航按钮 */
  .mobile-nav-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    cursor: pointer;
  }

  .mobile-nav-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s;
  }

  /* 移动端导航菜单 */
  .mobile-nav {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s;
    padding-top: 70px;
  }

  .mobile-nav.active {
    right: 0;
  }

  .mobile-nav ul {
    padding: 20px;
  }

  .mobile-nav li {
    margin-bottom: 15px;
  }

  .mobile-nav a {
    display: block;
    padding: 10px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
  }

  .mobile-nav a:hover {
    color: #1e88e5;
  }

  .mobile-nav ul li a {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
  }

  .mobile-nav ul li a.active {
    color: #1e88e5;
  }

  /* 移动端容器调整 */
  .container {
    width: 100%;
    padding: 0 15px;
  }

  /* 英雄区域调整 */
  .hero-section {
    height: 400px;
    margin-top: 0;
  }

  .slide-content {
    left: 5%;
    max-width: 90%;
  }

  .slide-content h1 {
    font-size: 32px;
  }

  .slide-content p {
    font-size: 16px;
  }

  /* 关于我们区块调整 */
  .about-content {
    flex-direction: column;
    gap: 30px;
  }

  /* 产品中心调整 */
  .product-categories {
    flex-wrap: wrap;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 服务项目调整 */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 新闻动态调整 */
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* 合作伙伴调整 */
  .partner-logos {
    justify-content: center;
  }

  .partner-logos img {
    height: 40px;
    margin: 10px;
  }

  /* 联系我们调整 */
  .contact-content {
    flex-direction: column;
  }

  /* 页脚调整 */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 返回顶部按钮调整 */
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }

  /* 其他通用调整 */
  section {
    padding: 50px 0;
  }

  h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .btn {
    padding: 8px 15px;
    font-size: 14px;
  }

  /* zxs新增 */
  .product-item {
    flex-direction: column;
  }
  .product-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .carousel {
    height: 100% !important;
  }
  .slide {
    width: 100%;
  }
  .category-btn {
    font-size: 14px;
  }
  .contact-wrap {
    align-items: flex-start;
  }
  .contact-info p {
    font-size: 16px;
  }
  .product-item:hover .left-box {
    animation: none;
  }
}

/* 更小的移动设备 */
@media screen and (max-width: 480px) {
  /* 产品中心调整为单列 */
  .product-grid {
    grid-template-columns: 1fr;
  }

  /* 服务项目调整为单列 */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* 页脚调整为单列 */
  .footer-content {
    grid-template-columns: 1fr;
  }

  /* 英雄区域高度调整 */
  .hero-section {
    /* height: 350px; */
    height: 280px;
  }

  .slide-content h1 {
    font-size: 28px;
  }
}
