:root {
  --blue-900: #08233f;
  --blue-800: #0f3764;
  --blue-700: #165083;
  --blue-100: #e7eef6;
  --gray-900: #1f2933;
  --gray-700: #4b5b6b;
  --gray-500: #7b8794;
  --gray-200: #d8e0e8;
  --gray-100: #f4f7fa;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(8, 35, 63, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--gray-900);
  background: var(--white);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(216, 224, 232, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue-800);
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  color: var(--blue-900);
  font-size: 16px;
}

.brand small {
  color: var(--gray-700);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  min-width: 0;
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  padding: 26px 0 22px;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue-800);
  border-color: var(--blue-800);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  color: var(--blue-800);
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.language-switch:hover {
  border-color: var(--blue-800);
  background: var(--blue-100);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  color: var(--blue-900);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(88vh - 76px);
  display: flex;
  align-items: center;
  padding: 9vh 6vw 12vh;
  color: var(--white);
  background-image: url("../images/factory-hero.png");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 35, 63, 0.62);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding-bottom: 36px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #c9def3;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--blue-900);
  line-height: 1.15;
}

.hero h1 {
  max-width: 700px;
  color: var(--white);
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.03;
}

.hero p[data-hero-subtitle] {
  max-width: 620px;
  margin: 24px 0 0;
  color: #e7eef6;
  font-size: clamp(18px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--blue-800);
}

.button-primary:hover {
  background: var(--blue-700);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 86px 6vw;
}

.muted-section {
  background: var(--gray-100);
}

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

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: start;
}

.section h2,
.page-title h1,
.inquiry-band h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.lead,
.page-title p {
  margin: 0;
  color: var(--gray-700);
  font-size: 18px;
}

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

.text-link {
  color: var(--blue-800);
  font-weight: 700;
}

.text-link:hover {
  color: var(--blue-700);
}

.product-grid,
.service-grid {
  display: grid;
  gap: 22px;
}

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

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

.product-card,
.service-card {
  min-width: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(8, 35, 63, 0.06);
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
}

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

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

.tag {
  align-self: flex-start;
  padding: 4px 9px;
  border: 1px solid #c6d5e3;
  border-radius: 999px;
  color: var(--blue-800);
  background: var(--blue-100);
  font-size: 12px;
  font-weight: 700;
}

.product-card h3,
.service-card h3 {
  font-size: 20px;
}

.product-card p,
.service-card p {
  margin: 0;
  color: var(--gray-700);
}

.product-meta {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  color: var(--gray-700);
  font-size: 14px;
}

.product-card .text-link {
  margin-top: auto;
}

.service-card {
  padding: 24px;
}

.service-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue-800);
  font-weight: 700;
}

.inquiry-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 6vw;
  color: var(--white);
  background: var(--blue-900);
}

.inquiry-band h2,
.inquiry-band .section-kicker {
  color: var(--white);
}

.inquiry-band h2 {
  max-width: 760px;
  margin-top: 0;
}

.page-title {
  padding: 78px 6vw 54px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.page-title > * {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.page-title p:last-child {
  margin-top: 16px;
  max-width: 760px;
}

.product-tools {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}

.search-field,
.inquiry-form label {
  display: grid;
  gap: 7px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  color: var(--gray-900);
}

input {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  color: var(--white);
  border-color: var(--blue-800);
  background: var(--blue-800);
}

.empty-state,
.loading-text {
  margin: 28px 0 0;
  color: var(--gray-700);
  font-size: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1fr);
  gap: 46px;
  align-items: start;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-100);
  object-fit: cover;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.thumb-row button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.thumb-row button.active {
  border-color: var(--blue-800);
}

.thumb-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  object-fit: cover;
}

.detail-content h1 {
  margin: 12px 0 18px;
  font-size: clamp(32px, 4vw, 52px);
}

.detail-description {
  color: var(--gray-700);
  font-size: 18px;
}

.spec-table {
  display: grid;
  margin: 26px 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 145px 1fr;
  border-bottom: 1px solid var(--gray-200);
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row dt,
.spec-row dd {
  margin: 0;
  padding: 14px 16px;
}

.spec-row dt {
  color: var(--blue-900);
  background: var(--gray-100);
  font-weight: 700;
}

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

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: var(--gray-700);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-800);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: 30px;
}

.contact-panel,
.inquiry-form {
  min-width: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-panel {
  padding: 30px;
}

.contact-panel h2 {
  font-size: 30px;
  line-height: 1.25;
}

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

.contact-list dt {
  color: var(--blue-900);
  font-weight: 700;
}

.contact-list dd {
  margin: 3px 0 0;
  color: var(--gray-700);
}

.inquiry-form {
  display: grid;
  gap: 18px;
  padding: 30px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.form-status-pending {
  color: var(--gray-700);
}

.form-status-success {
  color: #12633f;
}

.form-status-error {
  color: #a33024;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.inquiry-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.site-footer {
  padding: 0 6vw;
  color: #dce8f3;
  background: var(--blue-900);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(360px, 1.35fr) minmax(160px, 0.48fr) minmax(260px, 0.72fr);
  column-gap: clamp(36px, 6vw, 96px);
  row-gap: 30px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 42px 0 24px;
}

.footer-section {
  min-width: 0;
  padding-top: 2px;
}

.site-footer h2,
.site-footer h3,
.site-footer strong {
  color: var(--white);
}

.site-footer h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.site-footer h3 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 12px;
  font-size: 18px;
  line-height: 1.25;
}

.site-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: #7fb0dd;
}

.site-footer p,
.site-footer a {
  color: #dce8f3;
}

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

.footer-subtitle {
  margin: 12px 0 0;
  color: #b8cce0;
  font-size: 14px;
}

.footer-description {
  max-width: 560px;
  margin: 20px 0 0;
  color: #dce8f3;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.footer-contact {
  display: grid;
  gap: 18px;
  margin: 0;
}

.footer-contact dt,
.footer-contact dd {
  margin: 0;
}

.footer-contact dt {
  color: var(--white);
  font-weight: 700;
  line-height: 1.3;
}

.footer-contact dd {
  margin-top: 6px;
  color: #dce8f3;
  line-height: 1.55;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(220, 232, 243, 0.16);
  color: #a9bed3;
  font-size: 13px;
}

@media (max-width: 980px) {
  .product-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.5fr);
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .two-column,
  .detail-layout,
  .contact-layout,
  .product-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 0 18px;
  }

  .brand strong {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
  }

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

  .site-nav a {
    padding: 14px 22px;
    border-bottom: 1px solid var(--gray-200);
  }

  .language-switch {
    width: calc(100% - 44px);
    margin: 12px 22px;
    justify-content: center;
  }

  .hero {
    min-height: calc(88vh - 68px);
    padding: 9vh 22px 12vh;
    background-position: 62% center;
  }

  .hero-overlay {
    background: rgba(8, 35, 63, 0.76);
  }

  .section,
  .page-title,
  .inquiry-band,
  .site-footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .product-grid,
  .service-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding-top: 34px;
  }

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

  .section-heading,
  .inquiry-band {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .spec-row dt {
    padding-bottom: 4px;
  }

  .spec-row dd {
    padding-top: 4px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
    padding: 0 14px;
  }

  .brand {
    gap: 9px;
    max-width: calc(100% - 52px);
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .brand strong {
    max-width: 150px;
    font-size: 14px;
  }

  .brand small {
    max-width: 150px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .site-nav {
    top: 64px;
  }

  .hero {
    min-height: auto;
    padding: 58px 18px 72px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .hero p[data-hero-subtitle] {
    margin-top: 16px;
    font-size: 17px;
  }

  .hero-actions,
  .inquiry-band {
    gap: 12px;
  }

  .hero-actions .button,
  .inquiry-band .button,
  .inquiry-form .button {
    width: 100%;
  }

  .section,
  .page-title,
  .inquiry-band,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .page-title {
    padding-top: 42px;
    padding-bottom: 36px;
  }

  .section h2,
  .page-title h1,
  .inquiry-band h2 {
    font-size: 30px;
  }

  .lead,
  .page-title p,
  .detail-description {
    font-size: 16px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 22px;
  }

  .product-card-body,
  .service-card,
  .contact-panel,
  .inquiry-form {
    padding: 20px;
  }

  .product-card h3,
  .service-card h3 {
    font-size: 18px;
  }

  .product-tools {
    gap: 14px;
  }

  .filter-button {
    flex: 1 1 auto;
    min-width: calc(50% - 5px);
  }

  .detail-content h1 {
    font-size: 30px;
  }

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

  .spec-row dt,
  .spec-row dd {
    padding: 10px 12px;
  }

  .contact-panel h2 {
    font-size: 24px;
  }

  .footer-inner {
    row-gap: 24px;
    padding-top: 30px;
  }

  .site-footer h2 {
    font-size: 20px;
  }
}
