:root {
  --mh-navy: #061b3e;
  --mh-navy-2: #0c2e5f;
  --mh-orange: #ff781f;
  --mh-ink: #0b1830;
  --mh-muted: #657189;
  --mh-line: #dce3ec;
  --mh-soft: #f4f7fb;
  --mh-white: #ffffff;
  --mh-shadow: 0 24px 70px rgba(6, 27, 62, 0.12);
}

html {
  scroll-behavior: smooth;
  background: var(--mh-white);
}

body {
  color: var(--mh-ink);
  background: var(--mh-white);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  overflow: clip;
  background:
    linear-gradient(90deg, rgba(6, 27, 62, 0.035) 1px, transparent 1px) 50% 0 / min(8vw, 112px) 100%,
    #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) auto minmax(290px, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  min-height: 88px;
  padding: 12px clamp(24px, 4.2vw, 76px);
  color: var(--mh-navy);
  border-bottom: 1px solid rgba(6, 27, 62, 0.1);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  display: grid;
  min-height: 62px;
  padding-left: 72px;
  align-content: center;
  text-decoration: none;
  color: var(--mh-navy);
}

.brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 58px;
  background: url("/images/logo-minghe.png") center 2% / 60px auto no-repeat;
}

.brand strong {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.brand span {
  margin-top: 4px;
  color: var(--mh-muted);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
}

.desktop-nav a {
  position: relative;
  padding: 12px 0;
  color: var(--mh-navy);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  inset: auto 100% 5px 0;
  height: 2px;
  background: var(--mh-orange);
  transition: inset 220ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  inset-right: 0;
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 220px;
  max-width: 420px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--mh-line);
  background: var(--mh-soft);
}

.header-search:focus-within {
  border-color: var(--mh-navy);
  box-shadow: 0 0 0 3px rgba(6, 27, 62, 0.08);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--mh-ink);
  font-size: 13px;
}

.language-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--mh-line);
  background: #fff;
}

.language-switch button {
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 0;
  color: var(--mh-muted);
  background: transparent;
  font-size: 12px;
}

.language-switch button.active {
  color: #fff;
  background: var(--mh-navy);
}

.account-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  color: #fff;
  background: var(--mh-navy);
  font-size: 13px;
  font-weight: 750;
}

.account-header-button:hover {
  background: var(--mh-orange);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  align-items: stretch;
  min-height: min(760px, calc(100vh - 88px));
  padding: 0 clamp(24px, 5.4vw, 96px);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 49%;
  background: var(--mh-soft);
  border-left: 1px solid var(--mh-line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 92px clamp(32px, 5vw, 96px) 124px 0;
}

.hero-rule {
  width: 42px;
  height: 4px;
  margin-bottom: 32px;
  background: var(--mh-orange);
}

.hero h1 {
  max-width: 660px;
  margin: 0;
  color: var(--mh-navy);
  font-size: clamp(52px, 5.3vw, 88px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
}

.hero-copy > p {
  max-width: 560px;
  margin: 32px 0 0;
  color: #536179;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 40px;
}

.button {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 800;
}

.button-primary {
  border: 1px solid var(--mh-orange);
  background: var(--mh-orange);
  color: #fff;
}

.button-primary:hover {
  border-color: var(--mh-navy);
  background: var(--mh-navy);
}

.button-outline-gold {
  border: 1px solid var(--mh-navy);
  background: transparent;
  color: var(--mh-navy);
}

.button-outline-gold:hover {
  color: #fff;
  background: var(--mh-navy);
}

.hero-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 600px;
  padding: 72px 0 48px;
  overflow: hidden;
}

.hero-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(48vw, 610px);
  aspect-ratio: 1;
  top: 2%;
  right: 1%;
  background: url("/images/logo-minghe.png") center top / 100% auto no-repeat;
  opacity: 0.075;
  filter: saturate(0);
}

.hero-media::after {
  content: "MINGHE  /  GLOBAL SOURCING";
  position: absolute;
  top: 62px;
  right: -20px;
  color: var(--mh-navy);
  font: 800 11px/1 Arial, sans-serif;
  letter-spacing: 0.32em;
  writing-mode: vertical-rl;
}

.hero-media picture {
  position: relative;
  display: block;
  width: min(100%, 760px);
  transform: translateY(14px);
}

.hero-media picture::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 9%;
  right: 9%;
  bottom: 3%;
  height: 18%;
  border-radius: 50%;
  background: rgba(6, 27, 62, 0.18);
  filter: blur(30px);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-frame {
  position: absolute;
  inset: 80px 30px 46px;
  border: 1px solid rgba(6, 27, 62, 0.12);
  pointer-events: none;
}

.section-preview {
  position: absolute;
  left: clamp(24px, 5.4vw, 96px);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--mh-muted);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.section-preview i {
  width: 46px;
  height: 1px;
  background: var(--mh-line);
}

.category-section {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  margin: -28px auto 0;
  padding: 0 clamp(20px, 3vw, 42px) 38px;
  border: 1px solid var(--mh-line);
  background: #fff;
  box-shadow: var(--mh-shadow);
}

.section-title-row {
  display: grid;
  grid-template-columns: auto 44px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 26px 0 18px;
  border-bottom: 1px solid var(--mh-line);
}

.section-title-row > i {
  height: 2px;
  background: var(--mh-orange);
}

.section-number {
  color: var(--mh-orange);
  font: 850 12px/1 Arial, sans-serif;
}

.section-title-row h2 {
  margin: 0;
  color: var(--mh-navy);
  font-size: 23px;
}

.rail-controls {
  display: flex;
  gap: 8px;
}

.rail-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--mh-line);
  color: var(--mh-navy);
  background: #fff;
}

.rail-controls button:hover {
  color: #fff;
  border-color: var(--mh-navy);
  background: var(--mh-navy);
}

.category-rail {
  display: flex;
  gap: 0;
  padding: 18px 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-rail button {
  position: relative;
  display: grid;
  min-width: 142px;
  min-height: 68px;
  padding: 10px 18px;
  align-content: center;
  border: 0;
  border-right: 1px solid var(--mh-line);
  background: #fff;
  color: var(--mh-navy);
  text-align: left;
}

.category-rail button span {
  font-size: 14px;
  font-weight: 750;
}

.category-rail button small {
  margin-top: 5px;
  color: var(--mh-muted);
  font: 11px/1 Arial, sans-serif;
}

.category-rail button::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  background: transparent;
}

.category-rail button.active,
.category-rail button:hover {
  color: var(--mh-orange);
}

.category-rail button.active::after {
  background: var(--mh-orange);
}

.catalog-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 92px clamp(20px, 3vw, 42px) 120px;
}

.catalog-heading-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(520px, 1.28fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.catalog-heading-row h2 {
  margin: 0;
  color: var(--mh-navy);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.15;
}

.catalog-heading-row p {
  margin: 12px 0 0;
  color: var(--mh-muted);
}

.catalog-heading-row p strong {
  color: var(--mh-orange);
  font-size: 20px;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  min-height: 50px;
  border: 5px solid var(--mh-navy);
  background: var(--mh-navy);
}

.catalog-search,
.select-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-right: 1px solid var(--mh-line);
  background: #fff;
}

.catalog-search input,
.select-control select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--mh-ink);
  background: transparent;
  font-size: 13px;
}

.select-control {
  min-width: 142px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--mh-line);
  background: var(--mh-line);
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  z-index: 2;
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(6, 27, 62, 0.14);
}

.product-media {
  width: 100%;
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
  border: 0;
  background: var(--mh-soft);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 420ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.product-image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #8c99ac;
  background:
    linear-gradient(135deg, transparent 49.5%, rgba(6, 27, 62, 0.06) 50%, transparent 50.5%),
    var(--mh-soft);
}

.product-image-fallback svg {
  width: 40px;
  height: 40px;
}

.product-card-body {
  display: flex;
  min-height: 230px;
  padding: 22px 20px 18px;
  flex-direction: column;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--mh-muted);
  font-size: 11px;
}

.product-meta span {
  color: var(--mh-orange);
  font-weight: 800;
}

.product-meta i {
  width: 1px;
  height: 10px;
  background: var(--mh-line);
}

.product-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--mh-navy);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-body > small {
  margin-top: 10px;
  color: var(--mh-muted);
  font-size: 11px;
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.text-action,
.add-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--mh-line);
  color: var(--mh-navy);
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}

.add-button {
  color: #fff;
  border-color: var(--mh-navy);
  background: var(--mh-navy);
}

.text-action:hover,
.add-button:hover {
  color: #fff;
  border-color: var(--mh-orange);
  background: var(--mh-orange);
}

.pagination {
  margin-top: 40px;
}

.pagination button {
  min-width: 42px;
  min-height: 42px;
  border-radius: 0;
}

.procurement {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(540px, 1.2fr);
  max-width: 1320px;
  margin: 0 auto 120px;
  color: #fff;
  background: var(--mh-navy);
}

.procurement-intro {
  position: relative;
  padding: clamp(48px, 6vw, 86px);
  background:
    linear-gradient(rgba(6, 27, 62, 0.86), rgba(6, 27, 62, 0.86)),
    url("/images/logo-minghe.png") center 18% / 84% auto no-repeat;
}

.procurement-number {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--mh-orange);
  font: 800 12px/1 Arial, sans-serif;
}

.procurement-number i {
  width: 42px;
  height: 2px;
  background: var(--mh-orange);
}

.procurement h2 {
  margin: 28px 0 14px;
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1.15;
}

.procurement-intro p {
  max-width: 470px;
  color: #c8d3e3;
  line-height: 1.8;
}

.procurement .button-outline-gold {
  margin-top: 24px;
  color: #fff;
  border-color: var(--mh-orange);
}

.procurement .button-outline-gold:hover {
  background: var(--mh-orange);
}

.procurement-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #0a2854;
}

.procurement-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 10px 24px;
  min-height: 150px;
  padding: 28px 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.procurement-steps li span {
  grid-row: 1 / 3;
  color: var(--mh-orange);
  font: 850 30px/1 Arial, sans-serif;
}

.procurement-steps li i {
  display: none;
}

.procurement-steps li b {
  color: #fff;
  font-size: 20px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  max-width: 1320px;
  margin: 0 auto 110px;
  padding: 0 clamp(20px, 3vw, 42px);
  gap: 1px;
  background: var(--mh-line);
  border: 1px solid var(--mh-line);
}

.about-block,
.contact-block {
  margin: 0;
  padding: clamp(42px, 5.6vw, 78px);
  background: #fff;
}

.gold-rule-title {
  color: var(--mh-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.about-block h2 {
  max-width: 680px;
  margin: 18px 0 24px;
  color: var(--mh-navy);
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.15;
}

.about-block > p:last-child {
  max-width: 700px;
  color: var(--mh-muted);
  font-size: 16px;
  line-height: 2;
}

.contact-block {
  color: #fff;
  background: var(--mh-navy);
}

.contact-block h3,
.contact-block strong {
  color: #fff;
}

.contact-block p,
.contact-row {
  color: #c8d3e3;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  min-height: 330px;
  padding: 64px clamp(24px, 5.4vw, 96px) 34px;
  color: #fff;
  background: var(--mh-navy);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 54px;
  left: clamp(24px, 5.4vw, 96px);
  width: 310px;
  height: 155px;
  background: #fff url("/images/logo-minghe.png") center 72% / 280px auto no-repeat;
  border: 12px solid #fff;
}

.site-footer > div {
  padding-top: 178px;
}

.site-footer > div strong {
  font-size: 18px;
}

.site-footer > div p {
  color: #b9c6d8;
}

.site-footer nav {
  display: flex;
  gap: 26px;
  align-self: center;
}

.site-footer a {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--mh-orange);
}

.site-footer > p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  color: #8da0ba;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
  }

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

  .catalog-heading-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 74px;
    padding: 8px 18px;
    gap: 10px;
  }

  .brand {
    min-height: 54px;
    padding-left: 58px;
  }

  .brand::before {
    width: 48px;
    height: 48px;
    background-size: 48px auto;
  }

  .brand strong {
    font-size: 12px;
  }

  .brand span,
  .account-header-button span {
    display: none;
  }

  .language-switch button {
    display: none;
  }

  .language-switch button.active {
    display: block;
  }

  .account-header-button {
    width: 40px;
    min-height: 40px;
    padding: 0;
  }

  .hero {
    display: flex;
    min-height: auto;
    padding: 0 20px 74px;
    flex-direction: column;
  }

  .hero::before {
    inset: 45% 0 0;
    border-left: 0;
    border-top: 1px solid var(--mh-line);
  }

  .hero-copy {
    padding: 74px 0 36px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 66px);
  }

  .hero-copy > p {
    margin-top: 22px;
  }

  .hero-actions {
    width: 100%;
    margin-top: 28px;
  }

  .hero-actions .button {
    flex: 1;
    padding: 0 14px;
  }

  .hero-media {
    min-height: 410px;
    padding: 32px 0 10px;
  }

  .hero-frame {
    inset: 20px 0 0;
  }

  .hero-media::after {
    top: 28px;
    right: -16px;
  }

  .section-preview {
    bottom: 24px;
    left: 20px;
  }

  .category-section {
    margin: 0 14px;
    padding: 0 18px 24px;
  }

  .section-title-row {
    grid-template-columns: auto 32px 1fr;
  }

  .rail-controls {
    display: none;
  }

  .category-rail button {
    min-width: 126px;
  }

  .catalog-section {
    padding: 72px 20px 90px;
  }

  .catalog-heading-row {
    gap: 26px;
  }

  .catalog-tools {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-search {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--mh-line);
  }

  .select-control {
    min-width: 0;
  }

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

  .product-card-body {
    min-height: 220px;
    padding: 18px 14px 14px;
  }

  .product-card-actions {
    grid-template-columns: 1fr;
  }

  .procurement {
    grid-template-columns: 1fr;
    margin: 0 20px 90px;
  }

  .procurement-steps li {
    min-height: 118px;
    padding: 24px 34px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    margin: 0 20px 80px;
    padding: 0;
  }

  .about-block,
  .contact-block {
    padding: 42px 28px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    min-height: 430px;
    padding: 54px 20px 28px;
    align-items: start;
  }

  .site-footer::before {
    left: 20px;
    width: 250px;
    height: 126px;
    background-size: 226px auto;
  }

  .site-footer > div {
    padding-top: 150px;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 36px;
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    aspect-ratio: 1.35 / 1;
  }

  .hero h1 {
    letter-spacing: -0.07em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-rule,
  .hero h1 span,
  .hero-copy > p,
  .hero-actions {
    animation: mh-reveal 700ms both cubic-bezier(0.2, 0.72, 0.2, 1);
  }

  .hero h1 span:nth-child(2) {
    animation-delay: 90ms;
  }

  .hero-copy > p {
    animation-delay: 160ms;
  }

  .hero-actions {
    animation-delay: 230ms;
  }

  .hero-media picture {
    animation: mh-media 900ms 120ms both cubic-bezier(0.16, 1, 0.3, 1);
  }

  .product-card {
    animation: mh-card 520ms both ease-out;
  }

  .product-card:nth-child(2n) {
    animation-delay: 40ms;
  }

  .product-card:nth-child(3n) {
    animation-delay: 80ms;
  }
}

@keyframes mh-reveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mh-media {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(14px) scale(1);
  }
}

@keyframes mh-card {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
