/* ============================================================
   睿行国际 · 爆款选品（/xuanpin/）
   设计变量与主站一致：
   海军蓝 #1E3A8A / 品牌蓝 #1687FF / 强调橙 #FF7A1A
   圆角一律 4px，Inter + 系统中文栈
   ============================================================ */
/* 保证 hidden 属性一定生效：任何声明了 display 的类都不能盖过它
   （空状态 #emptyState 等靠 hidden 切换） */
[hidden]{display:none !important}
:root {
  --navy-900: #0B2447;
  --navy-800: #1E3A8A;
  --blue-500: #1687FF;
  --blue-400: #3B82F6;
  --blue-50:  #EFF6FF;
  --gold:     #F5C66B;
  --orange:   #FF7A1A;
  --green-600:#16A34A;
  --green-700:#166534;
  --amber-600:#D97706;
  --red-600:  #DC2626;
  --gray-900: #111827;
  --gray-700: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;
  --border:   #E5E7EB;
  --radius:   4px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,.08);
  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-900);
  font-size: 15px;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; transition: all .15s ease;
}
.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: #0F72DD; }
.btn-ghost {
  background: #fff; color: var(--navy-800); border-color: var(--gray-300);
}
.btn-ghost:hover { border-color: var(--navy-800); }
.btn-sm { height: 36px; padding: 0 18px; }

/* ---------- 顶部导航（64px，与主站一致） ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1440px; margin: 0 auto; height: 64px;
  padding: 0 46px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 18px; font-weight: 800; }
.main-nav { display: flex; gap: 32px; }
.main-nav a { font-size: 15px; color: var(--gray-700); position: relative; padding: 6px 0; }
.main-nav a:hover { color: var(--navy-800); }
.main-nav a.active { color: var(--navy-800); font-weight: 700; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -2px; width: 28px; height: 2px; background: var(--blue-500);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.login { font-size: 15px; color: var(--gray-700); }
.login:hover { color: var(--navy-800); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, #17335E 55%, var(--navy-800) 100%);
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 46px 60px; gap: 18px; text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: var(--gold); font-size: 13px; font-weight: 500;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-title { color: #fff; font-size: 42px; font-weight: 800; line-height: 1.2; }
.hero-sub { color: #C7D6EE; font-size: 16px; line-height: 1.65; max-width: 700px; }
.search-bar {
  width: 640px; max-width: 100%; height: 48px; margin-top: 4px;
  background: #fff; border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px;
  padding: 0 6px 0 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.search-bar input {
  flex: 1; border: none; outline: none; font-size: 14px;
  font-family: inherit; color: var(--gray-900); background: transparent; min-width: 0;
}
.search-bar input::placeholder { color: var(--gray-400); }
.search-bar .btn { height: 36px; padding: 0 22px; }

/* ---------- 数据统计带 ---------- */
.stats-band {
  background: #F4F5F7; padding: 0 46px 28px;
  display: flex; justify-content: center;
}
.stats-badge {
  width: 970px; max-width: 100%; height: 112px; margin-top: -0px;
  background: #fff; border-radius: 10px;
  border: 1px solid #D6D8DB;
  box-shadow: 0 2px 7px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 30px; margin-top: -56px;
}
.stat { text-align: center; }
.stat-num { font-size: 30px; font-weight: 700; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.stat-num-sm { font-size: 22px; }
.stat-label { font-size: 13px; color: var(--gray-700); margin-top: 6px; }
.stat-divider { width: 1px; height: 44px; background: var(--gray-200); }

/* ---------- 筛选区 ---------- */
.filter-section { padding: 28px 46px 0; }
.filter-panel {
  background: #fff; border: 1px solid #E6E7EA; border-radius: 8px;
  padding: 20px 24px; display: flex; flex-direction: column; gap: 16px;
}
.filter-row { display: flex; align-items: flex-start; gap: 20px; }
.filter-row-split { align-items: center; justify-content: space-between; }
.filter-label { font-size: 13px; font-weight: 500; color: var(--gray-700); }
.filter-label-block { width: 76px; flex: none; line-height: 34px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.chip {
  height: 34px; padding: 0 16px; border-radius: var(--radius);
  background: #fff; border: 1px solid #E6E7EA;
  font-size: 13px; color: var(--gray-700);
  display: inline-flex; align-items: center; cursor: pointer;
  transition: all .12s ease; user-select: none;
}
.chip:hover { border-color: var(--blue-500); color: var(--navy-800); }
.chip.active { background: var(--blue-500); border-color: var(--blue-500); color: #fff; font-weight: 500; }
.chip-group-sm { gap: 8px; }
.chip-sm { height: 32px; padding: 0 14px; }
.site-group { display: flex; align-items: center; gap: 12px; }
.sort-group { display: flex; align-items: center; gap: 18px; }
.result-count { font-size: 13px; color: var(--gray-400); }
.select-wrap {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px; border: 1px solid #E6E7EA;
  border-radius: var(--radius); background: #fff;
}
.select-wrap select {
  appearance: none; -webkit-appearance: none; border: none; outline: none;
  background: transparent; font-size: 13px; color: var(--gray-700);
  font-family: inherit; cursor: pointer; padding-right: 16px;
}
.select-wrap svg { position: absolute; right: 12px; pointer-events: none; }
.filter-divider { height: 1px; background: var(--gray-100); }

/* ---------- 产品列表 ---------- */
.grid-section { padding: 24px 46px 40px; max-width: 1440px; margin: 0 auto; }
.grid-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.gh-left { display: flex; align-items: baseline; gap: 10px; }
.gh-title { font-size: 20px; font-weight: 700; }
.gh-sub { font-size: 13px; color: var(--gray-400); }
.gh-page { font-size: 13px; color: var(--gray-700); }

.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .product-grid { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid #E6E7EA; border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-md); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.card-img {
  position: relative; aspect-ratio: 1 / 1; background: #F1F3F6;
  display: flex; align-items: center; justify-content: center;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-ph {
  text-align: center; color: var(--gray-400);
}
.card-img-ph .ph-code { font-size: 13px; letter-spacing: .06em; font-weight: 600; color: #B7BECA; }
.card-img-ph .ph-cat { font-size: 12px; margin-top: 4px; }
.badge {
  position: absolute; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 8px; border-radius: var(--radius); font-size: 11px; font-weight: 500;
}
.badge-verified { top: 12px; left: 12px; background: #fff; color: var(--green-700); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.badge-verified svg { flex: none; }
.badge-auth { bottom: 12px; left: 12px; color: #fff; }
.badge-auth.exclusive { background: var(--orange); }
.badge-auth.nonsx { background: var(--navy-800); }
.card-body {
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.card-meta { display: flex; justify-content: space-between; font-size: 12px; }
.card-meta .cat { color: var(--gray-400); }
.card-meta .site { color: var(--blue-400); font-weight: 500; }
.card-title {
  font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--gray-900);
  height: 48px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card-metrics { display: flex; align-items: center; height: 42px; }
.metric { flex: 1; }
.metric .v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.metric .l { font-size: 11px; color: var(--gray-400); margin-top: 4px; }
.metric-divider { width: 1px; height: 26px; background: var(--gray-100); margin: 0 8px; }
.card-foot {
  margin-top: auto; border-top: 1px solid var(--gray-100);
  padding-top: 10px; display: flex; align-items: center; justify-content: space-between;
}
.patent { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--gray-700); }
.patent .bar { width: 4px; height: 12px; border-radius: 1px; background: var(--navy-800); }
.patent .no { font-family: "Inter", sans-serif; font-weight: 500; letter-spacing: .02em; }
.card-link { font-size: 13px; font-weight: 500; color: var(--blue-500); }
.card:hover .card-link { text-decoration: underline; }

/* ---------- 空状态 / 分页 ---------- */
.empty-state { text-align: center; padding: 60px 0; color: var(--gray-500); }
.empty-state p { margin-bottom: 16px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding-top: 28px; }
.page-btn {
  min-width: 36px; height: 36px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid #E6E7EA; background: #fff; font-size: 13px; color: var(--gray-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.page-btn:hover:not(:disabled) { border-color: var(--navy-800); color: var(--navy-800); }
.page-btn.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; font-weight: 600; }
.page-btn:disabled { color: var(--gray-400); cursor: not-allowed; }
.page-dots { color: var(--gray-400); }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy-900); padding: 44px 46px 26px; }
.footer-top {
  max-width: 1440px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 40px;
}
.f-brand { max-width: 320px; }
.f-brand-name { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.f-slogan { color: #8FA6C8; font-size: 12px; line-height: 1.7; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-col-title { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.f-col a, .f-col span { color: #8FA6C8; font-size: 12px; }
.f-col a:hover { color: #fff; }
.footer-divider { max-width: 1440px; margin: 24px auto; height: 1px; background: rgba(255,255,255,.12); }
.footer-bottom {
  max-width: 1440px; margin: 0 auto;
  display: flex; justify-content: space-between; color: #8FA6C8; font-size: 12px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .topbar-inner, .filter-section, .grid-section, .hero, .stats-band, .footer { padding-left: 24px; padding-right: 24px; }
  .main-nav { display: none; }
  .footer-top { flex-wrap: wrap; }
  .stats-badge { flex-wrap: wrap; height: auto; padding: 20px 30px; gap: 20px; justify-content: center; }
  .stat-divider { display: none; }
}
@media (max-width: 560px) {
  .hero-title { font-size: 32px; }
  .filter-row { flex-direction: column; gap: 10px; }
  .filter-label-block { line-height: 1.5; }
  .filter-row-split { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
