:root {
  --red: #a72122;
  --red-dark: #8d1a1b;
  --ink: #333;
  --sub: #777;
  --line: #e5dfd8;
  --dash: #eee8e2;
  --head-bg: #f3eee8;
  --paper: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 13.5px/1.8 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; }
p { margin: 0 0 10px; }

.container { width: 100%; max-width: 1002px; margin: 0 auto; padding: 0 12px; }

/* 顶部品牌条 */
.top-strip { background: #fff; border-bottom: 1px solid #efebe6; }
.top-strip-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 5px; background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 26px; letter-spacing: 1px; font-weight: 700;
  flex: 0 0 48px;
}
.brand-txt b { display: block; font-size: 21px; letter-spacing: 2px; color: #222; }
.brand-txt i { display: block; font-style: normal; font-size: 12px; color: #999; letter-spacing: .5px; }
.brand-tel { text-align: right; }
.brand-tel span { display: block; font-size: 12px; color: #999; letter-spacing: 2px; }
.brand-tel b { font-size: 24px; color: var(--red); letter-spacing: 1px; }

/* 主导航 */
.mainnav { background: var(--red); }
.mainnav-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.mainnav-in a {
  color: #fff; text-align: center; line-height: 46px; font-size: 15px; letter-spacing: 2px;
  border-right: 1px solid rgba(255,255,255,.16);
}
.mainnav-in a:first-child { border-left: 1px solid rgba(255,255,255,.16); }
.mainnav-in a:hover { background: var(--red-dark); color: #fff; }
.mainnav-in a.on { background: var(--red-dark); color: #fff; font-weight: 600; }

.page { padding: 14px 12px 20px; }

/* 首页工厂大图 */
.banner { position: relative; overflow: hidden; border: 1px solid var(--line); margin-bottom: 12px; }
.banner img { width: 100%; height: 330px; object-fit: cover; object-position: center 52%; }
.banner-txt {
  position: absolute; inset: 0; padding: 0 34px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  background: linear-gradient(90deg, rgba(20,16,14,.86) 0%, rgba(20,16,14,.62) 40%, rgba(20,16,14,0) 72%);
  color: #fff;
}
.banner-kicker { font-size: 12px; letter-spacing: 3px; color: #e7c9c2; margin: 0; }
.banner-txt h1 { font-size: 32px; margin: 0; letter-spacing: 2px; font-weight: 600; }
.banner-sub { font-size: 13px; color: #ddd3cd; margin: 0 0 8px; letter-spacing: .5px; }
.banner-btn {
  align-self: flex-start; background: var(--red); color: #fff; font-size: 13px;
  padding: 8px 20px; border-radius: 2px; letter-spacing: 1px;
}
.banner-btn:hover { background: #fff; color: var(--red); }

/* 两栏 */
.cols { display: grid; grid-template-columns: 240px 1fr; gap: 12px; align-items: start; }
.side { display: grid; gap: 12px; }
.main-col { display: grid; gap: 12px; min-width: 0; }

/* 模块框 */
.box { border: 1px solid var(--line); background: var(--paper); }
.box-hd {
  height: 36px; display: flex; align-items: center; justify-content: space-between;
  background: var(--head-bg); border-bottom: 1px solid var(--line); padding-right: 10px;
}
.box-hd h3 {
  margin: 0; height: 36px; line-height: 36px; padding: 0 18px; background: var(--red);
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 2px;
}
.box-hd .more { font-size: 12px; color: #a09689; }
.box-hd .more:hover { color: var(--red); }
.box-intro { margin: 0; padding: 10px 16px 0; font-size: 12.5px; color: var(--sub); }
.box-note { padding: 12px 16px; color: var(--sub); font-size: 12.5px; }
.box-note b { color: var(--red); }

/* 侧栏分类列表 */
.cat-list { list-style: none; margin: 0; padding: 4px 0; }
.cat-list li { border-bottom: 1px dashed var(--dash); }
.cat-list li:last-child { border-bottom: 0; }
.cat-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; height: 36px; font-size: 13.5px; position: relative; padding-left: 22px;
}
.cat-list a::before {
  content: ""; position: absolute; left: 10px; width: 4px; height: 4px;
  background: var(--red); transform: rotate(45deg); opacity: .75;
}
.cat-list a:hover { background: #faf6f2; color: var(--red); }
.cat-list i {
  font-style: normal; font-size: 11px; color: #fff; background: var(--red);
  padding: 0 5px; line-height: 16px; border-radius: 2px; letter-spacing: 1px;
}

/* 侧栏联系方式 */
.side-contact { padding: 12px 14px 6px; font-size: 12.5px; }
.side-contact p { display: flex; gap: 6px; margin: 0 0 6px; line-height: 1.7; }
.side-contact em { font-style: normal; color: #a09689; flex: 0 0 44px; }
.side-contact strong { color: var(--red); font-size: 15px; }
.side-btn {
  display: block; margin: 6px 14px 14px; text-align: center; background: var(--red);
  color: #fff; line-height: 34px; font-size: 13px; letter-spacing: 2px;
}
.side-btn:hover { background: var(--red-dark); color: #fff; }

/* 公司简介 */
.about-body { padding: 14px 18px 4px; color: #444; font-size: 13.5px; }
.about-body p { text-indent: 2em; margin-bottom: 8px; }
.about-facts {
  list-style: none; margin: 8px 0 0; padding: 12px 10px 14px;
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px dashed var(--dash);
}
.about-facts li { text-align: center; border-right: 1px dashed var(--dash); }
.about-facts li:last-child { border-right: 0; }
.about-facts b { display: block; font-size: 17px; color: var(--red); letter-spacing: .5px; }
.about-facts span { font-size: 12px; color: var(--sub); }

/* 热门产品 */
.grid-hot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 14px 16px 16px; }
.hot-card { display: block; border: 1px solid var(--line); background: #fff; transition: .15s; }
.hot-card:hover { border-color: var(--red); box-shadow: 0 2px 10px rgba(167,33,34,.12); }
.hot-card-pic { position: relative; overflow: hidden; background: #f4efe9; }
.hot-card-pic svg { width: 100%; height: auto; }
.hot-card-pic img, .mini-card-pic img, .prod-pic img {
  width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover;
}
.hot-badge {
  position: absolute; left: 0; top: 0; background: var(--red); color: #fff;
  font-size: 11px; line-height: 18px; padding: 0 6px; letter-spacing: 1px;
}
.hot-card-body { padding: 9px 11px 11px; }
.hot-card-body b { display: block; font-size: 14.5px; letter-spacing: .5px; }
.hot-card-body p {
  color: var(--sub); font-size: 12px; line-height: 1.65; margin: 5px 0 6px; height: 40px; overflow: hidden;
}
.hot-card-body em { font-style: normal; color: var(--red); font-size: 12.5px; }

/* 其他蜡种 */
.grid-all { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 14px 16px 16px; }
.mini-card { display: block; border: 1px solid var(--line); background: #fff; padding-bottom: 6px; }
.mini-card:hover { border-color: var(--red); }
.mini-card-pic svg { width: 100%; height: auto; }
.mini-card-name { display: block; text-align: center; font-size: 12.5px; color: #444; padding-top: 5px; }
.mini-card:hover .mini-card-name { color: var(--red); }

/* 产品详情 */
.crumb { font-size: 12px; color: var(--sub); padding: 2px 2px 8px; }
.crumb a { color: var(--sub); }
.prod-head { display: grid; grid-template-columns: 300px 1fr; gap: 20px; padding: 16px; align-items: start; }
.prod-pic { border: 1px solid var(--line); align-self: start; }
.prod-pic svg { width: 100%; height: auto; }
.prod-info h1 { font-size: 20px; margin: 0 0 8px; letter-spacing: 1px; }
.hot-tag {
  display: inline-block; vertical-align: 3px; margin-left: 8px;
  background: var(--red); color: #fff; font-size: 12px; line-height: 18px;
  padding: 0 7px; border-radius: 2px; letter-spacing: 1px; font-weight: 400;
}
.prod-sum { color: var(--sub); font-size: 13px; margin-bottom: 10px; }
.prod-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.prod-table th, .prod-table td { border: 1px solid var(--line); padding: 7px 10px; vertical-align: top; }
.prod-table th { width: 84px; background: #faf7f3; font-weight: 600; color: #666; text-align: left; }
.prod-table .price { color: var(--red); font-weight: 600; }
.prod-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn-red, .btn-line { padding: 8px 22px; font-size: 13px; letter-spacing: 1px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-line { border: 1px solid var(--red); color: var(--red); }
.btn-line:hover { background: #fbf1f0; }

.article-body { padding: 14px 18px 18px; color: #444; font-size: 13.5px; }
.article-body h3 {
  font-size: 14.5px; margin: 16px 0 8px; padding-left: 10px; border-left: 3px solid var(--red); color: #222;
}
.article-body h3:first-child { margin-top: 4px; }
.article-body ul { padding-left: 20px; margin: 0 0 10px; }
.article-body li { margin-bottom: 4px; }
.prevnext { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--dash); font-size: 12.5px; color: var(--sub); }

/* 联系我们 */
.contact-table { width: 100%; border-collapse: collapse; margin: 14px 18px 18px; font-size: 13px; width: calc(100% - 36px); }
.contact-table th, .contact-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.contact-table th { width: 110px; background: #faf7f3; color: #666; font-weight: 600; }
.contact-table strong { color: var(--red); }

/* 页脚 */
.foot { margin-top: 18px; border-top: 3px solid var(--red); background: #faf8f6; padding: 16px 0 18px; }
.foot-links { font-size: 12.5px; color: var(--sub); }
.foot-links b { color: #444; }
.foot-links a { margin-right: 14px; color: var(--sub); }
.foot-line { height: 1px; background: var(--line); margin: 12px 0; }
.foot-bot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #999; }
.foot-bot a { color: #999; }

/* 响应式 */
@media (max-width: 1024px) {
  .cols { grid-template-columns: 1fr; }
  .side { order: 2; grid-template-columns: 1fr 1fr; }
  .main-col { order: 1; }
  .banner img { height: 260px; }
  .banner-txt h1 { font-size: 26px; }
}
@media (max-width: 720px) {
  .grid-hot { grid-template-columns: repeat(2, 1fr); }
  .grid-all { grid-template-columns: repeat(2, 1fr); }
  .about-facts { grid-template-columns: repeat(2, 1fr); gap: 10px 0; }
  .side { grid-template-columns: 1fr; }
  .prod-head { grid-template-columns: 1fr; }
  .banner img { height: 200px; }
  .banner-txt { padding: 0 18px; background: linear-gradient(90deg, rgba(20,16,14,.92) 0%, rgba(20,16,14,.86) 62%, rgba(20,16,14,.62) 100%); }
  .banner-txt h1 { font-size: 21px; }
  .banner-sub { font-size: 12px; }
  .mainnav-in a { line-height: 42px; font-size: 14px; letter-spacing: 0; }
  .brand-tel b { font-size: 19px; }
}
