/* 浩维精密官网 - 移动端优先响应式样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; color: #333; line-height: 1.6; -webkit-text-size-adjust: 100% }
a { text-decoration: none; color: inherit }
ul { list-style: none }

/* ========== 移动端默认样式 ========== */
/* 导航 */
.header { background: #0052b4; padding: 0 4%; position: fixed; width: 100%; top: 0; z-index: 1000; height: 60px; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.logo { font-size: 18px; font-weight: bold; color: #fff }
.logo span { color: #f5a623 }

/* 移动端导航 - 隐藏PC导航，显示汉堡菜单 */
.nav { display: none; }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 25px; height: 3px; background: #fff; border-radius: 2px; }
.header-btn { background: #f5a623; color: #0052b4; padding: 8px 16px; border-radius: 4px; font-weight: bold; font-size: 14px; }

/* Banner - 移动端 */
.banner { height: auto;display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;   }
.banner-content { max-width: 100%; padding: 20px; }
.banner h1 { font-size: 28px; margin-bottom: 15px; line-height: 1.3;font-weight:bold; }
.banner p { font-size: 16px; margin-bottom: 25px; opacity: 0.9 }
.banner-btn { display: inline-block; background: #f5a623; color: #0052b4; padding: 12px 30px; border-radius: 5px; font-weight: bold; font-size: 15px; }

/* 通用区块 */

.section-title { text-align: center; margin-bottom: 30px }
.section-title h2 { font-size: 24px; color: #0052b4; margin-bottom: 10px;font-weight:600; }
.section-title p { color: #666; font-size: 14px }
.bg-gray { background: #f5f7fa }

/* 产品卡片 - 移动端单列 */
.products-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px }
.product-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.08); transition: all 0.3s }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12) }
.product-img { height: 160px; background: linear-gradient(135deg, #0052b4 0%, #0073e6 100%); display: flex; align-items: center; justify-content: center }
.product-img-text { font-size: 32px; color: rgba(255,255,255,0.3); font-weight: bold }
.product-info { padding: 15px }
.product-info h3 { font-size: 16px; margin-bottom: 8px; color: #333 }
.product-info p { font-size: 13px; color: #666; margin-bottom: 10px; height: auto; overflow: visible }
.product-link { color: #0052b4; font-size: 13px; font-weight: bold }

/* 新闻卡片 - 移动端单列 */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px }
.news-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.08) }
.news-img { height: 150px; background: linear-gradient(135deg, #0052b4 0%, #0073e6 100%) }
.news-content { padding: 15px }
.news-date { font-size: 12px; color: #999; margin-bottom: 8px }
.news-title { font-size: 15px; margin-bottom: 8px; line-height: 1.4 }
.news-desc { font-size: 13px; color: #666 }

/* 关于 */
.about-inner { display: grid; grid-template-columns: 1fr; gap: 30px }
.about-img { height: 250px; background: linear-gradient(135deg, #0052b4 0%, #0073e6 100%); border-radius: 10px; display: flex; align-items: center; justify-content: center }
.about-img-text { font-size: 40px; color: rgba(255,255,255,0.3); font-weight: bold }
.about-text h3 { font-size: 22px; color: #0052b4; margin-bottom: 15px }
.about-text p { color: #666; margin-bottom: 12px; line-height: 1.7; font-size: 14px }
.about-list li { padding: 8px 0; border-bottom: 1px solid #eee; display: flex; align-items: center; font-size: 14px }
.about-list li::before { content: '✓'; color: #0052b4; margin-right: 10px; font-weight: bold }

/* 优势 - 移动端2列 */
.advantage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 20px }
.advantage-item { text-align: center; padding: 20px 15px; background: #fff; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.08) }
.advantage-icon { width: 50px; height: 50px; background: linear-gradient(135deg, #0052b4 0%, #0073e6 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 24px }
.advantage-item h3 { font-size: 15px; margin-bottom: 8px; color: #333 }
.advantage-item p { font-size: 12px; color: #666 }

/* 客户 */
.customer-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px }
.customer-card { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.08) }
.customer-logo { height: 45px; background: #f5f7fa; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; font-weight: bold; color: #666; font-size: 14px }
.customer-card h3 { font-size: 16px; margin-bottom: 8px }
.customer-card p { font-size: 13px; color: #666; margin-bottom: 10px }
.customer-quote { font-style: italic; color: #999; font-size: 13px; padding-top: 12px; border-top: 1px solid #eee }

/* 联系 */
.contact-inner { display: grid; grid-template-columns: 1fr; gap: 30px }
.contact-info h3 { font-size: 20px; color: #0052b4; margin-bottom: 20px }
.contact-item { display: flex; align-items: center; margin-bottom: 15px }
.contact-icon { width: 40px; height: 40px; background: #0052b4; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; margin-right: 12px; font-size: 16px }
.contact-item p { color: #666; font-size: 14px }
.contact-form { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.08) }
.contact-form h3 { font-size: 20px; color: #0052b4; margin-bottom: 20px }
.form-group { margin-bottom: 15px }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px }
.form-group textarea { height: 100px; resize: vertical }
.form-submit { background: #0052b4; color: #fff; padding: 12px 30px; border: none; border-radius: 5px; font-size: 15px; font-weight: bold; cursor: pointer; width: 100% }
.form-submit:hover { background: #004499 }

/* 底部 */
.footer { background: #1a1a1a; color: #fff; padding: 30px 4% 15px }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 25px; text-align: center }
.footer h3 { font-size: 16px; margin-bottom: 15px; color: #f5a623 }
.footer p, .footer a { color: #999; font-size: 13px; line-height: 1.8 }
.footer a:hover { color: #f5a623 }
.footer-bottom { text-align: center; padding-top: 20px; margin-top: 20px; border-top: 1px solid #333; color: #666; font-size: 12px }

/* 详情页 */
.page-header { text-align: center; color: #fff }
.page-header h1 { font-size: 24px; margin-bottom: 8px;font-weight:700}
.page-header p { opacity: 0.8; font-size: 14px }
.detail-content { max-width: 100%; margin: 25px auto; padding: 0 4% }
.detail-title { font-size: 22px; margin-bottom: 12px; color: #333 }
.detail-meta { color: #999; margin-bottom: 20px; font-size: 13px }
.detail-body { color: #666; line-height: 1.7; font-size: 14px }
.detail-body p { margin-bottom: 15px }
.detail-body h3 { font-size: 18px; color: #0052b4; margin: 25px 0 12px }
.detail-body ul { margin-left: 15px }
.detail-body li { margin-bottom: 8px }
.detail-back { display: inline-block; color: #0052b4; margin-bottom: 15px; font-size: 14px }
.detail-table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 13px }
.detail-table th, .detail-table td { padding: 10px 8px; border: 1px solid #ddd; text-align: left }
.detail-table th { background: #f5f7fa; color: #333 }
.detail-contact { background: #f5f7fa; padding: 20px; border-radius: 10px; margin-top: 25px }

/* ========== 平板及以上 ========== */
@media (min-width: 768px) {
  .header { height: 80px; padding: 0 5% }
  .logo { font-size: 22px }
  
  /* PC导航显示 */
  .nav-toggle { display: none }
  .nav { display: flex; gap: 25px }
  .nav a { color: #fff; font-size: 15px; padding: 10px 0; position: relative }
  .nav a:hover, .nav a.active { color: #f5a623 }
  .header-btn { padding: 10px 22px; font-size: 15px }
  
  .banner {  min-height: auto; padding: 0 }
  .banner h1 { font-size: 42px; margin-bottom: 20px }
  .banner p { font-size: 20px }
  .banner-btn { padding: 15px 40px; font-size: 16px }
  

  .section-title { margin-bottom: 40px }
  .section-title h2 { font-size: 32px }
  .section-title p { font-size: 16px }
  
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px }
  .product-img { height: 180px }
  .product-info { padding: 18px }
  .product-info h3 { font-size: 17px }
  
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px }
  .news-img { height: 160px }
  
  .about-inner { grid-template-columns: 1fr 1fr; gap: 40px }
  .about-img { height: 320px }
  .about-text h3 { font-size: 26px }
  .about-text p { font-size: 15px; margin-bottom: 15px }
  
  .advantage-grid { grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 30px }
  .advantage-item { padding: 30px 20px }
  .advantage-icon { width: 65px; height: 65px; font-size: 30px; margin-bottom: 15px }
  .advantage-item h3 { font-size: 18px }
  .advantage-item p { font-size: 13px }
  
  .customer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px }
  .customer-card { padding: 25px }
  
  .contact-inner { grid-template-columns: 1fr 1fr; gap: 40px }
  .contact-form { padding: 30px }
  
  .footer { padding: 40px 5% 15px }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; text-align: left }
  .footer h3 { font-size: 17px }
  .footer p, .footer a { font-size: 14px }
  
 
 
  .page-header h1 { font-size: 32px }
  .detail-content { max-width: 850px; margin: 40px auto; padding: 0 20px }
  .detail-title { font-size: 26px }
  .detail-body h3 { font-size: 20px }
}

/* ========== 桌面端 ========== */
@media (min-width: 1200px) {
  .header { padding: 0 8% }
  .logo { font-size: 24px }
  .nav { gap: 35px }
  
  .banner h1 { font-size: 48px }
  .banner p { font-size: 22px }
  
 
  .section-title h2 { font-size: 36px; }
  
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 40px }
  .product-img { height: 200px }
  .product-info { padding: 20px }
  .product-info h3 { font-size: 18px }
  .product-info p { font-size: 14px; height: 40px }
  
  .news-grid { grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 40px }
  .news-img { height: 180px }
  
  .about-inner { gap: 60px }
  .about-img { height: 400px }
  .about-img-text { font-size: 60px }
  
  .advantage-grid { gap: 30px; margin-top: 40px }
  .advantage-item { padding: 40px 25px }
  .advantage-icon { width: 80px; height: 80px; font-size: 36px }
  
  .customer-grid { grid-template-columns: repeat(3, 1fr); gap: 25px }
  .customer-card { padding: 30px }
  
  .contact-inner { gap: 60px }
  .contact-form { padding: 40px }
  
  .footer { padding: 50px 8% 20px }
  .footer-inner { gap: 50px }
  
  .detail-content { max-width: 900px; margin: 50px auto }
}
