* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: #333;
  background: #f5f5f5;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c8161d, #8b0f14);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-text strong { display: block; font-size: 18px; color: #222; }
.logo-text small { font-size: 11px; color: #888; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 15px;
  color: #444;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active { color: #c8161d; border-bottom-color: #c8161d; }

.sub-nav {
  background: #c8161d;
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 10px 20px;
  flex-wrap: wrap;
}
.sub-nav a { color: #fff; font-size: 13px; opacity: .95; }
.sub-nav a:hover { opacity: 1; text-decoration: underline; }

.nav-toggle {
  display: none;
  border: none;
  background: #c8161d;
  color: #fff;
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.hero-banner { background: #1a1a1a; }
.hero-slide {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.hero-slide-1 {
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.4) 100%),
    linear-gradient(135deg, #2c3e50 0%, #1a252f 50%, #4a2030 100%);
}
.hero-content {
  max-width: 1200px;
  padding: 40px 20px;
  color: #fff;
  text-align: left;
  width: 100%;
}
.hero-content h1 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 16px; }
.hero-content p { font-size: 17px; max-width: 560px; opacity: .92; }

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}
.section-gray { background: #ececec; max-width: none; }
.section-gray > .section-head,
.section-gray > .product-showcase,
.section-gray > .product-grid,
.section-gray > .support-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  border-left: 4px solid #c8161d;
  padding-left: 14px;
}
.section-head h2 { font-size: 24px; color: #222; }
.more-link { color: #c8161d; font-size: 14px; }
.more-link:hover { text-decoration: underline; }

.news-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.news-grid-sm { display: grid; gap: 16px; }
.news-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  transition: box-shadow .2s;
}
.news-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.news-card .thumb { height: 160px; background-size: cover; background-position: center; }
.news-card-lg .thumb { height: 220px; }
.news-card.flat .thumb { height: 120px; }
.thumb-a { background: linear-gradient(135deg, #37474f, #263238); }
.thumb-b { background: linear-gradient(135deg, #455a64, #607d8b); }
.thumb-c { background: linear-gradient(135deg, #5d4037, #795548); }
.thumb-d { background: linear-gradient(135deg, #1565c0, #0d47a1); }
.thumb-e { background: linear-gradient(135deg, #2e7d32, #1b5e20); }
.thumb-f { background: linear-gradient(135deg, #6a1b9a, #4a148c); }
.news-body { padding: 16px; }
.news-card h3 { font-size: 15px; padding: 12px 14px 14px; color: #222; }
.news-card-lg h3 { font-size: 18px; padding: 0 0 8px; }
.news-card p { font-size: 13px; color: #666; padding: 0 14px 14px; }

.product-showcase { margin-bottom: 16px; }
.product-card {
  background: #fff;
  border: 1px solid #ddd;
  text-align: center;
  overflow: hidden;
}
.product-card h3 { padding: 14px; font-size: 15px; }
.product-img { height: 180px; background-size: cover; background-position: center; }
.product-card-lg .product-img { height: 280px; }
.product-img-1 { background: linear-gradient(160deg, #263238, #37474f); }
.product-img-2 { background: linear-gradient(160deg, #1b5e20, #2e7d32); }
.product-img-3 { background: linear-gradient(160deg, #0d47a1, #1565c0); }
.product-img-4 { background: linear-gradient(160deg, #4a148c, #6a1b9a); }
.product-caption {
  padding: 20px;
  background: rgba(200,22,29,.92);
  color: #fff;
  text-align: left;
}
.product-caption h3 { font-size: 20px; margin-bottom: 6px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-section { background: #fff; max-width: none; }
.contact-section > .section-head,
.contact-section > .contact-grid { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding-bottom: 20px;
}
.contact-block h3 {
  color: #c8161d;
  font-size: 18px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 10px; font-size: 14px; color: #555; }
.contact-list a { color: #c8161d; }
.contact-list a:hover { text-decoration: underline; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 20px 20px;
}
.support-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 24px 20px;
}
.support-card h3 { color: #c8161d; margin-bottom: 10px; font-size: 16px; }
.support-card p { font-size: 14px; color: #666; }

.about-box {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 28px;
  font-size: 15px;
  color: #555;
}
.about-box p + p { margin-top: 12px; }

.site-footer {
  background: #2b2b2b;
  color: #bbb;
  padding: 40px 20px 24px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-col a {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: #aaa;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #444;
  text-align: center;
  font-size: 13px;
}
.footer-links { margin-top: 8px; }
.footer-links a { color: #999; }
.footer-links a:hover { color: #fff; }
.footer-links .sep { margin: 0 10px; color: #666; }

@media (max-width: 900px) {
  .news-feature, .contact-grid { grid-template-columns: 1fr; }
  .news-row, .product-grid, .support-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
  }
  .main-nav.open { display: flex; }
  .sub-nav { gap: 16px; font-size: 12px; }
  .news-row, .product-grid, .support-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-slide { min-height: 300px; }
}
