/* ==========================================================================
   蚌埠光禾通讯 (GuangHe) - 官方工业级样式表 (对标 cn.fs.com 极简工业大厂风)
   ========================================================================== */

/* 1. CSS 变量与设计令牌 */
:root {
  --fs-navy: #002b49;        /* 工业极深藏蓝 (FS.COM 经典 Header/Footer) */
  --fs-blue: #005bb7;        /* 工业高亮主蓝 (主按钮、主要链接) */
  --fs-blue-hover: #004494;  /* 主蓝悬停 */
  --fs-blue-light: #e8f3ff;  /* 浅蓝强调背景 */
  --fs-orange: #ea580c;      /* 醒目出厂报价/询盘橙色 (CTA) */
  --fs-orange-hover: #c2410c;/* 橙色悬停 */
  --fs-text-main: #1e293b;   /* 正文深色 (高对比度、清晰) */
  --fs-text-sub: #475569;    /* 次级文字 */
  --fs-text-muted: #64748b;  /* 辅助/参数浅灰 */
  --fs-bg-page: #f8fafc;     /* 全局页面底色 (浅冷灰) */
  --fs-bg-card: #ffffff;     /* 卡片白底 */
  --fs-bg-gray: #f1f5f9;     /* 浅灰区块底色 */
  --fs-border: #e2e8f0;      /* 工业级精致边框 */
  --fs-border-dark: #cbd5e1; /* 强调边框 */
  --fs-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --fs-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --fs-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 全局重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--fs-bg-page);
  color: var(--fs-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* 容器规范 */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= 2. 顶部工具栏 (Top Bar) ================= */
.top-bar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.top-bar-item i {
  color: #38bdf8;
}

.top-bar-item strong {
  color: #f1f5f9;
}

.badge-cert {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 11px;
}

/* ================= 3. 网站头部 (Site Header) ================= */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--fs-border);
  position: sticky;
  top: 0;
  z-index: 950;
  box-shadow: var(--fs-shadow-sm);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon-box {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--fs-navy) 0%, var(--fs-blue) 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  letter-spacing: -0.5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--fs-navy);
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.brand-slogan {
  font-size: 10px;
  color: var(--fs-text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* 顶部搜索框 */
.header-search {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.search-input-wrap {
  display: flex;
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border: 2px solid var(--fs-blue);
  border-right: none;
  border-radius: 4px 0 0 4px;
  outline: none;
  font-size: 14px;
  background: #ffffff;
  transition: border-color 0.2s;
}

.search-btn {
  height: 42px;
  padding: 0 22px;
  background: var(--fs-blue);
  color: #ffffff;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.2s;
}

.search-btn:hover {
  background: var(--fs-blue-hover);
}

.search-popular-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--fs-text-muted);
}

.tag-pill {
  color: var(--fs-text-sub);
  background: var(--fs-bg-gray);
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-pill:hover {
  background: var(--fs-blue-light);
  color: var(--fs-blue);
}

/* 头部右侧 RFQ 按钮 */
.header-actions {
  flex-shrink: 0;
}

.btn-rfq-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fs-orange);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-rfq-header:hover {
  background: var(--fs-orange-hover);
  transform: translateY(-1px);
}

/* 汉堡菜单按钮 (PC 隐藏) */
.mobile-menu-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--fs-border-dark);
  color: var(--fs-navy);
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ================= 4. 主导航栏 (PC 标准条) ================= */
.header-nav-bar {
  background: var(--fs-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 13px 18px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.nav-item.active .nav-link,
.nav-link:hover {
  background: var(--fs-blue);
  color: #ffffff;
}

.mobile-nav-header {
  display: none;
}

/* 抽屉导航遮罩 */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
}

/* ================= 5. 搜索联想下拉框 ================= */
.search-autocomplete-popover {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--fs-border-dark);
  border-radius: 4px;
  box-shadow: var(--fs-shadow-lg);
  z-index: 2000;
  display: none;
  overflow: hidden;
}

.search-auto-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: var(--fs-bg-gray);
  border-bottom: 1px solid var(--fs-border);
  font-size: 12px;
  color: var(--fs-text-muted);
}

.search-auto-list {
  max-height: 380px;
  overflow-y: auto;
}

.search-auto-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--fs-border);
  cursor: pointer;
  transition: background 0.15s;
}

.search-auto-item:hover {
  background: var(--fs-blue-light);
}

.search-auto-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--fs-border);
  border-radius: 4px;
  flex-shrink: 0;
}

.search-auto-info {
  flex: 1;
  min-width: 0;
}

.search-auto-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.search-auto-model {
  font-weight: 700;
  color: var(--fs-blue);
  font-size: 14px;
}

.search-auto-tag {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #e0f2fe;
  color: #0369a1;
}

.search-auto-name {
  font-size: 13px;
  color: var(--fs-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-auto-specs {
  font-size: 11px;
  color: var(--fs-text-muted);
}

.search-auto-footer {
  padding: 10px 14px;
  background: #f8fafc;
  text-align: center;
  border-top: 1px solid var(--fs-border);
}

.search-auto-all-btn {
  color: var(--fs-blue);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ================= 6. Hero 区域 (响应式规范) ================= */
.hero-section {
  background: #ffffff;
  border-bottom: 1px solid var(--fs-border);
  padding: 40px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fs-blue-light);
  color: var(--fs-blue);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--fs-navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-title-highlight {
  color: var(--fs-blue);
}

.hero-desc {
  font-size: 15px;
  color: var(--fs-text-sub);
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.stat-item {
  flex: 1;
}

.stat-item:not(:first-child) {
  border-left: 1px solid var(--fs-border);
  padding-left: 20px;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--fs-navy);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: var(--fs-text-muted);
  margin-top: 4px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
}

.btn-primary-hero {
  background: var(--fs-blue);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 91, 183, 0.25);
  transition: all 0.2s;
}

.btn-primary-hero:hover {
  background: var(--fs-blue-hover);
  transform: translateY(-1px);
}

.btn-secondary-hero {
  background: var(--fs-bg-gray);
  color: var(--fs-text-main);
  border: 1px solid var(--fs-border-dark);
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-secondary-hero:hover {
  background: #e2e8f0;
}

/* Hero 右侧产品大卡片 */
.hero-card {
  background: #ffffff;
  border: 1px solid var(--fs-border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--fs-shadow-md);
}

.hero-card-img {
  max-height: 280px;
  margin: 0 auto 16px auto;
  object-fit: contain;
}

.hero-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero-tag {
  background: var(--fs-bg-gray);
  border: 1px solid var(--fs-border);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--fs-text-sub);
  white-space: nowrap;
}

/* ================= 7. 制造工艺与核心优势 (Features) ================= */
.section-features {
  padding: 40px 0;
  border-bottom: 1px solid var(--fs-border);
  background: var(--fs-bg-card);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-box {
  background: var(--fs-bg-page);
  border: 1px solid var(--fs-border);
  border-radius: 6px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.2s;
}

.feature-box:hover {
  border-color: var(--fs-blue);
  box-shadow: var(--fs-shadow-md);
  transform: translateY(-2px);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  background: var(--fs-blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--fs-blue);
  font-size: 22px;
  transition: all 0.2s;
}

.feature-box:hover .feature-icon-box {
  background: var(--fs-blue);
  color: #ffffff;
}

.feature-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fs-navy);
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 13px;
  color: var(--fs-text-muted);
  line-height: 1.5;
}

/* ================= 8. 产品中心网格 (Product Grid) ================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--fs-border);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.product-card:hover {
  border-color: var(--fs-blue);
  box-shadow: var(--fs-shadow-md);
  transform: translateY(-3px);
}

.product-img-wrap {
  width: 100%;
  height: 180px;
  background: #f8fafc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  padding: 10px;
}

.product-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.2s;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fs-navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-desc {
  font-size: 12px;
  color: var(--fs-text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
  flex: 1;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.spec-tag {
  background: var(--fs-bg-gray);
  color: var(--fs-text-sub);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--fs-border);
}

.product-btn-view {
  background: var(--fs-blue-light);
  color: var(--fs-blue);
  text-align: center;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  display: block;
  transition: all 0.2s;
}

.product-card:hover .product-btn-view {
  background: var(--fs-blue);
  color: #ffffff;
}

/* ================= 9. 产品详情页布局 (Product Detail Layout) ================= */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #ffffff;
  border: 1px solid var(--fs-border);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-view {
  width: 100%;
  height: 380px;
  background: #f8fafc;
  border: 1px solid var(--fs-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.main-image-view img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.thumb-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-item {
  width: 68px;
  height: 68px;
  border: 2px solid var(--fs-border);
  border-radius: 4px;
  background: #ffffff;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.thumb-item.active, .thumb-item:hover {
  border-color: var(--fs-blue);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 技术规格表 (表格防溢出响应式包裹) */
.table-responsive, .spec-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  border: 1px solid var(--fs-border);
  border-radius: 6px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 13px;
  min-width: 500px;
}

.spec-table th, .spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--fs-border);
  text-align: left;
}

.spec-table th {
  background: var(--fs-bg-gray);
  color: var(--fs-navy);
  font-weight: 700;
  width: 32%;
}

.spec-table td {
  color: var(--fs-text-main);
}

/* ================= 10. 页脚 (Footer) ================= */
.site-footer {
  background: var(--fs-navy);
  color: #94a3b8;
  padding: 50px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--fs-blue);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}

/* ================= 11. 移动端固定底栏 (Mobile Sticky Bar) ================= */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--fs-border-dark);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  z-index: 900;
  padding: 8px 12px;
}

.mobile-sticky-bar .sticky-container {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-sticky-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 2px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  color: var(--fs-text-main);
  background: var(--fs-bg-gray);
  border: 1px solid var(--fs-border);
  line-height: 1.2;
}

.mobile-sticky-btn i {
  font-size: 16px;
  margin-bottom: 3px;
}

.mobile-sticky-btn.btn-call {
  color: #059669;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.mobile-sticky-btn.btn-rfq {
  background: var(--fs-orange);
  color: #ffffff;
  border-color: var(--fs-orange-hover);
  font-weight: 700;
  font-size: 12px;
  flex: 1.3;
}

/* ==========================================================================
   12. 响应式与移动端深度适配 (Media Queries)
   ========================================================================== */

/* 中屏与平板适配 (<= 992px) */
@media (max-width: 992px) {
  .header-main {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  
  .brand-logo {
    order: 1;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    order: 2;
  }

  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 8px;
  }

  .header-actions {
    display: none; /* 移动端在顶部隐藏大型 RFQ 按钮，移至底部粘性条 */
  }

  /* 彻底隐藏 PC 端的横向导航条，绝不在页面流中挤占 */
  .header-nav-bar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--fs-navy);
    z-index: 2100;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    padding-top: 16px;
    border: none;
  }

  .header-nav-bar.mobile-open {
    left: 0;
  }

  .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 8px;
  }

  .mobile-nav-header .title {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
  }

  .mobile-nav-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    color: #e2e8f0;
    white-space: normal;
  }

  /* Hero 区域转为垂直单列 */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-card {
    max-width: 500px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* 手机竖屏深度适配 (<= 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px; /* 给移动端固定底栏留足空间 */
  }

  .mobile-sticky-bar {
    display: block;
  }

  /* 顶部工具栏精简 */
  .top-bar-right {
    display: none;
  }

  .top-bar-left {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .top-bar-item {
    font-size: 11px;
  }

  .badge-cert {
    font-size: 10px;
    padding: 1px 4px;
  }

  /* 品牌 Logo 精简 */
  .logo-icon-box {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-slogan {
    font-size: 9px;
  }

  /* 搜索框 */
  .search-input-wrap input {
    height: 38px;
    font-size: 13px;
    padding: 0 12px;
  }

  .search-btn {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .search-popular-tags {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  /* Hero 区域极佳排版 */
  .hero-section {
    padding: 24px 0;
  }

  .hero-badge {
    font-size: 11px;
    padding: 3px 8px;
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .hero-desc {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
    padding-top: 12px;
    text-align: center;
  }

  .stat-item:not(:first-child) {
    padding-left: 0;
    border-left: 1px solid var(--fs-border);
  }

  .stat-value {
    font-size: 17px;
  }

  .stat-label {
    font-size: 10px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn-primary-hero, .btn-secondary-hero {
    width: 100%;
    padding: 11px;
    font-size: 14px;
  }

  .hero-card {
    padding: 16px;
  }

  .hero-card-img {
    max-height: 200px;
    margin-bottom: 12px;
  }

  /* 制造优势 */
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .feature-box {
    padding: 14px 10px;
  }

  .feature-icon-box {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin-bottom: 8px;
  }

  .feature-box h3 {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .feature-box p {
    font-size: 11px;
    line-height: 1.35;
  }

  /* 产品网格 */
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .product-card {
    padding: 10px;
  }

  .product-img-wrap {
    height: 130px;
    margin-bottom: 8px;
  }

  .product-title {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .product-desc {
    display: none; /* 移动端隐藏冗长描述 */
  }

  .spec-tag {
    font-size: 10px;
    padding: 1px 4px;
  }

  /* 详情页 Gallery */
  .main-image-view {
    height: 240px;
    padding: 10px;
  }

  .thumb-item {
    width: 52px;
    height: 52px;
  }

  /* 页脚 */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-col h4 {
    margin-bottom: 12px;
  }
}

/* 超小屏 (<= 380px) */
@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}
/* 通用响应式双列栅格 */
.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 768px) {
  .grid-2col-responsive {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
/* ================= 13. 补齐核心组件规范 (Breadcrumbs, Products, Details, Tables) ================= */

/* 面包屑导航 */
.breadcrumb-wrap {
  background: #ffffff;
  border-bottom: 1px solid var(--fs-border);
  padding: 10px 0;
  font-size: 13px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--fs-text-muted);
}

.breadcrumb-list a {
  color: var(--fs-text-sub);
}

.breadcrumb-list a:hover {
  color: var(--fs-blue);
}

.breadcrumb-separator {
  color: #cbd5e1;
  font-size: 12px;
}

/* 标题区规范 */
.section-title-wrap {
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--fs-navy);
  line-height: 1.3;
}

/* 产品中心分类筛选侧边栏 (Products Sidebar) */
.cat-filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: var(--fs-text-main);
  font-size: 14px;
  border-radius: 4px;
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.cat-filter-link:hover {
  background: var(--fs-bg-gray);
  color: var(--fs-blue);
}

.cat-filter-link.active {
  background: var(--fs-blue) !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* FS 标准产品网格与卡片 (Product Grid & Cards) */
.product-grid-fs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card-fs {
  background: #ffffff;
  border: 1px solid var(--fs-border);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-fs:hover {
  border-color: var(--fs-blue);
  box-shadow: var(--fs-shadow-md);
  transform: translateY(-2px);
}

.card-badge-hot, .card-badge-stock {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  z-index: 20 !important;
  pointer-events: none;
  transform: translateZ(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-badge-hot {
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fca5a5;
}

.card-badge-stock {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.product-thumb-fs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  background: #ffffff;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  padding: 8px;
}

.product-thumb-fs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card-fs:hover .product-thumb-fs img {
  transform: scale(1.06);
}

.product-model-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--fs-blue);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-title-fs {
  font-size: 15px;
  font-weight: 700;
  color: var(--fs-navy);
  line-height: 1.4;
  margin-bottom: 12px;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-title-fs:hover {
  color: var(--fs-blue);
}

.product-info-fs {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-specs-fs, .product-specs-list-fs {
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-bottom: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-row-fs, .product-specs-list-fs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 3px 0;
  line-height: 1.4;
  border-bottom: 1px dashed #f1f5f9;
}

.spec-row-fs:last-child, .product-specs-list-fs li:last-child {
  border-bottom: none;
}

.spec-row-fs .k, .product-specs-list-fs .label {
  color: var(--fs-text-muted, #64748b);
  font-size: 12px;
  flex-shrink: 0;
  margin-right: 8px;
}

.spec-row-fs .v, .product-specs-list-fs .value {
  font-weight: 600;
  color: var(--fs-text-main, #0f172a);
  font-size: 12px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 65%;
}

.product-actions-fs, .product-action-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.btn-detail-fs {
  flex: 1;
  background: #f8fafc;
  color: var(--fs-text);
  border: 1px solid #cbd5e1;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-detail-fs:hover {
  background: #e2e8f0;
  color: var(--fs-blue);
  border-color: #94a3b8;
}

.btn-detail-fs:hover {
  background: var(--fs-blue);
  color: #ffffff;
}

.btn-inquire-fs {
  flex: 1;
  background: var(--fs-orange);
  color: #ffffff;
  border: 1px solid var(--fs-orange);
  text-align: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(245, 106, 0, 0.2);
}
.btn-inquire-fs:hover {
  background: #d45b00;
  border-color: #d45b00;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(245, 106, 0, 0.35);
}

.btn-inquire-fs:hover {
  background: var(--fs-orange);
  color: #ffffff;
}

/* 产品详情页组件规范 (Product Detail Elements) */
.gallery-main {
  width: 100%;
  height: 380px;
  background: #f8fafc;
  border: 1px solid var(--fs-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 12px;
}

.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.detail-info-box {
  display: flex;
  flex-direction: column;
}

.detail-sku-tag {
  display: inline-block;
  background: var(--fs-blue-light);
  color: var(--fs-blue);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.detail-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--fs-navy);
  line-height: 1.3;
  margin-bottom: 12px;
}

.detail-brief {
  font-size: 14px;
  color: var(--fs-text-sub);
  line-height: 1.7;
  margin-bottom: 20px;
}

.detail-action-panel {
  background: var(--fs-bg-gray);
  border: 1px solid var(--fs-border);
  border-radius: 6px;
  padding: 20px;
  margin-top: auto;
}

.lead-time-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #15803d;
  font-weight: 600;
  margin-bottom: 16px;
}

.btn-group-detail {
  display: flex;
  gap: 12px;
}

.btn-rfq-large {
  flex: 1.5;
  background: var(--fs-orange);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-rfq-large:hover {
  background: var(--fs-orange-hover);
  transform: translateY(-1px);
}

/* 技术规格表 (Spec Table) */
.spec-table-fs {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 13px;
  border: 1px solid var(--fs-border);
}

.spec-table-fs th, .spec-table-fs td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--fs-border);
  text-align: left;
}

.spec-table-fs th {
  background: var(--fs-bg-gray);
  color: var(--fs-navy);
  font-weight: 700;
  width: 28%;
}

.spec-table-fs td {
  color: var(--fs-text-main);
}

.spec-table-fs tr:nth-child(even) td {
  background: #fafbfc;
}

/* 优势与通用网格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--fs-border);
  padding: 16px;
  border-radius: 6px;
}

.feature-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--fs-navy);
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 12px;
  color: var(--fs-text-muted);
  line-height: 1.5;
}

/* 页脚兼容 */
.footer-main {
  width: 100%;
}

.footer-contact-info, .footer-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ================= 移动端适配补丁 ================= */
@media (max-width: 992px) {
  .product-grid-fs {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid-fs {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .product-card-fs {
    padding: 10px;
  }
  .product-thumb-fs {
    height: 130px;
    margin-bottom: 8px;
  }
  .product-title-fs {
    font-size: 13px;
    height: 36px;
    margin-bottom: 6px;
  }
  .product-specs-fs, .product-specs-list-fs {
    display: none; /* 移动端卡片收紧，隐藏次要列表 */
  }
  .product-actions-fs, .product-action-row {
    flex-direction: column;
    gap: 6px;
  }
  .product-action-row {
    flex-direction: column;
    gap: 6px;
  }
  .btn-detail-fs, .btn-inquire-fs {
    padding: 6px;
    font-size: 11px;
  }
  .gallery-main {
    height: 240px;
    padding: 10px;
  }
  .btn-group-detail {
    flex-direction: column;
  }
  .spec-table-fs {
    min-width: 500px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-grid-fs {
    grid-template-columns: 1fr;
  }
}
/* 补全最后 3 个关键布局类 */
.hero-content {
  display: flex;
  flex-direction: column;
}

.products-page-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  align-items: start;
}

.tag-label {
  font-size: 12px;
  color: var(--fs-text-muted);
}

@media (max-width: 768px) {
  .products-page-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}



/* ================= FS 标准产品网格与卡片 (全新工业增强版) ================= */
.product-grid-fs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card-fs {
  background: #ffffff;
  border: 1px solid var(--fs-border, #e2e8f0);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.product-card-fs:hover {
  border-color: var(--fs-blue, #005bb7);
  box-shadow: 0 8px 24px rgba(0, 43, 73, 0.08);
  transform: translateY(-3px);
}

/* 统一徽标体系 */
.card-badge-hot, .card-badge-tech, .card-badge-stock, .card-badge-oem {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 10;
  pointer-events: none;
  line-height: 1.2;
}

.card-badge-hot {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.card-badge-tech {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.card-badge-stock {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.card-badge-oem {
  background: #fefce8;
  color: #ca8a04;
  border: 1px solid #fef08a;
}

.product-thumb-fs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 190px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  padding: 10px;
}

.product-thumb-fs img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-fs:hover .product-thumb-fs img {
  transform: scale(1.05);
}

.product-model-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--fs-blue, #005bb7);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.product-title-fs {
  font-size: 14px;
  font-weight: 700;
  color: var(--fs-navy, #002b49);
  line-height: 1.4;
  margin-bottom: 12px;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-fs:hover .product-title-fs {
  color: var(--fs-blue, #005bb7);
}

.product-info-fs {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-specs-fs, .product-specs-list-fs {
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-bottom: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.spec-row-fs, .product-specs-list-fs li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  padding: 3px 0;
  line-height: 1.35;
  border-bottom: 1px dashed #f8fafc;
}

.spec-row-fs:last-child, .product-specs-list-fs li:last-child {
  border-bottom: none;
}

.spec-row-fs .k, .product-specs-list-fs .label {
  color: var(--fs-text-muted, #64748b);
  font-size: 12px;
  flex-shrink: 0;
  width: 68px;
}

.spec-row-fs .v, .product-specs-list-fs .value {
  font-weight: 600;
  color: var(--fs-text-main, #0f172a);
  font-size: 12px;
  text-align: right;
  flex: 1;
  word-break: break-word;
}

.product-actions-fs, .product-action-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.btn-detail-fs {
  flex: 1;
  background: #f8fafc;
  color: var(--fs-text-main, #0f172a);
  border: 1px solid #cbd5e1;
  text-align: center;
  padding: 7px 4px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-detail-fs:hover {
  background: var(--fs-blue, #005bb7);
  border-color: var(--fs-blue, #005bb7);
  color: #ffffff !important;
}

.btn-inquire-fs {
  flex: 1;
  background: var(--fs-orange, #f56a00);
  color: #ffffff !important;
  border: 1px solid var(--fs-orange, #f56a00);
  text-align: center;
  padding: 7px 4px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(245, 106, 0, 0.2);
}

.btn-inquire-fs:hover {
  background: #d45b00;
  border-color: #d45b00;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(212, 91, 0, 0.35);
}

/* ==========================================
   单品详情页顶部主导航通用横向布局
   ========================================== */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-area .logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo-area .brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--fs-dark);
  letter-spacing: -0.5px;
  display: block;
}
.logo-area .brand-sub {
  font-size: 10px;
  color: var(--fs-text-muted);
  letter-spacing: 0.5px;
  display: block;
  text-transform: uppercase;
}
.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}
.main-nav ul li a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fs-text);
  padding: 8px 4px;
  transition: var(--fs-transition);
  position: relative;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--fs-accent);
}
.main-nav ul li a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--fs-accent);
}
.btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fs-accent);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--fs-radius);
  text-decoration: none;
  transition: var(--fs-transition);
}
.btn-quote:hover {
  background: var(--fs-accent-hover);
  color: #ffffff;
}
