:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #5f6873;
  --line: #d7dde3;
  --paper: #ffffff;
  --soft: #f3f5f4;
  --steel: #1b5f86;
  --steel-dark: #09283d;
  --red: #b4232c;
  --yellow: #f2b441;
  --workshop: #242b31;
  --galvanized: #c6cdd4;
  --shadow: 0 22px 55px rgba(9, 40, 61, 0.16);
  --tight-shadow: 0 12px 28px rgba(9, 40, 61, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(9, 40, 61, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.7;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

:focus-visible {
  outline: 3px solid rgba(242, 180, 65, 0.95);
  outline-offset: 4px;
}

::selection {
  background: rgba(180, 35, 44, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(217, 222, 231, 0.9);
  backdrop-filter: blur(16px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand img {
  width: min(252px, 56vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  color: #1d2735;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

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

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--red);
}

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

.language-switcher {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.language-switcher button {
  min-width: 36px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button.is-active {
  background: var(--workshop);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(790px, 82vh);
  overflow: hidden;
  background: var(--steel-dark);
}

.hero::after {
  position: absolute;
  right: clamp(20px, 6vw, 84px);
  bottom: clamp(28px, 7vw, 92px);
  width: min(260px, 34vw);
  height: 12px;
  background: repeating-linear-gradient(
    135deg,
    var(--yellow) 0 14px,
    var(--workshop) 14px 28px
  );
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  content: "";
  opacity: 0.9;
}

.hero-media,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 2800ms ease;
}

.hero-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 14, 23, 0.9) 0%, rgba(9, 40, 61, 0.72) 46%, rgba(9, 40, 61, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 15, 25, 0.02), rgba(5, 15, 25, 0.48));
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: min(790px, 82vh);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
  padding: 92px 0 78px;
  color: #ffffff;
}

.hero-copy-block {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-family: "Arial Narrow", "Roboto Condensed", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 22px;
  font-family: "Arial Narrow", "Roboto Condensed", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-signal-board {
  position: relative;
  display: grid;
  gap: 0;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 244, 246, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 8px solid var(--red);
  color: var(--ink);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

.hero-signal-board::before {
  display: block;
  margin: 2px 6px 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  content: "GW / Hydraulic Crane Maker";
}

.hero-signal-board div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 10px;
  border-top: 1px solid var(--line);
}

.hero-signal-board span {
  color: var(--steel-dark);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.hero-signal-board p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

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

.button.primary {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(180, 35, 44, 0.22);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.quick-facts {
  background:
    linear-gradient(90deg, rgba(242, 180, 65, 0.16), transparent 28%),
    var(--workshop);
  color: #ffffff;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.fact-grid div {
  min-height: 126px;
  padding: 24px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.fact-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--yellow);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.fact-grid span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.section {
  padding: clamp(70px, 9vw, 118px) 0;
}

.about-section,
.network-section {
  background:
    linear-gradient(90deg, rgba(9, 40, 61, 0.045) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
}

.section-copy p:not(.eyebrow),
.section-heading p,
.contact-copy p {
  color: var(--muted);
  font-size: 17px;
}

.capability-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: var(--workshop);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.capability-item {
  padding: 20px;
  background: #ffffff;
  border-left: 4px solid var(--red);
}

.capability-item span,
.product-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

.capability-item strong {
  display: block;
  font-size: 19px;
  line-height: 1.45;
}

.component-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.component-strip figure {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--tight-shadow);
}

.component-strip img {
  width: 160px;
  height: 150px;
  object-fit: cover;
}

.component-strip figcaption {
  padding: 20px;
  color: var(--steel-dark);
  font-size: 22px;
  font-weight: 800;
}

.certificates-section {
  background: #ffffff;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
  gap: 24px;
  align-items: start;
}

.process-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
  box-shadow: var(--tight-shadow);
}

.process-card img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #ffffff;
}

.process-card figcaption {
  padding: 18px 22px;
  color: var(--steel-dark);
  font-size: 20px;
  font-weight: 800;
}

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

.certificate-list a {
  display: flex;
  min-height: 54px;
  align-items: center;
  padding: 14px 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  color: var(--steel-dark);
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.certificate-list a:hover,
.certificate-list a:focus-visible {
  background: var(--steel-dark);
  color: #ffffff;
  transform: translateX(3px);
}

.section-heading {
  position: relative;
  margin-bottom: 34px;
  padding-left: 22px;
}

.section-heading::before {
  position: absolute;
  top: 8px;
  bottom: 6px;
  left: 0;
  width: 6px;
  background: var(--red);
  content: "";
}

.section-heading h2,
.section-heading p {
  max-width: 760px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.product-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--tight-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:first-child {
  grid-column: span 2;
}

.product-card:hover {
  border-color: rgba(180, 35, 44, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.product-card div {
  position: relative;
  padding: 22px;
}

.product-card div::before {
  position: absolute;
  top: 0;
  left: 22px;
  width: 56px;
  height: 4px;
  background: var(--red);
  content: "";
}

.product-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card p {
  margin-bottom: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.4em; /* line-height 1.7 * 2 lines = 3.4em, to make grid item descriptions have consistent heights */
}

.product-list {
  margin-top: 28px;
  padding: 28px;
  background: var(--steel-dark);
  color: #ffffff;
}

.product-list h3 {
  color: var(--yellow);
}

.product-list ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.88);
}

.product-matrix {
  margin-top: 30px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--tight-shadow);
}

.product-matrix h3 {
  color: var(--steel-dark);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #ffffff;
}

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

th {
  background: var(--workshop);
  color: #ffffff;
  font-weight: 800;
}

td {
  color: #263244;
}

tbody tr:nth-child(even) td {
  background: #f8fafb;
}

.catalog-section {
  background:
    linear-gradient(135deg, rgba(27, 95, 134, 0.08), transparent 45%),
    #ffffff;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.catalog-layout p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button.secondary {
  border-color: var(--steel);
  color: var(--steel-dark);
  background: #ffffff;
}

.catalog-cover {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.news-section {
  background: #ffffff;
}

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

.news-list article,
.dealer-grid article {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--tight-shadow);
}

.news-list time {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-weight: 800;
}

.news-list p,
.dealer-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.news-list p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.4em; /* line-height 1.7 * 2 lines = 3.4em */
}

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

.regional-dealers {
  margin-bottom: 28px;
}

.regional-dealers h3 {
  margin-bottom: 16px;
  color: var(--steel-dark);
}

.dealer-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--steel-dark);
  font-size: 24px;
}

.dealer-grid article {
  border-top: 5px solid var(--steel);
}

.dealer-grid article:nth-child(2) {
  border-top-color: var(--yellow);
}

.dealer-grid article:nth-child(3) {
  border-top-color: var(--red);
}

.dealer-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dealer-list li {
  display: grid;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.dealer-list b {
  color: var(--ink);
  line-height: 1.4;
}

.dealer-list span,
.dealer-list a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dealer-list a {
  color: var(--steel);
  font-weight: 800;
}

.dealer-list em {
  display: inline-block;
  min-width: 42px;
  margin-right: 6px;
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}

.dealer-table table {
  min-width: 900px;
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(242, 180, 65, 0.08), transparent 32%),
    var(--steel-dark);
  color: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 30px 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-list dt {
  color: var(--yellow);
  font-weight: 800;
}

.contact-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.map-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding-bottom: 2px;
  border-bottom: 2px solid currentColor;
  color: var(--yellow);
  font-weight: 800;
}

.inquiry-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 48px 32px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
  border-top: 6px solid var(--red);
}

.inquiry-cta p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.form-link-button {
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

.site-footer {
  background: #081f31;
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--yellow);
  font-weight: 800;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .header-actions {
    gap: 10px;
  }

  .site-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 20px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

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

  .hero::after {
    right: 20px;
    bottom: 22px;
    width: 180px;
  }

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

  .hero-signal-board {
    width: min(100%, 520px);
  }

  .split,
  .contact-layout,
  .process-layout,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-cover {
    width: min(260px, 100%);
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .brand img {
    width: min(218px, 60vw);
  }

  .site-nav {
    inset: 68px 0 auto 0;
  }

  .language-switcher button {
    min-width: 32px;
    height: 30px;
    padding: 0 6px;
    font-size: 12px;
  }

  .section-inner {
    width: min(100% - 28px, 1160px);
  }

  .hero,
  .hero-inner {
    min-height: 0;
  }

  .hero-inner {
    padding: 72px 0 54px;
  }

  .hero::after {
    display: none;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .fact-grid,
  .product-grid,
  .dealer-grid,
  .component-strip {
    grid-template-columns: 1fr;
  }

  .product-card:first-child {
    grid-column: auto;
  }

  .hero-signal-board {
    padding: 10px;
  }

  .hero-signal-board div {
    grid-template-columns: 86px 1fr;
    padding: 14px 8px;
  }

  .hero-signal-board span {
    font-size: 32px;
  }

  .fact-grid {
    border-left: 0;
  }

  .fact-grid div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .component-strip figure {
    grid-template-columns: 116px 1fr;
  }

  .component-strip img {
    width: 116px;
    height: 116px;
  }

  .component-strip figcaption {
    font-size: 19px;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-matrix {
    padding: 18px;
  }

  th,
  td {
    padding: 12px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
