/* ==========================================================================
   汇百佳官网 · 全站样式
   --------------------------------------------------------------------------
   ★ H5 兼容约定（改样式前先看这几条，都是踩过的坑）：
     1. 不用 CSS 变量（--x）—— 老 Android WebView 不支持时整条声明作废，
        颜色直接写死，宁可重复也别让线上翻车
     2. 不用 flex 的 gap —— flex gap 要 Chrome 84+，微信老安卓内核到不了，
        一律用「容器负 margin + 子项 padding」做间距
     3. 不用 aspect-ratio —— 要固定比例就用 padding-top 撑
     4. 不用 CSS Grid —— 统一 flexbox（Chrome 29+ 就行）
     5. 图片一律给固定宽高或 padding 撑，避免加载时页面跳动
     6. 不依赖 position:sticky，头部用 fixed + body 加 padding-top
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
               "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #2a3346;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { border: 0; max-width: 100%; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font-family: inherit; font-size: inherit; outline: none; }
.clearfix:after { content: ""; display: block; clear: both; }

/* ---------------------------------------------------------- 布局骨架 */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section-grey { background: #f6f8fb; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head h2 { font-size: 28px; color: #16213a; font-weight: 700; line-height: 1.35; }
.sec-head p { margin-top: 10px; color: #7c8698; font-size: 14px; }
.sec-head .line {
  width: 44px; height: 3px; background: #0d5ba6; margin: 16px auto 0;
  border-radius: 2px;
}

/* ---------------------------------------------------------- 头部 */
.header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 200;
  background: #fff; height: 68px;
  box-shadow: 0 1px 6px rgba(16, 34, 64, 0.08);
}
.header .wrap { height: 68px; display: flex; align-items: center; }
body { padding-top: 68px; }

.logo { display: flex; align-items: center; margin-right: 30px; flex-shrink: 0; }
.logo img { height: 38px; width: auto; display: block; }
.logo .logo-text { font-size: 20px; font-weight: 700; color: #0d5ba6; letter-spacing: 1px; }
.logo .logo-sub { font-size: 11px; color: #9aa4b5; margin-left: 8px; letter-spacing: 0; }

.nav { display: flex; align-items: center; flex: 1; }
.nav a {
  padding: 0 18px; height: 68px; line-height: 68px;
  font-size: 15px; color: #3c4759; position: relative;
}
.nav a:hover, .nav a.on { color: #0d5ba6; }
.nav a.on:after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0;
  height: 3px; background: #0d5ba6; border-radius: 2px 2px 0 0;
}

.head-right { display: flex; align-items: center; flex-shrink: 0; }
.head-tel { font-size: 14px; color: #0d5ba6; font-weight: 600; margin-right: 16px; }
.head-tel em { font-style: normal; color: #8b95a6; font-weight: 400; margin-right: 6px; }
.btn-manage {
  display: inline-block; padding: 7px 16px; border: 1px solid #0d5ba6;
  color: #0d5ba6; border-radius: 20px; font-size: 13px; white-space: nowrap;
}
.btn-manage:hover { background: #0d5ba6; color: #fff; }

/* 移动端菜单按钮（默认不显示） */
.menu-btn {
  display: none; width: 40px; height: 40px; border: 0; background: none;
  cursor: pointer; padding: 8px; flex-shrink: 0;
}
.menu-btn span {
  display: block; height: 2px; background: #2a3346; margin: 5px 0;
  border-radius: 2px;
}

/* ---------------------------------------------------------- 首页大图 */
.hero {
  position: relative; overflow: hidden;
  background: #0b3f77;
  background-size: cover; background-position: center 50%; background-repeat: no-repeat;
}
.hero .hero-mask {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(8, 34, 66, 0.62);
}
.hero .wrap {
  position: relative; z-index: 2;
  padding-top: 96px; padding-bottom: 96px; text-align: center;
}
.hero h1 { font-size: 38px; color: #fff; font-weight: 700; line-height: 1.35; }
.hero p { margin-top: 18px; color: rgba(255, 255, 255, 0.86); font-size: 17px; }
.hero .hero-btn {
  display: inline-block; margin-top: 32px; padding: 12px 40px;
  background: #0d5ba6; color: #fff; border-radius: 26px; font-size: 16px;
  box-shadow: 0 8px 22px rgba(13, 91, 166, 0.4);
}
.hero .hero-btn:hover { background: #0a4c8b; }

/* ---------------------------------------------------------- 数字指标 */
.stats { background: #0d5ba6; }
.stats .wrap {
  display: flex; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px;
  margin-left: -16px; margin-right: -16px; width: auto; max-width: none;
}
.stats .wrap-inner { display: flex; flex-wrap: wrap; width: 100%; max-width: 1200px; margin: 0 auto; }
.stat { width: 25%; padding: 8px 16px; text-align: center; color: #fff; }
.stat b { display: block; font-size: 30px; font-weight: 700; line-height: 1.2; }
.stat span { font-size: 13px; color: rgba(255, 255, 255, 0.82); }

/* ---------------------------------------------------------- 通用卡片行 */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.col-2 { width: 50%; padding: 12px; }
.col-3 { width: 33.3333%; padding: 12px; }
.col-4 { width: 25%; padding: 12px; }

.card {
  background: #fff; border: 1px solid #eaeef4; border-radius: 10px;
  padding: 26px 22px; height: 100%;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: 0 10px 26px rgba(16, 34, 64, 0.1); transform: translateY(-3px); }
.card .card-ico {
  width: 50px; height: 50px; border-radius: 12px; background: #eef4fd;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; overflow: hidden;
}
.card .card-ico img { width: 28px; height: 28px; }
.card .card-ico i {
  font-style: normal; font-size: 20px; font-weight: 700; color: #0d5ba6;
}
.card h3 { font-size: 17px; color: #16213a; margin-bottom: 10px; font-weight: 600; }
.card p { font-size: 13px; color: #7c8698; line-height: 1.85; }

/* 优势（无边框，更轻） */
.adv { padding: 12px; width: 25%; }
.adv .adv-in {
  background: #fff; border-radius: 10px; padding: 24px 20px; height: 100%;
  text-align: center;
}
.adv .adv-no {
  display: inline-block; width: 44px; height: 44px; line-height: 44px;
  border-radius: 50%; background: #0d5ba6; color: #fff; font-weight: 700;
  margin-bottom: 14px;
}
.adv h3 { font-size: 16px; color: #16213a; margin-bottom: 8px; }
.adv p { font-size: 13px; color: #7c8698; }

/* ---------------------------------------------------------- 图文左右 */
.split { display: flex; flex-wrap: wrap; align-items: center; margin: 0 -18px; }
.split .split-txt { width: 50%; padding: 18px; }
.split .split-img { width: 50%; padding: 18px; }
.split-img .img-box {
  width: 100%; border-radius: 12px; overflow: hidden; background: #eef2f7;
  position: relative; padding-top: 66%;      /* 用 padding 撑比例，兼容老内核 */
}
.split-img .img-box img {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.split-txt h2 { font-size: 24px; color: #16213a; margin-bottom: 16px; font-weight: 700; }
.split-txt p { color: #5f6a7d; font-size: 14px; line-height: 2; margin-bottom: 12px; }
.split-txt .more {
  display: inline-block; margin-top: 8px; color: #0d5ba6; font-size: 14px;
  border-bottom: 1px solid #0d5ba6; padding-bottom: 2px;
}

/* ---------------------------------------------------------- 合作流程 */
.flow { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.flow .step { width: 25%; padding: 10px; text-align: center; position: relative; }
.flow .step .n {
  width: 52px; height: 52px; line-height: 52px; border-radius: 50%;
  background: #fff; border: 2px solid #0d5ba6; color: #0d5ba6;
  font-size: 20px; font-weight: 700; margin: 0 auto 14px;
}
.flow .step h3 { font-size: 15px; color: #16213a; margin-bottom: 6px; }
.flow .step p { font-size: 12px; color: #8b95a6; }
.flow .step:after {
  content: ""; position: absolute; top: 36px; right: -18px;
  width: 36px; height: 2px; background: #d7e3f3;
}
.flow .step:last-child:after { display: none; }

/* ---------------------------------------------------------- 新闻 */
.news-item {
  display: flex; align-items: flex-start; padding: 20px 0;
  border-bottom: 1px dashed #e6ebf2;
}
.news-item:first-child { padding-top: 0; }
.news-date {
  width: 76px; flex-shrink: 0; text-align: center; color: #0d5ba6;
  border-right: 1px solid #eaeef4; margin-right: 20px; padding-right: 16px;
}
.news-date b { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; }
.news-date span { font-size: 12px; color: #99a3b3; }
.news-body { flex: 1; min-width: 0; }
.news-body h3 {
  font-size: 16px; color: #16213a; font-weight: 600; margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-body p {
  font-size: 13px; color: #8b95a6; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item:hover .news-body h3 { color: #0d5ba6; }

/* 新闻列表页 */
.news-card { display: flex; background: #fff; border: 1px solid #eaeef4;
  border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.news-card .nc-img {
  width: 220px; flex-shrink: 0; background: #eef2f7; position: relative;
  min-height: 138px;
}
.news-card .nc-img img {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover;
}
.news-card .nc-body { flex: 1; padding: 20px; min-width: 0; }
.news-card .nc-body h3 { font-size: 17px; color: #16213a; margin-bottom: 10px; font-weight: 600; }
.news-card .nc-body p { font-size: 13px; color: #8b95a6; line-height: 1.8; margin-bottom: 12px; }
.news-card:hover .nc-body h3 { color: #0d5ba6; }
.news-meta { font-size: 12px; color: #a8b1bf; }
.news-meta span { margin-right: 14px; }

/* ---------------------------------------------------------- 文章详情 */
.article { background: #fff; padding: 40px 0; }
.article h1 { font-size: 26px; color: #16213a; font-weight: 700; line-height: 1.5; }
.article .art-meta {
  margin: 14px 0 26px; padding-bottom: 18px; border-bottom: 1px solid #eef2f7;
  font-size: 13px; color: #99a3b3;
}
.article .art-meta span { margin-right: 18px; }
.art-content { font-size: 15px; line-height: 2.1; color: #3c4759; }
.art-content p { margin-bottom: 16px; }
.art-content h2 {
  font-size: 18px; color: #16213a; margin: 26px 0 12px;
  font-weight: 700; padding-left: 11px; border-left: 3px solid #0d5ba6; line-height: 1.4;
}
.art-content ul { margin: 0 0 16px 0; }
.art-content ul li {
  position: relative; padding-left: 16px; margin-bottom: 8px; color: #3c4759;
}
.art-content ul li:before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: #0d5ba6;
}
.art-content img { max-width: 100%; margin: 10px 0; border-radius: 8px; }
.art-nav {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid #eef2f7;
  font-size: 14px;
}
.art-nav a { display: block; color: #5f6a7d; margin-bottom: 8px; }
.art-nav a:hover { color: #0d5ba6; }
.art-nav a span { color: #99a3b3; margin-right: 8px; }

/* ---------------------------------------------------------- 分类筛选 */
.filter { text-align: center; margin-bottom: 30px; }
.filter a {
  display: inline-block; padding: 7px 20px; margin: 0 6px 8px;
  border-radius: 20px; background: #f2f5f9; color: #5f6a7d; font-size: 14px;
}
.filter a.on, .filter a:hover { background: #0d5ba6; color: #fff; }

/* ---------------------------------------------------------- 分页 */
.pager { text-align: center; padding: 30px 0 10px; }
.pager a, .pager span {
  display: inline-block; min-width: 34px; height: 34px; line-height: 32px;
  margin: 0 4px; border: 1px solid #e2e8f0; border-radius: 6px;
  color: #5f6a7d; font-size: 13px; padding: 0 10px;
}
.pager a:hover { border-color: #0d5ba6; color: #0d5ba6; }
.pager span.on { background: #0d5ba6; border-color: #0d5ba6; color: #fff; }
.pager span.dis { color: #c8cfd9; }

/* ---------------------------------------------------------- 内页头图 */
.page-hero {
  background: #0b3f77;
  background-size: cover; background-position: center 40%; background-repeat: no-repeat;
  position: relative; padding: 62px 0; text-align: center;
}
.page-hero .ph-mask {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(8, 34, 66, 0.66);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: 30px; color: #fff; font-weight: 700; }
.page-hero p { margin-top: 10px; color: rgba(255, 255, 255, 0.82); font-size: 14px; }

/* ---------------------------------------------------------- 联系我们 */
.contact-list { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.contact-list .ci { width: 50%; padding: 12px; }
.contact-list .ci-in {
  background: #fff; border: 1px solid #eaeef4; border-radius: 10px;
  padding: 22px 20px; height: 100%;
}
.contact-list .ci-in .ci-label { font-size: 13px; color: #99a3b3; margin-bottom: 8px; }
.contact-list .ci-in .ci-val { font-size: 16px; color: #16213a; font-weight: 600; word-break: break-all; }
.map-box {
  width: 100%; height: 340px; border-radius: 12px; overflow: hidden;
  background: #eef2f7; margin-top: 24px;
}
.map-box img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------- 底部 */
.footer { background: #16213a; color: rgba(255, 255, 255, 0.66); padding: 48px 0 0; }
.footer .f-top { display: flex; flex-wrap: wrap; margin: 0 -16px; }
.footer .f-col { padding: 0 16px; margin-bottom: 30px; }
.footer .f-about { width: 38%; }
.footer .f-link { width: 22%; }
.footer .f-contact { width: 40%; }
.footer h4 {
  color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600;
}
.footer .f-about p { font-size: 13px; line-height: 1.95; max-width: 380px; }
.footer .f-about .f-logo { font-size: 20px; color: #fff; font-weight: 700; margin-bottom: 14px; }
.footer .f-link a { display: block; font-size: 13px; margin-bottom: 11px; color: rgba(255, 255, 255, 0.66); }
.footer .f-link a:hover { color: #fff; }
.footer .f-contact p { font-size: 13px; margin-bottom: 11px; line-height: 1.7; }
.footer .f-contact b { color: #fff; font-weight: 600; }
.footer .f-qr { margin-top: 16px; }
.footer .f-qr img { width: 96px; height: 96px; border-radius: 6px; background: #fff; padding: 4px; }
.footer .f-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.5);
  line-height: 2;
}
.footer .f-bottom a { color: rgba(255, 255, 255, 0.5); margin: 0 6px; }
.footer .f-bottom a:hover { color: #fff; }

/* ---------------------------------------------------------- 侧边悬浮 */
.float-bar { position: fixed; right: 16px; bottom: 90px; z-index: 150; }
.float-bar a {
  display: block; width: 46px; height: 46px; line-height: 46px; text-align: center;
  background: #fff; border: 1px solid #e6ebf2; border-radius: 50%;
  margin-bottom: 10px; font-size: 12px; color: #5f6a7d;
  box-shadow: 0 4px 14px rgba(16, 34, 64, 0.12);
}
.float-bar a:hover { background: #0d5ba6; color: #fff; border-color: #0d5ba6; }
.float-bar .fb-tel { background: #0d5ba6; color: #fff; border-color: #0d5ba6; }

/* ---------------------------------------------------------- 空状态 / 加载 */
.empty { text-align: center; padding: 70px 0; color: #a8b1bf; font-size: 14px; }
.empty .e-ico { font-size: 40px; margin-bottom: 12px; color: #d3dbe6; }
.loading { text-align: center; padding: 50px 0; color: #a8b1bf; font-size: 14px; }
.skeleton {
  background: #eef2f7; border-radius: 8px; height: 120px; margin-bottom: 16px;
}

/* ---------------------------------------------------------- 移动端（≤900 / ≤640） */
@media screen and (max-width: 980px) {
  .col-4, .adv, .flow .step { width: 50%; }
  .footer .f-about, .footer .f-link, .footer .f-contact { width: 50%; }
  .nav a { padding: 0 12px; font-size: 14px; }
  .head-tel { display: none; }
}

@media screen and (max-width: 720px) {
  body { padding-top: 58px; }
  .header, .header .wrap { height: 58px; }
  .nav a { height: 58px; line-height: 58px; }
  .logo img { height: 30px; }
  .logo .logo-text { font-size: 17px; }

  /* 汉堡菜单：把导航收起来，点开下拉 */
  .menu-btn { display: block; margin-left: auto; }
  .nav {
    position: fixed; left: 0; right: 0; top: 58px;
    background: #fff; display: none; flex-direction: column;
    box-shadow: 0 8px 18px rgba(16, 34, 64, 0.12); padding: 6px 0;
  }
  .nav.open { display: flex; }
  .nav a {
    width: 100%; height: 48px; line-height: 48px; padding: 0 20px;
    border-bottom: 1px solid #f2f5f9; text-align: left;
  }
  .nav a.on:after { display: none; }
  .nav a.on { background: #f5f9ff; }
  .head-right { margin-left: 0; }
  .btn-manage { padding: 6px 12px; font-size: 12px; }

  .section { padding: 40px 0; }
  .sec-head { margin-bottom: 26px; }
  .sec-head h2 { font-size: 21px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero h1 { font-size: 23px; }
  .hero p { font-size: 14px; margin-top: 12px; }
  .hero .hero-btn { margin-top: 22px; padding: 10px 30px; font-size: 15px; }

  .stat { width: 50%; margin-bottom: 14px; }
  .stat b { font-size: 23px; }
  .col-2, .col-3, .col-4, .adv, .flow .step,
  .contact-list .ci { width: 100%; }
  .split .split-txt, .split .split-img { width: 100%; }
  .split-txt h2 { font-size: 20px; }
  .flow .step:after { display: none; }
  .flow .step { text-align: left; padding-left: 70px; position: relative; }
  .flow .step .n { position: absolute; left: 10px; top: 10px; margin: 0; }

  .news-card { display: block; }
  .news-card .nc-img { width: 100%; height: 170px; min-height: 0; }
  .news-date { width: 62px; margin-right: 14px; padding-right: 12px; }
  .news-date b { font-size: 18px; }
  .article h1 { font-size: 20px; }
  .article .art-content { font-size: 15px; }
  .page-hero { padding: 40px 0; }
  .page-hero h1 { font-size: 22px; }

  .footer { padding-top: 34px; }
  .footer .f-about, .footer .f-link, .footer .f-contact { width: 100%; }
  .footer .f-about p { max-width: none; }
  .float-bar { right: 10px; bottom: 70px; }
  .float-bar a { width: 40px; height: 40px; line-height: 40px; font-size: 11px; }
}
