/* 佰洛生物 — 产品模块预览站 样式（沿用官网设计变量） */
:root {
  --primary: #0a5c8a;
  --primary-light: #0d7ab5;
  --primary-dark: #064368;
  --accent: #00a896;
  --accent-light: #00c4a7;
  --bg: #f7f9fc;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.10);
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1200px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo .icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -0.5px;
}
.nav-logo .name { font-size: 20px; font-weight: 700; color: var(--primary-dark); letter-spacing: 1px; }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text-secondary); font-weight: 500;
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--primary); background: #f0f4f8; }
.nav-links > li > a.active { color: var(--primary); font-weight: 700; }
.nav-cta {
  background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 9px 22px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.2s; letter-spacing: 0.5px; margin-left: 8px;
}
.nav-cta:hover { background: var(--primary-light); }

/* ---------- PAGE HEADER ---------- */
.page-header {
  background: linear-gradient(160deg, #eef5fb, #e8f4f8);
  text-align: center; padding: 52px 24px 44px;
}
.page-header .ph-tag {
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 8px;
}
.page-header h1 { font-size: 34px; font-weight: 700; color: var(--primary-dark); letter-spacing: 1px; margin-bottom: 10px; }
.page-header .ph-desc { font-size: 16px; color: var(--text-muted); max-width: 720px; margin: 0 auto; }

/* ---------- 数据来源标识 ---------- */
.source-bar {
  max-width: var(--max-width); margin: 0 auto; padding: 16px 24px 0;
}
.source-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 13.5px; color: var(--text-secondary);
}
.source-note .sn-tag {
  flex-shrink: 0; background: #e6f7f4; color: #067a6c; font-weight: 700;
  border-radius: 4px; padding: 2px 8px; font-size: 12px; white-space: nowrap;
}
.source-note .sn-tag.own { background: #e8f1f9; color: var(--primary-dark); }
.source-note a { color: var(--primary); text-decoration: underline; }

/* ---------- 分类导航 ---------- */
.cat-nav-wrap {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 64px; z-index: 900;
}
.cat-nav {
  max-width: var(--max-width); margin: 0 auto; padding: 14px 24px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.cat-nav .cat-label {
  font-size: 13px; color: var(--text-muted); font-weight: 600; margin-right: 4px;
}
.cat-nav button {
  border: 1px solid var(--border); background: #fff; color: var(--text-secondary);
  border-radius: 20px; padding: 7px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.cat-nav button:hover { border-color: var(--primary); color: var(--primary); background: #f0f6fb; }
.cat-nav button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-nav .count { font-size: 12px; color: var(--text-muted); margin-left: auto; }

/* ---------- 搜索 ---------- */
.search-bar { max-width: var(--max-width); margin: 0 auto; padding: 22px 24px 0; display: flex; gap: 12px; }
.search-bar input {
  flex: 1; max-width: 420px; padding: 11px 16px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); background: #fff;
}
.search-bar input:focus { outline: none; border-color: var(--primary); }
.search-bar .sort-select {
  padding: 11px 14px; font-size: 14px; font-family: inherit; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; color: var(--text-secondary);
}

/* ---------- 产品网格 ---------- */
.section { max-width: var(--max-width); margin: 0 auto; padding: 32px 24px 64px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.product-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 22px 18px; cursor: pointer; transition: box-shadow .25s, border-color .25s, transform .18s;
  position: relative; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.product-item:hover { box-shadow: var(--shadow-hover); border-color: var(--primary-light); transform: translateY(-2px); }
.product-item .pi-img {
  height: 132px; margin: -8px -8px 12px; background: #fbfcfd; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-item .pi-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-item .pi-img.pi-img-empty { color: var(--text-muted); font-size: 38px; opacity: .45; background: #f4f7fa; }
.product-item .pi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.product-item .pi-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 2px 8px; border-radius: 4px;
  background: #eef2f7; color: var(--text-muted); white-space: nowrap;
}
.product-item .pi-badge.hot { background: #fdeeee; color: #c0392b; }
.product-item .pi-tag-code {
  font-size: 12px; color: var(--text-muted); font-family: ui-monospace, Consolas, monospace;
}
.product-item h4 { font-size: 17px; font-weight: 700; color: var(--primary-dark); margin: 10px 0 6px; }
.product-item .pi-en { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.product-item .pi-meta { font-size: 13px; color: var(--text-secondary); display: grid; gap: 3px; }
.product-item .pi-meta .row { display: flex; gap: 6px; }
.product-item .pi-meta .k { color: var(--text-muted); min-width: 52px; }
.product-item .pi-apps { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.product-item .pi-apps span {
  font-size: 11.5px; background: #f0f6fb; color: var(--primary); border-radius: 4px; padding: 2px 7px;
}
.product-item .pi-price { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 14px; }
.product-item .pi-price b { color: #c0392b; font-size: 17px; }
.product-item .pi-price small { color: var(--text-muted); font-size: 12px; }
.product-item .pi-more {
  margin-top: 12px; font-size: 13px; color: var(--primary); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 15px; }

/* ---------- 详情覆盖层 ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(15,25,40,.45); z-index: 2000;
  display: none; justify-content: flex-end; backdrop-filter: blur(2px);
}
.overlay.open { display: flex; }
.panel {
  width: 640px; max-width: 100%; height: 100%; background: #fff; overflow-y: auto;
  box-shadow: -6px 0 30px rgba(0,0,0,.14); animation: slideIn .22s ease;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.panel-head {
  position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--border);
  padding: 20px 28px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; z-index: 2;
}
.panel-head h2 { font-size: 21px; color: var(--primary-dark); font-weight: 700; }
.panel-head .ph-sub { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.panel-close {
  background: #f1f4f8; border: none; width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 18px; color: var(--text-secondary); flex-shrink: 0; line-height: 1;
}
.panel-close:hover { background: #e4e9f0; }
.panel-body { padding: 24px 28px 40px; }
.panel-sec { margin-bottom: 26px; }
.panel-sec h3 {
  font-size: 14px; font-weight: 700; color: var(--primary-dark); letter-spacing: 1px;
  margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--accent);
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td {
  border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top;
}
.spec-table th { background: #f6f9fc; color: var(--text-secondary); font-weight: 600; width: 118px; }
.spec-table td { color: var(--text); }
.panel-desc { font-size: 14.5px; color: var(--text-secondary); line-height: 1.8; }
.ul-list { list-style: none; display: grid; gap: 7px; }
.ul-list li { font-size: 14px; color: var(--text-secondary); padding-left: 16px; position: relative; }
.ul-list li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  font-size: 13px; background: #f0f6fb; color: var(--primary);
  border-radius: var(--radius-sm); padding: 5px 12px;
}
.sku-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sku-table th, .sku-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.sku-table th { background: #f6f9fc; color: var(--text-secondary); font-weight: 600; }
.sku-table td.price { color: #c0392b; font-weight: 700; white-space: nowrap; }
.panel-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; border: 1px solid var(--primary); transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-ghost { background: #fff; color: var(--primary); }
.btn-ghost:hover { background: #f0f6fb; }
.note-box {
  background: #f6f9fc; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 13px; color: var(--text-secondary); line-height: 1.7;
}

/* ---------- 首页模块卡 ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }
.mod-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); transition: all .25s;
}
.mod-card:hover { box-shadow: var(--shadow-hover); border-color: var(--primary-light); transform: translateY(-2px); }
.mod-card .mc-tag {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px;
  border-radius: 4px; background: #e8f1f9; color: var(--primary-dark); margin-bottom: 12px;
}
.mod-card .mc-tag.agent { background: #e6f7f4; color: #067a6c; }
.mod-card h3 { font-size: 21px; color: var(--primary-dark); margin-bottom: 8px; }
.mod-card p { font-size: 14.5px; color: var(--text-secondary); margin-bottom: 16px; }
.mod-card ul { list-style: none; display: grid; gap: 6px; margin-bottom: 20px; }
.mod-card ul li { font-size: 13.5px; color: var(--text-muted); padding-left: 14px; position: relative; }
.mod-card ul li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%;
}
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.cmp-table th, .cmp-table td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: top; }
.cmp-table thead th { background: #f6f9fc; color: var(--primary-dark); font-weight: 700; }
.cmp-table tbody th { background: #fafcfe; color: var(--text-secondary); font-weight: 600; width: 150px; }

/* ---------- FOOTER ---------- */
.footer { background: #0d1b2a; color: #b8c4d0; padding: 44px 24px 28px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.footer-top h4 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.footer-top p { font-size: 14px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: #b8c4d0; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; font-size: 13px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-beian a { color: #8fa3b5; }
.footer-note { font-size: 12.5px; color: #7b8b9c; margin-top: 10px; }

/* ---------- 分页 ---------- */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  padding: 28px 0 16px; flex-wrap: wrap;
}
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .18s; user-select: none;
}
.pg-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: #f5f9ff; }
.pg-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.pg-btn:disabled { opacity: .35; cursor: not-allowed; background: #f8fafc; }
.pg-dots { color: var(--text-muted); padding: 0 4px; font-size: 14px; }

@media (max-width: 720px) {
  .page-header h1 { font-size: 26px; }
  .panel { width: 100%; }
  .nav-links { display: none; }
  .cat-nav { overflow-x: auto; flex-wrap: nowrap; }
  .cat-nav .count { display: none; }
}
