/* web2 在 sea-flying 原站样式之上的少量适配（React 版交互/补缺） */

/* ---------- 公司名称文字标（来自 jz_setting，替代原站 logo 图） ---------- */
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  max-width: 320px;
}
.brand-wordmark:hover { text-decoration: none; }
.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  background: linear-gradient(135deg, #0f75bc, #00a0e3);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
}
.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  color: #0f4f86;
  letter-spacing: -0.2px;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-mark { box-shadow: 0 2px 8px rgba(0,0,0,.25); }
@media screen and (max-width: 575px) {
  .brand-name { font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; }
}

/* ---------- 移动端汉堡按钮 + 抽屉菜单 ---------- */
#menu-toggle {
  display: none;
  width: 34px;
  height: 30px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}
#menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  margin: 5px 0;
  background: #0f75bc;
  border-radius: 2px;
  transition: all .25s ease;
}
#menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#menu-toggle.is-open span:nth-child(2) { opacity: 0; }
#menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

header .mobile-nav ul { list-style: none; margin: 12px 0 0; padding: 0; }
header .mobile-nav li {
  border-top: 1px solid #eee;
}
header .mobile-nav li a {
  display: block;
  padding: 12px 6px;
  color: #0f4f86;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
header .mobile-nav li a:hover { color: #9acb3e; }

@media screen and (max-width: 991px) {
  header .desktop-nav { display: none !important; }
  #menu-toggle { display: block; }
  /* 让 LOGO 与汉堡按钮同处一行并垂直居中（col-md-2/col-md-10 在窄屏下默认会换行堆叠） */
  header.site-header .row { align-items: center; }
  header.site-header .col-md-2 {
    flex: 0 0 auto;
    width: auto;
    max-width: 75%;
  }
  header.site-header .col-md-10 {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    align-items: center !important;
  }
}

/* ---------- 首页 line card 品牌网格 ---------- */
.brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}
.brand-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 64px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid #e4e9ee;
  border-radius: 6px;
  color: #0f4f86;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(15, 117, 188, .06);
  transition: all .2s ease;
}
.brand-item:hover {
  border-color: #9acb3e;
  color: #0f75bc;
  transform: translateY(-2px);
  text-decoration: none;
}

/* 首页热门产品 viewall 按钮兜底 */
.viewallrow { justify-content: center; margin-top: 18px; }

/* 「上传 BOM」下拉：无 Bootstrap JS/Popper 时，保证菜单定位与显隐正确 */
.banner-bom-buttons .dropdown { position: relative; }
.banner-bom-buttons .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  min-width: 100%;
  margin-top: 4px;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

/* ---------- 内页通用容器 ---------- */
.sf-page { padding: 50px 0 70px; }
.sf-page .container { max-width: 1200px; }
.sf-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #0f4f86;
  font-size: 26px;
  margin-bottom: 8px;
}
.sf-divider { width: 60px; height: 3px; background: #9acb3e; margin: 12px 0 26px; }
.sf-prose { color: #4a5560; line-height: 1.9; font-size: 15.5px; }
.sf-prose p { margin-bottom: 16px; }

/* ---------- 卡片网格（质量/服务/产品/新闻） ---------- */
.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.sf-card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  padding: 26px 24px;
  box-shadow: 0 4px 14px rgba(15, 79, 134, .05);
  transition: all .2s ease;
}
.sf-card:hover { box-shadow: 0 10px 26px rgba(15, 79, 134, .1); transform: translateY(-3px); }
.sf-card h3 { color: #0f4f86; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.sf-card p { color: #5a6570; line-height: 1.8; font-size: 14.5px; margin: 0; }
.sf-card .num { color: #9acb3e; font-weight: 800; font-size: 30px; font-family: 'Montserrat', sans-serif; line-height: 1; margin-bottom: 12px; }

/* ---------- 产品/新闻卡片 ---------- */
.media-card { background: #fff; border: 1px solid #e8edf2; border-radius: 8px; overflow: hidden; transition: all .2s ease; }
.media-card:hover { box-shadow: 0 10px 26px rgba(15, 79, 134, .1); transform: translateY(-3px); }
.media-card .thumb { display: block; height: 200px; background: #f3f6f9; overflow: hidden; }
.media-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-card .body { padding: 18px 20px; }
.media-card .body h3 { color: #0f4f86; font-size: 17px; font-weight: 700; margin-bottom: 8px; font-family: 'Montserrat', sans-serif; }
.media-card .body .meta { color: #9aa7b2; font-size: 12.5px; margin-bottom: 8px; }
.media-card .body p { color: #5a6570; font-size: 14px; line-height: 1.7; margin: 0; }

/* ---------- 库存搜索表 ---------- */
.stock-toolbar { display: flex; gap: 10px; margin-bottom: 22px; max-width: 640px; }
.stock-toolbar input { flex: 1; height: 44px; border: 1px solid #cdd6df; border-radius: 4px 0 0 4px; padding: 0 14px; font-size: 14px; outline: none; }
.stock-toolbar button { height: 44px; padding: 0 26px; border: none; background: #9acb3e; color: #fff; font-weight: 600; border-radius: 0 4px 4px 0; cursor: pointer; }
.stock-toolbar button:hover { background: #8ab537; }
.badge-avail { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-avail.in { background: #e8f5e9; color: #2e7d32; }
.badge-avail.d7 { background: #fff3e0; color: #ef6c00; }
.badge-avail.pre { background: #eceff1; color: #607d8b; }

/* ---------- 表单 ---------- */
.sf-form { max-width: 720px; }
.sf-form .field { margin-bottom: 18px; }
.sf-form label { display: block; font-weight: 600; color: #3b4651; font-size: 14px; margin-bottom: 6px; }
.sf-form input, .sf-form textarea, .sf-form select {
  width: 100%; border: 1px solid #cdd6df; border-radius: 4px; padding: 11px 13px; font-size: 14px; outline: none; background: #fff;
}
.sf-form input:focus, .sf-form textarea:focus { border-color: #0f75bc; }
.sf-form textarea { min-height: 130px; resize: vertical; }
.sf-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sf-btn { display: inline-block; background: #0f75bc; color: #fff; border: none; border-radius: 4px; padding: 12px 34px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
.sf-btn:hover { background: #0c6098; color: #fff; }
.sf-note { padding: 10px 14px; border-radius: 4px; font-size: 14px; margin-top: 14px; }
.sf-note.ok { background: #e8f5e9; color: #2e7d32; }
.sf-note.err { background: #fdecea; color: #c62828; }

/* ---------- 联系方式块 ---------- */
.contact-info { line-height: 2.1; color: #4a5560; font-size: 15px; }
.contact-info strong { color: #0f4f86; }
.contact-info a { color: #0f75bc; }

/* ---------- 内页 banner 文本 ---------- */
.page-banner .breadcrumbz { color: #fff; font-size: 13px; opacity: .9; }
.dropdown-menu-static a { display: block; }
