/* ============================================================
   重庆耘聚科技有限公司 - 官网样式
   1:1 复刻中水科技（zskjcq.com）视觉风格
   主色 #0f81e4 / hover #0054d1 / 浅蓝底 #E3EEFE / 点缀橙 #F18421
   白色导航 + 浅灰页脚 #EEF0F2 + 深灰底 #282828
   ============================================================ */
:root {
  --blue: #0f81e4;
  --blue-hover: #0054d1;
  --blue-light: #E3EEFE;
  --blue-soft: #F6F9FF;
  --orange: #F18421;
  --orange-soft: #FDF1E8;
  --text: #333;
  --text-title: #363636;
  --muted: #666;
  --muted-2: #999;
  --line: #ECECEC;
  --line-2: #E6E6E6;
  --gray-bg: #f4f4f4;
  --gray-bg-2: #EEF0F2;
  --footer-dark: #282828;
  --white: #fff;
  --shadow: 0 0 16px rgba(0, 0, 0, 0.1);
  /* 兼容后台页面旧变量别名 */
  --gold: #d9b24c;
  --navy-2: #0d2b55;
  --navy: #0a2244;
  --navy-deep: #081a33;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}
a { text-decoration: none; color: #000; transition: color .25s; }
a:hover { color: var(--blue-hover); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: min(1300px, 94%); margin: 0 auto; }
.comm-width { max-width: 1300px; margin: 0 auto; position: relative; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ============ 顶部导航（白色，100px） ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  height: 100px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
.header .container { height: 100%; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 64px; width: auto; }
.brand .name b {
  font-size: 30px; color: #000; letter-spacing: 2px; display: block;
  line-height: 1.2; font-weight: 700; white-space: nowrap;
}
.brand .name span { font-size: 12px; color: #999; letter-spacing: .3px; display: block; line-height: 1.4; }

/* 顶栏右上角：微信公众号二维码（悬停放大便于扫码） */
.header-qr { position: relative; flex: 0 0 auto; margin-left: 22px; text-align: center; }
.header-qr .hq-thumb {
  width: 66px; height: 66px; background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: #999; font-size: 10px; line-height: 1.25; overflow: hidden;
}
.header-qr .hq-thumb img { width: 100%; height: 100%; object-fit: contain; }
.header-qr .hq-label { font-size: 11px; color: #666; line-height: 1.5; white-space: nowrap; }
.header-qr .hq-pop {
  display: none; position: absolute; right: 0; top: 100%; z-index: 120;
  width: 178px; padding: 10px; text-align: center; box-sizing: border-box;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(0,0,0,.16);
}
.header-qr:hover .hq-pop { display: block; }
.header-qr .hq-pop img { width: 158px; height: 158px; margin: 0 auto; object-fit: contain; }
.header-qr .hq-pop span { display: block; margin-top: 6px; font-size: 12px; color: #666; white-space: nowrap; }

/* 导航：整体占满品牌区以外的剩余宽度；各模块按文字宽度自适应、间距自动均分，
   既保证字号放大后不溢出，又让五个模块在顶栏中分布均衡 */
.nav { display: flex; height: 100px; align-items: stretch; flex: 1; min-width: 0; margin-left: 34px; justify-content: space-between; }
.nav > .nav-item {
  position: relative; height: 100px; display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; border-bottom: 3px solid transparent;
}
.nav > .nav-item:last-child { margin-right: 0; }
.nav > .nav-item > a {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-size: 20px; color: #000; letter-spacing: 1px;
  padding: 0 10px; white-space: nowrap;
}
/* 悬停与点击激活统一高亮：浅蓝底色 + 3px 蓝色下划线 + 文字变蓝（五个模块表现完全一致） */
.nav > .nav-item:hover, .nav > .nav-item.active {
  border-bottom: 3px solid var(--blue-hover);
  background: var(--blue-light);
}
.nav > .nav-item:hover > a, .nav > .nav-item.active > a { color: var(--blue-hover); }

/* 全宽下拉（dl/dt/dd 结构，复刻参考站；fixed 贴视口，与顶栏对齐；不透明背景防下层内容透出） */
.nav .subnav {
  position: fixed; top: 100px; left: 0; right: 0;
  width: 100%;
  background: #f5f5f5;
  z-index: 99; display: none;
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}
.nav .nav-item:hover .subnav { display: block; }
.nav .subnavlist {
  width: min(1200px, 94%); margin: 0 auto;
  display: flex; justify-content: space-around;
  padding: 18px 0 20px;
}
.nav .subnavlist dl { width: 240px; margin-right: 25px; }
.nav .subnavlist dl:last-child { margin-right: 0; }
.nav .subnavlist dl dt {
  font-size: 17px; color: var(--blue-hover); font-weight: 800;
  height: 46px; line-height: 46px; cursor: pointer;
  border-bottom: 1px solid #e3e3e3; margin-bottom: 6px;
}
.nav .subnavlist dl dt a { font-size: 18px; color: var(--blue-hover); font-weight: 800; }
.nav .subnavlist dl dd {
  font-size: 14px; color: #333; height: 34px; line-height: 34px;
  max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav .subnavlist dl dd a { font-size: 14px; color: #333; }
.nav .subnavlist dl dt a:hover, .nav .subnavlist dl dd a:hover { text-decoration: underline; color: var(--blue-hover); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #333; margin: 5px 0; transition: .3s; }

/* ============ Banner 轮播 ============ */
.hero {
  position: relative; width: 100%; height: 560px; overflow: hidden;
  background: #0a2c58;
}
/* 切换方式：渐变（交叉淡入淡出）。与 index.html 的 AUTO_MS = 4000 配合，
   1.2s 的过渡时长让渐变过程清晰可见（原 0.8s 偏快，接近硬切） */
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero .slide.on { opacity: 1; }
.hero .slide .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero .slide .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,26,54,.72) 0%, rgba(7,26,54,.3) 55%, rgba(7,26,54,.05) 100%);
}
.hero .slide .inner { position: relative; z-index: 2; max-width: 1300px; margin: 0 auto; padding: 130px 0 0; width: 94%; }
/* Banner 顶部标签：纯文字（原有的胶囊边框会随 flex 拉伸成长线框，故去掉） */
.hero .slide .kicker {
  display: inline-block; color: #fff; font-size: 15px; letter-spacing: 3px;
  margin-bottom: 22px;
}
.hero .slide h1 { color: #fff; font-size: 48px; line-height: 1.25; letter-spacing: 2px; }
.hero .slide h1 em { font-style: normal; color: #7cc0ff; }
.hero .slide p { color: #c9d8ee; font-size: 18px; max-width: 560px; margin-top: 18px; }
.hero .dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero .dots span { width: 36px; height: 3px; background: #585858; cursor: pointer; border-radius: 2px; transition: background .3s; }
.hero .dots span.on { background: var(--orange); }
.hero .arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 80px; height: 80px; background: rgba(0,0,0,.2); color: #fff; border: none; cursor: pointer; font-size: 40px; line-height: 1; transition: background .3s; display: flex; align-items: center; justify-content: center; }
.hero .arrow:hover { background: rgba(0,0,0,.45); }
.hero .arrow.prev { left: 30px; }
.hero .arrow.next { right: 30px; }

/* ============ 区块标题（参考站风格：中文大标题+装饰图+蓝色英文） ============ */
.section { padding: 60px 0; }
.sec-head { text-align: center; margin-bottom: 50px; line-height: 1.2; }
.sec-head .fir { font-size: 40px; font-weight: 700; color: var(--text-title); line-height: 45px; }
.sec-head .deco { margin: 14px auto; display: flex; align-items: center; justify-content: center; gap: 14px; }
.sec-head .deco .ln { width: 34px; height: 1px; background: #c6c6c6; }
.sec-head .deco .dia { width: 8px; height: 8px; background: var(--blue); transform: rotate(45deg); }
.sec-head .deco .dia.c { background: var(--orange); }
.sec-head .sec { font-size: 24px; color: var(--blue); text-transform: uppercase; letter-spacing: 2px; font-family: "Segoe UI", sans-serif; }

/* ============ 关于我们（左数字+文字+胶囊按钮 / 右图） ============ */
.about-wrap { display: flex; gap: 60px; align-items: stretch; padding-top: 10px; }
.about-txt { flex: 1; }

/* ---- 案例缩略图无缝横向滚动（首页"关于公司" / 关于页共用） ----
   容器宽高由各自的外层 class 决定，组件本身不改变区域尺寸 */
.case-marquee { margin-bottom: 20px; }
.stat-marquee { margin-top: 36px; }          /* 与原 .stats-grid 保持一致的外边距 */
.cc-viewport { overflow: hidden; width: 100%; }
.cc-track { display: flex; width: max-content; animation: cc-scroll linear infinite; }
.cc-item {
  flex: 0 0 auto; margin-right: 14px;        /* 与 JS 中 GAP 保持一致，保证循环无缝 */
  position: relative; display: block;
  border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); background: #fff;
}
.cc-item img { width: 100%; height: 92px; object-fit: cover; display: block; transition: transform .4s; }
.cc-item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 8px; font-size: 12px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-item:hover img { transform: scale(1.08); }
.cc-item:hover { border-color: var(--blue); }
.cc-viewport:hover .cc-track { animation-play-state: paused; }   /* 鼠标悬停暂停，便于点击 */
@keyframes cc-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.about-txt .stat { display: flex; align-items: center; padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line-2); }
.about-txt .stat:last-child { border-right: 0; margin-right: 0; }
.about-txt .stat .num { font-size: 52px; font-weight: bold; color: #232323; line-height: 1; padding-bottom: 4px; }
.about-txt .stat .num i { font-style: normal; font-size: 22px; }
.about-txt .stat .lbl { color: var(--blue); font-size: 20px; padding-left: 12px; line-height: 29px; }
.about-txt p { font-size: 14px; color: #333; line-height: 32px; text-align: justify; text-indent: 2em; padding: 20px 0; }
.btn-round {
  display: inline-block; width: 150px; height: 40px; line-height: 40px; text-align: center;
  border-radius: 20px; background: var(--blue); color: #fff; font-size: 20px;
  transition: all .3s;
}
.btn-round:hover { background: var(--blue-hover); color: #fff; }
/* 简介配图的展示宽度：固定 700px（≤1200 收敛到 600px，≤992 转为整行并居中） */
.about-visual { flex: 0 0 700px; max-width: 700px; min-height: 380px; overflow: hidden; position: relative; }
.about-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ============ 业务领域（序号卡片，复刻参考站） ============ */
.field-bg { background: var(--gray-bg-2); }
.work-list { display: flex; gap: 52px; padding-top: 10px; }
.work-item { flex: 1; background: #fff; box-shadow: var(--shadow); overflow: hidden; height: 520px; position: relative; }
.work-item .imgbox { height: 207px; overflow: hidden; }
.work-item .imgbox img { width: 100%; height: 100%; object-fit: cover; }
.work-item .txt { height: 313px; background: #fff; padding: 10px 15px 0 25px; position: relative; }
.work-item .no { font-size: 64px; font-weight: 300; color: #c6c6c6; line-height: 92px; text-align: center; border-bottom: 2px solid #c6c6c6; padding-bottom: 10px; }
.work-item:hover .no { color: #2c3c51; border-color: #2c3c51; }
.work-item .ttl { font-size: 22px; color: #000; margin-top: 21px; font-weight: 700; text-align: center; line-height: 32px; }
.work-item .desc { font-size: 14px; color: #333; line-height: 24px; margin-top: 21px; text-align: left; }

/* ============ 新闻动态（复刻参考站：大图66% + 卡片32% + 下方3卡片） ============ */
.news-bg { background: var(--gray-bg); }
.news-top { display: flex; gap: 2%; }
.news-big { width: 66%; position: relative; overflow: hidden; }
.news-big a { display: block; height: 100%; position: relative; }
.news-big img { width: 100%; height: 452px; object-fit: cover; transition: transform 1s; }
.news-big:hover img { transform: scale(1.1); }
.news-big .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  color: #fff; padding: 20px 35px; font-size: 18px; line-height: 36px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(0,0,0,.5);
}
.news-side { width: 32%; border: 1px solid #ddd; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.news-side a { display: block; height: 100%; }
.news-side .img { height: 220px; overflow: hidden; }
.news-side .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.news-side:hover .img img { transform: scale(1.2); }
.news-side .txt { padding: 13px 20px; flex: 1; display: flex; flex-direction: column; }
.news-side .txt .ltt { font-weight: bold; color: #333; font-size: 18px; line-height: 1.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-side .txt .ltc { color: #999; font-size: 12px; line-height: 24px; margin: 10px 0 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; height: 74px; }
.news-side .txt .day { line-height: 1; border-top: 1px solid #e1e1e1; padding-top: 10px; color: #888; font-size: 14px; }

.news-bottom { display: flex; gap: 1%; margin-top: 20px; }
.news-card2 { width: 32%; border: 1px solid #ddd; background: #fff; overflow: hidden; }
.news-card2 a { display: block; width: 100%; }
.news-card2 .img { overflow: hidden; }
.news-card2 .img img { width: 100%; height: 200px; object-fit: cover; transition: transform 1s; }
.news-card2:hover .img img { transform: scale(1.2); }
.news-card2 .txt { padding: 20px; }
.news-card2 .txt .ltt { color: #222; font-weight: bold; line-height: 31px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 20px; }
.news-card2 .txt .ltc { color: #999; font-size: 12px; line-height: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; height: 70px; }
.news-card2 .txt .day { line-height: 1; border-top: 1px solid #e1e1e1; padding-top: 10px; color: #888; font-size: 14px; margin-top: 10px; }

.more-link { display: block; width: 140px; line-height: 42px; text-align: center; margin: 40px auto 0; border: 1px solid #ddd; border-radius: 5px; color: #333; transition: all .3s; }
.more-link:hover { background: var(--blue-hover); color: #fff; border-color: var(--blue-hover); }

/* ============ 客户墙（复刻参考站） ============ */
.client-list { background: #fff; box-shadow: var(--shadow); padding: 30px 16px 14px; display: flex; flex-wrap: wrap; justify-content: center; }
.client-item { width: 12%; margin-bottom: 16px; text-align: center; transition: transform .5s; }
.client-item:hover { transform: translateY(-16px); }
.client-item .ic { width: 126px; height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #eee; color: #999; font-size: 14px; font-weight: 600; }
/* 后台"客户管理"上传的 LOGO：等比缩放居中，与外框尺寸一致 */
.client-item img { width: 126px; height: 76px; margin: 0 auto; object-fit: contain; background: #fff; border: 1px solid #eee; padding: 6px; }
/* 关于页「部分客户」：沿用客户墙样式，改为网格排布（数据来自后台「客户管理」） */
.about-clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 12px; padding: 28px 20px 20px; }
.about-clients .client-item { width: auto; margin-bottom: 0; }
.about-clients .client-item img,
.about-clients .client-item .ic { width: 100%; height: 86px; }
.about-clients-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 46px 0; font-size: 15px; }

/* ============ 案例中心（复刻参考站 tab 样式） ============ */
.case-tabs { border-bottom: 1px solid #9A9A9A; margin-bottom: 55px; font-size: 0; text-align: center; }
.case-tabs .tab-item { color: #000; font-size: 22px; padding-bottom: 28px; display: inline-block; margin: 0 34px; cursor: pointer; position: relative; }
.case-tabs .tab-item.active { font-weight: bold; }
.case-tabs .tab-item.active::after { content: " "; position: absolute; bottom: -1px; left: 0; right: 0; height: 4px; background-color: var(--blue); }

/* ============ 内页横幅（复刻参考站 slide-bannner） ============ */
.page-hero {
  position: relative; height: 300px; overflow: hidden;
  background: linear-gradient(135deg, #0a2c58, #0d3a74);
  display: flex; align-items: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 80% 20%, rgba(63,155,255,.25), transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: 42px; letter-spacing: 2px; }
.page-hero h1 em { font-style: normal; color: #7cc0ff; }
.page-hero .crumb { color: rgba(255,255,255,.85); font-size: 16px; margin-top: 16px; }
.page-hero .crumb a { color: rgba(255,255,255,.85); }
.page-hero .crumb a:hover { color: #fff; }

/* ============ 列表筛选 ============ */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-bar button {
  padding: 8px 26px; border: 1px solid var(--line); background: #fff; color: #666;
  cursor: pointer; font-size: 15px; transition: all .25s;
}
.filter-bar button:hover { color: var(--blue); border-color: var(--blue); }
.filter-bar button.on { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ============ 卡片（新闻/产品/案例列表） ============ */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.news-card { background: #fff; border: 1px solid #ddd; overflow: hidden; transition: all .3s; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.news-card .cover { height: 210px; overflow: hidden; position: relative; }
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.news-card:hover .cover img { transform: scale(1.1); }
.news-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-card h3 { font-size: 16.5px; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card h3 a { color: #222; }
.news-card h3 a:hover { color: var(--blue); }
.news-card p { color: var(--muted-2); font-size: 12px; flex: 1; }
.news-card .day { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e1e1e1; color: #888; font-size: 14px; }

.prod-card { background: #fff; border: 1px solid #ddd; overflow: hidden; transition: all .3s; }
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.prod-card .icon { height: 180px; overflow: hidden; }
.prod-card .icon img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.prod-card:hover .icon img { transform: scale(1.1); }
.prod-card .body { padding: 18px 20px 22px; }
.prod-card .body h3 { font-size: 17px; color: #222; margin-bottom: 8px; }
.prod-card .body h3 a:hover { color: var(--blue); }
.prod-card .tag { display: inline-block; background: var(--blue-light); color: var(--blue); font-size: 12px; padding: 3px 12px; border-radius: 3px; margin-bottom: 10px; }
.prod-card .body p { color: var(--muted-2); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.case-card { position: relative; overflow: hidden; height: 250px; background: #0a2c58; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.case-card:hover img { transform: scale(1.1); }
.case-card .mask { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(7,20,40,.9) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.case-card .mask .ind { color: #7cc0ff; font-size: 12px; letter-spacing: 2px; margin-bottom: 6px; }
.case-card .mask h3 { color: #fff; font-size: 17px; }
.case-card .mask p { color: #c9d8ee; font-size: 13px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 详情页 ============ */
.detail-card { background: #fff; border: 1px solid var(--line); padding: 44px 50px; }
.detail-head { border-bottom: 1px dashed var(--line); padding-bottom: 22px; }
.detail-head h1 { font-size: 26px; line-height: 1.45; color: #000; }
.detail-meta { display: flex; gap: 24px; color: var(--muted); font-size: 14px; margin-top: 14px; }
.detail-meta b { color: var(--blue); font-weight: 600; }
.detail-body { padding-top: 26px; font-size: 15.5px; color: #444; }
.detail-body p { margin-bottom: 16px; text-align: justify; line-height: 2; }
.detail-body img { margin: 16px auto; }
.detail-body h3 { margin: 24px 0 12px; font-size: 18px; color: #000; padding-left: 14px; border-left: 4px solid var(--blue); }
.detail-body ul { margin: 0 0 16px 4px; }
.detail-body ul li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.detail-body ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; background: var(--blue); transform: rotate(45deg); }

/* ============ 分页 ============ */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager button { min-width: 36px; height: 36px; border: 1px solid #dfdfe0; background: #fff; color: #3c3c3c; cursor: pointer; font-size: 14px; transition: all .2s; }
.pager button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.pager button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ============ 关于页 ============ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; }
.stat-cell { background: #fff; border: 1px solid var(--line); text-align: center; padding: 30px 10px; transition: all .3s; }
.stat-cell:hover { box-shadow: var(--shadow); }
.stat-cell b { font-size: 40px; color: var(--blue); display: block; line-height: 1.2; }
.stat-cell b i { font-style: normal; font-size: 20px; }
.stat-cell span { font-size: 15px; color: var(--muted); margin-top: 8px; display: block; }
.culture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
/* 关于页：原"数据指标"区域尺寸保持不变，内容改为案例缩略图滚动
   （缩略图高度 142px ≈ 原 .stat-cell 的 30+48+8+25.5+30 视觉高度） */
.stat-marquee .cc-item img { height: 142px; }
.stat-marquee .cc-item span { font-size: 13px; padding: 6px 10px; }

/* ============ 页脚（浅灰 + 深灰底） ============
   底部站点信息只保留「地址 / 电话 / 邮箱」三项：
   五号字（14px）、横排一行、行高按一行计（line-height:1.5 = 21px） */
.footer { background: var(--gray-bg-2); }
.footer-info { padding: 12px 0; }
.info-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 46px; }
.info-row li { font-size: 14px; line-height: 1.5; color: #333; white-space: nowrap; }
.info-row li b { color: #000; font-weight: 700; }
.footer-bottom { background: var(--footer-dark); color: #fff; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; height: 34px; font-size: 12px; flex-wrap: wrap; }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { color: #7cc0ff; }

/* ============ 右侧悬浮工具栏（复刻参考站 foot_right） ============ */
.foot-right {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 95; background: #fff; box-shadow: -2px 0 10px rgba(0,0,0,.1);
}
.foot-right ul li { border-bottom: 1px solid #eee; }
.foot-right ul li:last-child { border-bottom: 0; }
.foot-right .fot1 { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; }
.foot-right .fot1 img { width: 28px; height: 28px; }
.foot-right .fot2 {
  display: none; position: absolute; right: 54px; top: 0;
  background: #fff; box-shadow: -2px 0 10px rgba(0,0,0,.1);
  padding: 12px 16px; white-space: nowrap; font-size: 13px; color: #333;
}
.foot-right ul li { position: relative; }
.foot-right ul li:hover .fot2 { display: block; }
.foot-right .fot2 font { color: var(--blue-hover); font-weight: bold; }

/* ============ 后台入口 ============
   前台「⚙ 后台管理」悬浮按钮已下线，前台页面不再注入 .admin-fab 元素；
   样式规则保留，若需恢复在 main.js 的 renderChrome() 中重新 append 即可。 */
.admin-fab {
  position: fixed; right: 20px; bottom: 60px; z-index: 90;
  background: var(--blue); color: #fff; padding: 9px 18px; border-radius: 999px; font-size: 13px;
  box-shadow: 0 8px 20px rgba(15,129,228,.4); display: inline-flex; align-items: center; gap: 6px;
}
.admin-fab:hover { background: var(--blue-hover); color: #fff; transform: translateY(-2px); }

/* ============ 「我要留言」入口 + 留言弹窗 ============
   入口是常驻右侧的竖排侧标，落在页面垂直中线略下方：
   既能与右侧悬浮工具栏（电话/邮箱/返回顶部）错开，也不会压到底部入口按钮。
   ≥769px 时悬浮工具栏高 162px（3×54）居中，故侧标下移 104px 留出间距。 */
.msg-fab {
  position: fixed; right: 0; top: 50%; margin-top: 104px; z-index: 96;
  width: 46px; padding: 15px 0; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  background: linear-gradient(180deg, #2f92f0, var(--blue));
  color: #fff; border-radius: 8px 0 0 8px;
  box-shadow: -2px 4px 14px rgba(15,129,228,.34);
  font-family: inherit; transition: transform .25s, box-shadow .25s;
}
.msg-fab:hover { transform: translateX(-4px); box-shadow: -7px 6px 20px rgba(15,129,228,.45); }
.msg-fab .mf-ic { font-size: 18px; line-height: 1; }
.msg-fab .mf-tx { writing-mode: vertical-rl; letter-spacing: 3px; font-size: 14px; }

/* 遮罩与弹窗 */
.msg-mask {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(8, 20, 40, .55); padding: 7vh 16px 40px; overflow-y: auto;
}
.msg-mask.on { display: block; }
.msg-dialog {
  position: relative; width: 100%; max-width: 560px; margin: 0 auto;
  background: #fff; border-radius: 14px; padding: 30px 34px 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
  animation: msgIn .28s ease-out;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.msg-x {
  position: absolute; right: 12px; top: 12px; width: 32px; height: 32px;
  border: 0; background: transparent; border-radius: 50%; cursor: pointer;
  font-size: 24px; line-height: 1; color: #9aa8bb;
}
.msg-x:hover { color: var(--blue); background: #f0f5fc; }
.msg-hd b {
  display: block; font-size: 21px; line-height: 1.3; color: var(--navy-2);
  padding-left: 12px; border-left: 4px solid var(--gold);
}
.msg-hd span { display: block; font-size: 13px; color: var(--muted); margin-top: 9px; }
.msg-bd { margin-top: 22px; }
.msg-fld { display: block; position: relative; margin-bottom: 16px; }
.msg-fld .lb { display: block; font-size: 13.5px; color: #33445c; margin-bottom: 8px; }
.msg-fld .lb i { color: #e2574c; font-style: normal; }
.msg-fld textarea,
.msg-fld input[type="text"] {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 14px; color: #1f2b3d;
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
  background: #fbfcfe; outline: none; transition: border-color .2s, box-shadow .2s;
}
.msg-fld textarea { min-height: 116px; resize: vertical; line-height: 1.75; }
.msg-fld textarea:focus,
.msg-fld input[type="text"]:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(26,122,240,.1); }
.msg-fld .cnt { position: absolute; right: 11px; bottom: 8px; font-size: 11.5px; color: #9aa8bb; pointer-events: none; }
/* 蜜罐：仅机器人会填，正常访客不可见 */
.msg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg-tip { min-height: 20px; font-size: 12.5px; color: #e2574c; }
.msg-ft {
  display: flex; justify-content: flex-end; gap: 12px;
  margin-top: 4px; padding-top: 18px; border-top: 1px dashed var(--line);
}
.msg-btn {
  padding: 10px 26px; border-radius: 8px; cursor: pointer; font-family: inherit;
  font-size: 14px; border: 1px solid var(--line); background: #fff; color: #33445c;
  transition: all .2s;
}
.msg-btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
.msg-btn.primary {
  border: 0; color: #fff; letter-spacing: 2px;
  background: linear-gradient(135deg, #1a7af0, var(--blue));
}
.msg-btn.primary:hover { box-shadow: 0 8px 20px rgba(26,122,240,.35); }
.msg-btn.primary:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }

/* 提交成功态：隐藏表单，展示结果 */
.msg-done { display: none; text-align: center; padding: 14px 0 6px; }
.msg-dialog.done .msg-hd,
.msg-dialog.done .msg-bd,
.msg-dialog.done .msg-ft { display: none; }
.msg-dialog.done .msg-done { display: block; }
.msg-done .ok {
  width: 62px; height: 62px; margin: 4px auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff; background: linear-gradient(135deg, #34b37f, #12855a);
  box-shadow: 0 10px 24px rgba(18, 133, 90, .3);
}
.msg-done b { font-size: 19px; color: var(--navy-2); }
.msg-done p { font-size: 13.5px; color: var(--muted); margin: 10px 0 22px; }

/* ============================================================
   首页单屏布局：Banner + 案例中心 + 底部基础信息，一屏内完整展示
   高度分配：顶栏 100px（固定）+ 案例区（固定）+ 站点基础信息（= 二维码高度）
   其余全部空间交给 Banner 图片与文案填充
   ============================================================ */
body[data-page="home"] { min-height: 100vh; display: flex; flex-direction: column; }
body[data-page="home"] .home-screen { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
/* 页头/页脚不参与压缩，高度始终保持稳定 */
body[data-page="home"] #site-header,
body[data-page="home"] #site-footer { flex: 0 0 auto; }
/* 首页不显示右侧悬浮栏（电话/邮箱/返回顶部），其它页面保留 */
body[data-page="home"] .foot-right { display: none; }

/* Banner：弹性高度，吃掉页头/案例区/页脚之外的全部剩余空间 */
body[data-page="home"] .hero { flex: 1 1 auto; height: auto; min-height: 240px; }
body[data-page="home"] .hero .slide .inner {
  height: 100%; padding: 0;
  display: flex; flex-direction: column; justify-content: center;
}
body[data-page="home"] .hero .slide h1 { font-size: 42px; }
body[data-page="home"] .hero .slide p { font-size: 16px; margin-top: 12px; }
body[data-page="home"] .hero .slide .kicker { align-self: flex-start; margin-bottom: 14px; }
body[data-page="home"] .hero .arrow { width: 58px; height: 58px; font-size: 30px; }
body[data-page="home"] .hero .arrow.prev { left: 18px; }
body[data-page="home"] .hero .arrow.next { right: 18px; }
body[data-page="home"] .hero .dots { bottom: 16px; }

/* 案例中心：标题在左、缩略滚动条在右，同一行并排 */
body[data-page="home"] .home-cases { flex: 0 0 auto; padding: 16px 0 14px; }
body[data-page="home"] .home-cases .container { display: flex; align-items: center; gap: 26px; }
body[data-page="home"] .case-head { flex: 0 0 auto; width: 168px; text-align: left; }
body[data-page="home"] .case-head .fir { font-size: 26px; line-height: 32px; font-weight: 700; color: var(--text-title); }
body[data-page="home"] .case-head .deco { display: flex; align-items: center; gap: 10px; margin: 9px 0; }
body[data-page="home"] .case-head .deco .ln { width: 26px; height: 1px; background: #c6c6c6; }
body[data-page="home"] .case-head .deco .dia { width: 8px; height: 8px; background: var(--blue); transform: rotate(45deg); flex: 0 0 auto; }
body[data-page="home"] .case-head .deco .dia.c { background: var(--orange); }
body[data-page="home"] .case-head .sec { font-size: 14px; color: var(--blue); text-transform: uppercase; letter-spacing: 1.5px; font-family: "Segoe UI", sans-serif; }
body[data-page="home"] .home-cases .case-marquee { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
body[data-page="home"] .home-case-strip .cc-item img { height: 120px; }
body[data-page="home"] .home-case-strip .cc-item span { font-size: 13px; padding: 6px 10px; }

/* ============ 响应式 ============ */
@media (max-width: 1650px) {
  .brand img { height: 60px; }
  .brand .name b { font-size: 27px; }
  .nav > .nav-item > a { font-size: 19px; }
}
@media (max-width: 1400px) {
  .brand img { height: 56px; }
  .brand .name b { font-size: 25px; }
  .nav { margin-left: 26px; }
  .nav > .nav-item > a { font-size: 16px; }
}
@media (max-width: 1200px) {
  .brand img { height: 50px; }
  .brand .name b { font-size: 23px; }
  .nav { margin-left: 18px; }
  .nav > .nav-item > a { padding: 0 6px; letter-spacing: 0; font-size: 14px; }
  .work-list { gap: 24px; }
  .client-item { width: 16%; }
  /* 中等宽度：简介配图收窄到 600px，给右侧正文留出足够行宽 */
  .about-visual { flex: 0 0 600px; max-width: 600px; }
  .about-clients { grid-template-columns: repeat(4, 1fr); padding: 24px 16px 16px; }
  .header-qr { margin-left: 14px; }
  .header-qr .hq-thumb { width: 56px; height: 56px; }
  body[data-page="home"] .case-head { width: 140px; }
  body[data-page="home"] .case-head .fir { font-size: 23px; line-height: 29px; }
}
@media (max-width: 992px) {
  .header { height: 84px; }
  .nav { height: 84px; }
  .nav > .nav-item { height: 84px; }
  .brand img { height: 44px; }
  .brand .name b { font-size: 18px; letter-spacing: 1px; }
  .nav { margin-left: 10px; }
  .nav > .nav-item > a { padding: 0 5px; font-size: 13px; }
  .nav .subnav { top: 84px; }
  /* 窄屏空间紧张：顶栏二维码隐藏，页脚信息同页脚一行展示 */
  .header-qr { display: none; }
  .brand .name span { display: none; }
  .about-wrap { flex-direction: column; }
  /* 竖排后不再挤占正文，配图宽度放宽回 700px（容器更窄时取容器宽）并居中 */
  .about-visual { flex: none; width: 100%; max-width: 700px; min-height: 300px; margin: 0 auto; }
  .news-top { flex-direction: column; }
  .news-big { width: 100%; }
  .news-side { width: 100%; }
  .news-bottom { flex-direction: column; }
  .news-card2 { width: 100%; margin-bottom: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .about-clients { grid-template-columns: repeat(3, 1fr); }
  .about-clients .client-item img,
  .about-clients .client-item .ic { height: 78px; }
  .stat-marquee .cc-item img { height: 118px; }
  body[data-page="home"] .hero { min-height: 230px; }
  body[data-page="home"] .home-case-strip .cc-item img { height: 104px; }
  /* 窄屏：标题改为居中置顶，滚动条独占一行 */
  body[data-page="home"] .home-cases .container { flex-direction: column; align-items: stretch; gap: 14px; }
  body[data-page="home"] .case-head { width: auto; text-align: center; }
  body[data-page="home"] .case-head .deco { justify-content: center; margin: 6px 0; }
  body[data-page="home"] .case-head .fir { font-size: 22px; line-height: 28px; }
}
@media (max-width: 768px) {
  .header { height: 68px; }
  .brand img { height: 38px; }
  .brand .name b { font-size: 16px; letter-spacing: 0; }
  .menu-toggle { display: block; }
  .nav { position: fixed; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; justify-content: flex-start; height: auto; display: none; box-shadow: 0 10px 20px rgba(0,0,0,.1); margin-left: 0; }
  .nav.open { display: flex; }
  .nav > .nav-item { height: 52px; flex: none; border-bottom: 1px solid var(--line); width: 100%; }
  .nav > .nav-item > a { height: 52px; padding: 0 24px; width: 100%; justify-content: flex-start; font-size: 14px; }
  .nav .subnav { position: static; transform: none; width: 100%; height: auto; box-shadow: none; display: none; }
  .nav > .nav-item.sub-open .subnav { display: block; }
  .nav .subnavlist { width: 100%; height: auto; flex-direction: column; padding: 8px 24px 16px; }
  .nav .subnavlist dl { width: 100%; height: auto; margin-right: 0; }
  .nav .subnavlist dl dt { height: 40px; line-height: 40px; }
  .nav .subnavlist dl dd { height: 30px; line-height: 30px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .work-list { flex-direction: column; }
  .work-item { height: auto; }
  .hero .slide h1 { font-size: 30px; }
  .hero { height: 420px; }
  .sec-head .fir { font-size: 28px; }
  .about-txt .stat { padding-right: 16px; margin-right: 16px; }
  .about-txt .stat .num { font-size: 34px; }
  .detail-card { padding: 24px 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .culture-grid { grid-template-columns: 1fr; }
  .about-clients { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .about-clients .client-item img,
  .about-clients .client-item .ic { height: 68px; }
  .client-item { width: 30%; }
  .stat-marquee { margin-top: 24px; }
  .stat-marquee .cc-item img { height: 96px; }
  /* 页脚窄屏：三项信息自动折行，仍为五号字与单行行高，仅收紧间距 */
  .footer-info { padding: 10px 0; }
  .info-row { gap: 0 24px; }
  /* 联系电话一行文字比手机屏还宽，nowrap 会把整页撑出横向滚动条，窄屏放开折行 */
  .info-row li { white-space: normal; overflow-wrap: break-word; }
  /* 移动端单屏放开高度限制，避免内容被压扁 */
  body[data-page="home"] { min-height: 0; }
  body[data-page="home"] .hero { min-height: 280px; }
  body[data-page="home"] .home-case-strip .cc-item img { height: 96px; }
  .foot-right { display: none; }
  /* 移动端：留言侧标收窄，弹窗内边距收紧（悬浮工具栏已隐藏，侧标可上移） */
  .msg-fab { width: 40px; padding: 12px 0; margin-top: 92px; gap: 7px; }
  .msg-fab .mf-ic { font-size: 16px; }
  .msg-fab .mf-tx { font-size: 13px; letter-spacing: 2px; }
  .msg-mask { padding: 24px 12px 32px; }
  .msg-dialog { padding: 26px 20px 20px; }
  .msg-hd b { font-size: 19px; }
  .msg-hd span { font-size: 12.5px; }
}

/* ============================================================
   宽屏（≥1600px）：主内容容器两侧有留白，把微信公众号二维码
   移出容器、贴到顶栏右上角，尺寸随屏幕宽度等比缩放
   （容器右边界 ≈ (W+1300)/2，1600px 时右侧仍余 35px 以上，不会与导航相撞）
   ============================================================ */
@media (min-width: 1600px) {
  /* 导航按钮整体落在版式红框区间内：左边界 39.57%、右边界 79.47%（视口宽），
     品牌区与导航之间形成留白，右端避开右上角二维码；
     space-between 在区间内自动均分，各项宽度按文字自适应 */
  .nav {
    position: absolute;
    left: 39.57%;
    right: 20.53%;
    top: 0;
    height: 100%;
    margin-left: 0;
    padding-right: 0;
  }
  .header-qr {
    position: absolute; top: 50%; right: 3vw;
    transform: translateY(-50%);
    margin-left: 0;
  }
  .header-qr .hq-thumb {
    width: clamp(62px, 4vw, 78px);
    height: clamp(62px, 4vw, 78px);
  }
  .header-qr .hq-label { font-size: clamp(10.5px, 0.58vw, 12px); line-height: 1.35; }
  .header-qr .hq-pop { width: clamp(150px, 9.6vw, 186px); }
  .header-qr .hq-pop img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .header-qr .hq-pop span { white-space: normal; }
}
