:root {
  --bg: #0b0f14;
  --bg-deep: #090d12;
  --panel: #121821;
  --card: #151d27;
  --card-hover: #182330;
  --line: #334150;
  --line-soft: #25313d;
  --blue: #2f80ed;
  --blue-bright: #2aa7ff;
  --text: #f5f7fa;
  --muted: #c4cdd8;
  --weak: #7e8b9c;
  --max: 1600px;
  --radius: 14px;
  color-scheme: dark;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; border-radius: 8px; background: var(--blue); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header { position: sticky; z-index: 50; top: 0; height: 72px; border-bottom: 1px solid rgba(126,139,156,.22); background: rgba(9,13,18,.92); backdrop-filter: blur(18px); }
.header-inner { width: min(var(--max), calc(100% - 96px)); height: 100%; margin: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 42px; }
.brand { display: flex; align-items: baseline; gap: 10px; font-style: italic; letter-spacing: -.05em; }
.brand span { font-size: 28px; font-weight: 900; }
.brand small { color: var(--blue-bright); font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .2em; }
.main-nav { justify-self: end; display: flex; align-self: stretch; align-items: center; gap: 38px; }
.main-nav a { position: relative; color: var(--muted); font-size: 14px; font-weight: 650; }
.main-nav a:first-child { color: var(--text); }
.main-nav a:first-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 2px; background: var(--blue); }
.main-nav a:hover { color: var(--text); }
.language-switch { display: flex; gap: 3px; padding-left: 24px; border-left: 1px solid var(--line-soft); }
.language-switch button { min-width: 38px; padding: 7px 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--weak); cursor: pointer; font-size: 12px; font-weight: 750; }
.language-switch button[aria-pressed="true"] { border-color: var(--blue); background: rgba(47,128,237,.13); color: var(--text); }
.menu-toggle { display: none; }

.hero { position: relative; overflow: hidden; min-height: 590px; border-bottom: 1px solid var(--line-soft); background: radial-gradient(circle at 78% 42%, rgba(47,128,237,.13), transparent 28%), linear-gradient(125deg, var(--bg-deep), #0d141c 60%, var(--bg)); }
.blueprint-grid { position: absolute; inset: 0; opacity: .6; background-image: linear-gradient(rgba(47,128,237,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(47,128,237,.045) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to right, #000, transparent 75%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 150px; background: linear-gradient(transparent, rgba(11,15,20,.82)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; width: min(var(--max), calc(100% - 96px)); min-height: 590px; margin: auto; display: grid; grid-template-columns: minmax(560px, .95fr) minmax(460px, 1.05fr); align-items: center; gap: 48px; padding: 60px 0 72px; }
.eyebrow { margin: 0 0 18px; color: var(--blue-bright); font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { max-width: 770px; margin: 0; font-size: clamp(44px, 4.3vw, 72px); line-height: 1.05; letter-spacing: -.055em; }
.hero-subtitle { margin: 14px 0 0; color: var(--muted); font-size: clamp(18px, 1.8vw, 26px); font-weight: 550; letter-spacing: -.02em; }
.catalog-stats { display: flex; align-items: stretch; gap: 0; margin: 38px 0 30px; }
.catalog-stats > div { min-width: 160px; padding: 0 28px; border-left: 1px solid var(--line); }
.catalog-stats > div:first-child { padding-left: 0; border-left: 0; }
.catalog-stats strong { display: block; color: var(--blue); font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }
.catalog-stats span { display: block; margin-top: 9px; color: var(--muted); font-size: 13px; }
.search-box { position: relative; display: flex; align-items: center; width: min(780px, 100%); height: 66px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(180deg, #19222d, #141c25); box-shadow: 0 20px 50px rgba(0,0,0,.28); transition: border-color .18s ease; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,128,237,.1), 0 20px 50px rgba(0,0,0,.32); }
.search-box input { width: 100%; height: 100%; padding: 0 72px 0 60px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.search-box input::placeholder { color: var(--weak); }
.search-icon { position: absolute; left: 24px; width: 19px; height: 19px; border: 2px solid var(--weak); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 8px; height: 2px; right: -6px; bottom: -3px; background: var(--weak); transform: rotate(45deg); }
.search-box kbd { position: absolute; right: 18px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: #0e151d; color: var(--weak); font: 11px/1 Arial, sans-serif; }

.hero-visual { position: relative; min-height: 420px; }
.technical-ring { position: absolute; border: 1px solid rgba(47,128,237,.28); border-radius: 50%; }
.technical-ring::before, .technical-ring::after { content: ""; position: absolute; inset: 11%; border: inherit; border-radius: inherit; }
.technical-ring::after { inset: 25%; }
.ring-one { width: 390px; height: 390px; top: 15px; right: 8%; }
.ring-two { width: 270px; height: 270px; right: -60px; bottom: -30px; border-style: dashed; opacity: .5; }
.product-visual { position: absolute; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 28px 70px rgba(0,0,0,.42); }
.product-visual img { width: 100%; height: 100%; object-fit: contain; }
.product-visual-main { z-index: 2; width: 430px; height: 275px; right: 2%; top: 70px; border-radius: 20px 4px 20px 4px; transform: rotate(-2deg); }
.product-visual-small { z-index: 3; width: 220px; height: 140px; left: 2%; bottom: 8px; border-radius: 4px 16px 4px 16px; transform: rotate(3deg); }
.technical-label { position: absolute; z-index: 4; padding: 8px 10px; border-left: 2px solid var(--blue-bright); background: rgba(9,13,18,.88); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.label-a { top: 33px; right: 14%; }
.label-b { bottom: 36px; right: 10%; }

.catalog-section { width: min(var(--max), calc(100% - 96px)); margin: auto; padding: 32px 0 88px; }
.catalog-toolbar { position: sticky; z-index: 20; top: 72px; display: flex; justify-content: space-between; gap: 24px; margin: 0 -12px 26px; padding: 14px 12px; background: rgba(11,15,20,.93); backdrop-filter: blur(16px); }
.category-filters { display: flex; gap: 10px; min-width: 0; }
.filter-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 650; white-space: nowrap; transition: .18s ease; }
.filter-chip b { color: var(--weak); font-size: 11px; }
.filter-chip:hover { border-color: var(--blue); color: var(--text); }
.filter-chip.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.filter-chip.is-active b { color: rgba(255,255,255,.75); }
.toolbar-actions { display: flex; align-items: center; gap: 16px; }
.result-count { min-width: 88px; color: var(--weak); font-size: 12px; text-align: right; }
.view-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.view-switch button { display: grid; width: 34px; height: 30px; place-items: center; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.view-switch button.is-active { background: var(--blue); }
.grid-icon { width: 14px; height: 14px; background: linear-gradient(90deg, currentColor 42%, transparent 42% 58%, currentColor 58%), linear-gradient(currentColor 42%, transparent 42% 58%, currentColor 58%); color: var(--muted); }
.list-icon { width: 16px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; color: var(--muted); position: relative; }
.list-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); text-align: left; box-shadow: 0 10px 28px rgba(0,0,0,.12); transition: transform .18s ease-out, border-color .18s ease-out, background .18s ease-out; }
button.product-card { width: 100%; padding: 0; cursor: pointer; }
.product-card:hover { border-color: var(--blue); background: var(--card-hover); transform: translateY(-2px); }
.product-image-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line-soft); background: radial-gradient(circle at 50% 44%, #243140, #10161e 70%); }
.product-image-wrap img { width: 100%; height: 100%; padding: 18px; object-fit: contain; }
.image-oem-badge { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; max-width: calc(100% - 24px); overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: rgba(47,128,237,.94); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.28); font: 700 11px/1.2 "Roboto Mono", Consolas, monospace; }
.image-oem-badge b { flex: 0 0 auto; padding: 7px 8px; background: rgba(9,13,18,.22); letter-spacing: .08em; }
.image-oem-badge span { min-width: 0; overflow: hidden; padding: 7px 9px; text-overflow: ellipsis; white-space: nowrap; }
.image-status { position: absolute; right: 12px; bottom: 12px; padding: 6px 8px; border: 1px solid rgba(126,139,156,.35); border-radius: 6px; background: rgba(9,13,18,.82); color: var(--weak); font-size: 10px; }
.product-card-body { padding: 18px 20px 21px; }
.category-badge { display: inline-flex; padding: 5px 8px; border-radius: 5px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 750; }
.oem-label { display: block; margin-top: 16px; color: var(--weak); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.product-oem { overflow-wrap: anywhere; margin: 6px 0 10px; font-family: "Roboto Mono", Consolas, monospace; font-size: clamp(18px, 1.35vw, 23px); line-height: 1.2; letter-spacing: -.035em; }
.product-fitment { display: -webkit-box; min-height: 42px; overflow: hidden; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-grid.is-list { grid-template-columns: minmax(0, 1fr); }
.product-grid.is-list .product-card { display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.product-grid.is-list .product-image-wrap { aspect-ratio: auto; min-height: 170px; border-right: 1px solid var(--line-soft); border-bottom: 0; }
.product-grid.is-list .product-card-body { align-self: center; }
.product-grid.is-list .product-fitment { min-height: 0; -webkit-line-clamp: 3; }

.empty-state { padding: 90px 24px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.empty-bearing { width: 76px; height: 76px; margin: 0 auto 22px; border: 13px solid #314052; border-radius: 50%; box-shadow: 0 0 0 1px var(--blue), inset 0 0 0 1px var(--blue); }
.empty-state h2 { margin: 0 0 8px; font-size: 24px; }
.empty-state p { margin: 0 0 22px; color: var(--weak); }
.empty-state button { padding: 10px 16px; border: 1px solid var(--blue); border-radius: 8px; background: rgba(47,128,237,.12); cursor: pointer; }

.data-notes { width: min(var(--max), calc(100% - 96px)); margin: 0 auto 88px; padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: .45fr 1.3fr 1fr; align-items: start; gap: 44px; }
.section-number { color: var(--blue-bright); font: 800 11px/1.5 Consolas, monospace; letter-spacing: .15em; }
.data-notes h2 { margin: 0 0 12px; font-size: 30px; }
.data-notes p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.8; }
.data-notes dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.data-notes dl div { padding-left: 20px; border-left: 1px solid var(--line); }
.data-notes dt { color: var(--text); font-size: 26px; font-weight: 800; }
.data-notes dd { margin: 5px 0 0; color: var(--weak); font-size: 9px; letter-spacing: .08em; }

.contact-section { width: min(var(--max), calc(100% - 96px)); margin: 0 auto 100px; padding: 48px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(120deg, #121821, #0d151e); position: relative; overflow: hidden; }
.contact-section::after { content: ""; position: absolute; width: 320px; height: 320px; right: -100px; top: -150px; border: 1px solid rgba(47,128,237,.3); border-radius: 50%; box-shadow: 0 0 0 50px rgba(47,128,237,.03), 0 0 0 100px rgba(47,128,237,.02); }
.contact-section h2 { position: relative; z-index: 1; max-width: 900px; margin: 0 0 28px; font-size: clamp(28px, 3vw, 48px); letter-spacing: -.045em; }
.contact-section a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 18px; padding: 13px 16px; border: 1px solid var(--blue); border-radius: 8px; background: rgba(47,128,237,.1); font-size: 13px; font-weight: 700; }
.contact-section a b { color: var(--blue-bright); font-size: 18px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 48px; border-top: 1px solid var(--line-soft); color: var(--weak); font-size: 10px; letter-spacing: .12em; }

.product-dialog { width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; overflow: visible; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.product-dialog::backdrop { background: rgba(2,5,8,.8); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; z-index: 4; top: 12px; right: 12px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: rgba(9,13,18,.8); cursor: pointer; font-size: 23px; line-height: 1; }
.dialog-layout { display: grid; grid-template-columns: 1.05fr .95fr; max-height: calc(100dvh - 50px); overflow: auto; }
.dialog-image { min-height: 510px; padding: 34px; border-right: 1px solid var(--line); background: radial-gradient(circle, #243140, #0e141b 72%); display: grid; place-items: center; }
.dialog-image img { width: 100%; max-height: 500px; object-fit: contain; }
.dialog-content { padding: 58px 42px 42px; }
.dialog-content .oem-label { margin-top: 25px; }
.dialog-content h2 { overflow-wrap: anywhere; margin: 8px 0 30px; font: 750 clamp(24px, 3vw, 36px)/1.15 Consolas, monospace; }
.detail-block { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.detail-block > span, .dialog-source > span { display: block; margin-bottom: 7px; color: var(--weak); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.detail-block p { margin: 0; color: var(--muted); line-height: 1.65; }
.dialog-source { margin-top: 12px; padding: 14px; border-radius: 8px; background: var(--bg); }
.dialog-source b { font-size: 12px; font-weight: 600; }

[hidden] { display: none !important; }

@media (max-width: 1279px) {
  .header-inner, .hero-inner, .catalog-section, .data-notes, .contact-section { width: min(100% - 48px, var(--max)); }
  .main-nav { gap: 24px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
  .product-visual-main { width: 330px; height: 230px; }
  .product-visual-small { width: 180px; height: 120px; }
  .catalog-stats > div { min-width: 135px; padding: 0 18px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-notes { grid-template-columns: .35fr 1.4fr; }
  .data-notes dl { grid-column: 2; }
}

@media (max-width: 900px) {
  .site-header { height: 64px; }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 18px; }
  .menu-toggle { justify-self: end; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
  .menu-toggle i, .menu-toggle i::before, .menu-toggle i::after { display: block; width: 18px; border-top: 2px solid currentColor; content: ""; }
  .menu-toggle i { position: relative; }
  .menu-toggle i::before { position: absolute; top: -7px; }
  .menu-toggle i::after { position: absolute; top: 3px; }
  .main-nav { position: fixed; top: 64px; left: 0; right: 0; display: none; padding: 22px 24px; border-bottom: 1px solid var(--line); background: var(--bg-deep); }
  .main-nav.is-open { display: flex; }
  .main-nav a:first-child::after { display: none; }
  .language-switch { padding-left: 0; border-left: 0; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; padding-top: 56px; }
  .hero-visual { min-height: 300px; }
  .product-visual-main { right: 12%; }
  .product-visual-small { left: 10%; }
  .catalog-toolbar { top: 64px; align-items: flex-end; }
  .category-filters { max-width: calc(100vw - 160px); overflow-x: auto; padding-bottom: 3px; }
  .result-count { display: none; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-image { min-height: 330px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 72px; }
  .header-inner, .hero-inner, .catalog-section, .data-notes, .contact-section { width: calc(100% - 32px); }
  .brand small, .menu-toggle span { display: none; }
  .brand span { font-size: 23px; }
  .header-inner { gap: 10px; }
  .menu-toggle { order: 3; }
  .language-switch { justify-self: end; }
  .language-switch button { min-width: 32px; padding: 6px 5px; font-size: 10px; }
  .hero { min-height: 0; }
  .hero-inner { padding: 44px 0 54px; }
  .hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .hero-subtitle { font-size: 17px; }
  .catalog-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 30px 0 24px; }
  .catalog-stats > div { min-width: 0; padding: 13px 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(18,24,33,.7); }
  .catalog-stats > div:first-child { padding-left: 10px; border: 1px solid var(--line-soft); }
  .catalog-stats strong { font-size: 28px; }
  .catalog-stats span { font-size: 9px; line-height: 1.3; }
  .search-box { height: 56px; }
  .search-box input { padding-right: 20px; font-size: 14px; }
  .search-box kbd { display: none; }
  .hero-visual { min-height: 230px; }
  .ring-one { width: 220px; height: 220px; right: 4%; }
  .ring-two { display: none; }
  .product-visual-main { width: 250px; height: 160px; right: 3%; top: 35px; }
  .product-visual-small { width: 128px; height: 84px; left: 2%; bottom: 5px; }
  .technical-label { font-size: 7px; }
  .label-a { top: 8px; right: 4%; }
  .label-b { bottom: 0; right: 0; }
  .catalog-section { padding-top: 18px; }
  .catalog-toolbar { margin: 0 -4px 18px; padding: 10px 4px; top: 64px; }
  .category-filters { max-width: calc(100vw - 84px); gap: 7px; }
  .filter-chip { min-height: 36px; padding: 0 12px; font-size: 11px; }
  .filter-chip b { display: none; }
  .toolbar-actions { gap: 7px; }
  .view-switch button { width: 30px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .product-card-body { padding: 16px 17px 19px; }
  .product-oem { font-size: 21px; }
  .product-grid.is-list .product-card { grid-template-columns: 118px minmax(0, 1fr); }
  .product-grid.is-list .product-image-wrap { min-height: 155px; }
  .product-grid.is-list .product-image-wrap img { padding: 8px; }
  .image-oem-badge { top: 9px; right: 9px; max-width: calc(100% - 18px); font-size: 10px; }
  .image-oem-badge b { padding: 6px; }
  .image-oem-badge span { padding: 6px 7px; }
  .data-notes { margin-bottom: 56px; padding: 34px 0; grid-template-columns: 1fr; gap: 18px; }
  .data-notes dl { grid-column: auto; }
  .data-notes dl div { padding-left: 10px; }
  .data-notes dt { font-size: 22px; }
  .contact-section { margin-bottom: 58px; padding: 32px 24px; }
  footer { flex-direction: column; padding: 22px 16px; }
  .product-dialog { max-height: calc(100dvh - 20px); }
  .dialog-layout { max-height: calc(100dvh - 22px); }
  .dialog-image { min-height: 230px; padding: 24px; }
  .dialog-content { padding: 38px 24px 28px; }
}

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