:root {
  --navy-950: #021326;
  --blue-400: #3d7de2;
  --orange: #ff5a14;
  --ivory: #f6f8fb;
  --line: rgba(145, 181, 225, .3);
  --content: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; color: var(--ivory); background: var(--navy-950); font-family: Inter, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #ff7b42; outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 16px; color: #07152d; background: #f3f6fa; text-decoration: none; transform: translateY(-170%); transition: transform 180ms ease; }
.skip-link:focus { transform: translateY(0); }

.product-catalog {
  position: relative;
  isolation: isolate;
  padding-bottom: 96px;
  background:
    radial-gradient(circle at 78% 6%, rgba(35, 97, 188, .23), transparent 24%),
    radial-gradient(circle at 9% 60%, rgba(17, 78, 154, .2), transparent 27%),
    linear-gradient(155deg, #021326 0%, #061f3e 44%, #03172f 76%, #021326 100%);
}

.catalog-container { width: min(calc(100% - 176px), var(--content)); margin-inline: auto; }
.catalog-intro { position: relative; min-height: 430px; overflow: hidden; scroll-margin-top: 24px; background: linear-gradient(120deg, rgba(4, 25, 51, .32), rgba(10, 43, 84, .15)); }
.intro-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; align-items: center; min-height: 430px; padding: 58px 0 70px; }
.intro-copy { max-width: 610px; }
.intro-rule { display: block; width: 60px; height: 3px; margin-bottom: 22px; background: var(--blue-400); }
.eyebrow, .product-category { letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { margin: 0 0 17px; color: var(--blue-400); font-size: 12px; font-weight: 800; }
.intro-copy h1 { margin: 0; color: var(--ivory); font-size: clamp(58px, 6vw, 88px); font-weight: 820; line-height: .94; letter-spacing: -.055em; }
.intro-description { max-width: 520px; margin: 29px 0 0; color: #c4d0df; font-size: 17px; line-height: 1.65; }

.catalog-gallery { padding: 0 0 28px; }
.category-section { padding: 0 0 72px; scroll-margin-top: 18px; }
.category-section:focus, .catalog-intro:focus { outline: none; }
.category-section + .category-section { border-top: 1px solid rgba(145, 181, 225, .14); }
.category-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 48px 0 25px; }
.category-heading > div { min-width: 0; }
.category-index { display: inline-flex; align-items: center; gap: 13px; margin: 0 0 8px; color: var(--blue-400); font-size: 13px; font-weight: 850; letter-spacing: .12em; }
.category-index::after { content: ""; width: 44px; height: 2px; background: currentColor; }
.category-heading h2 { margin: 0; color: #f4f7fb; font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -.035em; }
.category-count { margin: 0 0 4px; color: #8299b6; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.product-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; display: grid; grid-template-rows: auto minmax(170px, 1fr); grid-column: span 4; min-height: 390px; overflow: hidden; scroll-margin-top: 32px; border: 1px solid var(--line); background: radial-gradient(circle at 68% 60%, rgba(39, 101, 181, .22), transparent 42%), linear-gradient(145deg, rgba(16, 55, 98, .9), rgba(5, 29, 58, .98)); box-shadow: 0 28px 60px rgba(0, 0, 0, .16); transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease; }
.product-card:hover { z-index: 2; border-color: rgba(83, 139, 220, .68); box-shadow: 0 34px 70px rgba(0, 0, 0, .28); transform: translateY(-5px); }
.product-detail-link { position: absolute; z-index: 5; inset: 0; }
.product-detail-link:focus-visible { outline: 3px solid #ff7b42; outline-offset: -5px; }
.product-card--hero, .product-card--wide { grid-column: span 12; grid-template-columns: minmax(260px, .7fr) minmax(430px, 1.3fr); grid-template-rows: minmax(420px, auto); min-height: 420px; }
.product-card--half { grid-column: span 6; min-height: 465px; }
.product-card--third { grid-column: span 4; min-height: 390px; }
.product-card--angled { clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); background: linear-gradient(132deg, #04182f 0%, #082b54 78%, #104f99 100%); }
.product-card--wide { min-height: 360px; }
.product-meta { position: relative; z-index: 3; padding: 28px 30px 0; }
.product-card--hero .product-meta, .product-card--wide .product-meta { align-self: center; padding: 44px 42px; }
.product-number { display: inline-flex; align-items: center; gap: 13px; margin: 0 0 22px; color: var(--blue-400); font-size: 18px; font-weight: 850; }
.product-number::after { content: ""; width: 46px; height: 2px; background: var(--blue-400); }
.product-category { margin: 0 0 9px; color: #3f80e0; font-size: 10px; font-weight: 850; }
.product-card h2 { margin: 0; color: #f4f7fb; font-size: clamp(22px, 2.1vw, 31px); line-height: 1.1; letter-spacing: -.03em; }
.sale-badge { display: inline-block; margin-top: 15px; padding: 7px 11px 6px; color: #fff; background: var(--orange); font-size: 11px; font-weight: 850; line-height: 1; }

.product-visual { position: relative; z-index: 1; display: grid; place-items: center; min-height: 0; margin: 12px 26px 26px; overflow: hidden; background: transparent; }
.product-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 43%, rgba(3, 20, 39, .24) 100%); }
.product-visual img { width: 100%; height: 100%; max-height: 350px; object-fit: contain; filter: drop-shadow(0 22px 20px rgba(0, 0, 0, .28)); transform: scale(1); transition: transform 340ms cubic-bezier(.22, .74, .25, 1); }
.product-card:hover .product-visual img { transform: scale(1.035); }
.product-card--hero .product-visual, .product-card--wide .product-visual { margin: 24px 38px 24px 0; }
.product-card--hero .product-visual img { max-height: 370px; }
.product-card--hero:hover .product-visual img { transform: scale(1.035); }
.product-card--wide .product-visual img { max-height: 300px; }
.product-card--angled .product-visual { margin-right: 70px; }

.category-rail { position: fixed; z-index: 15; top: 50%; right: max(14px, calc((100vw - 1440px) / 2 + 14px)); display: flex; flex-direction: column; align-items: center; gap: 0; width: 78px; max-height: calc(100vh - 120px); padding: 8px 0 54px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; transform: translateY(-50%); }
.category-rail::-webkit-scrollbar { display: none; }
.rail-track {
  position: absolute;
  z-index: -1;
  top: 28px;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(158, 178, 205, .62) 0%,
    rgba(158, 178, 205, .62) 68%,
    rgba(158, 178, 205, .34) 82%,
    rgba(158, 178, 205, .08) 95%,
    transparent 100%
  );
  transform: translateX(-50%);
}
.rail-dot { position: relative; z-index: 1; flex: 0 0 auto; width: 7px; height: 7px; margin: 18px 0; border: 1px solid #aebdd2; border-radius: 50%; background: #061c37; box-shadow: 0 0 0 3px rgba(3, 23, 47, .94); }
.rail-link { position: relative; display: grid; flex: 0 0 auto; place-items: center; width: 100%; height: 48px; color: #c1ccda; text-decoration: none; }
.rail-marker { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(174, 198, 228, .5); border-radius: 12px; background: rgba(3, 23, 47, .94); box-shadow: 0 10px 26px rgba(0, 0, 0, .2); font-size: 8px; font-weight: 850; letter-spacing: .02em; transform: rotate(45deg); transition: color 200ms ease, border-color 200ms ease, background 200ms ease, transform 200ms ease; }
.rail-link:first-of-type { height: 40px; }
.rail-link:first-of-type .rail-marker { width: 40px; height: 40px; border-radius: 10px; font-size: 8px; }
.rail-marker > span { transform: rotate(-45deg); }
.rail-link:hover, .rail-link.is-active { color: #fff; }
.rail-link:hover .rail-marker { border-color: var(--blue-400); }
.rail-link.is-active .rail-marker { border-color: #6aa0f2; color: #fff; background: linear-gradient(145deg, #347be5, #1752bd); box-shadow: 0 0 0 3px rgba(36, 104, 210, .13), 0 14px 34px rgba(0, 0, 0, .26); transform: rotate(45deg); }

@media (min-width: 821px) {
  .product-catalog { padding-bottom: 72px; }
  .catalog-gallery { padding-bottom: 12px; }
  .category-section { padding-bottom: 54px; }
  .category-heading { padding: 38px 0 20px; }
  .product-grid { gap: 14px; }

  .product-card {
    grid-template-rows: auto minmax(130px, 1fr);
    min-height: 330px;
  }
  .product-card--half { min-height: 350px; }
  .product-card--third { min-height: 330px; }
  .product-card--hero,
  .product-card--wide {
    grid-template-columns: minmax(220px, .72fr) minmax(320px, 1.28fr);
    grid-template-rows: minmax(310px, auto);
    min-height: 310px;
  }
  .product-meta { padding: 22px 26px 0; }
  .product-card--hero .product-meta,
  .product-card--wide .product-meta { padding: 30px 32px; }
  .product-number { margin-bottom: 16px; font-size: 16px; }
  .product-card h2 { font-size: clamp(20px, 1.7vw, 27px); }
  .sale-badge { margin-top: 12px; padding: 6px 10px 5px; }
  .product-visual { margin: 8px 22px 22px; }
  .product-visual img { max-height: 255px; }
  .product-card--hero .product-visual,
  .product-card--wide .product-visual { margin: 18px 30px 18px 0; }
  .product-card--hero .product-visual img { max-height: 270px; }
  .product-card--wide .product-visual img { max-height: 235px; }
  .product-card--angled .product-visual { margin-right: 58px; }

  /* Sports uses a compact editorial mosaic on desktop. */
  #sports-outdoors .product-card--hero {
    grid-column: span 7;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(190px, 1fr);
    min-height: 390px;
  }
  #sports-outdoors .product-card--hero .product-meta {
    align-self: auto;
    padding: 24px 28px 0;
  }
  #sports-outdoors .product-card--hero .product-visual {
    margin: 8px 24px 22px;
  }
  #sports-outdoors .product-card--hero .product-visual img { max-height: 255px; }
  #sports-outdoors #product-02 {
    grid-column: span 5;
    min-height: 390px;
  }
  #sports-outdoors #product-03 {
    grid-column: span 5;
    min-height: 320px;
  }
  #sports-outdoors #product-04 {
    grid-column: span 7;
    grid-template-columns: minmax(180px, .82fr) minmax(220px, 1.18fr);
    grid-template-rows: minmax(320px, auto);
    min-height: 320px;
  }
  #sports-outdoors #product-04 .product-meta { padding: 28px; }
  #sports-outdoors #product-04 .product-visual { margin-right: 24px; }
}

@media (max-width: 1100px) {
  .catalog-container { width: min(calc(100% - 144px), var(--content)); }
  .category-rail { right: 10px; }
  .product-card--hero, .product-card--wide { grid-template-columns: minmax(230px, .72fr) minmax(340px, 1.28fr); }
  #sports-outdoors .product-card--hero { grid-template-columns: 1fr; }
  #sports-outdoors #product-04 { grid-template-columns: minmax(170px, .82fr) minmax(210px, 1.18fr); }
}

@media (max-width: 820px) {
  .catalog-container { width: min(calc(100% - 48px), var(--content)); }
  .catalog-intro, .intro-layout { min-height: 390px; }
  .intro-layout { grid-template-columns: 1fr; padding: 54px 0 64px; }
  .intro-copy { position: relative; z-index: 1; }
  .product-card--third { grid-column: span 6; min-height: 420px; }
  .category-rail { top: auto; right: 16px; bottom: 14px; left: 16px; flex-direction: row; justify-content: center; gap: 8px; width: auto; max-height: none; padding: 10px; overflow: visible; border: 1px solid rgba(160, 190, 227, .24); background: rgba(2, 19, 38, .93); box-shadow: 0 14px 38px rgba(0, 0, 0, .32); transform: none; backdrop-filter: blur(12px); }
  .rail-track, .rail-dot { display: none; }
  .rail-link { flex: 1; }
  .rail-link { height: 50px; }
  .rail-marker { width: 50px; height: 50px; }
}

@media (max-width: 620px) {
  .product-catalog { padding-bottom: 72px; }
  .catalog-container { width: calc(100% - 32px); }
  .catalog-intro, .intro-layout { min-height: 360px; }
  .intro-copy h1 { font-size: clamp(48px, 16vw, 68px); }
  .intro-description { max-width: 90%; font-size: 15px; }
  .category-section { padding-bottom: 54px; }
  .category-heading { align-items: flex-start; padding: 38px 0 20px; }
  .category-heading h2 { font-size: 30px; }
  .category-count { display: none; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-card, .product-card--hero, .product-card--half, .product-card--third, .product-card--wide { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto minmax(240px, 1fr); min-height: 430px; }
  .product-card--angled { clip-path: none; }
  .product-meta, .product-card--hero .product-meta, .product-card--wide .product-meta { align-self: auto; padding: 26px 24px 0; }
  .product-card h2 { font-size: 25px; }
  .product-visual, .product-card--hero .product-visual, .product-card--wide .product-visual, .product-card--angled .product-visual { margin: 12px 22px 22px; }
  .product-visual img, .product-card--hero .product-visual img, .product-card--wide .product-visual img { max-height: 300px; }
  .category-rail { right: 8px; bottom: 8px; left: 8px; }
  .rail-marker { width: 44px; height: 44px; font-size: 7px; }
}

/* RFID 系列较多：沿用深蓝卡片与菱形锚点，采用紧凑三列展示。 */
.product-card--rfid { grid-column: span 4; grid-template-rows: auto 190px; min-height: 340px; }
.product-card--rfid h2 { font-size: 21px; line-height: 1.25; }
.product-card--rfid .product-category { line-height: 1.5; letter-spacing: .05em; }
.product-card--rfid .product-visual img { max-height: 175px; width: auto; max-width: 100%; filter: none; }
.product-card--rfid .product-visual::after { display: none; }
.category-rail { padding: 16px 0 30px; }
.rail-link, .rail-link:first-of-type { height: 36px; }
.rail-marker, .rail-link:first-of-type .rail-marker { width: 36px; height: 36px; border-radius: 9px; font-size: 6px; }
.rail-dot { width: 5px; height: 5px; margin: 10px 0; }
.catalog-retry { padding: 12px 24px; border: 1px solid #3d7de2; color: white; background: #12345b; cursor: pointer; }
.search-results a { margin-left: 16px; color: #ff793f; }
@media (max-width: 1100px) {
  .product-card--rfid { grid-column: span 6; }
}
@media (max-width: 820px) {
  .category-rail { justify-content: flex-start; gap: 12px; padding: 16px; overflow-x: auto; overflow-y: hidden; }
  .category-rail .rail-link { flex: 0 0 42px; }
}
@media (max-width: 620px) {
  .product-card--rfid { grid-column: auto; grid-template-rows: auto 180px; min-height: 330px; }
  .product-card--rfid .product-visual img { max-height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
