/* ============================================================
   Let-Lab Help-Lab · My Lab Bioproducts 示范页样式
   宽屏布局：容器 1440px · 产品网格 4 列
   ============================================================ */

:root {
  --royal: #0F4E9B;
  --royal-dark: #0B3A75;
  --royal-deep: #072A57;
  --card-blue: #1557A8;
  --cyan: #0891B2;
  --cyan-light: #22D3EE;
  --gold: #F59E0B;
  --gold-light: #FBBF24;
  --ink: #101828;
  --ink-soft: #475467;
  --gray-bg: #F8FAFC;
  --gray-line: #E4E7EC;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(7, 42, 87, 0.10);
  --shadow-lg: 0 24px 60px rgba(7, 42, 87, 0.16);
  --font-en: 'Inter', 'Helvetica Neue', sans-serif;
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-cn);
  color: var(--ink);
  background: var(--gray-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: var(--font-cn); }

.container { width: min(1440px, 94%); margin: 0 auto; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-line);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky; top: 0; z-index: 100;
}
.topbar-brand { display: flex; align-items: center; gap: 12px; }
.topbar-logo { width: 44px; height: 44px; object-fit: contain; }
.topbar-brand strong { font-family: var(--font-en); font-size: 17px; color: var(--royal-dark); }
.topbar-brand em { font-style: normal; color: var(--royal); }
.topbar-brand small { display: block; font-size: 11.5px; color: var(--ink-soft); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-link { font-size: 13.5px; color: var(--ink-soft); transition: color .2s; }
.topbar-link:hover { color: var(--royal); }
.btn-sell {
  background: var(--royal);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-sell:hover { background: var(--royal-dark); transform: translateY(-1px); }

/* ---------- 语言切换下拉 ---------- */
.lang-switch { position: fixed; top: 64px; right: 20px; z-index: 999; }
.lang-toggle {
  background: var(--royal);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  box-shadow: var(--shadow);
  transition: background .2s;
}
.lang-toggle:hover { background: var(--royal-dark); }
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 44px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 130px;
  border: 1px solid var(--gray-line);
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink);
  transition: background .15s;
}
.lang-menu button:hover { background: var(--gray-bg); color: var(--royal); }

/* ---------- Hero ---------- */
.mlp-hero {
  position: relative;
  background: linear-gradient(135deg, var(--royal-deep) 0%, var(--royal) 55%, var(--card-blue) 100%);
  color: #fff;
  padding: 90px 0 70px;
  overflow: hidden;
}
.mlp-hero-inner { position: relative; z-index: 2; text-align: center; }
.mlp-hero-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--gold-light);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.mlp-hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.mlp-hero-sub { font-size: 17px; color: rgba(255,255,255,.9); margin-bottom: 12px; }
.mlp-hero-desc {
  font-size: 14.5px;
  color: rgba(255,255,255,.72);
  max-width: 760px;
  margin: 0 auto 42px;
}
.mlp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.mlp-stats .stat {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 18px 10px;
  backdrop-filter: blur(6px);
}
.mlp-stats .stat strong {
  display: block;
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.mlp-stats .stat span { font-size: 12.5px; color: rgba(255,255,255,.82); }

/* ---------- 主区域 ---------- */
.mlp-main { padding: 44px 0 20px; }

.mlp-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--gray-line);
  background: var(--white);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  font-weight: 500;
}
.chip:hover { border-color: var(--royal); color: var(--royal); }
.chip.active {
  background: var(--royal);
  border-color: var(--royal);
  color: #fff;
}
.search-box input {
  width: 320px;
  max-width: 100%;
  padding: 10px 18px;
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  font-size: 13.5px;
  font-family: var(--font-cn);
  outline: none;
  transition: border .2s, box-shadow .2s;
  background: var(--white);
}
.search-box input:focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(15,78,155,.12); }

/* ---------- 实验室分组 ---------- */
.mlp-groups { display: flex; flex-direction: column; gap: 34px; }
.lab-group {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray-line);
}
.lab-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(90deg, rgba(15,78,155,.05), rgba(8,145,178,.04));
  border-bottom: 1px solid var(--gray-line);
  flex-wrap: wrap;
}
.lab-meta { flex: 1; min-width: 240px; }
.lab-verified {
  font-size: 11.5px;
  color: var(--royal);
  font-weight: 600;
  margin-bottom: 2px;
}
.lab-name { font-size: 19px; font-weight: 700; color: var(--royal-deep); }
.lab-sub { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); }
.lab-store-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--royal);
  padding: 8px 16px;
  border: 1px solid var(--royal);
  border-radius: 10px;
  transition: all .2s;
  white-space: nowrap;
}
.lab-store-link:hover { background: var(--royal); color: #fff; }

.lab-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 22px 24px;
}

/* ---------- 产品卡 ---------- */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15,78,155,.35);
}
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pc-cat {
  font-size: 11.5px;
  color: var(--royal);
  background: rgba(15,78,155,.08);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.pc-coa {
  font-size: 10.5px;
  color: var(--royal-dark);
  background: rgba(245,158,11,.14);
  border: 1px solid rgba(245,158,11,.4);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-en);
  font-weight: 700;
  white-space: nowrap;
}
.pc-name { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.pc-desc { font-size: 12.5px; color: var(--ink-soft); flex: 1; line-height: 1.6; }
.pc-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pc-price { font-size: 14.5px; font-weight: 800; color: var(--royal-dark); font-family: var(--font-en); }
.pc-btn {
  background: var(--royal);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.pc-btn:hover { background: var(--royal-dark); }

/* ---------- 空态 ---------- */
.mlp-loading, .mlp-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--ink-soft);
  font-size: 14px;
}
.mlp-empty .empty-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.mlp-empty .empty-sub { font-size: 13px; }

/* ---------- CTA ---------- */
.mlp-cta {
  margin-top: 48px;
  background: linear-gradient(135deg, var(--royal-deep), var(--royal));
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.mlp-cta-inner h2 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.mlp-cta-inner p { color: rgba(255,255,255,.8); font-size: 14px; margin-bottom: 22px; }
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  transition: all .25s;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn-light {
  background: #fff;
  color: var(--royal-dark);
  border-color: #fff;
}
.btn-light:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-lg { padding: 14px 34px; font-size: 15.5px; }

/* ---------- 页脚 ---------- */
.mlp-footer {
  background: var(--royal-deep);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 22px 0;
  font-size: 12.5px;
}

/* ---------- 详情弹层 ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7,42,87,.55); backdrop-filter: blur(4px); }
.modal-box {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  max-width: 620px;
  width: 92%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 34px;
  margin: 7vh auto 0;
  box-shadow: 0 30px 80px rgba(7,42,87,.35);
  animation: popIn .3s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: none;
  background: var(--gray-bg);
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink-soft);
}
.modal-loading { text-align: center; padding: 50px 0; color: var(--ink-soft); }
.pd-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.pd-cat {
  font-size: 12px;
  color: var(--royal);
  background: rgba(15,78,155,.08);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.pd-name { font-size: 22px; font-weight: 800; color: var(--royal-deep); margin-bottom: 10px; }
.pd-seller { margin-bottom: 16px; }
.pd-seller strong { display: block; font-size: 14.5px; color: var(--ink); }
.pd-seller span { font-size: 12.5px; color: var(--ink-soft); }
.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--gray-bg);
  border-radius: 12px;
}
.pd-price { font-size: 22px; font-weight: 800; color: var(--royal-dark); font-family: var(--font-en); }
.pd-unit { font-size: 13px; color: var(--ink-soft); }
.pd-section { margin-bottom: 16px; }
.pd-section h4 { font-size: 13px; font-weight: 700; color: var(--royal); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.pd-section p { font-size: 13.5px; color: var(--ink); line-height: 1.7; }
.pd-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.btn-inquire {
  background: var(--royal);
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s;
}
.btn-inquire:hover { background: var(--royal-dark); }
.btn-store {
  text-align: center;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--royal);
  border: 1px solid var(--royal);
  transition: all .2s;
}
.btn-store:hover { background: var(--royal); color: #fff; }
.pd-revenue { font-size: 11.5px; color: var(--ink-soft); text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .lab-products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .mlp-stats { grid-template-columns: repeat(2, 1fr); }
  .lab-products { grid-template-columns: repeat(2, 1fr); }
  .search-box input { width: 100%; }
  .mlp-toolbar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 620px) {
  .lab-products { grid-template-columns: 1fr; }
  .mlp-stats { grid-template-columns: repeat(2, 1fr); }
  .topbar-actions .topbar-link { display: none; }
  .mlp-hero { padding: 60px 0 50px; }
}
