:root {
  --ink: #111827;
  --muted: #667085;
  --line: #dfe5ec;
  --paper: #f6f9fc;
  --white: #fff;
  --blue: #0878c9;
  --teal: #0b7f8c;
  --shadow: 0 20px 60px rgba(16, 24, 40, .08);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.58;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(223,229,236,.82);
  backdrop-filter: blur(18px);
}
.nav {
  width: min(100% - 48px, 1180px);
  height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 260px; }
.brand img { width: 118px; height: auto; display: block; }
.brand-text strong { display: block; font-size: 14px; line-height: 1.2; }
.brand-text span { color: var(--muted); font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 22px; color: #334155; font-size: 14px; font-weight: 760; }
.nav-links a:hover { color: var(--blue); }
.cta, .secondary, .ghost-button {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
}
.cta { color: var(--white); background: var(--ink); box-shadow: 0 12px 30px rgba(16, 19, 26, .16); }
.secondary { color: #263241; border-color: #cfd8e3; background: rgba(255,255,255,.86); }
.ghost-button { color: #263241; border-color: #d7e0ea; background: #fff; }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(247,249,251,.98), rgba(247,249,251,.88) 48%, rgba(247,249,251,.28)),
    url("../assets/antibody-background.png") right center / cover no-repeat;
  transition: filter .32s ease, opacity .32s ease, transform .32s ease;
}
.hero-inner {
  width: min(100% - 48px, 1180px);
  min-height: 520px;
  margin: auto;
  padding: 112px 0 92px;
  display: grid;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow, .kicker {
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
h1, h2, h3, p { margin: 0; }
h1 { max-width: 760px; margin-top: 18px; font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: 0; }
.hero-copy { max-width: 700px; margin-top: 24px; color: #475467; font-size: clamp(17px, 2vw, 21px); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.wrap { width: min(100% - 48px, 1180px); margin: auto; }
.section { padding: 76px 0; }
body > .hero,
main > section:not(.toolbar) {
  position: relative;
  isolation: isolate;
  transition: filter .32s ease, opacity .32s ease, transform .32s ease;
}
main > section:not(.toolbar) > * {
  position: relative;
  z-index: 1;
}
body > .hero::before,
main > section:not(.toolbar)::before {
  content: "";
  position: absolute;
  inset: -120px 8% auto;
  height: 260px;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,.88) 0%, rgba(190,225,255,.34) 44%, rgba(255,255,255,0) 74%);
  opacity: 0;
  transform: translateY(-24px) scale(.92);
  filter: blur(24px);
  mix-blend-mode: screen;
  transition: opacity .36s ease, transform .42s ease;
}
body > .hero:hover::before,
main > section:not(.toolbar):hover::before {
  opacity: .86;
  transform: translateY(0) scale(1);
}
body:has(> .hero:hover) main > section:not(.toolbar),
body:has(main > section:not(.toolbar):hover) > .hero,
body:has(main > section:not(.toolbar):hover) main > section:not(.toolbar):not(:hover) {
  opacity: .7;
  filter: blur(2.5px) saturate(.88);
  transform: scale(.992);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, .7fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 30px;
}
h2 { margin-top: 10px; font-size: clamp(30px, 4vw, 52px); line-height: 1.06; }
.lead { color: #586474; font-size: 18px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(16,24,40,.05);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, filter .28s ease, opacity .28s ease;
}
.stat strong { display: block; font-size: 30px; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 760; }

.toolbar {
  position: sticky;
  top: 76px;
  z-index: 10;
  padding: 14px 0;
  background: rgba(246,249,252,.94);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.toolbar-inner {
  width: min(100% - 48px, 1180px);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
}
.search-box, .sort-select {
  min-height: 42px;
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.search-box { padding: 0 14px; }
.sort-select { padding: 0 12px; }
.segmented {
  min-height: 42px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.segmented button {
  min-width: 76px;
  border: 0;
  background: transparent;
  color: #344054;
  font-weight: 800;
  cursor: pointer;
}
.segmented button.active { color: #fff; background: var(--ink); }

.catalog-layout {
  width: min(100% - 48px, 1180px);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.filters {
  position: sticky;
  top: 154px;
  max-height: calc(100vh - 170px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(16,24,40,.05);
}
.filter-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.filter-head strong { font-size: 18px; }
.filter-group { padding: 14px 0; border-top: 1px solid #eef2f6; }
.filter-group:first-of-type { border-top: 0; }
.filter-group label { display: block; margin-bottom: 8px; color: #344054; font-size: 13px; font-weight: 850; }
.filter-group select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d7e0ea;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.chip.active { color: #fff; border-color: var(--ink); background: var(--ink); }
.result-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; color: var(--muted); font-size: 14px; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(16,24,40,.055);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, filter .28s ease, opacity .28s ease;
}
.product-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.sku { color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .02em; }
.badge { padding: 4px 8px; border-radius: 999px; background: #eef7f8; color: var(--teal); font-size: 11px; font-weight: 900; white-space: nowrap; }
.product-card h3 { font-size: 20px; line-height: 1.22; }
.cn-name { color: #5b6676; font-weight: 760; }
.product-desc { color: var(--muted); font-size: 14px; }
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.meta { padding: 9px; border-radius: 6px; background: #f7fafc; }
.meta span { display: block; color: #778294; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.meta strong { display: block; margin-top: 2px; color: #263241; font-size: 13px; overflow-wrap: anywhere; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 7px; border-radius: 6px; background: #edf5fb; color: #31516d; font-size: 11px; font-weight: 800; }
.card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.table-wrap {
  display: none;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(16,24,40,.055);
}
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td { padding: 12px 14px; border-bottom: 1px solid #edf1f5; text-align: left; vertical-align: top; font-size: 13px; }
th { position: sticky; top: 0; background: #f8fafc; color: #344054; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
td strong { color: var(--ink); }

.empty {
  display: none;
  padding: 38px;
  border: 1px dashed #cfd8e3;
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.notes-grid, .guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.note-card, .guide-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(16,24,40,.05);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, filter .28s ease, opacity .28s ease;
}
.note-card strong, .guide-card strong { display: block; margin-bottom: 8px; }
.note-card p, .guide-card p { color: var(--muted); font-size: 14px; }

.stats:has(.stat:hover) .stat:not(:hover),
.cards:has(.product-card:hover) .product-card:not(:hover),
.notes-grid:has(.note-card:hover) .note-card:not(:hover),
.guide-grid:has(.guide-card:hover) .guide-card:not(:hover) {
  opacity: .56;
  filter: blur(2px) saturate(.86);
  transform: scale(.985);
}

.stat:hover,
.product-card:hover,
.note-card:hover,
.guide-card:hover {
  border-color: rgba(11, 127, 140, .3);
  box-shadow: 0 18px 46px rgba(16,24,40,.1);
  transform: translateY(-3px);
}

.stat::before,
.product-card::before,
.note-card::before,
.guide-card::before {
  content: "";
  position: absolute;
  inset: -36% 10% auto;
  height: 58%;
  z-index: 2;
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,.96) 0%, rgba(210,235,255,.5) 42%, rgba(255,255,255,0) 72%);
  opacity: 0;
  transform: translateY(-18px) scale(.9);
  filter: blur(16px);
  mix-blend-mode: screen;
  transition: opacity .3s ease, transform .34s ease;
}

.stat:hover::before,
.product-card:hover::before,
.note-card:hover::before,
.guide-card:hover::before {
  opacity: .9;
  transform: translateY(0) scale(1);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .52);
}
.modal.open { display: flex; }
.modal-panel {
  width: min(100%, 980px);
  max-height: min(86vh, 900px);
  overflow: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(0,0,0,.22);
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.modal-head h2 { margin: 6px 0 0; font-size: clamp(24px, 3vw, 34px); }
.close-button {
  width: 38px;
  height: 38px;
  border: 1px solid #d7e0ea;
  border-radius: 6px;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}
.modal-body { padding: 22px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-item { padding: 12px; border: 1px solid #edf1f5; border-radius: 6px; background: #fbfdff; }
.detail-item span { display: block; color: #778294; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.detail-item strong { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.detail-copy { margin: 18px 0; color: var(--muted); }
.ruo { margin-top: 18px; padding: 14px; border-radius: 6px; background: #eef7f8; color: #225a62; font-weight: 850; }

footer { padding: 32px 0; color: var(--muted); background: var(--white); font-size: 14px; }
.footer-inner { width: min(100% - 48px, 1180px); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .section-head, .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: block; }
  .cards, .notes-grid, .guide-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar-inner { grid-template-columns: 1fr; }
  .segmented { display: none; }
  .table-wrap { display: none !important; }
}

@media (max-width: 640px) {
  .nav, .wrap, .hero-inner, .toolbar-inner, .catalog-layout, .footer-inner { width: min(100% - 28px, 1180px); }
  .nav { height: 64px; }
  .brand img { width: 104px; }
  .brand-text { display: none; }
  .hero {
    background:
      linear-gradient(180deg, rgba(247,249,251,.98), rgba(247,249,251,.9) 56%, rgba(247,249,251,.78)),
      url("../assets/antibody-background.png") 58% center / cover no-repeat;
  }
  .hero-inner { min-height: 0; padding: 74px 0 58px; }
  h1 { font-size: clamp(36px, 11vw, 48px); }
  .hero-copy, .lead { font-size: 16px; }
  .section { padding: 54px 0; }
  .stats { grid-template-columns: 1fr; }
  .product-top, .result-line { display: block; }
  .badge { display: inline-flex; margin-top: 8px; }
  .meta-grid, .detail-grid { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
  .modal-panel { max-height: 92vh; }
}
