:root {
  --blue: #005baa;
  --blue-dark: #003c73;
  --green: #4d8c2f;
  --red: #c8232c;
  --ink: #202b36;
  --muted: #617080;
  --line: #d8e0e7;
  --soft: #f4f7f9;
  --white: #fff;
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font: 14px/1.55 Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #fff;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); text-decoration: underline; }
img { max-width: 100%; height: auto; vertical-align: middle; }
input,
button,
select,
textarea { max-width: 100%; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.container > *,
.content-block,
.content-band,
.sidebar,
.article-layout,
.layout-with-sidebar,
.product-detail-layout {
  min-width: 0;
}

.top-bar {
  background: #eef2f5;
  border-bottom: 1px solid var(--line);
  color: #344251;
  font-size: 12px;
}

.top-bar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top-bar nav,
.location {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.top-bar-inner > a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location img { width: 22px; height: 16px; border: 1px solid #bbb; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-search {
  min-height: 86px;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img { display: block; max-width: 150px; }

.brand-fallback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.brand-text {
  display: grid;
  gap: 2px;
  color: var(--blue-dark);
  line-height: 1.12;
}

.brand-text strong {
  max-width: 180px;
  overflow: hidden;
  font-size: 23px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.search-form {
  display: grid;
  grid-template-columns: 98px minmax(120px, 1fr) 86px auto auto;
  align-items: center;
  gap: 0;
}

.search-form input[type="search"],
.large-search input {
  width: 100%;
  height: 42px;
  border: 2px solid var(--blue);
  border-left: 0;
  padding: 0 12px;
  font-size: 15px;
  outline: none;
}

.scope-btn,
.search-btn,
.large-search button,
.btn {
  height: 42px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.scope-btn {
  background: #f0f3f6;
  border: 2px solid var(--blue);
  color: #24313d;
}

.search-btn,
.large-search button,
.btn.primary {
  background: var(--blue);
  color: #fff;
}

.search-form label {
  margin-left: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.account-tools {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.account-tools a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #f8fafb;
}

.main-nav {
  background: var(--blue-dark);
  color: #fff;
}

.nav-inner {
  display: flex;
  align-items: stretch;
  min-height: 44px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-weight: 700;
}

.nav-link:hover { color: #fff; background: #0a4d8e; text-decoration: none; }

.products-menu { position: relative; }
.products-trigger { background: var(--red); min-width: 118px; justify-content: center; }

.mega-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 44px;
  width: 320px;
  padding: 10px 0;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .16);
  z-index: 30;
}

.products-menu:hover .mega-menu { display: grid; }
.mega-menu a { padding: 8px 16px; border-bottom: 1px solid #edf1f4; }
.mega-menu .view-all { color: var(--blue); font-weight: 700; border-bottom: 0; }

.home-hero {
  background: linear-gradient(180deg, #eef5fb 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 22px;
  padding: 24px 0;
}

.category-panel,
.content-block,
.content-band,
.sidebar section {
  border: 1px solid var(--line);
  background: #fff;
}

.category-panel h2,
.sidebar h2 {
  margin: 0;
  padding: 12px 16px;
  font-size: 18px;
  background: var(--blue);
  color: #fff;
}

.category-list {
  display: grid;
  overflow: hidden;
}

.category-list a,
.sidebar a {
  display: block;
  padding: 10px 16px;
  border-bottom: 1px solid #edf1f4;
}

.category-list a span { display: block; font-weight: 700; }
.category-list a small { display: block; color: var(--muted); margin-top: 2px; }
.category-list a.view-all {
  color: var(--blue);
  font-weight: 700;
  background: #f6fbff;
}
.sidebar a.active { color: var(--blue); font-weight: 700; background: #eef6ff; }

.hero-main {
  display: grid;
  grid-template-rows: minmax(300px, auto) auto;
  gap: 16px;
}

.hero-copy {
  padding: 38px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 57, 111, .94), rgba(0, 91, 170, .72)),
    linear-gradient(135deg, #0c66b8, #34a853);
  background-size: cover;
  background-position: center right;
}

.eyebrow {
  margin: 0 0 8px;
  color: #cce7ff;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.18;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: 16px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; }
.btn.secondary { background: #fff; color: var(--blue-dark); }

.quick-finder {
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.quick-finder h3 { margin: 0 0 12px; }
.quick-finder div { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-finder a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.home-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.home-image-grid a {
  position: relative;
  display: block;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.home-image-grid img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.home-image-grid span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 8px;
  background: rgba(0, 57, 111, .88);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.content-band {
  margin-top: 24px;
  padding: 22px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2 { margin: 0; font-size: 22px; }
.section-heading a { color: var(--blue); font-weight: 700; }
.spaced { margin-top: 28px; }

.product-strip,
.resource-grid,
.tool-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.four-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-strip article,
.resource-grid a,
.tool-grid article,
.category-grid a {
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--line);
  background: #fff;
}

.product-strip article:hover,
.resource-grid a:hover,
.category-grid a:hover {
  border-color: var(--blue);
  text-decoration: none;
}

.part-badge {
  display: inline-block;
  margin-bottom: 9px;
  padding: 2px 7px;
  background: #e9f5e5;
  color: #2d6b18;
  font-size: 12px;
  font-weight: 700;
}

.product-strip h3,
.category-grid strong,
.resource-grid strong {
  display: block;
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--blue-dark);
}

.product-strip p,
.category-grid span,
.resource-grid span,
.tool-grid p,
.news-list p {
  margin: 0;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.content-block { padding: 22px; }

.two-column > .content-block {
  align-self: start;
}

.manufacturers-small {
  align-self: start;
}

.manufacturer-list,
.manufacturer-directory {
  display: grid;
  gap: 8px;
}

.manufacturer-list {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

.manufacturer-directory {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.manufacturer-directory a,
.manufacturer-list a {
  display: block;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.manufacturer-directory span { display: block; color: var(--muted); font-size: 12px; }

.news-list {
  display: grid;
  gap: 12px;
}

.news-list article {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.news-list h2,
.news-list h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}

.news-list time,
.article-meta,
.article-info {
  color: var(--muted);
  font-size: 13px;
}

.page-title {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  background: #eef5fb;
  border-bottom: 1px solid var(--line);
}

.page-title.page-title-visual {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 41, 80, .92), rgba(0, 91, 170, .74), rgba(238, 245, 251, .28)),
    var(--page-bg);
  background-position: center;
  background-size: cover;
}

.page-title h1 {
  margin: 8px 0 6px;
  font-size: 30px;
  line-height: 1.2;
}

.page-title p { margin: 0; color: var(--muted); max-width: 840px; }

.page-title.page-title-visual h1,
.page-title.page-title-visual p,
.page-title.page-title-visual .breadcrumb,
.page-title.page-title-visual .breadcrumb a,
.page-title.page-title-visual .article-info,
.page-title.page-title-visual .article-info a,
.page-title.page-title-visual .article-info time {
  color: #fff;
}

.page-title.page-title-visual p,
.page-title.page-title-visual .breadcrumb {
  text-shadow: 0 1px 2px rgba(0, 25, 50, .24);
}

.page-visual {
  margin-top: 22px;
}

.page-visual img,
.product-visual img,
.article-cover img {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

.page-visual img {
  height: 220px;
}

.product-visual {
  margin: 0 0 18px;
}

.product-visual img {
  height: 260px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.compact-gallery {
  margin-top: 14px;
}

.product-image-gallery {
  margin: -4px 0 18px;
}

.image-gallery figure {
  margin: 0;
}

.image-gallery img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.sidebar .view-all,
.category-list .view-all {
  color: var(--blue);
  font-weight: 700;
}

.layout-with-sidebar,
.product-detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 30px;
}

.product-detail-layout { grid-template-columns: 1fr 280px; }
.article-layout { grid-template-columns: minmax(0, 1fr) 300px; }

.sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.article-list article {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.article-list article.has-thumb,
.news-list article.has-thumb {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.article-thumb {
  display: block;
}

.article-thumb img {
  width: 160px;
  height: 102px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

.article-list h2 { margin: 6px 0; font-size: 20px; }
.article-list p { margin: 0; color: var(--muted); }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.pager a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.article-head h1 { max-width: 940px; }
.article-subtitle {
  max-width: 940px;
  margin: -2px 0 12px;
  color: #202b36;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}
.article-info { display: flex; flex-wrap: wrap; gap: 12px; }

.article-content {
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.article-content h2,
.article-content h3 { line-height: 1.35; }
.article-content img { margin: 12px 0; }

.article-cover {
  margin: 0 0 22px;
}

.article-cover img {
  height: 356px;
}

.theme012-inline-image {
  margin: 24px 0;
}

.theme012-inline-image img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

.article-info time {
  font-weight: 700;
  color: var(--blue-dark);
}
.article-nav {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th { background: #f0f4f8; color: #344251; }

.part-card {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  margin-bottom: 20px;
}

.part-card h2 { margin: 4px 0 8px; }
.part-card dl {
  margin: 0;
  border: 1px solid var(--line);
}

.part-card dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  border-bottom: 1px solid var(--line);
}

.part-card dl div:last-child { border-bottom: 0; }
.part-card dt,
.part-card dd {
  margin: 0;
  padding: 8px 10px;
}

.part-card dt { background: #f6f8fa; color: var(--muted); }

.large-search {
  display: grid;
  grid-template-columns: 1fr 110px;
  margin-bottom: 20px;
}

.large-search input { border-left: 2px solid var(--blue); }

.empty {
  padding: 18px;
  margin: 0;
  background: var(--soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

.site-footer {
  margin-top: 34px;
  background: #263746;
  color: #dce5ec;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 32px 0;
}

.site-footer h2 { margin: 0 0 10px; font-size: 16px; color: #fff; }
.site-footer a,
.site-footer p { display: block; margin: 0 0 7px; color: #dce5ec; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: #aebbc6;
}

@media (max-width: 900px) {
  .top-bar-inner,
  .nav-inner,
  .footer-bottom { flex-wrap: wrap; }
  .brand-search,
  .hero-grid,
  .two-column,
  .layout-with-sidebar,
  .product-detail-layout,
  .part-card {
    grid-template-columns: 1fr;
  }
  .search-form {
    grid-template-columns: 78px 1fr 72px;
  }
  .search-form label { display: none; }
  .account-tools { justify-content: flex-start; }
  .product-strip,
  .resource-grid,
  .tool-grid,
  .category-grid,
  .home-image-grid,
  .image-gallery,
  .manufacturer-directory,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .four-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manufacturer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-header { position: static; }
  .article-list article.has-thumb,
  .news-list article.has-thumb {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .article-thumb img {
    width: 120px;
    height: 82px;
  }
  .article-cover img,
  .theme012-inline-image img,
  .product-visual img,
  .page-visual img {
    height: 220px;
  }
  .image-gallery img,
  .home-image-grid img {
    height: 132px;
  }
}

@media (max-width: 560px) {
  .container {
    width: 100%;
    max-width: none;
    padding-left: 12px;
    padding-right: 12px;
  }
  .top-bar,
  .site-header,
  .main-nav,
  .page-title,
  .home-hero,
  .content-band,
  .content-block,
  .page-visual,
  .image-gallery,
  .layout-with-sidebar,
  .product-detail-layout {
    width: 100%;
    max-width: 100%;
  }
  .top-bar-inner,
  .brand-search,
  .nav-inner,
  .footer-bottom {
    margin-left: 0;
    margin-right: 0;
  }
  .top-bar nav,
  .location { display: none; }
  .top-bar-inner {
    min-height: 30px;
    justify-content: flex-start;
  }
  .brand-search {
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 12px;
  }
  .brand {
    width: 100%;
  }
  .brand-text strong {
    max-width: calc(100vw - 92px);
    font-size: 20px;
  }
  .brand-text small {
    max-width: calc(100vw - 92px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .search-form,
  .large-search {
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }
  .scope-btn { display: none; }
  .search-form input[type="search"],
  .large-search input {
    border-left: 2px solid var(--blue);
    min-width: 0;
  }
  .search-btn {
    width: 100%;
  }
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-left: 0;
    padding-right: 0;
  }
  .products-menu {
    min-width: 0;
  }
  .nav-link { min-height: 40px; padding: 0 12px; }
  .nav-link {
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .main-nav { overflow-x: hidden; }
  .mega-menu { position: static; width: 100%; box-shadow: none; }
  .products-menu:hover .mega-menu { display: none; }
  .hero-main { grid-template-rows: auto auto; }
  .hero-copy {
    min-height: 0;
    padding: 22px;
  }
  .hero-copy h1,
  .page-title h1 { font-size: 24px; }
  .hero-copy p,
  .page-title p { max-width: 100%; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .btn { width: 100%; }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .section-heading h2 {
    font-size: 19px;
    line-height: 1.35;
  }
  .article-subtitle { font-size: 18px; }
  .product-strip,
  .resource-grid,
  .tool-grid,
  .category-grid,
  .home-image-grid,
  .image-gallery,
  .manufacturer-list,
  .manufacturer-directory,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .four-grid {
    grid-template-columns: 1fr;
  }
  .article-list article.has-thumb,
  .news-list article.has-thumb {
    grid-template-columns: 1fr;
  }
  .article-list h2,
  .news-list h2,
  .news-list h3 {
    font-size: 17px;
    line-height: 1.42;
  }
  .article-thumb img {
    width: 100%;
    height: 180px;
  }
  .page-visual,
  .compact-gallery {
    margin-top: 12px;
  }
  .page-visual img,
  .product-visual img,
  .theme012-inline-image img {
    height: 190px;
  }
  .home-image-grid img,
  .image-gallery img {
    height: 170px;
  }
  .product-table {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }
  table {
    min-width: 0;
    table-layout: fixed;
  }
  th,
  td {
    padding: 9px 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .part-card dl div { grid-template-columns: 1fr; }
  .part-card dt,
  .part-card dd { min-height: 38px; }
  .sidebar { gap: 12px; }
  .sidebar section { padding: 0; }
  .sidebar h2 {
    padding: 12px;
    font-size: 16px;
  }
  .sidebar a { padding: 10px 12px; }
}
