/* ============================================================
   青岛嘉晨人造草坪 - 站点美化覆盖样式 (custom.css)
   原则: 不改动原版 HTML 结构与排版, 仅做覆盖式优化增强
   ============================================================ */

/* ---------- 全局基础优化 ---------- */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; }
a { transition: color .25s ease, background-color .25s ease, border-color .25s ease, opacity .25s ease; }
img { max-width: 100%; height: auto; }
::selection { background: #4a90d9; color: #fff; }

/* ---------- 导航增强 ---------- */
.menul > li > a { position: relative; }
.menul > li > a > span { position: relative; }
.menul > li > a > span::after {
  content: ''; position: absolute; left: 50%; bottom: 2px;
  width: 0; height: 2px; background: currentColor;
  transition: all .3s ease; transform: translateX(-50%);
}
.menul > li > a:hover > span::after,
.menul > li.cur > a > span::after { width: 60%; }
.secdulBox { border-radius: 0 0 4px 4px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }

/* ---------- 首页板块 ---------- */
.index_box .title .en .ch { letter-spacing: 2px; }
.index_box .title span a { opacity: .75; }
.index_box .title span a:hover { opacity: 1; }

/* 产品/图片列表: 统一封面比例, 防止高低不一 */
.img_area, .pimg {
  overflow: hidden;
}
.img_area img, .model-imglist .pimg img {
  width: 100%; display: block;
  object-fit: cover; aspect-ratio: 4 / 3;
  transition: transform .4s ease;
}
.model-imglist ul li:hover .pimg img,
.index_box .inner ul li:hover .img_area img { transform: scale(1.05); }

.model-imglist ul li { transition: transform .3s ease; }
.model-imglist ul li:hover p { color: #2b7bc0; }

/* 新闻日期块 */
.newtime { border-radius: 3px; }

/* ---------- 内页详情 ---------- */
.model-dectil-title { line-height: 1.6; }
.model-dectil-text { line-height: 1.9; word-break: break-word; }
.model-dectil-text img { max-width: 100%; height: auto; height: auto\9; border-radius: 3px; }
.model-dectil-text p { margin: .6em 0; }
.model-dectil-text table { max-width: 100%; display: block; overflow-x: auto; }

/* 产品详情多图轮播 */
.model-dectil-img .pimg img {
  width: 100%; object-fit: contain; aspect-ratio: 4 / 3;
  background: #fafafa;
}

/* 上一篇/下一篇 */
.model-dectil-chose li a { display: inline-block; max-width: 82%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.model-dectil-chose li a:hover { color: #2b7bc0; }

/* ---------- 分页美化 (PbootCMS 输出: a.page-num / .page-num-current) ---------- */
.model_page a, .model-phone-page a,
.model_page span, .model-phone-page span {
  display: inline-block; margin: 0 3px 6px 0;
  padding: 5px 12px; font-size: 13px; line-height: 1.5;
  border: 1px solid #ddd; border-radius: 3px;
  background: #fff; color: #666;
}
.model_page a:hover, .model-phone-page a:hover {
  border-color: #2b7bc0; color: #2b7bc0; text-decoration: none;
}
.model_page a.page-num-current, .model-phone-page a.page-num-current,
.model_page span.page-num-current, .model-phone-page span.page-num-current {
  background: #2b7bc0; border-color: #2b7bc0; color: #fff;
}
.model_page, .model-phone-page { margin-top: 25px; }

/* ---------- 留言表单 (elegant-aero 增强) ---------- */
.elegant-aero label span { font-weight: normal; }
.elegant-aero input[type="text"], .elegant-aero textarea {
  border-radius: 3px; box-shadow: none; transition: border-color .25s ease, box-shadow .25s ease;
}
.elegant-aero input[type="text"]:focus, .elegant-aero textarea:focus {
  border-color: #2b7bc0; box-shadow: 0 0 0 2px rgba(43,123,192,.15); outline: 0;
}
.elegant-aero .button { border-radius: 3px; cursor: pointer; }

/* ---------- 友情链接 ---------- */
.friendship ul li a { opacity: .8; }
.friendship ul li a:hover { opacity: 1; color: #2b7bc0; }

/* ---------- 搜索页 ---------- */
.model_seach .input { border-radius: 3px 0 0 3px; }
.model-textlist-three ul li { border-bottom: 1px dashed #eee; padding: 8px 0; }
.model-textlist-three ul li a:hover { color: #2b7bc0; }

/* ---------- 滚动条 (Webkit) ---------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #c3cdd6; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #9fb2c2; }
::-webkit-scrollbar-track { background: #f2f4f7; }

/* ---------- 响应式补充 ---------- */
@media (max-width: 767px) {
  .model-dectil-text { font-size: 15px; }
  .img_area img, .model-imglist .pimg img { aspect-ratio: 4 / 3; }
}

/* ---------- 可访问性: 键盘焦点可见 ---------- */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid rgba(43,123,192,.55); outline-offset: 1px;
}
