:root {
  --dark: #1f1f1f;
  --red: #e51f14;
  --red-dark: #b91810;
  --text: #333;
  --muted: #777;
  --line: #ddd;
  --soft: #f6f6f6;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: #fff;
  line-height: 1.72;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, calc(100% - 30px)); margin: 0 auto; }

.site-head { border-top: 1px solid #eee; background: #fff; }
.headline {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.company { font-size: 18px; color: #333; }
.hotline { text-align: right; font-size: 13px; color: #c2160d; line-height: 1.4; }
.hotline b { display: block; color: #111; font-size: 14px; }

.nav-bar { background: var(--dark); }
.nav-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a {
  min-width: 95px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px;
}
.nav a:hover, .nav a.active { background: var(--red); }
.search { display: flex; align-items: center; gap: 0; }
.search input {
  width: 150px;
  height: 26px;
  border: 0;
  padding: 0 10px;
  font-size: 12px;
}
.search button {
  height: 26px;
  border: 0;
  padding: 0 12px;
  color: #fff;
  background: var(--red);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #111;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.12), rgba(0,0,0,.45));
}
.hero-copy {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 120px 0 92px;
  max-width: 660px;
}
.hero-copy h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 60px); line-height: 1.12; }
.hero-copy p { margin: 0; color: #f3f3f3; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 24px;
  color: #fff;
  background: var(--red);
  border: 0;
  font-weight: 700;
}
.btn.dark { background: var(--dark); }
.dots { position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; gap: 9px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #fff; opacity: .7; }
.dots i:first-child { background: var(--red); opacity: 1; }

.section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 34px; }
.section-title h2 { margin: 0; font-size: 26px; letter-spacing: .02em; }
.section-title span { display: block; color: #111; font-family: Georgia, serif; font-size: 20px; text-transform: uppercase; }
.section-title::after { content: ""; display: block; width: 54px; height: 3px; background: var(--red); margin: 14px auto 0; }

.product-band {
  background: linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,.78)), url("../images/product-pg.png") center / cover;
  color: #fff;
}
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs span { background: var(--red); min-width: 118px; text-align: center; padding: 8px 16px; font-size: 13px; font-weight: 700; }
.home-products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.home-product { text-align: center; color: #fff; }
.home-product img { width: 100%; height: 105px; object-fit: cover; background: #fff; border: 5px solid #fff; }
.home-product h3 { font-size: 13px; margin: 10px 0 0; }

.about-preview { display: grid; grid-template-columns: 1.06fr .94fr; gap: 38px; align-items: center; }
.about-preview p { color: #555; margin: 0 0 14px; }
.about-preview img { border: 1px solid var(--line); }

.bottom-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; padding-bottom: 58px; }
.mini-title { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--red); font-weight: 700; padding-bottom: 8px; margin-bottom: 14px; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.case-grid img { height: 82px; object-fit: cover; width: 100%; }
.mini-news { display: grid; gap: 12px; }
.mini-news a { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; font-size: 13px; }
.placeholder { height: 46px; background: #eee; border: 1px solid var(--line); }
.contact-mini img { height: 92px; width: 100%; object-fit: cover; margin-bottom: 10px; }
.contact-mini p { margin: 4px 0; color: #555; font-size: 13px; }

.banner {
  min-height: 300px;
  position: relative;
  background: #111;
  overflow: hidden;
}
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }

.layout { display: grid; grid-template-columns: 240px 1fr; gap: 34px; padding: 36px 0 70px; }
.sidebar-box { border: 1px solid var(--line); margin-bottom: 18px; background: #fff; }
.side-title { background: var(--red); color: #fff; font-weight: 700; padding: 13px 16px; }
.side-list { padding: 12px; display: grid; gap: 8px; }
.side-list a { display: block; background: #f1f1f1; border-radius: 18px; text-align: center; padding: 8px 10px; color: #555; font-size: 13px; }
.side-list a.active, .side-list a:hover { background: var(--red); color: #fff; }
.side-contact { padding: 12px; font-size: 12px; color: #555; }
.side-contact img { height: 108px; width: 100%; object-fit: cover; margin-bottom: 10px; }
.crumb { border: 1px solid var(--line); background: #fff; padding: 12px 16px; color: #777; font-size: 13px; margin-bottom: 22px; }
.content h1 { margin: 0 0 22px; font-size: 24px; }
.content p { color: #555; margin: 0 0 16px; }
.about-main img { margin: 26px auto; border: 1px solid var(--line); }
.thumb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.thumb-row img { height: 115px; width: 100%; object-fit: cover; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card { border: 1px solid var(--line); background: #fff; padding: 22px; text-align: center; }
.product-card img { width: 100%; height: 165px; object-fit: cover; margin-bottom: 14px; }
.product-card h2 { margin: 0 0 8px; font-size: 16px; }
.product-card p { font-size: 13px; }

.news-list { display: grid; gap: 18px; }
.news-item { display: grid; grid-template-columns: 78px 1fr; gap: 20px; padding-bottom: 18px; border-bottom: 1px dotted #bbb; }
.date { background: var(--red); color: #fff; text-align: center; padding: 10px 5px; }
.date b { display: block; font-size: 24px; line-height: 1; }
.date span { display: block; font-size: 11px; margin-top: 5px; }
.news-item h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }

.app-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.feature { border-left: 4px solid var(--red); background: var(--soft); padding: 18px; }
.feature h2 { margin: 0 0 6px; font-size: 18px; }

.contact-info { display: grid; grid-template-columns: .95fr 1.05fr; gap: 30px; }
.contact-card, .contact-form { background: #fff; border: 1px solid var(--line); padding: 24px; }
.contact-card p { margin: 8px 0; }
.map-card { margin-top: 18px; min-height: 210px; background: linear-gradient(135deg, #e7f1f0, #f9fbf4); border: 1px solid var(--line); position: relative; overflow: hidden; }
.map-card::before { content: ""; position: absolute; inset: 26px; border: 4px solid rgba(229,31,20,.22); transform: rotate(-7deg); }
.map-card::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--red); position: absolute; left: 50%; top: 48%; box-shadow: 0 0 0 10px rgba(229,31,20,.18); }
.contact-form label { display: block; font-weight: 700; margin-bottom: 13px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #cfd6dd; padding: 11px; margin-top: 6px; font: inherit; }
.contact-form textarea { min-height: 110px; }

.footer { background: #222; color: #d8d8d8; padding: 34px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer h2 { color: #fff; font-size: 18px; margin: 0 0 12px; }
.footer p { margin: 0; color: #bbb; font-size: 13px; }
.footer-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.footer-shots img { height: 58px; width: 100%; object-fit: cover; }
.copy { text-align: center; font-size: 12px; color: #aaa; border-top: 1px solid #3b3b3b; margin-top: 24px; padding-top: 16px; }

@media (max-width: 920px) {
  .headline, .nav-row { flex-direction: column; align-items: flex-start; padding: 10px 0; }
  .nav a { min-width: auto; padding: 9px 12px; }
  .search input { width: 190px; }
  .hero { min-height: 480px; }
  .home-products { grid-template-columns: repeat(2, 1fr); }
  .about-preview, .bottom-grid, .layout, .app-panel, .contact-info, .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .thumb-row, .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 22px, 1180px); }
  .company { font-size: 16px; }
  .hero-copy { padding: 76px 0; }
  .section { padding: 42px 0; }
  .home-products, .product-grid, .thumb-row, .feature-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
}
