/* ===== 网站UI美化与移动端适配 v2 ===== */
/* 此文件追加在 style.css 之后，不覆盖原有样式 */

/* ===== 设计变量覆盖 ===== */
:root {
  --primary: #1a56db;
  --primary-light: #3b82f6;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --accent: #f97316;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
  --shadow-glow: 0 4px 20px rgba(26,86,219,0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* ===== 导航栏美化 ===== */
.navbar {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-menu { gap: 2px; }
.nav-menu > li > a {
  padding: 8px 14px; border-radius: 8px; font-size: 14px;
  color: rgba(255,255,255,0.8); font-weight: 500;
}
.nav-menu > li > a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-menu > li > a.active { background: rgba(59,130,246,0.2); color: #fff; }
.nav-menu .btn-contact {
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  color: #fff !important; padding: 8px 18px; margin-left: 4px;
}
.lang-btn {
  padding: 5px 12px; border: 1px solid rgba(255,255,255,0.3);
  background: transparent; color: #fff; border-radius: 20px;
  cursor: pointer; font-size: 12px; font-weight: 500;
}
.lang-btn:hover { background: rgba(255,255,255,0.15); }

/* ===== Hero区美化 ===== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(249,115,22,0.08) 0%, transparent 50%);
}
.hero-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}
.stat-number {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 搜索条 ===== */
.search-section { padding: 0; }
.search-bar-wrap { background: #fff; padding: 32px 0; border-bottom: 1px solid #e8ecf1; }
.search-box {
  max-width: 600px; margin: 0 auto; display: flex;
  border: 2px solid #e2e8f0; border-radius: 50px; overflow: hidden;
  transition: all .3s; background: #fff;
}
.search-box:focus-within { border-color: #1a56db; box-shadow: 0 0 0 4px rgba(26,86,219,0.1); }
.search-box input { flex: 1; border: none; padding: 14px 24px; font-size: 15px; outline: none; }
.search-box button {
  padding: 14px 28px; background: linear-gradient(135deg, #1a56db, #3b82f6);
  color: #fff; border: none; cursor: pointer; font-size: 14px; font-weight: 600;
}
.search-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.search-tags a {
  padding: 4px 14px; background: #eff6ff; color: #64748b;
  font-size: 12px; border-radius: 20px;
}
.search-tags a:hover { background: #1a56db; color: #fff; }

/* ===== 快速分类入口 ===== */
.quick-categories { padding: 60px 0; background: #f8fafc; }
.quick-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-cat-card {
  background: #fff; border-radius: 16px; padding: 32px 24px; text-align: center;
  border: 1px solid #e8ecf1; box-shadow: var(--shadow-sm);
}
.quick-cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #bfdbfe; }
.quick-cat-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.quick-cat-card h3 { font-size: 16px; font-weight: 600; color: #0f172a; margin-bottom: 6px; }
.quick-cat-card p { font-size: 13px; color: #64748b; }
.quick-cat-card .cat-tag {
  display: inline-block; margin-top: 10px; padding: 3px 12px;
  background: #dbeafe; color: #1a56db; font-size: 11px; font-weight: 600; border-radius: 10px;
}

/* ===== 热销产品 ===== */
.hot-products { padding: 80px 0; background: #fff; }
.hot-products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
.hot-product-card {
  display: flex; background: #f8fafc; border-radius: 16px; overflow: hidden;
  border: 1px solid #e8ecf1; text-decoration: none;
}
.hot-product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #bfdbfe; }
.hot-product-info { flex: 1; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.hot-product-info .product-model { font-size: 12px; color: #1a56db; font-weight: 700; margin-bottom: 4px; letter-spacing: .5px; }
.hot-product-info h3 { font-size: 15px; color: #0f172a; font-weight: 600; margin-bottom: 6px; }
.hot-product-info .product-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.hot-product-info .product-tags span {
  padding: 2px 8px; background: #dbeafe; color: #1a56db;
  font-size: 11px; font-weight: 500; border-radius: 4px;
}
.hot-product-img { width: 130px; min-height: 120px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hot-product-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }

/* ===== 浮动按钮 ===== */
.inquiry-float { position: fixed; bottom: 28px; right: 28px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.inquiry-float a, .inquiry-float button {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; color: #fff; font-size: 20px; border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.inquiry-float a:hover, .inquiry-float button:hover { transform: scale(1.1) translateY(-2px); }
.float-phone { background: #25d366; }
.float-wechat { background: #07c160; }
.float-email { background: linear-gradient(135deg, #1a56db, #3b82f6); }

/* ===== 相关产品 ===== */
.related-products-section { max-width: 1000px; margin: 40px auto 20px; padding: 0 20px; }
.related-products-section h3 { font-size: 20px; color: #0f172a; margin-bottom: 20px; font-weight: 700; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-card {
  background: #f8fafc; border-radius: 12px; padding: 16px; text-align: center;
  border: 1px solid #e8ecf1;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.related-card .related-model { font-size: 13px; color: #1a56db; font-weight: 700; }

/* ===== 文章产品推荐 ===== */
.article-product-links { margin-top: 24px; padding: 20px 24px; background: #eff6ff; border-radius: 16px; border-left: 4px solid #1a56db; }
.article-product-links h4 { font-size: 15px; margin-bottom: 12px; color: #0f172a; font-weight: 600; }
.article-product-links li { margin-bottom: 8px; }
.article-product-links a { color: #1a56db; font-size: 14px; font-weight: 500; }

/* ===== 页面头部 ===== */
.page-header { padding: calc(72px + 60px) 0 60px; background: linear-gradient(135deg, #0f172a, #1e293b); }
.page-header h1 { font-size: 36px; }
.page-header p { font-size: 16px; color: rgba(255,255,255,0.65); }

/* ===== 供应链CTA ===== */
.supply-chain-cta { background: linear-gradient(135deg, #0f172a, #1e293b); padding: 80px 0; text-align: center; }
.supply-chain-cta-content h2 { font-size: 32px; color: #fff; margin-bottom: 15px; }
.supply-chain-cta-content p { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 40px; }
.supply-chain-cta-features { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }

/* ===== 弹窗美化 ===== */
.modal { backdrop-filter: blur(4px); }

/* ========================================================================
   📱 手机适配 (≤768px)
   ======================================================================== */
@media (max-width: 768px) {
  /* 导航 */
  .navbar { height: 64px; }
  .company-name { font-size: 14px; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(15,23,42,0.98); flex-direction: column; padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.06); max-height: 80vh; overflow-y: auto;
  }
  .nav-menu.active { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu > li > a { padding: 12px 16px; width: 100%; }
  .nav-dropdown-content {
    position: static; background: transparent; border: none; padding: 0 0 0 16px;
    box-shadow: none; display: none; margin-top: 0;
  }
  .nav-dropdown.active .nav-dropdown-content { display: block; }
  .nav-dropdown.active .nav-dropdown-arrow { transform: rotate(180deg); }
  .mobile-menu-btn { display: flex; }

  /* 布局 */
  .section { padding: 50px 0; }
  .container { padding: 0 16px; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 24px !important; }
  .section-header p { font-size: 14px !important; }

  /* Hero */
  .hero { min-height: auto; padding: 100px 0 50px; }
  .hero h1 { font-size: 28px !important; }
  .hero-subtitle { font-size: 15px !important; margin-bottom: 28px; }
  .hero-stats { gap: 20px; margin-bottom: 24px; }
  .stat-number { font-size: 28px !important; }
  .hero-buttons .btn { font-size: 14px; padding: 10px 22px; }
  .hero-badge { font-size: 12px; padding: 4px 14px; }
  .scroll-indicator { display: none; }

  /* 搜索 */
  .search-bar-wrap { padding: 20px 0; }
  .search-box input { padding: 12px 16px; font-size: 14px; }
  .search-box button { padding: 12px 20px; font-size: 13px; }

  /* 分类 */
  .quick-categories { padding: 40px 0; }
  .quick-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .quick-cat-card { padding: 24px 16px; }
  .quick-cat-icon { font-size: 32px; }

  /* 热销 */
  .hot-products { padding: 50px 0; }
  .hot-products-grid { grid-template-columns: 1fr; gap: 12px; }
  .hot-product-info { padding: 14px; }
  .hot-product-info h3 { font-size: 14px; }
  .hot-product-img { width: 100px; }
  .hot-product-img img { padding: 8px; }

  /* 产品预览 */
  .products-preview-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .preview-product-card { padding: 14px; }
  .preview-product-image { height: 90px; }

  /* 质量 */
  .quality-preview-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .quality-preview-card img { height: 100px; }

  /* 关于 */
  .about-preview-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-preview-content h2 { font-size: 24px !important; }

  /* 新闻 */
  .news-preview-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-preview-card { padding: 18px; }
  .news-preview-card h3 { font-size: 15px; }

  /* Footer */
  .footer-content { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-links ul { align-items: center; }

  /* 页头 */
  .page-header { padding: calc(64px + 40px) 0 40px; }
  .page-header h1 { font-size: 26px !important; }

  /* CTA */
  .cta-content h2 { font-size: 24px !important; }
  .cta-buttons { flex-direction: column; align-items: center; }

  /* 相关 */
  .related-grid { grid-template-columns: repeat(2, 1fr); }

  /* 供应链 */
  .supply-chain-cta { padding: 50px 0; }
  .supply-chain-cta-content h2 { font-size: 24px; }
  .supply-chain-cta-features { gap: 20px; }

  /* 浮动按钮 */
  .inquiry-float { bottom: 20px; right: 20px; }
  .inquiry-float a, .inquiry-float button { width: 42px; height: 42px; font-size: 18px; }

  /* Logo */
  .logo { width: 36px; height: 36px; font-size: 16px; }

  /* 弹窗 */
  .modal-content { padding: 30px 24px; }
  .wechat-qr img { width: 160px; height: 160px; }
}

/* ========================================================================
   📱 平板适配 (769px-992px)
   ======================================================================== */
@media (min-width: 769px) and (max-width: 992px) {
  .hero h1 { font-size: 40px; }
  .products-preview-grid { grid-template-columns: repeat(3, 1fr); }
  .news-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .quick-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 按钮悬停统一优化 ===== */
.btn, .nav-menu a, .quick-cat-card, .hot-product-card,
.preview-product-card, .quality-preview-card, .news-preview-card,
.related-card, .search-tags a {
  transition: all 0.25s ease;
}

/* ===== 卡片阴影统一 ===== */
.quick-cat-card, .preview-product-card, .news-preview-card,
.hot-product-card, .related-card {
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
