/* 江苏恒盛管业 - H5响应式样式(IE11/兼容模式与现代浏览器通用, 不使用CSS变量/Grid/gap/aspect-ratio) */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: #444; background: #f5f6f8; font-size: 14px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
a:hover { color: #D20A05; }
img { max-width: 100%; border: 0; }
ul { list-style: none; }
.container { width: 80%; margin: 0 auto; padding: 0 15px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* 顶部条 */
.topbar { background: #174088; color: #8b909b; font-size: 12.5px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: #c9cdd6; margin-left: 10px; }
.topbar a:hover { color: #fff; }
.topbar-r .hot-pill { background: #ff5500; background: linear-gradient(135deg, #ff7a2e, #ff4d00); color: #fff; padding: 3px 12px; border-radius: 99px; font-size: 13px; letter-spacing: .5px; }
.topbar select { background: rgba(255,255,255,.12); color: #c9cdd6; border: 1px solid rgba(255,255,255,.25); font-size: 12px; padding: 2px 6px; margin-left: 10px; }

/* 头部: 白底 logo + 搜索 */
.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(23,24,28,.06); position: -webkit-sticky; position: sticky; top: 0; z-index: 60; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(23,24,28,.1); }
.head-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.logo { display: flex; align-items: center; padding: 14px 0; color: #17181c; }
.logo:hover { color: #17181c; }
.logo-img { height: 54px; width: auto; display: block; }
.logo h1 { font-size: 22px; color: #17181c; line-height: 1.25; font-weight: 800; letter-spacing: .5px; margin-left: 13px; }
.search { display: flex; width: 320px; max-width: 100%; margin: 12px 0; }
.search input { flex: 1; width: 100%; padding: 11px 18px; border: 1px solid #ececf1; border-right: none; border-radius: 22px 0 0 22px; outline: none; font-size: 13.5px; background: #f7f8fa; }
.search input:focus { border-color: #ff6b2c; }
.search button { padding: 11px 26px; background: #ff5500; background: linear-gradient(135deg, #ff7a2e, #ff4d00); color: #fff; border: none; border-radius: 0 22px 22px 0; cursor: pointer; font-size: 14px; letter-spacing: 1px; }
.search button:hover { opacity: .9; }

/* 导航条: 深蓝渐变 + 下拉菜单 */
.navbar { background: #174088; background: linear-gradient(180deg, #2054a0, #174088); }
.nav-in { position: relative; }
.nav-toggle { display: none; font-size: 22px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 8px 14px; cursor: pointer; color: #fff; }
.nav { display: flex; }
.nav > a, .nav-item > a { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 20px; height: 52px; font-size: 15px; color: #fff; font-weight: 500; letter-spacing: .5px; flex: 1; white-space: nowrap; }
.nav > a:hover, .nav-item:hover > a, .nav > a.on, .nav-item > a.on { color: #fff; background: #e8503a; }
.nav-item { position: relative; flex: 1; display: flex; }
.drop-menu { display: none; position: absolute; top: 100%; left: 0; background: #174088; min-width: 176px; z-index: 70; box-shadow: 0 24px 60px rgba(0,0,0,.28); overflow: hidden; padding: 6px; }
.drop-menu a { display: block; padding: 11px 18px; color: #dce6f5; font-size: 14px; white-space: nowrap; border-radius: 6px; height: auto; flex: none; }
.drop-menu a:hover { color: #fff; background: #e8503a; }
.drop-menu .drop-all { color: #ffb28a; font-weight: 600; }
.nav-item:hover .drop-menu { display: block; }
.caret { display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: middle; }

/* Banner */
.banner { position: relative; overflow: hidden; height: 600px; }
.banner-item { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s; display: flex; align-items: flex-end; }
.banner-item.active { opacity: 1; }
.banner-caption { padding-bottom: 60px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.banner-caption h2 { font-size: 38px; letter-spacing: 3px; }
.banner-dots { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; z-index: 5; }
.banner-dots span { display: inline-block; width: 28px; height: 5px; margin: 0 5px; background: rgba(255,255,255,.5); cursor: pointer; }
.banner-dots span.active { background: #D20A05; }

/* 内页横幅 */
.inner-banner { height: 400px; background-size: cover; background-position: center; display: flex; align-items: center; position: relative; }
.inner-banner::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,46,107,.45); background: linear-gradient(90deg, rgba(0,46,107,.72), rgba(0,46,107,.15)); }
.inner-banner .container { position: relative; z-index: 2; }
.inner-banner h1 { color: #fff; font-size: 32px; letter-spacing: 3px; text-shadow: 0 2px 8px rgba(0,0,0,.35); }

/* 区块 */
.section { padding: 55px 0; background: #fff; }
.section:nth-of-type(even) { background: #f5f6f8; }
.section-head { text-align: center; margin-bottom: 35px; position: relative; }
.section-head h2 { font-size: 30px; color: #003E92; letter-spacing: 2px; }
.section-head .sub { display: block; color: #b0b6c3; letter-spacing: 4px; font-size: 13px; margin-top: 4px; }
.section-head .more { position: absolute; right: 0; top: 10px; color: #888; font-size: 13px; }
.section-head .more:hover { color: #D20A05; }

/* 分类条 */
.cat-bar { display: flex; flex-wrap: wrap; justify-content: center; margin: -5px -5px 25px; }
.cat-bar a { margin: 5px; padding: 8px 22px; background: #003E92; color: #fff; border-radius: 3px; transition: background .2s; }
.cat-bar a:hover { background: #D20A05; color: #fff; }

/* 产品(等宽栅格: 4列) */
.product-grid { display: flex; flex-wrap: wrap; margin: -9px; }
.product-card { width: calc(25% - 18px); margin: 9px; background: #fff; border: 1px solid #e5e8ee; transition: box-shadow .25s, transform .25s; }
.product-card:hover { box-shadow: 0 8px 24px rgba(0,62,146,.15); transform: translateY(-3px); }
.product-card .thumb { height: 0; padding-top: 100%; overflow: hidden; position: relative; background: #fafafa; }
.product-card .thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: transform .4s; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card h3 { padding: 12px; font-size: 15px; text-align: center; color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card:hover h3 { color: #D20A05; }

/* 公司简介 */
.about-flex { display: flex; align-items: center; }
.about-img { flex: 0 0 420px; margin-right: 40px; }
.about-img img { width: 100%; border-radius: 4px; }
.about-text { flex: 1; }
.about-text p { margin-bottom: 14px; text-indent: 2em; }
.about-stats { display: flex; margin: 25px -7px 0; }
.about-stats .stat { flex: 1; margin: 0 7px; text-align: center; background: #003E92; color: #fff; padding: 18px 8px; border-radius: 4px; }
.about-stats .stat b { display: block; font-size: 26px; color: #FFE784; }
.about-stats .stat span { font-size: 12px; opacity: .85; }

/* 案例(等宽栅格: 4列, 4:3) */
.case-grid { display: flex; flex-wrap: wrap; margin: -9px; }
.case-card { width: calc(25% - 18px); margin: 9px; position: relative; overflow: hidden; border-radius: 3px; }
.case-card .thumb { height: 0; padding-top: 75%; overflow: hidden; position: relative; }
.case-card .thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: transform .4s; }
.case-card:hover .thumb img { transform: scale(1.08); }
.case-card h3 { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; color: #fff; background: rgba(0,0,0,.55); background: linear-gradient(transparent, rgba(0,0,0,.72)); font-size: 14px; }

/* 新闻(等宽栅格: 3列) */
.news-cols { display: flex; flex-wrap: wrap; margin: -12px; }
.news-col { width: calc(33.333% - 24px); margin: 12px; background: #fff; border: 1px solid #e5e8ee; padding: 20px; }
.news-col-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #003E92; padding-bottom: 10px; margin-bottom: 12px; }
.news-col-head h3 { color: #003E92; font-size: 18px; }
.news-col-head a { font-size: 12px; color: #999; }
.news-list li { padding: 8px 0; border-bottom: 1px dashed #e5e8ee; display: flex; justify-content: space-between; }
.news-list .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 10px; }
.news-list .date { color: #aaa; font-size: 12px; flex-shrink: 0; }

/* 页面布局(侧栏+内容) */
.page-layout { display: flex; padding-top: 25px; padding-bottom: 45px; align-items: flex-start; }
.side { flex: 0 0 260px; margin-right: 25px; }
.content { flex: 1; min-width: 0; }
.side-box { background: #fff; border: 1px solid #e5e8ee; margin-bottom: 20px; }
.side-box h3 { background: #003E92; color: #fff; padding: 12px 16px; font-size: 16px; }
.side-list li a { display: block; padding: 10px 16px; border-bottom: 1px solid #e5e8ee; }
.side-list li a:hover, .side-list li a.current { color: #D20A05; background: #fdf2f2; }
.side-contact { padding-bottom: 15px; }
.side-contact img { width: 100%; }
.side-contact .contact-list { padding: 12px 16px; }

.contact-list li { padding: 3px 0; }
.contact-list .tel { color: #D20A05; font-size: 18px; }

.crumbs { background: #fff; border: 1px solid #e5e8ee; padding: 10px 16px; margin-bottom: 20px; color: #888; font-size: 13px; }
.crumbs a { color: #003E92; }

/* 详情 */
.detail-head { display: flex; background: #fff; border: 1px solid #e5e8ee; padding: 22px; margin-bottom: 22px; }
.detail-imgs { flex: 0 0 380px; margin-right: 30px; }
.detail-imgs .main-img { width: 100%; height: auto; border: 1px solid #e5e8ee; }
.thumb-row { display: flex; flex-wrap: wrap; margin-top: 10px; }
.thumb-img { width: 68px; height: 68px; border: 1px solid #e5e8ee; cursor: pointer; padding: 2px; margin: 0 8px 8px 0; }
.thumb-img:hover { border-color: #D20A05; }
.detail-info { flex: 1; }
.detail-info h1 { font-size: 24px; color: #003E92; margin-bottom: 12px; }
.detail-desc { background: #f5f6f8; padding: 12px 15px; margin-bottom: 15px; color: #666; }
.detail-info .contact-list { margin-bottom: 18px; }

.btn-primary { display: inline-block; background: #D20A05; color: #fff; padding: 11px 34px; border: 0; font-size: 15px; cursor: pointer; border-radius: 3px; transition: background .2s; }
.btn-primary:hover { background: #B30904; color: #fff; }
.btn-line { display: inline-block; border: 1px solid #003E92; color: #003E92; padding: 10px 30px; border-radius: 3px; }
.btn-line:hover { background: #003E92; color: #fff; }

.detail-title { font-size: 19px; color: #003E92; border-left: 4px solid #D20A05; padding-left: 12px; margin: 25px 0 15px; }
.detail-body, .related { background: #fff; border: 1px solid #e5e8ee; padding: 22px; margin-bottom: 22px; }
.rich-text { line-height: 1.95; }
.rich-text p { margin-bottom: 12px; }
.rich-text img { display: block; margin: 10px auto; max-width: 100%; }

.article { background: #fff; border: 1px solid #e5e8ee; padding: 30px; margin-bottom: 22px; }
.article h1 { font-size: 22px; color: #003E92; text-align: center; margin-bottom: 8px; }
.article-meta { text-align: center; color: #aaa; font-size: 12px; border-bottom: 1px solid #e5e8ee; padding-bottom: 14px; margin-bottom: 20px; }

.prev-next { display: flex; justify-content: space-between; background: #fff; border: 1px solid #e5e8ee; padding: 14px 20px; margin-bottom: 22px; }
.prev-next a { color: #003E92; }

/* 新闻列表页 */
.news-page-list { background: #fff; border: 1px solid #e5e8ee; }
.news-page-list li { position: relative; padding: 16px 130px 16px 20px; border-bottom: 1px solid #e5e8ee; }
.news-page-list li .title { display: block; font-size: 16px; color: #444; margin-bottom: 6px; }
.news-page-list li:hover .title { color: #D20A05; }
.news-page-list li .summary { color: #888; font-size: 13px; }
.news-page-list li .date { position: absolute; right: 20px; top: 18px; color: #aaa; font-size: 12px; }

/* 分页 */
.pages { text-align: center; margin: 25px 0; }
.pages a, .pages span { display: inline-block; min-width: 34px; padding: 7px 12px; margin: 0 3px; border: 1px solid #e5e8ee; background: #fff; color: #444; }
.pages a:hover, .pages span.cur { background: #D20A05; color: #fff; border-color: #D20A05; }
.pages span.disabled, .pages .dots { color: #bbb; background: #f7f7f7; }

/* 留言 */
.message-section { background: #003E92; color: #fff; }
.article .message-form input, .article .message-form textarea { border: 1px solid #e5e8ee; background: #fff; color: #444; }
.message-section .section-head h2 { color: #fff; }
.message-section .section-head .sub { color: rgba(255,255,255,.5); }
.message-form { max-width: 850px; margin: 0 auto; }
.message-form .form-row { display: flex; margin: 0 -6px 12px; }
.message-form input, .message-form textarea { width: 100%; padding: 12px 14px; border: 0; border-radius: 3px; font-size: 14px; }
.message-form .form-row input { margin: 0 6px; }
.message-form textarea { margin-bottom: 14px; resize: vertical; }
.message-form .btn-primary { background: #D20A05; }
.alert { max-width: 850px; margin: 0 auto 15px; padding: 10px 16px; border-radius: 3px; }
.alert.ok { background: #e6f7e6; color: #2c7a2c; }
.alert.err { background: #fdeaea; color: #a33; }

/* 城市分站 */
.city-intro .rich-text { background: #fff; border: 1px solid #e5e8ee; padding: 25px; }
.city-map { background: #fff; border: 1px solid #e5e8ee; padding: 25px; }
.province-row { display: flex; border-bottom: 1px dashed #e5e8ee; padding: 12px 0; }
.province-row h3 { flex: 0 0 90px; color: #003E92; font-size: 15px; }
.city-links { flex: 1; display: flex; flex-wrap: wrap; }
.city-links a { margin: 0 18px 6px 0; }
.city-links a i { font-style: normal; font-size: 10px; background: #D20A05; color: #fff; padding: 1px 5px; border-radius: 2px; margin-left: 3px; }

/* 搜索 */
.search-page-form { display: flex; margin-bottom: 25px; }
.search-page-form input { flex: 1; padding: 11px 15px; border: 1px solid #e5e8ee; border-radius: 3px; margin-right: 10px; }

/* 404 */
.page-404 { text-align: center; padding: 80px 0; }
.page-404 h1 { font-size: 90px; color: #003E92; }
.page-404 p { margin-bottom: 20px; color: #888; }

/* 联系卡片(2列) */
.contact-cards { display: flex; flex-wrap: wrap; margin: 0 -7px 22px; }
.contact-card { width: calc(50% - 15px); margin: 7px; background: #f5f6f8; padding: 16px 20px; border-left: 3px solid #003E92; }
.contact-card b { display: block; color: #003E92; }
.empty { text-align: center; color: #aaa; padding: 40px 0; }

/* 页面底部留白 */
.page-pad-bottom { padding-bottom: 65px; }

/* 页脚 */
.footer { background: #23282e; color: #9aa0a8; }
.footer-grid { display: flex; flex-wrap: wrap; padding: 45px 0; }
.footer-col { width: 25%; padding: 0 15px; }
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 16px; border-bottom: 1px solid #3a4046; padding-bottom: 10px; }
.footer a { color: #9aa0a8; }
.footer a:hover { color: #fff; }
.footer-nav li, .contact-list li { padding: 3px 0; }
.footer-bottom { border-top: 1px solid #3a4046; padding: 16px 0; text-align: center; font-size: 12px; }

/* 浮动条 */
.float-bar { display: none; }

/* 响应式 */
@media (max-width: 992px) {
  .topbar-welcome { display: none; }
  .topbar-in { justify-content: center; flex-wrap: wrap; }
  .head-in { flex-direction: column; align-items: flex-start; padding-bottom: 14px; }
  .search { width: 100%; margin: 0 0 6px; }
  .nav-toggle { display: block; margin: 10px 0; }
  .nav { display: none; width: 100%; flex-direction: column; padding-bottom: 10px; }
  .nav.open { display: flex; }
  .nav > a, .nav-item > a { height: auto; padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,.1); flex: none; justify-content: space-between; }
  .nav-item { display: block; }
  .drop-menu { position: static; background: rgba(255,255,255,.96); box-shadow: none; margin: 0 10px; min-width: 0; border-top: 3px solid #ff6b2c; padding: 0 6px; overflow: hidden; }
  .nav-item.drop.open .drop-menu { display: block; padding: 10px 6px; }
  .drop-menu a { color: #3b4252; border-radius: 8px; padding: 13px 14px; }
  .drop-menu a:hover, .drop-menu a:active { background: #fff3ea; color: #ff6b2c; }
  .drop-menu .drop-all { color: #ff6b2c; background: #fff6f0; text-align: center; }
  .banner { height: 420px; }
  .banner-caption h2 { font-size: 22px; }
  .inner-banner { height: 280px; }
  .inner-banner h1 { font-size: 25px; }
  .product-card, .case-card { width: calc(33.333% - 18px); }
  .news-col { width: calc(100% - 24px); }
  .about-flex { flex-direction: column; }
  .about-img { flex: none; width: 100%; margin-right: 0; margin-bottom: 25px; }
  .page-layout { flex-direction: column; }
  .page-layout .content { order: -1; }
  .side { flex: none; width: 100%; margin-right: 0; }
  .detail-head { flex-direction: column; }
  .detail-imgs { flex: none; width: 100%; margin-right: 0; }
}
@media (max-width: 640px) {
  body { font-size: 13px; }
  .container { width: 100%; }
  .logo-img { height: 40px; }
  .logo h1 { font-size: 18px; }
  .banner { height: 260px; }
  .inner-banner { height: 180px; }
  .inner-banner h1 { font-size: 19px; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .section { padding: 32px 0; }
  .section-head h2 { font-size: 22px; }
  .product-card, .case-card { width: calc(50% - 18px); }
  .about-stats { flex-wrap: wrap; }
  .about-stats .stat { width: calc(50% - 14px); margin: 0 7px 10px; }
  .message-form .form-row { flex-direction: column; margin: 0 0 12px; }
  .message-form .form-row input { margin: 0 0 10px; }
  .footer-col { width: 50%; padding: 0 10px 20px; }
  .contact-card { width: calc(100% - 15px); }
  .province-row { flex-direction: column; }
  .province-row h3 { margin-bottom: 8px; }
  .news-page-list li { padding: 16px; }
  .news-page-list li .date { position: static; display: block; margin-top: 6px; }
  .news-page-list li .title { padding-right: 0; }
  .float-bar { display: block; position: fixed; right: 15px; bottom: 20px; z-index: 99; }
  .float-bar .float-tel { display: inline-block; background: #D20A05; color: #fff; padding: 12px 20px; border-radius: 30px; box-shadow: 0 4px 14px rgba(210,10,5,.4); font-size: 15px; }
}
