/* ============================================================
   诚华软件官网 - 全站样式
   深蓝简约商务风格 | PC + 移动端自适应
   主色：#0a4d8c（深蓝） 辅色：#1668c9  背景灰：#f5f7fa
   ============================================================ */

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333; background: #fff;
  font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: #0a4d8c; text-decoration: none; transition: color .2s; }
a:hover { color: #1668c9; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; box-shadow: 0 2px 12px rgba(10, 40, 80, .08);
}
.header-inner { display: flex; align-items: center; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img {
  width: 44px; height: 44px; border-radius: 9px; display: block;
  /* 微阴影让LOGO在白底上更立体 */
  box-shadow: 0 2px 8px rgba(10, 77, 140, .18);
}
.logo-text { font-size: 20px; font-weight: 700; color: #0a4d8c; line-height: 1.2; }
.logo-text em { display: block; font-size: 11px; font-style: normal; color: #8aa4c0; font-weight: 400; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 16px; color: #33475e; font-size: 15px; border-radius: 4px;
}
.nav a:hover, .nav a.active { color: #0a4d8c; background: #eaf3fc; font-weight: 600; }
.header-tel { text-align: right; flex-shrink: 0; }
.header-tel .tel-label { display: block; font-size: 12px; color: #8aa4c0; }
.header-tel .tel-num { font-size: 18px; font-weight: 700; color: #0a4d8c; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #0a4d8c; margin: 5px 0;
  transition: .3s;
}

/* ---------- 轮播 Banner ---------- */
.banner {
  position: relative; height: 460px; overflow: hidden; background: #0a2c52;
}
.banner .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s;
  display: flex; align-items: center;
}
.banner .slide.on { opacity: 1; }
.banner .slide-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.banner .slide-txt {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 0 16px; color: #fff;
}
.banner .slide-txt h2 { font-size: 42px; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.banner .slide-txt p { font-size: 18px; margin-top: 14px; opacity: .92; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.banner .slide-txt .btn { margin-top: 28px; }
/* 轮播圆点 */
.banner-dots { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; z-index: 3; }
.banner-dots i {
  display: inline-block; width: 32px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.4); margin: 0 5px; cursor: pointer; transition: .3s;
}
.banner-dots i.on { background: #fff; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-block; padding: 11px 32px; border-radius: 4px; font-size: 15px;
  background: #0a4d8c; color: #fff; border: 1px solid #0a4d8c; cursor: pointer;
  transition: .25s;
}
.btn:hover { background: #1668c9; border-color: #1668c9; color: #fff; }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 70px 0; }
.section.gray { background: #f5f7fa; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 { font-size: 30px; color: #1b2b3d; letter-spacing: 1px; }
.sec-head .line {
  width: 48px; height: 4px; background: #0a4d8c; border-radius: 2px; margin: 14px auto 10px;
}
.sec-head p { color: #7d8fa3; font-size: 15px; }
.sec-more { text-align: center; margin-top: 36px; }

/* ---------- 首页：核心功能四宫格 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid #e6edf5; border-radius: 8px; padding: 32px 24px;
  text-align: center; transition: .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(10, 77, 140, .12); }
.feature-card .icon {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 14px;
  background: linear-gradient(135deg, #0a4d8c, #1668c9);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
}
.feature-card h3 { font-size: 17px; color: #1b2b3d; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: #7d8fa3; }

/* ---------- 卡片（产品/案例/新闻通用） ---------- */
.card {
  background: #fff; border-radius: 8px; overflow: hidden;
  border: 1px solid #e6edf5; transition: .3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(10, 77, 140, .12); }
.card .pic { height: 200px; overflow: hidden; background: #eaf3fc; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.card:hover .pic img { transform: scale(1.05); }
.card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card .body h3 { font-size: 17px; color: #1b2b3d; margin-bottom: 8px; }
.card .body h3 a { color: inherit; }
.card .body p { font-size: 13.5px; color: #7d8fa3; flex: 1; }
.card .meta { margin-top: 12px; font-size: 12.5px; color: #9fb2c6; }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  background: #eaf3fc; color: #0a4d8c; font-size: 12px; margin-right: 6px;
}

/* ---------- 页面内页横幅（子页顶部蓝条） ---------- */
.page-banner {
  background: linear-gradient(120deg, #0a2c52 0%, #0a4d8c 60%, #1668c9 100%);
  color: #fff; padding: 58px 0; text-align: center;
}
.page-banner h1 { font-size: 30px; letter-spacing: 2px; }
.page-banner p { margin-top: 8px; opacity: .85; font-size: 14px; }
/* 面包屑 */
.crumb { padding: 16px 0; font-size: 13px; color: #8aa4c0; }
.crumb a { color: #8aa4c0; }
.crumb a:hover { color: #0a4d8c; }

/* ---------- 功能介绍页 ---------- */
.feat-block { display: flex; gap: 40px; align-items: center; padding: 44px 0; }
.feat-block:nth-child(even) { flex-direction: row-reverse; }
.feat-block .txt { flex: 1; }
.feat-block .txt h3 { font-size: 22px; color: #1b2b3d; margin-bottom: 14px; }
.feat-block .txt p { color: #66788c; margin-bottom: 10px; }
.feat-block .txt ul { margin: 10px 0 0 18px; list-style: disc; color: #66788c; }
.feat-block .txt ul li { margin: 6px 0; }
.feat-block .pic {
  flex: 1; min-height: 260px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 77, 140, .12);
}
.feat-block .pic img { width: 100%; height: 100%; object-fit: cover; }
/* 功能小徽章 */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badges span {
  background: #eaf3fc; color: #0a4d8c; font-size: 13px;
  padding: 6px 16px; border-radius: 4px;
}

/* ---------- 新闻列表（横排样式） ---------- */
.news-row {
  display: flex; gap: 22px; background: #fff; border: 1px solid #e6edf5;
  border-radius: 8px; padding: 20px; margin-bottom: 18px; transition: .3s;
}
.news-row:hover { box-shadow: 0 8px 24px rgba(10, 77, 140, .1); }
.news-row .n-pic { width: 210px; height: 130px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #eaf3fc; }
.news-row .n-pic img { width: 100%; height: 100%; object-fit: cover; }
.news-row .n-txt { flex: 1; min-width: 0; }
.news-row .n-txt h3 { font-size: 18px; color: #1b2b3d; margin: 4px 0 10px; }
.news-row .n-txt p { color: #7d8fa3; font-size: 13.5px; }

/* ---------- 新闻详情 / 通用富文本 ---------- */
.article { background: #fff; border: 1px solid #e6edf5; border-radius: 8px; padding: 40px; }
.article h1 { font-size: 26px; color: #1b2b3d; margin-bottom: 12px; }
.article .a-meta { color: #9fb2c6; font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid #eef2f7; margin-bottom: 24px; }
.article .a-content { color: #44586c; font-size: 15px; }
.article .a-content p { margin: 12px 0; }
.article .a-content img { margin: 16px auto; border-radius: 6px; }
.article .a-content ul, .article .a-content ol { margin: 12px 0 12px 24px; }
.article .a-content ul { list-style: disc; }
.article .a-content ol { list-style: decimal; }

/* ---------- 联系我们 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-info h3 { font-size: 20px; color: #1b2b3d; margin-bottom: 18px; }
.contact-info .c-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .c-item .icon {
  width: 44px; height: 44px; border-radius: 10px; background: #eaf3fc; color: #0a4d8c;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-info .c-item h5 { font-size: 15px; color: #1b2b3d; }
.contact-info .c-item p { color: #7d8fa3; font-size: 14px; }
/* 表单 */
.form-item { margin-bottom: 18px; }
.form-item label { display: block; font-size: 14px; color: #44586c; margin-bottom: 6px; }
.form-item label i { color: #d33; font-style: normal; margin-left: 2px; }
.form-item input, .form-item textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #d5e0ec; border-radius: 4px;
  font-size: 14px; font-family: inherit; outline: none; transition: .2s; background: #fff;
}
.form-item input:focus, .form-item textarea:focus { border-color: #0a4d8c; box-shadow: 0 0 0 3px rgba(10,77,140,.1); }
.form-tip { padding: 10px 14px; border-radius: 4px; font-size: 14px; margin-bottom: 16px; }
.form-tip.ok { background: #e8f7ee; color: #1c8a4e; border: 1px solid #bfe7cf; }
.form-tip.err { background: #fdecec; color: #c0392b; border: 1px solid #f2c4c4; }

/* ---------- 关于我们 ---------- */
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; margin-top: 40px; }
.about-stats .num { font-size: 38px; font-weight: 700; color: #0a4d8c; }
.about-stats .num em { font-style: normal; font-size: 18px; }
.about-stats .lbl { color: #7d8fa3; font-size: 14px; margin-top: 4px; }

/* ---------- 分页 ---------- */
.pagination { text-align: center; margin: 34px 0 10px; }
.pagination a, .pagination .cur {
  display: inline-block; min-width: 36px; padding: 7px 12px; margin: 0 4px;
  border: 1px solid #d5e0ec; border-radius: 4px; font-size: 14px; color: #44586c;
}
.pagination .cur { background: #0a4d8c; border-color: #0a4d8c; color: #fff; }
.pagination a:hover { border-color: #0a4d8c; color: #0a4d8c; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0a2c52; color: #b8c9dc; margin-top: 60px; }
.site-footer .footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding: 48px 16px 36px;
}
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer p { font-size: 13.5px; margin-bottom: 8px; }
.site-footer a { color: #b8c9dc; }
.site-footer a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 13px; text-align: center; }
.copyright a { color: #7d97b3; }

/* ============================================================
   响应式适配（≤920px 平板，≤640px 手机）
   ============================================================ */
@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .header-tel { display: none; }
  .feat-block { flex-direction: column !important; gap: 24px; }

  /* 移动端导航：默认收起，点汉堡按钮展开 */
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 10px 16px 16px;
    box-shadow: 0 12px 20px rgba(10, 40, 80, .12); gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 6px; }
  .nav-toggle { display: block; margin-left: auto; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .section { padding: 44px 0; }
  .sec-head h2 { font-size: 24px; }
  .banner { height: 320px; }
  .banner .slide-txt h2 { font-size: 26px; }
  .banner .slide-txt p { font-size: 14px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .news-row { flex-direction: column; }
  .news-row .n-pic { width: 100%; height: 170px; }
  .article { padding: 24px 18px; }
  .page-banner { padding: 40px 0; }
  .page-banner h1 { font-size: 24px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- 右侧悬浮客服 ---------- */
.service-float {
  position: fixed; right: 18px; bottom: 90px; z-index: 200;
  display: flex; flex-direction: column; gap: 12px;
}
.sf-btn {
  width: 54px; height: 54px; border-radius: 50%;
  background: #0a4d8c; color: #fff; font-size: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(10, 77, 140, .35); cursor: pointer;
  position: relative; border: 0; transition: .25s;
}
.sf-btn:hover { background: #1668c9; transform: translateY(-2px); }
.sf-btn .sf-label { font-size: 10px; line-height: 1; margin-top: 3px; }
.sf-tel { text-decoration: none; }
/* 二维码弹出层 */
.sf-qr .sf-pop {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%) scale(.9);
  width: 190px; background: #fff; border: 1px solid #e6edf5; border-radius: 10px;
  padding: 14px; text-align: center; opacity: 0; visibility: hidden;
  transition: .25s; box-shadow: 0 12px 32px rgba(10, 40, 80, .18);
}
.sf-qr .sf-pop img { width: 140px; margin: 0 auto 8px; }
.sf-qr .sf-pop p { font-size: 12px; color: #66788c; line-height: 1.5; }
.sf-qr:hover .sf-pop, .sf-qr.on .sf-pop { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
.sf-top { font-size: 22px; }

@media (max-width: 640px) {
  .service-float { right: 12px; bottom: 20px; }
  .sf-btn { width: 48px; height: 48px; font-size: 18px; }
  .sf-btn .sf-label { display: none; }
  /* 移动端点按弹出二维码 */
  .sf-qr.on .sf-pop { opacity: 1; visibility: visible; }
}
