:root {
  --ink: #17222b;
  --muted: #697783;
  --line: #dce3e8;
  --surface: #ffffff;
  --soft: #f5f8fa;
  --brand: #155e75;
  --brand-dark: #0f3445;
  --accent: #f2a53a;
  --shadow: 0 20px 46px rgba(16, 45, 62, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.utility-bar {
  background: var(--brand-dark);
  color: #edf7fb;
  font-size: 13px;
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
}

.nav-wrap {
  display: grid;
  grid-template-columns: minmax(260px, auto) 1fr auto auto;
  align-items: center;
  gap: 16px;
  min-height: 78px;
}

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

.brand-logo {
  display: block;
  width: 118px;
  height: auto;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: #263843;
  font-size: 15px;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  padding: 28px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-search {
  display: flex;
  width: min(260px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}

.header-search input,
.product-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search input {
  flex: 1;
  padding: 10px 12px;
}

.header-search button {
  border: 0;
  padding: 0 14px;
  background: var(--brand);
  color: white;
  cursor: pointer;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}

.language-switch button {
  min-width: 44px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 9px 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.language-switch button:last-child {
  border-right: 0;
}

.language-switch button[aria-pressed="true"] {
  background: var(--brand);
  color: white;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 111px);
  overflow: hidden;
  background: #102b3a;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 33, 45, 0.9), rgba(10, 33, 45, 0.6) 48%, rgba(10, 33, 45, 0.2)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1800&q=85")
      center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 760px;
  min-height: calc(100svh - 111px);
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 86px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 20px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: #1f180f;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: white;
}

.section {
  scroll-margin-top: 132px;
  padding: 82px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.about-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.products-section {
  background: var(--soft);
}

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.product-toolbar[hidden] {
  display: none;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.category-tabs button[aria-pressed="true"],
.category-tabs button:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.product-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(320px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  background: white;
  color: var(--muted);
}

.product-search input {
  flex: 1;
}

.brand-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.brand-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.brand-card:hover {
  border-color: rgba(21, 94, 117, 0.32);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.brand-logo-panel {
  display: grid;
  min-height: 142px;
  place-items: center;
  padding: 26px 22px;
  background:
    radial-gradient(circle at 22% 20%, rgba(242, 165, 58, 0.18), transparent 28%),
    linear-gradient(135deg, #102b3a, #163f55);
}

.brand-logo-panel img {
  display: block;
  max-width: 100%;
  max-height: 78px;
  object-fit: contain;
}

.brand-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.brand-origin {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.28;
}

.brand-card strong {
  display: block;
  margin: 5px 0 12px;
  color: var(--brand);
  font-size: 14px;
}

.brand-card p:not(.brand-origin) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.product-card:hover {
  border-color: rgba(21, 94, 117, 0.32);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.product-image {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(21, 94, 117, 0.12), rgba(242, 165, 58, 0.12)),
    #ffffff;
}

.product-image span {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid rgba(21, 94, 117, 0.24);
  border-radius: 50%;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.product-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed #b8c5cc;
  border-radius: var(--radius);
  padding: 34px;
  background: white;
  color: var(--muted);
  text-align: center;
}

.inventory-section {
  background: white;
}

.inventory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.inventory-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #40505b;
  font-size: 13px;
}

.inventory-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--soft);
}

.inventory-summary strong {
  color: var(--brand);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.inventory-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.inventory-card:hover {
  border-color: rgba(21, 94, 117, 0.32);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.inventory-image {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(21, 94, 117, 0.08), rgba(242, 165, 58, 0.1)),
    #f9fbfc;
}

.inventory-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.inventory-card-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 16px;
}

.inventory-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.inventory-brand,
.inventory-type {
  min-width: 0;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.inventory-brand {
  background: #e7f3f6;
  color: var(--brand);
}

.inventory-type {
  background: #fff4df;
  color: #795010;
  text-align: right;
}

.inventory-card h3 {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
  font-size: 19px;
  line-height: 1.28;
}

.inventory-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.inventory-meta div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f4;
}

.inventory-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.inventory-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #253641;
  font-size: 13px;
  font-weight: 700;
}

.inventory-link {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.source-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.about-section {
  background: white;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 58px;
  align-items: start;
}

.about-panel {
  max-width: 700px;
}

.about-panel [data-bind="aboutText"] {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.about-panel p,
.about-point p {
  margin: 0;
  color: var(--muted);
}

.about-points {
  display: grid;
  gap: 14px;
}

.about-point {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--soft);
}

.about-point h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.contact-section {
  background: var(--brand-dark);
  color: white;
}

.contact-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.contact-box {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-box dl {
  display: grid;
  gap: 16px;
  margin: 0 0 24px;
}

.contact-box div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
}

.contact-box dt {
  color: rgba(255, 255, 255, 0.58);
}

.contact-box dd {
  margin: 0;
}

.site-footer {
  padding: 28px 0;
  background: #081e28;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.site-footer strong {
  display: block;
  color: white;
  font-size: 20px;
}

.site-footer p {
  margin: 8px 0 0;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-bottom: 7px;
}

.footer-records {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.footer-records a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  transition: color 160ms ease;
}

.footer-records a:hover,
.footer-records a:focus-visible {
  color: white;
}

.footer-records img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    padding: 4px 0;
  }

  .main-nav a::after {
    bottom: -1px;
  }

  .header-search {
    width: 100%;
  }

  .hero,
  .hero-content {
    min-height: 68svh;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .utility-inner {
    flex-direction: column;
    gap: 2px;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    width: 92px;
  }

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

  .hero-media {
    background:
      linear-gradient(180deg, rgba(10, 33, 45, 0.86), rgba(10, 33, 45, 0.55)),
      url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1000&q=80")
        center / cover;
  }

  .hero-content {
    padding: 38px 0 54px;
  }

  .hero h1 {
    max-width: 9em;
    overflow-wrap: anywhere;
    font-size: clamp(28px, 7.8vw, 34px);
    line-height: 1.18;
  }

  .hero-copy {
    max-width: 21em;
    overflow-wrap: anywhere;
    font-size: 16px;
  }

  .section {
    padding: 58px 0;
  }

  .product-toolbar,
  .inventory-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-grid,
  .product-grid,
  .inventory-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-records {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-box div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
