@charset "utf-8";
/* 中山市沃非科技有限公司 官网 - 全局样式 */

:root {
  --primary: #0b4da2;
  --primary-dark: #073a7d;
  --accent: #d81e06;
  --accent-dark: #b31804;
  --text: #333333;
  --muted: #7a7a7a;
  --border: #e4e7ec;
  --bg: #f5f6f8;
  --white: #ffffff;
  --wrap: 1200px;
  --nav-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .25s, background .25s; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; border: 0; }
input, textarea, select, button { font-family: inherit; font-size: 14px; outline: none; }
table { border-collapse: collapse; width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ============ 顶部条 ============ */
.topbar {
  background: var(--primary-dark);
  color: #cfe0f5;
  font-size: 12px;
  height: 34px;
  line-height: 34px;
}
.topbar .wrap { display: flex; justify-content: space-between; }
.topbar .slogan span + span { margin-left: 14px; }
.topbar .links a { color: #cfe0f5; margin-left: 14px; }
.topbar .links a:hover { color: #fff; }

/* ============ 头部 ============ */
.header { background: #fff; border-bottom: 1px solid var(--border); }
.header .wrap {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px; height: 46px; flex: none;
  background: linear-gradient(135deg, var(--primary), #2b7fd4);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 1px;
}
.logo-text b { display: block; font-size: 21px; color: var(--primary-dark); letter-spacing: 2px; line-height: 1.3; }
.logo-text span { display: block; font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

.nav { display: flex; align-items: center; }
.nav > li { position: relative; }
.nav > li > a {
  display: block;
  padding: 0 18px;
  height: var(--nav-h);
  line-height: var(--nav-h);
  font-size: 15px;
  color: #222;
  position: relative;
}
.nav > li > a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 12px;
  height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s;
}
.nav > li:hover > a, .nav > li.active > a { color: var(--primary); }
.nav > li:hover > a::after, .nav > li.active > a::after { transform: scaleX(1); }

.subnav {
  position: absolute; top: var(--nav-h); left: 0; min-width: 172px;
  background: rgba(255,255,255,.98); border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .25s; z-index: 60;
}
.nav > li:hover .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a { display: block; padding: 9px 16px; font-size: 13px; color: #444; border-bottom: 1px dashed #eef0f3; }
.subnav a:last-child { border-bottom: 0; }
.subnav a:hover { color: var(--accent); background: #f7f9fc; padding-left: 22px; }

.nav-toggle { display: none; width: 40px; height: 34px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.nav-toggle i { display: block; width: 20px; height: 2px; background: var(--primary); margin: 4px auto; }

/* ============ Banner ============ */
.banner { position: relative; height: 460px; overflow: hidden; background: #0a2f5c; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s;
  background-size: cover; background-position: center;
}
.slide.active { opacity: 1; }
.slide .wrap { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.slide h2 { font-size: 42px; color: #fff; font-weight: 700; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.slide p { font-size: 17px; color: #dbe7f7; margin-top: 14px; letter-spacing: 1px; }
.slide .btn-more { margin-top: 28px; align-self: flex-start; }
.btn-more {
  display: inline-block; padding: 11px 30px; background: var(--accent); color: #fff;
  border: 1px solid var(--accent); letter-spacing: 1px;
}
.btn-more:hover { background: transparent; color: #fff; border-color: #fff; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; }
.banner-dots i {
  display: inline-block; width: 28px; height: 4px; background: rgba(255,255,255,.45);
  margin: 0 4px; cursor: pointer;
}
.banner-dots i.on { background: var(--accent); }

/* ============ 通用区块 ============ */
.section { padding: 60px 0; }
.section.gray { background: var(--bg); }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head h2 { font-size: 28px; color: #1b1b1b; font-weight: 700; letter-spacing: 2px; }
.sec-head h2 em { color: var(--primary); font-style: normal; }
.sec-head .en { font-size: 12px; color: #a7adb5; letter-spacing: 3px; text-transform: uppercase; margin-top: 6px; }
.sec-head .line { width: 46px; height: 3px; background: var(--accent); margin: 12px auto 0; }
.sec-head.left { text-align: left; }
.sec-head.left .line { margin-left: 0; }
.more-link { font-size: 13px; color: var(--muted); }
.more-link:hover { color: var(--accent); }

/* 工具条 */
.toolbar {
  background: #fff; border: 1px solid var(--border); padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-bottom: 26px;
}
.toolbar .tags a {
  display: inline-block; padding: 5px 14px; border: 1px solid var(--border);
  margin-right: 8px; color: #555; font-size: 13px;
}
.toolbar .tags a:hover, .toolbar .tags a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.toolbar .search { display: flex; }
.toolbar .search input { width: 200px; height: 34px; border: 1px solid var(--border); padding: 0 10px; }
.toolbar .search button { height: 34px; padding: 0 18px; border: 0; background: var(--primary); color: #fff; cursor: pointer; }
.toolbar .search button:hover { background: var(--primary-dark); }

/* ============ 产品卡片 ============ */
.pro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pro-grid.col3 { grid-template-columns: repeat(3, 1fr); }
.pro-card {
  background: #fff; border: 1px solid var(--border); transition: .3s; overflow: hidden; display: block;
}
.pro-card .pic { position: relative; padding-top: 74%; overflow: hidden; background: #eceff3; }
.pro-card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pro-card:hover .pic img { transform: scale(1.07); }
.pro-card .pic .tag {
  position: absolute; left: 0; top: 14px; background: rgba(216,30,6,.9); color: #fff;
  font-size: 12px; padding: 3px 10px;
}
.pro-card .info { padding: 14px 14px 18px; text-align: center; border-top: 1px solid var(--border); }
.pro-card .info h3 { font-size: 15px; font-weight: 500; color: #222; }
.pro-card .info p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pro-card .info .go { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--primary); border: 1px solid var(--primary); padding: 3px 14px; }
.pro-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(11,77,162,.14); transform: translateY(-3px); }
.pro-card:hover .info h3 { color: var(--accent); }
.pro-card:hover .info .go { background: var(--primary); color: #fff; }

/* 产品分类快捷入口 */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-item {
  background: #fff; border: 1px solid var(--border); padding: 22px 10px; text-align: center; transition: .3s;
}
.cat-item .ico {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg, #eaf2fc, #d3e4f8);
  display: flex; align-items: center; justify-content: center;
}
.cat-item .ico svg { width: 26px; height: 26px; fill: var(--primary); }
.cat-item b { display: block; font-size: 14px; font-weight: 500; }
.cat-item span { display: block; font-size: 11px; color: #a2a8b0; margin-top: 2px; }
.cat-item:hover { background: var(--primary); border-color: var(--primary); }
.cat-item:hover .ico { background: rgba(255,255,255,.16); }
.cat-item:hover .ico svg { fill: #fff; }
.cat-item:hover b, .cat-item:hover span { color: #fff; }

/* ============ 关于 ============ */
.about-row { display: grid; grid-template-columns: 460px 1fr; gap: 46px; align-items: center; }
.about-pic { position: relative; }
.about-pic img { width: 100%; }
.about-pic .badge {
  position: absolute; left: -14px; bottom: -14px; background: var(--primary); color: #fff;
  padding: 16px 22px; text-align: center;
}
.about-pic .badge b { display: block; font-size: 26px; line-height: 1.2; }
.about-pic .badge span { font-size: 12px; opacity: .85; }
.about-txt h2 { font-size: 26px; color: #1b1b1b; }
.about-txt .en { font-size: 12px; letter-spacing: 3px; color: #a7adb5; text-transform: uppercase; margin: 4px 0 14px; }
.about-txt p { color: #555; margin-bottom: 12px; text-indent: 2em; text-align: justify; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.stat { border-left: 3px solid var(--primary); padding-left: 12px; }
.stat b { display: block; font-size: 24px; color: var(--primary); line-height: 1.3; }
.stat span { font-size: 12px; color: var(--muted); }

/* ============ 优势 ============ */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv-item { background: #fff; border: 1px solid var(--border); padding: 30px 22px; text-align: center; transition: .3s; }
.adv-item .ico {
  width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
}
.adv-item .ico svg { width: 30px; height: 30px; fill: #fff; }
.adv-item h3 { font-size: 16px; margin-bottom: 8px; }
.adv-item p { font-size: 13px; color: var(--muted); }
.adv-item:hover { background: var(--primary); border-color: var(--primary); }
.adv-item:hover h3, .adv-item:hover p { color: #fff; }
.adv-item:hover .ico { background: #fff; }
.adv-item:hover .ico svg { fill: var(--primary); }

/* ============ 应用领域 ============ */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-item { position: relative; overflow: hidden; height: 220px; }
.app-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.app-item:hover img { transform: scale(1.08); }
.app-item .mask {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,58,125,.92), rgba(7,58,125,.15));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff;
}
.app-item .mask b { font-size: 17px; }
.app-item .mask p { font-size: 12px; opacity: .85; }

/* ============ 新闻 ============ */
.news-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.news-hot { border: 1px solid var(--border); background: #fff; }
.news-hot .pic { padding-top: 56%; position: relative; overflow: hidden; }
.news-hot .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-hot .txt { padding: 18px 20px 22px; }
.news-hot .txt h3 { font-size: 17px; margin-bottom: 8px; }
.news-hot .txt p { font-size: 13px; color: var(--muted); }
.news-list li { border-bottom: 1px dashed var(--border); }
.news-list li a { display: flex; gap: 16px; padding: 16px 4px; align-items: center; }
.news-list .date { width: 56px; flex: none; text-align: center; border: 1px solid var(--border); padding: 4px 0; }
.news-list .date b { display: block; font-size: 20px; color: var(--primary); line-height: 1.2; }
.news-list .date span { font-size: 11px; color: var(--muted); }
.news-list .r h4 { font-size: 15px; font-weight: 500; transition: .25s; }
.news-list .r p { font-size: 12px; color: var(--muted); }
.news-list li a:hover .date { background: var(--primary); border-color: var(--primary); }
.news-list li a:hover .date b, .news-list li a:hover .date span { color: #fff; }
.news-list li a:hover .r h4 { color: var(--accent); }

/* ============ 面包屑 + 内页头 ============ */
.subbanner {
  height: 220px; background: linear-gradient(120deg, #073a7d, #0b4da2 60%, #1e6fc4);
  display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.subbanner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}
.subbanner h1 { color: #fff; font-size: 30px; letter-spacing: 2px; }
.subbanner .en { color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-top: 6px; }
.crumb { background: var(--bg); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.crumb .wrap { height: 44px; display: flex; align-items: center; gap: 8px; }
.crumb a:hover { color: var(--accent); }
.crumb .cur { color: var(--primary); }

/* ============ 内页布局 ============ */
.page-body { padding: 46px 0 70px; }
.layout { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }

.side { background: #fff; border: 1px solid var(--border); }
.side h3 { background: var(--primary); color: #fff; font-size: 16px; padding: 13px 18px; letter-spacing: 1px; }
.side ul li a {
  display: block; padding: 12px 18px; border-bottom: 1px solid var(--border);
  font-size: 14px; color: #444; position: relative;
}
.side ul li:last-child a { border-bottom: 0; }
.side ul li a::before { content: ""; position: absolute; left: 18px; top: 50%; width: 5px; height: 5px; background: #c3ccd6; transform: translateY(-50%); }
.side ul li a:hover, .side ul li.on a { background: #f2f7fd; color: var(--primary); padding-left: 30px; }
.side ul li.on a::before, .side ul li a:hover::before { background: var(--accent); }
.side .side-contact { padding: 18px; font-size: 13px; color: #555; border-top: 1px solid var(--border); }
.side .side-contact b { display: block; color: var(--primary); font-size: 15px; margin-bottom: 6px; }
.side .side-contact .btn-more { margin-top: 12px; font-size: 13px; padding: 8px 18px; }

.main { min-width: 0; }
.article h1.art-title { font-size: 24px; text-align: center; padding: 10px 0 14px; }
.article .art-meta { text-align: center; font-size: 12px; color: #999; border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 22px; }
.article .art-meta span { margin: 0 10px; }
.article p { margin-bottom: 14px; text-indent: 2em; text-align: justify; color: #444; }
.article .art-pic { margin: 20px 0; text-align: center; }
.article .art-pic img { width: 100%; }
.article .art-pic span { display: block; font-size: 12px; color: #999; margin-top: 8px; }
.prev-next { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 18px; font-size: 13px; color: #666; }
.prev-next a:hover { color: var(--accent); }

/* 图文详情区 */
.blocks section { margin-bottom: 46px; }
.blocks h2 { font-size: 20px; border-left: 4px solid var(--primary); padding-left: 12px; margin-bottom: 18px; }
.blocks p { color: #444; margin-bottom: 12px; text-align: justify; }
.img-text { display: grid; grid-template-columns: 420px 1fr; gap: 34px; align-items: center; }
.img-text.rev .pic { order: 2; }

/* 参数表 */
.spec-table { border: 1px solid var(--border); }
.spec-table th, .spec-table td { border: 1px solid var(--border); padding: 10px 14px; font-size: 13px; }
.spec-table thead th { background: #f2f7fd; color: var(--primary-dark); text-align: left; }
.spec-table tbody th { background: #fafbfc; width: 180px; text-align: left; font-weight: 500; color: #555; }
.spec-table tr:nth-child(even) th, .spec-table tr:nth-child(even) td { background: #fcfdfe; }

/* 案例 */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-item { border: 1px solid var(--border); background: #fff; overflow: hidden; }
.case-item .pic { padding-top: 62%; position: relative; overflow: hidden; }
.case-item .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-item:hover .pic img { transform: scale(1.06); }
.case-item .txt { padding: 16px 18px 20px; }
.case-item .txt h3 { font-size: 15px; margin-bottom: 6px; }
.case-item .txt p { font-size: 13px; color: var(--muted); }
.case-item:hover .txt h3 { color: var(--accent); }

/* 服务流程 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flow .step { background: #fff; border: 1px solid var(--border); padding: 24px 18px; text-align: center; }
.flow .step b {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 auto 12px;
  background: var(--primary); color: #fff; border-radius: 50%; font-size: 17px;
}
.flow .step h3 { font-size: 15px; margin-bottom: 6px; }
.flow .step p { font-size: 13px; color: var(--muted); }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: #555; background: #fff;
}
.pager a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .cur { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 留言表单 */
.form-box { background: #fff; border: 1px solid var(--border); padding: 30px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
.form-item label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.form-item label i { color: var(--accent); font-style: normal; margin-right: 4px; }
.form-item input, .form-item textarea, .form-item select {
  width: 100%; border: 1px solid var(--border); padding: 9px 12px; color: #333; background: #fbfcfd;
}
.form-item input:focus, .form-item textarea:focus { border-color: var(--primary); background: #fff; }
.form-item textarea { height: 120px; resize: vertical; }
.form-submit { text-align: center; margin-top: 8px; }
.form-submit button {
  border: 0; background: var(--primary); color: #fff; padding: 11px 46px; cursor: pointer; letter-spacing: 2px;
}
.form-submit button:hover { background: var(--accent); }
.form-tip { font-size: 12px; color: var(--muted); margin-top: 10px; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 34px; }
.contact-card { background: #fff; border: 1px solid var(--border); padding: 28px 22px; text-align: center; }
.contact-card .ico {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
  background: #eaf2fc; display: flex; align-items: center; justify-content: center;
}
.contact-card .ico svg { width: 26px; height: 26px; fill: var(--primary); }
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card p { font-size: 13px; color: var(--muted); }

/* ============ 底部 ============ */
.footer { background: #1c2733; color: #98a3b0; font-size: 13px; }
.footer .f-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; padding: 46px 0 34px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 500; }
.footer .f-about p { line-height: 1.9; }
.footer .f-about .logo-text b { font-size: 18px; }
.footer ul li { border-bottom: 1px dashed #2b3743; }
.footer ul li a { display: block; padding: 7px 0; }
.footer ul li a:hover { color: #fff; padding-left: 6px; }
.footer .f-qr { display: flex; gap: 14px; align-items: center; }
.footer .f-qr .code { width: 96px; height: 96px; flex: none; background: #fff; padding: 6px; }
.footer .f-qr p { line-height: 1.7; }
.footer .f-friend { border-top: 1px solid #2b3743; padding: 16px 0; }
.footer .f-friend a { color: #7d8894; margin-right: 16px; }
.footer .f-friend a:hover { color: #fff; }
.copyright { background: #141c25; text-align: center; padding: 16px 0; color: #6b7683; font-size: 12px; }

/* 返回顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 50px; width: 42px; height: 42px; display: none;
  background: rgba(11,77,162,.85); color: #fff; align-items: center; justify-content: center;
  cursor: pointer; z-index: 90;
}
.to-top.show { display: flex; }
.to-top:hover { background: var(--accent); }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .pro-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .f-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 128px; background: #fff;
    border-top: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,.08); z-index: 80;
    flex-direction: column; align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav > li > a { height: 46px; line-height: 46px; border-bottom: 1px solid var(--border); padding: 0 20px; }
  .nav > li > a::after { display: none; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-bottom: 1px solid var(--border); display: none; }
  .nav > li:hover .subnav { display: block; }
  .banner { height: 320px; }
  .slide h2 { font-size: 26px; }
  .slide p { font-size: 14px; }
  .about-row, .img-text, .news-row, .layout { grid-template-columns: 1fr; }
  .img-text.rev .pic { order: 0; }
  .stat-row, .app-grid, .case-grid, .flow, .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .pro-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar { display: none; }
  .header .wrap { height: 70px; }
  .nav { top: 70px; }
  .pro-grid, .cat-grid, .adv-grid, .stat-row, .app-grid, .case-grid, .flow, .contact-cards, .footer .f-top { grid-template-columns: 1fr; }
  .sec-head h2 { font-size: 22px; }
  .subbanner { height: 160px; }
  .subbanner h1 { font-size: 22px; }
  .section { padding: 40px 0; }
}
