/* 工厂搜索页 + 产品页 Suppliers tab 共用样式
   首页态：Google 式居中 hero + 大搜索框 + FAQ accordion
   结果态：顶部搜索条 + 供应商卡片列表
   卡片 .fs-card 系列同时用于 /tools/factory-search.html 与 /product/suppliers-*.html */

/* ============ 首页（Google 式） ============ */
.fs-home {
  min-height: calc(100vh - 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
  text-align: center;
}
@media (max-width: 640px) {
  .fs-home { min-height: calc(100vh - 260px); padding: 32px 16px 48px; }
}

/* 标题：工厂图标 + 渐变文字（去掉站点 logo，避免与导航重复） */
.fs-home-title {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.fs-home-title-ico {
  display: inline-flex;
  filter: drop-shadow(0 4px 10px rgba(25, 86, 255, .25));
}
.fs-home-title-text {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(90deg, #1956ff 0%, #7c3aed 55%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@media (max-width: 640px) {
  .fs-home-title { gap: 10px; }
  .fs-home-title-ico svg { width: 30px; height: 30px; }
  .fs-home-title-text { font-size: 27px; letter-spacing: -0.5px; }
}

.fs-home-sub {
  margin: 0 0 30px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
}

/* 大号圆角搜索框（Google 风格：边框 + focus 浮起阴影） */
.fs-searchbox {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 50px;
  background: #fff;
  border: 1px solid #dfe1e5;
  border-radius: 25px;
  display: flex;
  align-items: center;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.fs-searchbox:hover,
.fs-searchbox:focus-within {
  box-shadow: 0 1px 6px rgba(32, 33, 36, .28);
  border-color: transparent;
}
.fs-searchbox .fs-search-icon {
  flex: 0 0 auto;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa0a6;
}
.fs-searchbox input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: #111827;
}
.fs-searchbox input::placeholder { color: #9aa0a6; }
.fs-searchbox .fs-clear {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: #6b7280;
  font-size: 16px;
  line-height: 1;
}
.fs-searchbox .fs-clear:hover { background: #f1f3f4; }
.fs-searchbox .fs-go {
  flex: 0 0 auto;
  margin: 0 6px;
  height: 38px;
  padding: 0 20px;
  border: none;
  border-radius: 19px;
  background: #1956ff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.fs-searchbox .fs-go:hover { background: #0f44d6; }

.fs-home-tip {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: #9aa0a6;
}

/* FAQ accordion（"rfq"） */
.fs-faq {
  width: 100%;
  max-width: 640px;
  margin-top: 48px;
  text-align: left;
}
.fs-faq h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  text-align: center;
}
.fs-faq details {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}
.fs-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fs-faq summary::-webkit-details-marker { display: none; }
.fs-faq summary::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 600;
  color: #9aa0a6;
}
.fs-faq details[open] summary::after { content: '−'; }
.fs-faq summary:hover { background: #f8f9fa; }
.fs-faq .fs-faq-a {
  padding: 0 16px 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #6b7280;
}

/* ============ 结果页 ============ */
.fs-results { padding: 0 0 56px; min-height: 60vh; }

.fs-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
}
.fs-topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.fs-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dfe1e5;
  background: #fff;
  color: #374151;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.fs-back:hover { background: #f8f9fa; }
.fs-topbar form {
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
  min-width: 0;
}
.fs-topbar input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 420px;
  height: 40px;
  border: 1px solid #dfe1e5;
  border-radius: 20px;
  padding: 0 16px;
  font-size: 14.5px;
  color: #111827;
  outline: none;
}
.fs-topbar input:focus { border-color: #1956ff; box-shadow: 0 0 0 3px rgba(25, 86, 255, .12); }
.fs-topbar .fs-top-btn {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 20px;
  background: #1956ff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.fs-topbar .fs-top-btn:hover { background: #0f44d6; }
@media (max-width: 640px) {
  .fs-topbar-inner { flex-wrap: wrap; }
  .fs-topbar form { order: 2; width: 100%; }
  .fs-topbar input { max-width: none; }
}

.fs-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 20px 0;
}
.fs-count {
  margin: 4px 0 16px;
  font-size: 13.5px;
  color: #6b7280;
}

/* ============ 供应商卡片（两页共用） ============ */
.fs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
@media (max-width: 640px) { .fs-list { grid-template-columns: 1fr; } }

.fs-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.fs-card:hover { box-shadow: 0 4px 16px rgba(15, 23, 42, .08); border-color: #d1d5db; }

.fs-card-names { display: flex; flex-direction: column; gap: 2px; }
.fs-name-en {
  font-size: 16.5px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  line-height: 1.35;
}
.fs-name-en:hover { color: #1956ff; text-decoration: underline; }
.fs-name-cn {
  font-size: 13.5px;
  color: #6b7280;
  text-decoration: none;
  line-height: 1.4;
}
.fs-name-cn:hover { color: #1956ff; text-decoration: underline; }

.fs-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  font-size: 13px;
}
.fs-field { display: flex; gap: 8px; min-width: 0; }
.fs-field-label { flex: 0 0 128px; color: #9ca3af; }
.fs-field-value { flex: 1 1 auto; min-width: 0; color: #374151; word-break: break-word; }
.fs-field-value a { color: #1956ff; text-decoration: none; }
.fs-field-value a:hover { text-decoration: underline; }
.fs-addr { background: none; }

/* 命中理由 chips */
.fs-hits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
}
.fs-hits-label { font-size: 12px; color: #9ca3af; }
.fs-hit-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1956ff;
  font-size: 12px;
  line-height: 1.5;
}
.fs-hit-chip b { font-weight: 700; }
.fs-hit-chip .fs-hit-alias { font-style: italic; color: #6b7280; font-size: 12px; }
.fs-hit-more { background: #f3f4f6; color: #6b7280; }

/* 空态 */
.fs-empty-card {
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}
.fs-empty-card b { color: #111827; }

/* 分页 */
.fs-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}
.fs-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 13.5px;
  cursor: pointer;
}
.fs-page-btn:hover:not(:disabled) { background: #f8f9fa; border-color: #c6c9ce; }
.fs-page-btn.is-active { background: #1956ff; border-color: #1956ff; color: #fff; font-weight: 700; }
.fs-page-btn:disabled { opacity: .45; cursor: default; }
.fs-page-ellipsis { color: #9ca3af; padding: 0 2px; }

/* 登录/重试按钮（结果页提示卡内） */
.fs-login-inline .fs-login-btn,
.fs-retry-btn {
  display: inline-block;
  height: 38px;
  padding: 0 18px;
  margin-top: 8px;
  border: none;
  border-radius: 19px;
  background: #1956ff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.fs-login-inline .fs-login-btn:hover,
.fs-retry-btn:hover { background: #0f44d6; }

/* ============ 产品页 Suppliers tab 容器 ============ */
.fs-suppliers-page { max-width: 1080px; margin: 0 auto; padding: 4px 20px 48px; }
.fs-suppliers-title { margin: 12px 0 4px; font-size: 22px; font-weight: 700; color: #111827; }
.fs-suppliers-loading { margin: 16px 0; color: #6b7280; font-size: 14px; }
.fs-login-inline {
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #eef4ff;
  border: 1px solid #d6e2ff;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: #1f2937;
}
.fs-login-inline a {
  padding: 8px 18px;
  border-radius: 8px;
  background: #1956ff;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
