
/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; }
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, p, table, th, td, form, input, textarea, button {
  margin: 0; padding: 0;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.8; color: #333; background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--c1); }
img { max-width: 100%; height: auto; display: block; border: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.4; }
input, textarea, button, select { font-family: inherit; font-size: inherit; outline: none; }
table { border-collapse: collapse; width: 100%; }
:root {
  --c1: #10416f;
  --c2: #d4a24a;
  --dark: #1f2733;
  --gray: #6b7684;
  --line: #e8ecf1;
  --bg: #f6f8fa;
}
.wrap { width: 1200px; max-width: 94%; margin: 0 auto; }
.clear { clear: both; }

/* ===== 顶部条 ===== */
.topbar { background: var(--dark); color: #c9d2dd; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar .tb-l span { margin-right: 18px; }
.topbar .tb-r a { color: #c9d2dd; margin-left: 14px; }
.topbar .tb-r a:hover { color: #fff; }

/* ===== 头部 ===== */
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.logo img { height: 56px; width: auto; }
.hd-right { display: flex; align-items: center; gap: 26px; }
.hd-tel { display: flex; align-items: center; gap: 10px; }
.hd-tel .ico {
  width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: center; justify-content: center;
}
.hd-tel .ico svg { width: 21px; height: 21px; fill: #fff; }
.hd-tel .txt small { display: block; font-size: 12px; color: var(--gray); line-height: 1.2; }
.hd-tel .txt b { display: block; font-size: 19px; color: var(--c1); letter-spacing: .5px; }

/* ===== 导航 ===== */
.navbar { background: var(--c1); }
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav { display: flex; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 0 24px; height: 54px; line-height: 54px; color: #fff; font-size: 16px; position: relative;
}
.nav > li > a::after {
  content: ""; position: absolute; left: 50%; bottom: 8px; width: 0; height: 2px; background: #fff;
  transition: all .25s; transform: translateX(-50%);
}
.nav > li:hover > a::after, .nav > li.on > a::after { width: 40px; }
.nav > li.on > a, .nav > li:hover > a { background: rgba(0, 0, 0, .12); }
.sub {
  display: none; position: absolute; left: 0; top: 54px; min-width: 190px; background: #fff; z-index: 60;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14); border-top: 3px solid var(--c2);
}
.nav > li:hover .sub { display: block; }
.sub li a { display: block; padding: 11px 20px; color: #444; border-bottom: 1px solid #f1f3f6; font-size: 14px; }
.sub li a:hover { background: var(--c1); color: #fff; }
.nav-search { display: flex; }
.nav-search input {
  width: 190px; height: 34px; border: none; padding: 0 12px; background: rgba(255, 255, 255, .18); color: #fff;
}
.nav-search input::placeholder { color: rgba(255, 255, 255, .75); }
.nav-search button {
  width: 46px; height: 34px; border: none; background: rgba(0, 0, 0, .18); color: #fff; cursor: pointer;
}
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 8px; }

/* ===== 轮播 ===== */
.banner { position: relative; height: 500px; overflow: hidden; background: var(--c1); }
.banner .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s; background-size: cover; background-position: center;
}
.banner .slide.on { opacity: 1; }
.banner .slide .cap {
  position: absolute; left: 0; right: 0; bottom: 78px; text-align: center; color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.banner .slide .cap b { display: block; font-size: 34px; letter-spacing: 2px; }
.banner .slide .cap span { display: inline-block; margin-top: 8px; font-size: 16px; opacity: .92; }
.banner .dots { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; z-index: 5; }
.banner .dots i {
  display: inline-block; width: 12px; height: 12px; margin: 0 6px; border-radius: 50%; background: rgba(255, 255, 255, .5);
  cursor: pointer;
}
.banner .dots i.on { background: #fff; width: 28px; border-radius: 6px; }
.banner .arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 76px; line-height: 76px;
  text-align: center; color: #fff; background: rgba(0, 0, 0, .22); cursor: pointer; z-index: 5; font-size: 26px;
}
.banner .arrow.prev { left: 0; }
.banner .arrow.next { right: 0; }
.banner .arrow:hover { background: rgba(0, 0, 0, .4); }

/* ===== 通用版块 ===== */
.section { padding: 62px 0; }
.section.gray { background: var(--bg); }
.sec-head { text-align: center; margin-bottom: 38px; }
.sec-head h2 { font-size: 30px; color: #222; position: relative; padding-bottom: 14px; }
.sec-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 3px; background: var(--c1);
  transform: translateX(-50%);
}
.sec-head p { color: var(--gray); margin-top: 10px; font-size: 14px; letter-spacing: 1px; }
.more {
  display: inline-block; margin-top: 26px; padding: 9px 26px; border: 1px solid var(--c1); color: var(--c1);
  font-size: 14px; border-radius: 2px;
}
.more:hover { background: var(--c1); color: #fff; }
.btn {
  display: inline-block; padding: 11px 30px; background: var(--c1); color: #fff; border-radius: 2px; border: none;
  cursor: pointer; transition: .25s;
}
.btn:hover { background: var(--c2); color: #fff; }

/* ===== 关于 ===== */
.about-box { display: flex; gap: 46px; align-items: center; }
.about-pic { width: 46%; }
.about-pic img { width: 100%; border-radius: 4px; }
.about-txt { flex: 1; }
.about-txt h3 { font-size: 24px; margin-bottom: 16px; color: #222; }
.about-txt p { color: #555; text-indent: 2em; margin-bottom: 12px; }
.about-nums { display: flex; gap: 30px; margin-top: 26px; flex-wrap: wrap; }
.about-nums div { text-align: center; }
.about-nums b { display: block; font-size: 30px; color: var(--c1); }
.about-nums span { font-size: 13px; color: var(--gray); }

/* ===== 优势 ===== */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-item {
  background: #fff; border: 1px solid var(--line); padding: 30px 26px; text-align: center; transition: .3s;
}
.feat-item:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .08); transform: translateY(-4px); }
.feat-item .fi {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: linear-gradient(135deg, var(--c1), var(--c2));
}
.feat-item .fi svg { width: 28px; height: 28px; fill: #fff; }
.feat-item h4 { font-size: 17px; margin-bottom: 8px; color: #222; }
.feat-item p { font-size: 13px; color: var(--gray); line-height: 1.7; }

/* ===== 分类卡片 ===== */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 34px; }
.cat-card { position: relative; overflow: hidden; border-radius: 4px; }
.cat-card img { width: 100%; height: 190px; object-fit: cover; transition: .4s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .cn {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .68)); font-size: 16px;
}

/* ===== 产品/新闻卡片 ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); transition: .3s; overflow: hidden; }
.card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, .1); transform: translateY(-4px); }
.card .pic { position: relative; overflow: hidden; }
.card .pic img { width: 100%; height: 200px; object-fit: cover; transition: .4s; }
.card:hover .pic img { transform: scale(1.05); }
.card .pic .tag {
  position: absolute; left: 0; top: 14px; background: var(--c1); color: #fff; font-size: 12px; padding: 3px 12px;
}
.card .info { padding: 16px 18px 20px; }
.card .info h3 { font-size: 16px; margin-bottom: 8px; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .info p { font-size: 13px; color: var(--gray); height: 44px; overflow: hidden; }
.card .info .lk { margin-top: 10px; font-size: 13px; color: var(--c1); }

/* ===== 新闻首页 ===== */
.news-list { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.news-main .nl-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.news-main .nl-item:last-child { border-bottom: none; }
.news-main .nl-date {
  width: 64px; text-align: center; background: var(--bg); padding: 8px 0; height: 64px;
}
.news-main .nl-date b { display: block; font-size: 22px; color: var(--c1); line-height: 1.1; }
.news-main .nl-date span { font-size: 12px; color: var(--gray); }
.news-main .nl-txt h3 { font-size: 16px; margin-bottom: 6px; color: #222; }
.news-main .nl-txt p { font-size: 13px; color: var(--gray); height: 44px; overflow: hidden; }
.news-side .ns-item img { width: 100%; height: 150px; object-fit: cover; }
.news-side .ns-item { position: relative; margin-bottom: 14px; }
.news-side .ns-item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; color: #fff; font-size: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
}

/* ===== 案例 ===== */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.case-grid a { display: block; position: relative; overflow: hidden; border-radius: 4px; }
.case-grid img { width: 100%; height: 210px; object-fit: cover; transition: .4s; }
.case-grid a:hover img { transform: scale(1.06); }
.case-grid a span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; color: #fff; font-size: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
}

/* ===== 联系 ===== */
.contact-box { display: flex; gap: 40px; }
.contact-info { width: 40%; }
.contact-info li { padding: 10px 0; border-bottom: 1px dashed var(--line); color: #555; }
.contact-info li b { color: #222; margin-right: 6px; }
.contact-form { flex: 1; }
.form-row { display: flex; gap: 14px; margin-bottom: 14px; }
.form-row input, .form-row textarea {
  flex: 1; width: 100%; border: 1px solid var(--line); padding: 10px 12px; background: #fbfcfd;
}
.form-row textarea { height: 96px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--c1); background: #fff; }

/* ===== 面包屑与内页 ===== */
.crumb { background: var(--bg); border-bottom: 1px solid var(--line); }
.crumb .wrap { height: 52px; display: flex; align-items: center; font-size: 13px; color: var(--gray); }
.crumb a { color: var(--gray); }
.crumb b { color: var(--c1); font-weight: 400; }
.page-main { padding: 40px 0 60px; background: #fff; }
.page-title { text-align: center; margin-bottom: 30px; }
.page-title h1 { font-size: 28px; color: #222; }
.detail { padding: 10px 0 40px; }
.detail h2 { font-size: 20px; margin: 26px 0 12px; color: #222; border-left: 4px solid var(--c1); padding-left: 12px; }
.detail p { margin-bottom: 14px; color: #444; text-indent: 2em; line-height: 1.9; }
.detail ul { margin: 12px 0 18px 22px; }
.detail ul li { list-style: disc; color: #555; margin-bottom: 6px; }
.detail .param-table { margin: 16px 0; }
.detail .param-table th, .detail .param-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.detail .param-table th { width: 160px; background: var(--bg); color: #333; }
.detail-meta { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 16px; color: var(--gray); font-size: 13px; }
.detail-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; font-size: 14px; }

/* 列表页 */
.list-wrap { display: flex; gap: 34px; }
.list-left { flex: 1; }
.list-side { width: 260px; }
.side-box { border: 1px solid var(--line); margin-bottom: 22px; }
.side-box h3 { background: var(--c1); color: #fff; padding: 12px 16px; font-size: 16px; }
.side-box ul { padding: 8px 0; }
.side-box li a { display: block; padding: 9px 18px; font-size: 14px; color: #555; border-bottom: 1px solid #f3f5f7; }
.side-box li a:hover, .side-box li.on a { color: var(--c1); background: #f7f9fb; }
.side-contact { background: var(--bg); padding: 18px; font-size: 14px; color: #555; }
.side-contact b { display: block; font-size: 20px; color: var(--c1); margin: 6px 0 10px; }

/* 分页 */
.pages { text-align: center; margin: 34px 0 10px; }
.pages a, .pages span {
  display: inline-block; min-width: 36px; height: 36px; line-height: 34px; padding: 0 10px; margin: 0 3px;
  border: 1px solid var(--line); color: #555; font-size: 14px;
}
.pages a:hover, .pages .on { background: var(--c1); border-color: var(--c1); color: #fff; }

/* ===== 底部 ===== */
.footer { background: #232c38; color: #9aa5b1; font-size: 14px; }
.footer .fmain { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; padding: 48px 0 34px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; font-weight: 600; }
.footer .fabout p { line-height: 1.9; }
.footer ul li { padding: 5px 0; }
.footer ul li a:hover { color: #fff; }
.footer .fcontact li { padding: 6px 0; }
.footer .fcontact b { color: #fff; font-weight: 400; }
.fbottom { border-top: 1px solid #313b48; padding: 18px 0; text-align: center; font-size: 13px; }
.fbottom a { color: #9aa5b1; }
.fbottom a:hover { color: #fff; }
.fbottom .icp { margin-right: 12px; }

/* ===== 固定工具条 ===== */
.fixed-tools { position: fixed; right: 16px; bottom: 80px; z-index: 80; display: none; }
.fixed-tools a {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 8px;
  background: var(--c1); color: #fff; border-radius: 3px; font-size: 13px; opacity: .9;
}
.fixed-tools a:hover { opacity: 1; color: #fff; }

/* ===== 404 ===== */
.err-wrap { text-align: center; padding: 100px 0 120px; }
.err-wrap h1 { font-size: 96px; color: var(--c1); line-height: 1; }
.err-wrap p { color: var(--gray); margin: 18px 0 26px; }

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .nav > li > a { padding: 0 16px; font-size: 15px; }
  .nav-search input { width: 130px; }
}
@media (max-width: 991px) {
  .hd-tel { display: none; }
  .nav-toggle { display: block; }
  .navbar .wrap { flex-wrap: wrap; }
  .nav {
    display: none; width: 100%; flex-direction: column; background: var(--c1); max-height: 70vh; overflow-y: auto;
  }
  .nav.show { display: flex; }
  .nav > li > a { height: 46px; line-height: 46px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .nav > li > a::after { display: none; }
  .sub { position: static; display: none; box-shadow: none; border-top: none; width: 100%; }
  .nav > li.open .sub { display: block; }
  .nav-search { display: none; }
  .banner { height: 330px; }
  .banner .slide .cap b { font-size: 24px; }
  .about-box { flex-direction: column; }
  .about-pic { width: 100%; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .news-list { grid-template-columns: 1fr; }
  .contact-box { flex-direction: column; }
  .contact-info { width: 100%; }
  .list-wrap { flex-direction: column; }
  .list-side { width: 100%; }
  .footer .fmain { grid-template-columns: repeat(2, 1fr); }
  .fixed-tools { display: block; }
}
@media (max-width: 640px) {
  .topbar { display: none; }
  .header .wrap { height: 72px; }
  .logo img { height: 44px; }
  .banner { height: 230px; }
  .banner .slide .cap { bottom: 44px; }
  .banner .slide .cap b { font-size: 19px; }
  .banner .arrow { display: none; }
  .section { padding: 40px 0; }
  .sec-head h2 { font-size: 23px; }
  .feat-grid, .grid-4, .grid-3, .cats, .case-grid { grid-template-columns: 1fr; }
  .footer .fmain { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .detail p { text-indent: 0; }
}
