/* ============ 安徽鸿威智能科技 · 传统 B2B 企业蓝风格(参照卓盛锐官网) ============ */
:root {
  --c-primary: #0a4c9c;        /* 主企业蓝:导航/标题盒/页脚 */
  --c-primary-dark: #083a78;   /* 深蓝:hover/版权条 */
  --c-text: #333;
  --c-gray: #666;
  --c-light: #f5f5f5;          /* 热门搜索条/斑马底 */
  --c-border: #e5e5e5;
  --c-link: #0a4c9c;
  --font: "Microsoft YaHei", "微软雅黑", system-ui, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); font-size: 15px; line-height: 1.8; color: var(--c-text); background: #fff; }
img { display: block; max-width: 100%; border: 0; }
a { color: var(--c-link); text-decoration: none; }
a:hover { color: #d33; }
ul, ol { list-style: none; }

.container { width: 1000px; margin: 0 auto; }

/* ---------- 顶部欢迎条(白底灰字) ---------- */
.topbar { background: #f7f7f7; border-bottom: 1px solid var(--c-border); color: #999; font-size: 12px; line-height: 30px; }
.topbar .container { display: flex; }

/* ---------- 白色 header 带:logo+口号 | 电话 ---------- */
.header { background: #fff; }
.hd { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 56px; width: auto; }
.brand b { font-size: 25px; font-weight: 700; color: var(--c-primary); letter-spacing: 3px; white-space: nowrap; }
.brand i { font-style: normal; font-size: 13px; color: #888; line-height: 1.7; border-left: 1px solid var(--c-border); padding-left: 14px; }
.hd-tel { display: flex; align-items: center; gap: 12px; }
.hd-tel .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.hd-tel .ico svg { width: 22px; height: 22px; }
.tel-list span { display: block; font-size: 13px; color: var(--c-gray); line-height: 1.8; }
.tel-list b { font-weight: 400; margin-right: 8px; }
.tel-list strong { font-size: 19px; color: var(--c-primary); font-family: Georgia, serif; }
.tel-list em { font-style: normal; }

/* ---------- 主导航(蓝条,当前页亮块) ---------- */
.nav { background: var(--c-primary); }
.nav .container { display: flex; justify-content: center; }
.nav-list { display: flex; }
.nav-list a { display: block; color: #fff; font-size: 15px; padding: 0 26px; line-height: 46px; white-space: nowrap; transition: background .2s; }
.nav-list a:hover { background: var(--c-primary-dark); color: #fff; }
.nav-list a.cur { background: #2a7de1; color: #fff; }
.nav-item { position: relative; }
.nav-item .sub-menu { position: absolute; top: 100%; left: 0; min-width: 176px; background: var(--c-primary-dark);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s; z-index: 30; }
.nav-item:hover .sub-menu, .nav-item:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 10px 16px; color: #fff; font-size: 14px; line-height: 1.5; white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, .12); }
.sub-menu a:last-child { border-bottom: 0; }
.sub-menu a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.sub-menu a.cur { background: rgba(42, 125, 225, .35); }

/* ---------- 搜索条(banner 下) ---------- */
.searchbar { background: #fff; border-bottom: 1px solid var(--c-border); }
.sb { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.searchbar .hot { font-size: 13px; color: var(--c-gray); }
.searchbar .hot b { color: var(--c-text); font-weight: 600; margin-right: 4px; }
.searchbar .hot a { color: var(--c-gray); margin-right: 10px; }
.searchbar .hot a:last-child { margin-right: 0; }
.searchbar .hot a:hover { color: var(--c-link); }
.search { display: flex; }
.search input { width: 220px; height: 32px; border: 1px solid #ccc; border-right: 0; padding: 0 10px; font-size: 13px; outline: none; font-family: var(--font); }
.search input:focus { border-color: var(--c-primary); }
.search button { height: 32px; padding: 0 18px; border: 0; background: var(--c-primary); color: #fff; font-size: 13px; cursor: pointer; font-family: var(--font); }
.search button:hover { background: var(--c-primary-dark); }

/* ---------- 面包屑(白底+蓝块) ---------- */
.crumb { background: #fff; border-bottom: 1px solid var(--c-border); font-size: 13px; color: var(--c-gray); }
.crumb .container { display: flex; align-items: center; height: 42px; }
.crumb .loc { border-left: 4px solid var(--c-primary); padding-left: 10px; line-height: 1.2; }
.crumb .loc a { color: var(--c-link); }

/* ---------- 栏目 banner ---------- */
.page-banner { position: relative; height: 190px; background: var(--c-primary) url("/assets/future-bg.webp") center/cover no-repeat; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,58,120,.88), rgba(10,76,156,.72)); }
.page-banner .container { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; height: 100%; color: #fff; }
.page-banner h1 { font-size: 28px; font-weight: 700; letter-spacing: 2px; }
.page-banner .en { font-size: 13px; letter-spacing: .4em; text-transform: uppercase; opacity: .75; margin-top: 6px; }

/* ---------- 关于页居中大标题 ---------- */
.page-lead { text-align: center; padding: 26px 0 4px; }
.page-lead h2 { font-size: 30px; color: #1a1a1a; letter-spacing: 3px; }
.page-lead h2 span { color: var(--c-primary); }
.page-lead p { font-size: 13px; letter-spacing: .45em; text-transform: uppercase; color: #aaa; margin-top: 6px; }

/* ---------- 主体:左栏+内容 ---------- */
.main { padding: 28px 0 48px; }
.main .container { display: flex; gap: 26px; align-items: flex-start; }
.sidebar { width: 210px; flex: none; }
.side-box { border: 1px solid var(--c-border); margin-bottom: 18px; }
.side-title { background: var(--c-primary); color: #fff; font-size: 16px; font-weight: 600; text-align: center; line-height: 42px; letter-spacing: 1px; }
.side-nav a { display: block; padding: 11px 16px; border-bottom: 1px solid var(--c-border); color: var(--c-text); font-size: 14px; transition: all .2s; }
.side-nav a:last-child { border-bottom: 0; }
.side-nav a:hover { color: var(--c-link); background: var(--c-light); }
.side-nav a.cur { color: var(--c-link); font-weight: 600; background: var(--c-light); border-left: 3px solid var(--c-primary); padding-left: 13px; }
.side-contact { padding: 14px 16px; font-size: 13px; color: var(--c-gray); line-height: 2; }
.side-contact b { color: var(--c-text); }
.content { flex: 1; min-width: 0; }

/* ---------- 内容区排版 ---------- */
.content h2.ct { font-size: 21px; color: #1a1a1a; padding-left: 12px; border-left: 4px solid var(--c-primary); margin-bottom: 18px; line-height: 1.3; }
.content h3 { font-size: 17px; color: #1a1a1a; margin: 22px 0 10px; }
.content h3 span { color: var(--c-primary); margin-right: 8px; font-family: Georgia, serif; }
.content p { margin: 10px 0; text-align: justify; }
.content .lead { font-size: 15.5px; }
.content img.ill { margin: 14px 0; border: 1px solid var(--c-border); }

/* 键值式理念清单(卓盛锐式) */
.kv { margin: 18px 0; }
.kv li { padding: 7px 0; border-bottom: 1px dashed var(--c-border); font-size: 14.5px; }
.kv b { color: var(--c-primary-dark); margin-right: 6px; }

/* 服务小节(业务页) */
.svc { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px dashed var(--c-border); }
.svc:last-child { border-bottom: 0; }
.svc img { width: 180px; height: 118px; object-fit: cover; flex: none; border: 1px solid var(--c-border); }
.svc h4 { font-size: 15.5px; color: var(--c-primary-dark); margin-bottom: 6px; }
.svc p { font-size: 14px; color: var(--c-gray); margin: 0; }

/* 年表(关于页,简单年份行) */
.years li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--c-border); font-size: 14.5px; }
.years b { color: var(--c-primary); font-size: 17px; flex: none; width: 56px; }
.years span { color: var(--c-gray); }

/* 证书网格 */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.cert { border: 1px solid var(--c-border); padding: 8px; cursor: zoom-in; background: #fff; }
.cert img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.cert p { font-size: 13px; text-align: center; margin: 8px 0 2px; color: var(--c-text); }

/* 灯箱(证书放大) */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; cursor: zoom-out; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; }

/* ---------- 首页轮播 banner ---------- */
.banner-carousel { position: relative; height: 420px; overflow: hidden; background: #0a2c52; }
.banner-carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.banner-carousel .slide.on { opacity: 1; }
.banner-carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-carousel .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,30,60,.2), rgba(8,40,80,.55)); }
.slide-txt { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; color: #fff; width: 100%; }
.slide-txt h1 { font-size: 36px; font-weight: 700; letter-spacing: 3px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.slide-txt p { margin-top: 12px; font-size: 16px; opacity: .92; letter-spacing: 1px; }
.slide-txt .more { margin-top: 26px; width: fit-content; border: 1px solid rgba(255,255,255,.7); color: #fff; padding: 9px 30px; font-size: 14px; letter-spacing: 2px; transition: all .25s; }
.slide-txt .more:hover { background: #fff; color: var(--c-primary); }
.bn-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; line-height: 40px; text-align: center; font-size: 32px; color: rgba(255,255,255,.85); cursor: pointer; user-select: none; background: rgba(0,0,0,.18); border-radius: 50%; }
.bn-arrow:hover { background: rgba(0,0,0,.45); color: #fff; }
.bn-arrow.prev { left: 18px; }
.bn-arrow.next { right: 18px; }
.bn-dots { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.bn-dots i { width: 28px; height: 4px; background: rgba(255,255,255,.45); cursor: pointer; }
.bn-dots i.on { background: #fff; }

.home-sec { padding: 40px 0; }
.home-sec--gray { background: var(--c-light); }
.home-sec--dark { background: #303030; }
.home-sec--dark .home-title h2 { color: #fff; border-bottom-color: #2a7de1; }
.home-sec--dark .home-title p { color: rgba(255,255,255,.45); }
.home-sec--dark .biz-item { background: #3a3a3a; border-color: #454545; }
.home-sec--dark .biz-item h3 { color: #fff; }
.home-sec--dark .biz-item p { color: #b5b5b5; }
.home-title { text-align: center; margin-bottom: 26px; }
.home-title h2 { font-size: 26px; color: #1a1a1a; letter-spacing: 2px; display: inline-block; padding-bottom: 10px; border-bottom: 2px solid var(--c-primary); }
.home-title p { font-size: 12px; letter-spacing: .35em; text-transform: uppercase; color: #999; margin-top: 8px; }

/* 首页 banner 下关键词条 */
.home-kw { border-bottom: 1px solid var(--c-border); text-align: center; padding: 13px 0; font-size: 14px; color: #555; letter-spacing: 1px; }
.home-kw i { font-style: normal; color: #ccc; margin: 0 20px; }

.biz-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.biz-item { border: 1px solid var(--c-border); background: #fff; transition: box-shadow .2s; }
.biz-item:hover { box-shadow: 0 4px 14px rgba(10,76,156,.14); }
.biz-item img { width: 100%; height: 130px; object-fit: cover; }
.biz-item .bd { padding: 12px 14px 14px; }
.biz-item h3 { font-size: 15.5px; color: var(--c-primary-dark); margin: 0 0 6px; }
.biz-item p { font-size: 13px; color: var(--c-gray); margin: 0; line-height: 1.7; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 8px 0; border-left: 1px solid var(--c-border); }
.stat:first-child { border-left: 0; }
.stat b { font-size: 34px; color: var(--c-primary); font-family: Georgia, serif; }
.stat b small { font-size: 14px; margin-left: 2px; }
.stat p { font-size: 13px; color: var(--c-gray); margin-top: 4px; }

.case-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-item { position: relative; border: 1px solid var(--c-border); background: #fff; }
.case-item img { width: 100%; height: 220px; object-fit: cover; }
.case-item .bd { padding: 14px 16px; }
.case-item h3 { font-size: 16px; color: #1a1a1a; margin: 0 0 8px; }
.case-item p { font-size: 13.5px; color: var(--c-gray); margin: 0; }

.home-about { display: flex; gap: 26px; align-items: center; }
.home-about .txt { flex: 1; }
.home-about .txt h3 { font-size: 20px; color: #1a1a1a; margin: 0 0 10px; }
.home-about .txt p { font-size: 14px; color: var(--c-gray); text-align: justify; }
.home-about img { width: 330px; height: 200px; object-fit: cover; border: 1px solid var(--c-border); }

.view-more { display: block; width: 130px; margin: 26px auto 0; text-align: center; border: 1px solid var(--c-primary); color: var(--c-primary); padding: 8px 0; font-size: 14px; letter-spacing: 1px; transition: all .2s; }
.view-more:hover { background: var(--c-primary); color: #fff; }

/* ---------- 页脚(深灰多行) ---------- */
footer .f-nav { background: #333; }
footer .f-nav .container { display: flex; justify-content: center; }
footer .f-nav a { color: rgba(255,255,255,.85); font-size: 14px; padding: 0 24px; line-height: 46px; border-left: 1px solid rgba(255,255,255,.12); }
footer .f-nav a.first { border-left: 0; }
footer .f-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
footer .f-main { background: #2b2b2b; color: #bbb; font-size: 13.5px; }
footer .fm { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; padding: 30px 0; flex-wrap: wrap; }
.fbrand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.fbrand img { height: 48px; width: auto; }
.fmeta { line-height: 2.1; }
.fmeta b { color: #888; font-weight: 400; margin-right: 10px; }
.f-copy { background: #242424; color: #999; text-align: center; line-height: 40px; font-size: 12.5px; }
.f-beian { background: #fff; text-align: center; line-height: 44px; font-size: 12.5px; }
.f-beian a { color: #777; }
.f-beian a:hover { color: var(--c-link); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .container { width: auto; padding: 0 16px; }
  .main .container { flex-direction: column; }
  .sidebar { width: 100%; display: flex; gap: 16px; }
  .side-box { flex: 1; margin-bottom: 0; }
  .side-contact-box { display: none; }
  .biz-row { grid-template-columns: 1fr 1fr; }
  .case-row { grid-template-columns: 1fr; }
  .home-about { flex-direction: column; }
  .home-about img { width: 100%; }
}
@media (max-width: 640px) {
  .nav-list a { padding: 0 8px; font-size: 13px; line-height: 40px; }
  .brand i { display: none; }
  .brand b { font-size: 18px; letter-spacing: 1px; }
  .brand img { height: 40px; }
  .hd-tel { display: none; }
  .hd { padding: 10px 0; }
  .sb { flex-direction: column; align-items: flex-start; height: auto; padding: 8px 0; gap: 8px; }
  .search input { width: 150px; }
  .biz-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .home-banner h1, .slide-txt h1 { font-size: 24px; }
  .slide-txt p { font-size: 13px; padding-right: 12px; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .svc { flex-direction: column; }
  .svc img { width: 100%; height: auto; }
  .home-kw i { margin: 0 8px; }
  .f-nav a { padding: 0 10px; font-size: 13px; }
}
