* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
  background: #f2f2f2;
}

body {
  margin: 0;
  color: #222;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  background:
    url("./assets/tianze-metal.com/images/gywmbg.jpg") center top / cover fixed no-repeat,
    #efefef;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 0;
}

.brand {
  display: block;
  max-width: 100%;
  margin-bottom: 0;
}

.brand-info {
  display: grid;
  grid-template-columns: 92px minmax(210px, 1.05fr) 1px minmax(210px, 1fr) minmax(260px, 1.3fr);
  gap: 20px;
  align-items: center;
  padding: 18px 0 24px;
  color: #222;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  background: #c9151c;
  border-radius: 50%;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.08);
}

.brand-main strong {
  display: block;
  color: #111;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: 0;
}

.brand-main em {
  display: block;
  margin-top: 4px;
  color: #555;
  font-size: 13px;
  font-style: normal;
}

.brand-divider {
  width: 1px;
  height: 52px;
  background: #d7d7d7;
}

.brand-meta b {
  display: block;
  margin-bottom: 3px;
  color: #c9151c;
  font-size: 13px;
}

.brand-meta span {
  display: block;
  color: #333;
  font-size: 13px;
  line-height: 1.55;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 78px;
}

.category-hero {
  padding: 44px 28px 52px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
}

.category-hero h1 {
  margin: 0 0 10px;
  color: #2b2b2b;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.subtitle {
  margin: 0 0 18px;
  color: #000;
  font-size: 13px;
  text-transform: uppercase;
}

.intro {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #111;
  font-size: 13px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.category-tabs a {
  min-width: 96px;
  padding: 5px 18px;
  color: #000;
  font-size: 13px;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.category-tabs .is-active,
.category-tabs a:hover {
  color: #fff;
  background: #c9151c;
  border-color: #c9151c;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
  padding: 34px;
  background: #fff;
}

.product-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #e2e2e2;
}

.product-card img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #1e1e1e;
}

.card-body {
  padding: 18px 20px 20px;
}

.card-body h2 {
  margin: 0 0 8px;
  color: #222;
  font-size: 20px;
  line-height: 1.25;
}

.card-body p {
  min-height: 44px;
  margin: 0 0 16px;
  color: #666;
  font-size: 13px;
}

.view-product {
  display: inline-block;
  padding: 6px 16px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.6;
  cursor: pointer;
  background: #c9151c;
  border: 0;
}

.view-product:hover,
.view-product:focus-visible {
  background: #a90f15;
}

.site-footer {
  color: #000;
  background: #b7bbbb;
}

.company-about {
  margin-top: 32px;
  padding: 60px 54px;
  background: #fff;
}

.about-heading { text-align: center; }
.about-heading span { color: #c9151c; font-size: 12px; letter-spacing: 4px; }
.about-heading h2 { margin: 5px 0; font-size: 30px; }
.about-heading p { margin: 0 0 42px; color: #777; }
.about-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr; gap: 50px; align-items: center; }
.about-intro h3, .about-columns h3, .advantages > h3 { margin: 0 0 16px; font-size: 22px; }
.about-intro p, .about-columns p, .about-columns li { color: #555; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; background: #ddd; }
.about-stats li { padding: 24px 12px; text-align: center; background: #f5f5f5; }
.about-stats strong { display: block; color: #c9151c; font-size: 27px; }
.about-stats span { color: #666; font-size: 12px; }
.about-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 42px; margin-top: 55px; padding-top: 42px; border-top: 1px solid #e5e5e5; }
.about-columns ol { margin: 0; padding-left: 20px; }
.about-columns li { margin-bottom: 10px; }
.advantages { margin-top: 48px; }
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.advantage-grid article { padding: 24px 20px; background: #f5f5f5; border-top: 3px solid #c9151c; }
.advantage-grid article > strong { color: #c9151c; font-size: 24px; }
.advantage-grid h4 { margin: 8px 0; font-size: 16px; }
.advantage-grid p { margin: 0; color: #666; font-size: 13px; }
.about-philosophy { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; padding: 32px; color: #fff; background: #333; }
.about-philosophy span { color: #ef777b; }
.about-philosophy h3 { margin: 5px 0 8px; font-size: 24px; }
.about-philosophy p { margin: 4px 0; }
.about-philosophy address { align-self: center; font-style: normal; }
.about-philosophy address strong { display: block; color: #ef777b; }

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px 210px;
  gap: 34px;
  align-items: center;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 26px;
}

.footer-copy p,
.footer-links p {
  margin: 0 0 5px;
  font-size: 12px;
  line-height: 1.55;
}

.footer-contact-card {
  width: 310px;
  max-width: 100%;
  padding: 22px 24px;
  color: #222;
  background: rgba(255, 255, 255, 0.38);
  border-left: 4px solid #c9151c;
}

.footer-contact-card strong,
.footer-contact-card span {
  display: block;
}

.footer-contact-card strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.footer-contact-card span {
  margin-top: 4px;
  font-size: 13px;
}

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

.top-link {
  display: inline-block;
  width: 37px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .page-shell {
    width: calc(100% - 24px);
    margin: 0 auto 36px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-links {
    text-align: left;
  }

  .company-about { padding: 42px 28px; }
  .about-intro, .about-columns, .about-philosophy { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-info {
    grid-template-columns: 76px 1fr;
    gap: 12px 16px;
  }
  .brand-divider { display: none; }
  .brand-meta { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body {
    background-attachment: scroll;
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .header-inner {
    width: 100%;
    padding: 16px 12px 0;
  }

  .brand {
    margin-bottom: 16px;
  }

  .brand-info {
    padding: 12px 0 14px;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
    font-size: 18px;
  }

  .brand-main strong {
    font-size: 20px;
  }

  .category-hero {
    padding: 34px 14px 36px;
  }

  .category-tabs {
    gap: 8px;
  }

  .category-tabs a {
    min-width: calc(50% - 8px);
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 0;
    padding: 14px;
  }

  .footer-inner {
    width: 100%;
    padding: 22px 14px;
  }

  .company-about { margin-top: 0; padding: 36px 16px; }
  .advantage-grid { grid-template-columns: 1fr; }
  .about-philosophy { padding: 24px 20px; }
}

/* ICP filing: retain the existing footer layout and colors. */
.icp-filing { margin: 12px 0 0; padding: 0 16px 16px; text-align: center; font-size: 14px; line-height: 1.6; }
.icp-filing a { color: inherit; display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
.icp-filing a:hover { text-decoration-thickness: 2px; }
.icp-filing a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
