/* ===== 锐航环境官网 样式 ===== */
/* 兼容性：避免 CSS 变量/Grid 依赖，使用 inline-block 栅格与浮动回退；保留 -webkit- 前缀 */

* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", "PingFang SC", "Helvetica Neue", Arial, "WenQuanYi Micro Hei", sans-serif;
    color: #333; background: #f6f8f7; font-size: 14px; line-height: 1.7;
}
a { color: #1f7a4d; text-decoration: none; }
a:hover { color: #2e8b57; }
img { max-width: 100%; border: 0; vertical-align: middle; }
ul, li { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 700; color: #1a3b2c; }
p { margin: 0 0 12px; }
.clearfix:after { content: ""; display: block; clear: both; height: 0; visibility: hidden; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 15px; }

/* 顶部条 */
.topbar { background: #11402a; color: #cfe9d9; font-size: 12px; }
.topbar .wrap { padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #cfe9d9; }
.lang-switch { float: right; }
.lang-item { color: #9fc8b3; padding: 0 6px; }
.lang-item.cur { color: #fff; font-weight: 700; }

/* 头部 */
.site-header { background: #fff; border-bottom: 2px solid #2e8b57; }
.header-inner { padding: 14px 15px; }
.logo { display: inline-block; vertical-align: middle; color: #1f7a4d; }
.logo-mark { display: inline-block; background: #2e8b57; color: #fff; font-size: 20px; font-weight: 700; padding: 8px 12px; border-radius: 6px; margin-right: 10px; }
.logo-sub { display: inline-block; vertical-align: middle; font-size: 16px; font-weight: 700; color: #1a3b2c; line-height: 1.2; max-width: 320px; }
.main-nav { float: right; margin-top: 10px; }
.main-nav a { display: inline-block; padding: 8px 14px; color: #333; font-size: 15px; }
.main-nav a:hover, .main-nav a.active { color: #2e8b57; border-bottom: 2px solid #2e8b57; }

/* 轮播 */
.hero { position: relative; height: 380px; overflow: hidden; background: #0f3b27; }
.hero-slides { position: relative; height: 100%; }
.slide { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: -webkit-linear-gradient(135deg, #0f3b27, #1f7a4d); background: linear-gradient(135deg, #0f3b27, #1f7a4d);
    -webkit-align-items: center; align-items: center; }
.slide.active { display: block; }
.slide-text { max-width: 1180px; margin: 0 auto; padding: 0 30px; color: #fff; position: relative; top: 38%; }
.slide-text h2 { color: #fff; font-size: 34px; margin-bottom: 14px; }
.slide-text p { color: #d6efe1; font-size: 17px; }
.hero-dots { position: absolute; bottom: 16px; left: 0; width: 100%; text-align: center; }
.dot { display: inline-block; width: 10px; height: 10px; margin: 0 5px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.dot.on { background: #fff; }

/* 通用区块 */
.section { padding: 50px 0; }
.section.gray { background: #eef4f0; }
.sec-title { text-align: center; margin-bottom: 36px; }
.sec-title h2 { font-size: 28px; color: #1a3b2c; position: relative; display: inline-block; padding-bottom: 12px; }
.sec-title h2:after { content: ""; position: absolute; left: 50%; bottom: 0; width: 50px; height: 3px; background: #2e8b57; margin-left: -25px; }
.sec-title span { display: block; color: #8aa394; font-size: 13px; margin-top: 6px; letter-spacing: 1px; }

/* 首页统计 */
.stats { background: #11402a; color: #fff; padding: 30px 0; }
.stats .wrap { font-size: 0; }
.stat { display: inline-block; width: 25%; vertical-align: top; text-align: center; font-size: 14px; padding: 10px 0; }
.stat .num { display: block; font-size: 30px; font-weight: 700; color: #7fe0a8; }
.stat .lab { color: #cfe9d9; }

/* 栅格（inline-block 兼容） */
.grid { font-size: 0; margin: 0 -10px; }
.cell { display: inline-block; vertical-align: top; font-size: 14px; padding: 10px; width: 33.333%; }

/* 卡片 */
.card { background: #fff; border: 1px solid #e3ebe6; border-radius: 6px; overflow: hidden; -webkit-transition: all .2s; transition: all .2s; height: 100%; }
.card:hover { border-color: #2e8b57; -webkit-box-shadow: 0 4px 16px rgba(46,139,87,.12); box-shadow: 0 4px 16px rgba(46,139,87,.12); }
.card .thumb { display: block; height: 150px; overflow: hidden; background: #dceede4; position: relative; }
.card .thumb .img-ph { display: block; width: 100%; height: 100%; line-height: 150px; text-align: center; color: #5b8a72; font-size: 14px; padding: 0 10px; }
.card .ctext { padding: 14px 16px; }
.card .ctext h3 { font-size: 16px; margin-bottom: 8px; }
.card .ctext p { color: #6b7d73; font-size: 13px; margin: 0; }
.more-link { display: inline-block; margin-top: 26px; padding: 10px 28px; background: #2e8b57; color: #fff; border-radius: 30px; }
.more-link:hover { background: #1f7a4d; color: #fff; }
.center { text-align: center; }

/* 业务分类 */
.biz-item { background: #fff; border: 1px solid #e3ebe6; border-radius: 6px; padding: 24px; text-align: center; height: 100%; }
.biz-item .biz-ic { display: inline-block; width: 56px; height: 56px; line-height: 56px; border-radius: 50%; background: #eaf5ee; color: #2e8b57; font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.biz-item h3 { font-size: 18px; }
.biz-item p { color: #6b7d73; font-size: 13px; }

/* 关于页 */
.about-block { background: #fff; border: 1px solid #e3ebe6; border-radius: 6px; padding: 24px; margin-bottom: 20px; }
.about-block h3 { color: #2e8b57; border-left: 4px solid #2e8b57; padding-left: 12px; }

/* 列表/详情 */
.page-head { background: -webkit-linear-gradient(135deg, #0f3b27, #1f7a4d); background: linear-gradient(135deg, #0f3b27, #1f7a4d); color: #fff; padding: 40px 0; }
.page-head h1 { color: #fff; font-size: 28px; }
.page-head p { color: #d6efe1; margin: 0; }
.crumbs { font-size: 13px; color: #8aa394; padding: 14px 0; }
.crumbs a { color: #2e8b57; }

.detail-wrap { background: #fff; border: 1px solid #e3ebe6; border-radius: 6px; padding: 30px; margin: 30px 0; }
.detail-wrap h1 { font-size: 24px; color: #1a3b2c; }
.detail-body { font-size: 15px; line-height: 1.9; color: #444; }
.detail-body img { max-width: 100%; height: auto; margin: 10px 0; }

/* 标签/筛选 */
.tabs { text-align: center; margin-bottom: 30px; }
.tabs a { display: inline-block; padding: 8px 22px; margin: 0 5px 8px; border: 1px solid #cfe0d6; border-radius: 30px; color: #555; }
.tabs a.cur, .tabs a:hover { background: #2e8b57; color: #fff; border-color: #2e8b57; }

/* 联系页 */
.contact-box { background: #fff; border: 1px solid #e3ebe6; border-radius: 6px; padding: 30px; }
.contact-info { background: #11402a; color: #fff; border-radius: 6px; padding: 30px; }
.contact-info h3 { color: #fff; }
.contact-info p { color: #d6efe1; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; color: #444; }
.form-row input, .form-row textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #cfd9d3; border-radius: 4px; font-size: 14px;
    font-family: inherit; -webkit-box-sizing: border-box; box-sizing: border-box;
}
.form-row input:focus, .form-row textarea:focus { border-color: #2e8b57; outline: none; }
.btn-submit { background: #2e8b57; color: #fff; border: 0; padding: 12px 30px; font-size: 15px; border-radius: 4px; cursor: pointer; }
.btn-submit:hover { background: #1f7a4d; }
.tip { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; }
.tip-ok { background: #e7f6ec; color: #1f7a4d; border: 1px solid #b8e3c6; }
.tip-err { background: #fdecec; color: #c0392b; border: 1px solid #f3c0c0; }

/* 图片占位 */
.img-ph { display: block; background: #dceede4; color: #5b8a72; text-align: center; }

/* 页脚 */
.site-footer { background: #0f2e1f; color: #bcd6c8; margin-top: 40px; }
.footer-inner { font-size: 0; padding: 40px 15px 24px; }
.fcol { display: inline-block; vertical-align: top; font-size: 14px; width: 33.333%; padding: 0 15px; }
.fcol h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.fcol a { display: block; color: #bcd6c8; padding: 3px 0; }
.fcol a:hover { color: #7fe0a8; }
.fcol p { color: #9fc0ae; font-size: 13px; }
.copyright { background: #0a2116; color: #7fa088; font-size: 12px; padding: 14px 0; text-align: center; border-top: 1px solid #1c4533; }

/* 响应式 */
@media (max-width: 900px) {
    .cell { width: 50%; }
    .stat { width: 50%; }
}
@media (max-width: 640px) {
    .main-nav { float: none; margin-top: 6px; }
    .main-nav a { padding: 6px 8px; font-size: 13px; }
    .slide-text h2 { font-size: 24px; }
    .slide-text { top: 30%; }
    .cell { width: 100%; }
    .fcol { width: 100%; margin-bottom: 18px; }
    .stat { width: 50%; }
    .logo-sub { font-size: 13px; max-width: 200px; }
}

/* ============ 图片裁切：修复详情页图片与文字叠加 ============ */
.detail-wrap .thumb { overflow: hidden; background: #dceede4; }
.detail-wrap .thumb img,
.card .thumb img {
    display: block; width: 100%; height: 100%;
    -o-object-fit: cover; object-fit: cover;
}
/* 不支持 object-fit 的老浏览器：等比拉伸填充，避免溢出叠加 */

/* ============ 核心业务：主标题加粗突出 ============ */
.about-block h3 {
    font-size: 20px; font-weight: 700; color: #1a3b2c;
    border-left: 4px solid #2e8b57; padding-left: 12px; line-height: 1.35;
}
.biz-item h3 { font-weight: 700; }

/* ============ 新闻资讯：列表方式展示 ============ */
.news-list { margin: 0; }
.news-item {
    display: block; padding: 18px 6px; border-bottom: 1px dashed #d6e3dc;
    -webkit-transition: background .2s; transition: background .2s;
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: #f3f9f5; }
.news-item .ni-date {
    display: inline-block; min-width: 96px; color: #2e8b57; font-weight: 700;
    font-size: 13px; vertical-align: top;
}
.news-item .ni-main { display: inline-block; width: 76%; vertical-align: top; }
.news-item .ni-title { font-size: 16px; font-weight: 700; color: #1a3b2c; }
.news-item .ni-title a { color: #1a3b2c; }
.news-item .ni-title a:hover { color: #2e8b57; }
.news-item .ni-sum { color: #6b7d73; font-size: 13px; margin-top: 4px; line-height: 1.6; }
@media (max-width: 640px) {
    .news-item .ni-date { display: block; min-width: 0; margin-bottom: 4px; }
    .news-item .ni-main { width: 100%; }
}

/* ============ 联系我们：地图 ============ */
.map-section { margin-top: 6px; }
.map-title { font-size: 18px; color: #1a3b2c; border-left: 4px solid #2e8b57; padding-left: 12px; margin: 0 0 14px; }
.map-box {
    position: relative; border: 1px solid #e3ebe6; border-radius: 6px; overflow: hidden;
    background: #eaf3ee; height: 280px;
}
.map-box svg { display: block; width: 100%; height: 100%; }
.map-box .map-pin {
    position: absolute; left: 50%; top: 46%; width: 20px; height: 20px;
    margin-left: -10px; margin-top: -20px;
    background: #e23b3b; border: 3px solid #fff; border-radius: 50% 50% 50% 0;
    -webkit-transform: rotate(-45deg); transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.map-box .map-label {
    position: absolute; left: 50%; top: 46%; margin-left: 16px; margin-top: -11px;
    background: rgba(255,255,255,.94); padding: 4px 10px; border-radius: 4px;
    font-size: 12px; color: #1a3b2c; white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.map-actions { margin: 12px 0 4px; }
.map-actions .btn-map {
    display: inline-block; margin: 4px 8px 0 0; padding: 8px 16px; border-radius: 4px;
    background: #2e8b57; color: #fff; font-size: 13px;
    -webkit-transition: background .2s; transition: background .2s;
}
.map-actions .btn-map:hover { background: #1f7a4d; color: #fff; }

/* ============ 动态效果 ============ */
@-webkit-keyframes fadeUp { from { opacity: 0; -webkit-transform: translateY(18px); transform: translateY(18px); } to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; -webkit-transform: translateY(18px); transform: translateY(18px); } to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); } }
.card, .biz-item, .about-block, .panel, .news-item, .contact-box, .contact-info {
    -webkit-animation: fadeUp .5s ease both; animation: fadeUp .5s ease both;
}
.card:hover, .biz-item:hover, .about-block:hover {
    -webkit-transform: translateY(-4px); transform: translateY(-4px);
    -webkit-box-shadow: 0 6px 20px rgba(46,139,87,.14); box-shadow: 0 6px 20px rgba(46,139,87,.14);
}
.more-link, .btn-submit, .btn-map, .tabs a, .lang-item {
    -webkit-transition: all .2s; transition: all .2s;
}
.more-link:hover, .btn-submit:hover { -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.back-top {
    position: fixed; right: 18px; bottom: 22px; width: 42px; height: 42px; line-height: 42px;
    text-align: center; background: #2e8b57; color: #fff; border-radius: 50%; font-size: 20px;
    cursor: pointer; display: none; z-index: 99; box-shadow: 0 2px 8px rgba(0,0,0,.2);
    -webkit-transition: background .2s, opacity .3s; transition: background .2s, opacity .3s;
}
.back-top:hover { background: #1f7a4d; }
html { scroll-behavior: smooth; }

/* ============ 增强移动端（手机自动适配） ============ */
@media (max-width: 900px) {
    .cell { width: 50% !important; }
}
@media (max-width: 640px) {
    .cell { width: 100% !important; }
    .site-header .header-inner { text-align: center; }
    .logo { margin-bottom: 6px; }
    .main-nav { float: none; margin-top: 6px; text-align: center; }
    .main-nav a { padding: 6px 8px; font-size: 13px; }
    .hero { height: 280px; }
    .slide-text { top: 28%; padding: 0 16px; }
    .slide-text h2 { font-size: 22px; }
    .slide-text p { font-size: 14px; }
    .section { padding: 32px 0; }
    .sec-title h2 { font-size: 22px; }
    .stats .stat { width: 50% !important; }
    .fcol { width: 100% !important; }
    .detail-wrap { padding: 18px; margin: 16px 0; }
    .page-head { padding: 26px 0; }
    .page-head h1 { font-size: 22px; }
    .map-box { height: 220px; }
    .contact-box, .contact-info { width: 100% !important; }
}
@media (max-width: 480px) {
    .logo-sub { font-size: 12px; max-width: 160px; }
    .stat .num { font-size: 24px; }
    .sec-title h2 { font-size: 20px; }
}
