* {
  box-sizing: border-box;
}

html {
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.8;
}

body {
  margin: 0;
  min-width: 1200px;
  background: #fff;
}

body,
button,
input,
textarea {
  font-family: var(--font-sans);
}

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

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

.site-container {
  width: var(--site-width);
  margin: 0 auto;
}

.site-header {
  height: var(--header-height);
  background: #fff;
}

.site-header .site-container {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 650px;
}

.brand-logo {
  width: 82px;
  height: 80px;
  object-fit: contain;
}

.brand-copy {
  margin-left: 18px;
  color: #222;
}

.brand-name {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-en {
  margin-top: 3px;
  color: #666;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

html:not([data-locale="zh"]) .brand {
  min-width: 0;
  flex: 1 1 auto;
}

html:not([data-locale="zh"]) .brand-logo {
  flex: 0 0 82px;
}

html:not([data-locale="zh"]) .brand-copy {
  min-width: 0;
}

html:not([data-locale="zh"]) .brand-name {
  overflow: hidden;
  font-size: 22px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:not([data-locale="zh"]) .brand-en {
  display: none;
}

.header-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 20px;
}

.languages {
  position: relative;
  color: #333;
  font-size: 12px;
  white-space: nowrap;
}

.language-toggle {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  color: #333;
  cursor: pointer;
  font: inherit;
}

.language-toggle b {
  margin-right: 4px;
  color: #c9151e;
}

.language-options {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: 132px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.language-menu-open .languages .language-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-options button {
  padding: 7px 10px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #333;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.language-options button:hover,
.language-options button:focus-visible,
.language-options button.is-active {
  background: #f4f4f4;
  color: #c9151e;
}

.hotline {
  position: relative;
  padding-left: 42px;
  color: #c9151e;
  line-height: 1.25;
}

.hotline::before {
  position: absolute;
  left: 0;
  top: 5px;
  width: 30px;
  height: 30px;
  border: 2px solid #c9151e;
  border-radius: 50%;
  content: "☎";
  font-size: 18px;
  line-height: 27px;
  text-align: center;
}

.hotline strong {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
}

html:not([data-locale="zh"]) .hotline strong {
  line-height: 1.2;
  white-space: nowrap;
}

.hotline small {
  color: #777;
}

.desktop-nav {
  position: relative;
  z-index: 30;
  height: var(--nav-height);
  background: #d50000;
}

.desktop-nav.is-sticky {
  position: sticky;
  top: 0;
}

.primary-nav {
  display: flex;
  height: var(--nav-height);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav > li {
  position: relative;
  width: 100px;
  height: var(--nav-height);
  margin-right: 25px;
}

.primary-nav > li > a {
  display: flex;
  height: var(--nav-height);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  line-height: 1.15;
  transition: background-color 160ms ease;
}

.primary-nav > li > a span {
  font-size: 15px;
}

.primary-nav > li > a small {
  margin-top: 2px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 10px;
}

html:not([data-locale="zh"]) .primary-nav > li {
  width: auto;
  flex: 1 1 0;
  margin-right: 0;
}

html:not([data-locale="zh"]) .primary-nav > li > a {
  padding: 0 5px;
  text-align: center;
}

html:not([data-locale="zh"]) .primary-nav > li > a span {
  font-size: 12px;
  line-height: 1.15;
}

html:not([data-locale="zh"]) .primary-nav > li > a small {
  display: none;
}

html[data-locale="ru"] .submenu {
  width: 220px;
}

.primary-nav > li:hover > a,
.primary-nav > li:focus-within > a,
.primary-nav > li.is-open > a,
.primary-nav > li.is-active > a {
  background: #b90000;
}

.primary-nav > li:hover > a small,
.primary-nav > li:focus-within > a small,
.primary-nav > li.is-active > a small {
  color: #fff;
}

.submenu {
  position: absolute;
  top: 49px;
  left: 0;
  width: 170px;
  margin: 0;
  padding: 7px 0;
  border-top: 3px solid var(--color-primary);
  background: rgba(34, 34, 34, 0.96);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(7px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.primary-nav > li:hover .submenu,
.primary-nav > li:focus-within .submenu,
.primary-nav > li.is-open .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 8px 20px;
  color: #eee;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: var(--color-primary);
  outline: none;
}

.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #111;
}

.hero-track,
.hero-slide {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 42px;
  height: 64px;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(201, 21, 30, 0.82);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

.inner-banner {
  height: var(--inner-banner-height);
  background: #222 url("../images/inner-banner.jpg") center / cover no-repeat;
}

.inner-banner.section-6 {
  background-image: url("../images/product-showcase.jpg");
}

.page-main {
  min-height: 520px;
  padding: 44px 0 70px;
}

.page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 42px;
}

.side-panel {
  border-top: 3px solid var(--color-primary);
}

.side-title {
  margin: 0;
  padding: 16px 18px;
  background: #292929;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.side-links {
  margin: 0 0 22px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-top: 0;
  list-style: none;
}

.side-links a {
  display: block;
  padding: 11px 18px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.side-links a:hover {
  color: var(--color-primary);
}

.contact-card {
  padding: 18px;
  background: #f6f6f6;
  color: #555;
  font-size: 13px;
  line-height: 2;
}

.content-head {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
}

.content-head h1,
.content-head .section-title {
  position: relative;
  margin: 0;
  padding: 0 0 13px;
  color: #222;
  font-size: 24px;
  font-weight: 500;
}

.content-head h1::after,
.content-head .section-title::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 52px;
  height: 3px;
  background: var(--color-primary);
  content: "";
}

.breadcrumb {
  color: #999;
  font-size: 12px;
}

.content-body {
  padding-top: 28px;
  color: #444;
  font-size: 15px;
  line-height: 2.05;
}

.content-body img {
  height: auto;
  margin: 22px auto;
}

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

.factory-gallery img {
  width: 100%;
  height: 220px;
  margin: 0;
  object-fit: cover;
}

.honor-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.honor-gallery img {
  width: 100%;
  margin: 0;
  object-fit: contain;
}

.mobile-factory-honor {
  display: none;
}

.home-sections {
  min-height: 420px;
  padding: 35px 0 48px;
}

.home-grid {
  display: grid;
  grid-template-columns: 438px 421px 1fr;
  gap: 43px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.section-heading h2 {
  margin: 0;
  padding: 0 0 11px;
  border-bottom: 3px solid var(--color-primary);
  color: #222;
  font-size: 17px;
  font-weight: 500;
}

.section-heading a {
  color: #999;
  font-size: 11px;
}

.company-summary {
  color: #666;
}

.company-summary img {
  float: left;
  width: 192px;
  height: 128px;
  margin: 0 10px 6px 0;
  object-fit: cover;
}

.company-summary p {
  margin: 0;
  color: #666;
  font-size: 12px;
  line-height: 2.05;
}

.compact-news {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-news li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 0;
  border-bottom: 1px dashed #ddd;
}

.compact-news a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-news time {
  flex: 0 0 auto;
  color: #999;
  font-size: 12px;
}

.certificate-preview {
  width: 228px;
  height: 162px;
  margin: 0 auto;
  border: 0;
  object-fit: contain;
}

.category-strip {
  display: flex;
  gap: 10px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.category-strip a {
  padding: 7px 15px;
  border: 1px solid #ddd;
}

.category-strip a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.product-card,
.case-card {
  border: 1px solid #e3e3e3;
  background: #fff;
  transition: border-color 160ms ease, transform 160ms ease;
}

.product-card:hover,
.case-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.product-card img,
.case-card img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
}

.product-card h2,
.case-card h2 {
  margin: 0;
  padding: 13px 14px 4px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
}

.product-card p,
.case-card p {
  margin: 0;
  padding: 0 14px 14px;
  color: #999;
  font-size: 12px;
}

.news-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.news-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid #e7e7e7;
}

.news-date {
  border-right: 1px solid #ddd;
  color: #999;
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-align: center;
}

.news-date strong {
  display: block;
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 400;
}

.news-item h2 {
  margin: 0 0 7px;
  color: #333;
  font-size: 17px;
  font-weight: 500;
}

.news-item p {
  margin: 0;
  color: #888;
}

.site-search {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.site-search input {
  width: 260px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  outline: none;
}

.site-search input:focus {
  border-color: var(--color-primary);
}

.site-search button,
.primary-button {
  min-width: 92px;
  height: 40px;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 34px 0 0;
}

.pagination a,
.pagination span {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #ddd;
  line-height: 32px;
  text-align: center;
}

.article-title {
  margin: 28px 0 8px;
  color: #222;
  font-size: 27px;
  font-weight: 500;
  text-align: center;
}

.article-meta {
  padding-bottom: 17px;
  border-bottom: 1px solid #eee;
  color: #999;
  text-align: center;
}

.detail-image {
  max-width: 620px;
  margin: 22px auto;
}

.detail-nav {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.map-placeholder {
  min-height: 360px;
  padding: 48px;
  background:
    linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)),
    url("../images/company.jpg") center / cover;
  border: 1px solid #ddd;
}

.message-form {
  display: grid;
  gap: 18px;
  max-width: 620px;
}

.message-form label {
  display: grid;
  gap: 7px;
}

.message-form input,
.message-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ddd;
}

.message-form textarea {
  min-height: 150px;
  resize: vertical;
}

.site-footer {
  background: var(--color-footer);
  color: #aaa;
}

.footer-main {
  display: grid;
  grid-template-columns: 343px 437px 1fr;
  gap: 0;
  min-height: 399px;
  padding: 45px 0 34px;
}

.footer-main > section {
  min-height: 205px;
  padding: 0 14px;
}

.footer-main > section + section {
  border-left: 1px solid #3b3b3b;
  padding-left: 58px;
}

.footer-main h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}

.footer-codes {
  display: flex;
  gap: 56px;
}

.footer-code {
  text-align: center;
}

.footer-code img {
  width: 84px;
  height: 84px;
  margin-bottom: 8px;
  background: #fff;
  object-fit: contain;
}

.footer-contact {
  padding-left: 26px !important;
  font-size: 13px;
  line-height: 2;
}

.footer-bottom {
  padding: 13px calc((100% - 1200px) / 2);
  border-top: 1px solid #3b3b3b;
  color: #777;
  font-size: 12px;
  text-align: left;
}

.inner-footer {
  min-height: 47px;
  padding: 13px 0;
  background: #292929;
  color: #555;
  font-size: 12px;
}

.floating-contact {
  position: fixed;
  z-index: 20;
  right: 0;
  top: 48%;
  width: 54px;
  transform: translateY(-50%);
}

.floating-contact a {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,.25);
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  text-align: center;
}

html:not([data-locale="zh"]) .floating-contact,
html:not([data-locale="zh"]) .floating-contact a {
  width: 112px;
}

html:not([data-locale="zh"]) .floating-contact a {
  min-height: 58px;
  height: auto;
  padding: 8px 6px;
  font-size: 11px;
  line-height: 1.25;
}

.template-marker {
  display: none;
}
