/* ==========================================================================
   Grades catalogue — /products/.
   Ported from 调研/preview/grades.html + assets/pages.css (owner-approved
   2026-11-09), scoped under `.xyz-grades` so none of it reaches the homepage,
   product pages or the theme chrome.
   ========================================================================== */

.xyz-grades {
  --ink: #11151A;
  --ink-2: #2C333A;
  --muted: #5E6772;
  --paper: #FFFFFF;
  --paper-2: #F2F5F8;
  --accent-900: #0B2C49;
  --accent-600: #125F96;
  --accent-100: #E2EFF8;
  --copper: #C9601F;
  --line: #E1E6EB;
  --font-display: "Archivo", "Noto Sans SC", sans-serif;
  --font-body: "IBM Plex Sans", "Noto Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans Mono", monospace;
  --xyz-g-shell: 1320px;
  --xyz-g-gutter: 32px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
.xyz-grades *,
.xyz-grades *::before,
.xyz-grades *::after { box-sizing: border-box; }
.xyz-grades h1,
.xyz-grades h2,
.xyz-grades h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.xyz-grades p { margin: 0; }
.xyz-grades img { display: block; max-width: 100%; height: auto; }
.xyz-g-shell {
  width: min(100% - 2 * var(--xyz-g-gutter), var(--xyz-g-shell));
  margin-inline: auto;
}
.xyz-grades .mono-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.xyz-grades .crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.xyz-grades .crumbs a { color: var(--muted); text-decoration: none; }
.xyz-grades .crumbs a:hover { color: var(--accent-600); }
.xyz-grades .crumbs i { font-style: normal; opacity: .5; }
.xyz-grades .crumbs b { font-weight: 400; color: var(--accent-600); }

/* ----------------------------------------------------------- page head --- */

.xyz-grades .ghead {
  padding: clamp(52px, 6.4vw, 88px) 0 clamp(30px, 4vw, 46px);
  background: var(--accent-900);
  color: #fff;
}
.xyz-grades .ghead__inner {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 32px;
  align-items: end;
}
.xyz-grades .ghead h1 {
  max-width: 17ch;
  font-size: clamp(38px, 4.9vw, 62px);
  font-weight: 300;
  line-height: .99;
  letter-spacing: -.035em;
  color: #fff;
}
.xyz-grades .ghead h1 em { font-style: normal; color: #8FC7EC; }
.xyz-grades .ghead__lead {
  max-width: 58ch;
  margin-top: 20px;
  color: rgba(255, 255, 255, .74);
  font-size: 16.5px;
  line-height: 1.65;
}
.xyz-grades .ghead .crumbs { color: rgba(255, 255, 255, .55); }
.xyz-grades .ghead .crumbs a { color: rgba(255, 255, 255, .55); }
.xyz-grades .ghead .crumbs a:hover { color: #fff; }
.xyz-grades .ghead .crumbs b { color: #8FC7EC; }
.xyz-grades .gcount {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
}
.xyz-grades .gcount b {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 116px);
  font-weight: 300;
  line-height: .8;
  letter-spacing: -.05em;
  color: #fff;
}
.xyz-grades .gcount span {
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.xyz-grades .gdate {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: right;
  color: rgba(255, 255, 255, .5);
}

/* ------------------------------------------------------------- featured --- */

.xyz-grades .gfeat {
  padding: clamp(26px, 3.4vw, 38px) 0 clamp(28px, 3.6vw, 42px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.xyz-grades .gfeat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.xyz-grades .gfeat__head a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-600);
  text-decoration: none;
  white-space: nowrap;
}
.xyz-grades .gfeat__head a:hover { color: var(--accent-900); }
.xyz-grades .gfeat__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.xyz-grades .pcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.xyz-grades .pcard figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  margin: 0;
  background: var(--paper-2);
}
.xyz-grades .pcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}
.xyz-grades .pcard:hover img { transform: scale(1.04); }
.xyz-grades .pcard__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 16px 15px;
}
.xyz-grades .pcard__brand {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--copper);
}
.xyz-grades .pcard h3 {
  margin: 4px 0 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.2;
}
.xyz-grades .pcard p { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.xyz-grades .pcard__meta {
  margin-top: auto;
  padding-top: 9px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .05em;
  color: var(--muted);
}

/* --------------------------------------------------------------- filter --- */

.xyz-grades .gfilter {
  position: sticky;
  top: 81px;
  z-index: 20;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.admin-bar .xyz-grades .gfilter { top: 113px; }
.xyz-grades .gfilter__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
.xyz-grades .gfilter__label {
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.xyz-grades .gsearch {
  display: flex;
  flex: 1 1 240px;
  align-items: center;
  gap: 9px;
  min-width: 200px;
  height: 40px;
  border-bottom: 1px solid var(--line);
}
.xyz-grades .gsearch svg { flex: 0 0 auto; color: var(--muted); }
.xyz-grades .gsearch input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
/* hello-elementor reset.css gives every `select` width:100%, which fought the
   filter row at desktop; the scoped rule must state its own width. */
.xyz-grades .gselect {
  width: auto;
  height: 40px;
  padding: 0 26px 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 13px) 17px, calc(100% - 8px) 17px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  appearance: none;
  cursor: pointer;
}
.xyz-grades .gtotal {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.xyz-grades .gtotal b { color: var(--accent-600); font-weight: 500; }

/* ----------------------------------------------------------- jump rail --- */

.xyz-grades .gjump { background: #fff; border-bottom: 1px solid var(--line); }
.xyz-grades .gjump__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.xyz-grades .gjump__inner::-webkit-scrollbar { display: none; }
.xyz-grades .gjump__label {
  flex: 0 0 auto;
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.xyz-grades .gjump a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.xyz-grades .gjump a span { text-transform: uppercase; }
.xyz-grades .gjump a b {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  color: var(--muted);
}
.xyz-grades .gjump a:hover,
.xyz-grades .gjump a:focus-visible { border-color: var(--ink); background: #f7f8f9; }

/* ------------------------------------------------------------- sections --- */

.xyz-grades .gbody { padding: clamp(28px, 4vw, 44px) 0 0; }
.xyz-grades .bsect { scroll-margin-top: 150px; }
.xyz-grades .bsect__head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 18px;
  margin-top: 48px;
  padding: 34px 0 18px;
  border-top: 1px solid var(--ink);
}
.xyz-grades .bsect:first-child .bsect__head { margin-top: 0; }
.xyz-grades .bsect__no {
  padding-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
}
.xyz-grades .bsect__id h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1;
  text-transform: uppercase;
}
.xyz-grades .bsect__id p {
  max-width: 64ch;
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.xyz-grades .bsect__country {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--copper);
}
.xyz-grades .bsect__count {
  padding-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.xyz-grades .bsect__link {
  padding-bottom: 3px;
  color: var(--accent-600);
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
}
.xyz-grades .bsect__link:hover { color: var(--accent-900); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- cards --- */

.xyz-grades .bgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 8px;
}
.xyz-grades .bcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.xyz-grades .bcard:hover { border-color: var(--ink-2); background: #fbfbfa; }
.xyz-grades .bcard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xyz-grades .bcard__type {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 34px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .09em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--muted);
}
.xyz-grades .bcard__type::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fam, #c9c4bc);
}
.xyz-grades .bcard[data-family="emulsions"] { --fam: #6f8794; }
.xyz-grades .bcard[data-family="rdp"] { --fam: #b9a37a; }
.xyz-grades .bcard[data-family="silicone"] { --fam: #7d8f7e; }
.xyz-grades .bcard[data-family="admixture"] { --fam: #b08a5a; }
.xyz-grades .bcard[data-family="defoamer"] { --fam: #8a7f96; }
.xyz-grades .bcard[data-family="rheology"] { --fam: #9a9a8f; }
.xyz-grades .bcard[data-family="dispersant"] { --fam: #5f7f86; }
.xyz-grades .bcard[data-family="other"] { --fam: #8f8a84; }
.xyz-grades .bcard__model {
  padding-right: 26px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.2;
  color: var(--ink);
}
.xyz-grades .bcard__meta {
  position: absolute;
  right: 12px;
  bottom: 11px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-600);
  opacity: 0;
  transition: opacity .2s ease;
}
.xyz-grades .bcard:hover .bcard__meta,
.xyz-grades .bcard:focus-visible .bcard__meta { opacity: 1; }

/* --------------------------------------------------------- empty/note --- */

.xyz-grades .gempty {
  padding: 64px 0;
  text-align: center;
  color: var(--muted);
}
.xyz-grades .gempty b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  color: var(--ink);
}
.xyz-grades .ghidden { display: none !important; }
.xyz-grades .note-line {
  max-width: 78ch;
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.xyz-grades .note-line b { color: var(--ink-2); font-weight: 500; }

/* ----------------------------------------------------------------- CTA --- */

.xyz-grades .gcta {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(56px, 7vw, 80px) 0;
  background: var(--accent-600);
  color: #fff;
}
.xyz-grades .gcta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.xyz-grades .gcta h2 {
  max-width: 16ch;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.05;
}
.xyz-grades .gcta p {
  margin-top: 14px;
  color: #DCE8FF;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .03em;
}
.xyz-grades .gbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #fff;
  background: #fff;
  color: var(--accent-900);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.xyz-grades .gbtn:hover { background: var(--accent-100); border-color: var(--accent-100); color: var(--accent-900); }

/* --------------------------------------------------------------- widths --- */

@media (hover: none) { .xyz-grades .bcard__meta { display: none; } }
@media (max-width: 1180px) { .xyz-grades .bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .xyz-grades .gfeat__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px) {
  .xyz-grades .ghead__inner { grid-template-columns: 1fr; align-items: start; }
  .xyz-grades .gcount { justify-content: flex-start; }
  .xyz-grades .gdate { text-align: left; }
}
@media (max-width: 900px) { .xyz-grades .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .xyz-grades .gfilter { position: static; }
  body.admin-bar .xyz-grades .gfilter { top: auto; }
  .xyz-grades .gfilter__label { display: none; }
  .xyz-grades .gsearch { flex: 1 1 100%; }
  .xyz-grades .gselect { flex: 1 1 100%; width: 100%; }
  .xyz-grades .gtotal { flex: 1 1 100%; margin: 2px 0 0; }
  .xyz-grades .bsect__head { grid-template-columns: 1fr; gap: 7px; margin-top: 34px; padding-top: 28px; }
  .xyz-grades .bsect__no { display: none; }
  .xyz-grades .bsect__count,
  .xyz-grades .bsect__link { padding: 0; }
  .xyz-grades .gjump { display: none; }
  .xyz-grades .bsect { scroll-margin-top: 100px; }
}
@media (max-width: 760px) {
  .xyz-g-shell { width: min(100% - 48px, var(--xyz-g-shell)); }
}
@media (max-width: 640px) {
  .xyz-grades .ghead { padding-bottom: 26px; }
  .xyz-grades .ghead__lead { display: none; }
  .xyz-grades .gcount b { font-size: 76px; }
  .xyz-grades .gcount span { padding-bottom: 6px; }
  .xyz-grades .gfeat__head { flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
  .xyz-grades .gfeat__head .mono-label { flex: 1 1 100%; letter-spacing: .1em; }
  .xyz-grades .pcard__body { padding: 11px 12px 13px; }
  .xyz-grades .pcard h3 { font-size: 13.5px; }
  .xyz-grades .pcard p { font-size: 11px; }
  .xyz-grades .pcard__meta { font-size: 9px; padding-top: 7px; }
}
@media (max-width: 560px) {
  .xyz-grades .bgrid { grid-template-columns: 1fr; gap: 7px; }
  .xyz-grades .bcard { min-height: 0; padding: 10px 12px; }
  .xyz-grades .bcard__model { font-size: 15px; }
  .xyz-grades .bcard__type { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .xyz-grades .pcard img,
  .xyz-grades .bcard { transition: none; }
}