/* ============================================================
   HYBC 自定义样式（覆盖原版 style.css，保证首页美观整齐）
   ============================================================ */

/* 全站字体统一，避免字体不协调 */
body,
.hybc-hero,
.home_product,
.case,
.msg-form,
.contact-info,
.env-grid,
.first_title,
.nproduct_list2 {
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif;
}

/* ---------- 首屏大图 Hero ---------- */
.hybc-hero {
    position: relative;
    width: 100%;
    height: 560px;
    margin-top: 48px;          /* 固定导航高度 */
    overflow: hidden;
    background-color: #10242e;
}
.hybc-hero-bg {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: url('/uploadfile/banner/hero.jpg') center center / cover no-repeat;
}
.hybc-hero-mask {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(5, 18, 27, .86) 0%, rgba(5, 18, 27, .62) 42%, rgba(5, 18, 27, .12) 100%);
}
.hybc-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    color: #ffffff;
}
.hybc-hero-en {
    font-size: 17px;
    letter-spacing: 5px;
    color: #7fd23a;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 16px;
    padding-left: 14px;
    border-left: 4px solid #6fba2c;
}
.hybc-hero-cn {
    font-size: 40px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 18px;
    text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.hybc-hero-desc {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255,255,255,.88);
    max-width: 560px;
    margin: 0 0 34px;
}
.hybc-hero-btns {
    display: -webkit-flex;
    display: flex;
    gap: 16px;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}
.hybc-btn {
    display: inline-block;
    padding: 13px 36px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 2px;
    -webkit-transition: all .25s;
    transition: all .25s;
}
.hybc-btn-solid {
    background: #6fba2c;
    border: 1px solid #6fba2c;
    color: #fff;
}
.hybc-btn-solid:hover {
    background: #5ca221;
    border-color: #5ca221;
    color: #fff;
}
.hybc-btn-ghost {
    border: 1px solid rgba(255,255,255,.85);
    color: #fff;
}
.hybc-btn-ghost:hover {
    background: rgba(255,255,255,.16);
    color: #fff;
}

/* ---------- 产品区（重排为整齐网格） ---------- */
.home_product {
    width: 100%;
    max-width: 1200px;
    margin: 56px auto 20px;
    padding: 0 20px;
}
.home_product .first_title dl {
    margin-bottom: 40px;
}
.nproduct_list2 {
    padding: 0;
}
.nproduct_list2 ul {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.nproduct_list2 ul li {
    float: none;
    width: calc(33.333% - 20px);
    margin: 10px;
    padding: 0;
    border: 1px solid #e8ebee;
    border-bottom: 3px solid #6fba2c;
    border-radius: 3px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    position: relative;
    -webkit-transition: all .3s;
    transition: all .3s;
}
.nproduct_list2 ul li:hover {
    -webkit-box-shadow: 0 10px 30px rgba(0,0,0,.12);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    -webkit-transform: translate3d(0,-4px,0);
    transform: translate3d(0,-4px,0);
    border-color: #6fba2c;
}
.nproduct_list2 ul li .imgs {
    width: 100%;
    height: 230px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 14px;
    background: #f6f7f8;
    box-sizing: border-box;
}
.nproduct_list2 ul li .imgs img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    -webkit-transform: none;
    transform: none;
}
.nproduct_list2 ul li:hover .imgs img {
    -webkit-transform: scale(1.04);
    transform: scale(1.04);
}
.nproduct_list2 ul li h2 {
    font-size: 16px;
    line-height: 50px;
    height: 50px;
    text-align: center;
    padding: 0 12px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nproduct_list2 ul li:hover h2 {
    color: #6fba2c;
}

/* ---------- 新闻区（重排为整齐卡片） ---------- */
.case {
    background: #f5f6f7;
    height: auto;
    margin-top: 40px;
}
.case .content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px 60px;
}
.case .first_title dl {
    margin-bottom: 34px;
}
.hybc-news-grid {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.hybc-news-item {
    width: calc(33.333% - 20px);
    margin: 10px;
    background: #fff;
    border: 1px solid #e8ebee;
    border-radius: 3px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    -webkit-transition: all .3s;
    transition: all .3s;
}
.hybc-news-item:hover {
    -webkit-box-shadow: 0 10px 30px rgba(0,0,0,.12);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    -webkit-transform: translate3d(0,-4px,0);
    transform: translate3d(0,-4px,0);
}
.hybc-news-img {
    height: 200px;
    overflow: hidden;
    background: #eef0f2;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}
.hybc-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transition: all .4s;
    transition: all .4s;
}
.hybc-news-item:hover .hybc-news-img img {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}
.hybc-news-body {
    padding: 20px 22px 24px;
}
.hybc-news-date {
    display: inline-block;
    font-size: 12px;
    color: #9aa3ab;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.hybc-news-body h3 {
    font-size: 17px;
    line-height: 1.5;
    color: #1c1c1c;
    margin: 0 0 10px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 51px;
}
.hybc-news-body p {
    font-size: 13px;
    line-height: 1.7;
    color: #7a838c;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hybc-news-more {
    font-size: 13px;
    color: #6fba2c;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 768px) {
    .hybc-hero { height: 360px; margin-top: 48px; }
    .hybc-hero-cn { font-size: 26px; }
    .hybc-hero-desc { font-size: 14px; }
    .hybc-hero-content { padding: 0 24px; }
    .nproduct_list2 ul li { width: calc(50% - 20px); }
    .nproduct_list2 ul li .imgs { height: 180px; }
    .hybc-news-item { width: calc(50% - 20px); }
    .hybc-news-img { height: 170px; }
}
@media screen and (max-width: 480px) {
    .hybc-hero { height: 300px; }
    .hybc-hero-en { font-size: 13px; letter-spacing: 3px; }
    .hybc-hero-cn { font-size: 21px; }
    .hybc-hero-desc { font-size: 13px; margin-bottom: 22px; }
    .hybc-btn { padding: 11px 24px; font-size: 13px; }
    .nproduct_list2 ul li { width: calc(100% - 20px); }
    .nproduct_list2 ul li .imgs { height: 210px; }
    .hybc-news-item { width: calc(100% - 20px); }
    .hybc-news-img { height: 200px; }
}

/* ============================================================
   留言表单 / 联系信息 / 环境网格 样式
   ============================================================ */
.msg-form {
    max-width: 760px;
    margin: 0 auto;
    padding: 34px 40px 36px;
    background: #f8fafb;
    border: 1px solid #e8ebee;
    border-radius: 6px;
    box-sizing: border-box;
}
.msg-form .f-row { margin-bottom: 18px; }
.msg-form label {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}
.msg-form .f-req { color: #e74c3c; }
.msg-form input[type=text],
.msg-form input[type=email],
.msg-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d7dce1;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    transition: border-color .2s, box-shadow .2s;
}
.msg-form textarea { height: 132px; resize: vertical; }
.msg-form input:focus,
.msg-form textarea:focus {
    border-color: #6fba2c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(111, 186, 44, .12);
}
.msg-form .f-btn {
    background: #6fba2c;
    color: #fff;
    border: none;
    padding: 13px 52px;
    font-size: 15px;
    letter-spacing: 2px;
    border-radius: 3px;
    cursor: pointer;
    transition: background .25s;
}
.msg-form .f-btn:hover { background: #5ca221; }
.msg-form .f-tip {
    margin-top: 14px;
    font-size: 13px;
    color: #8a949c;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    margin: 8px -12px 0;
}
.contact-info .ci {
    width: calc(50% - 24px);
    margin: 12px;
    padding: 24px 26px;
    background: #f8fafb;
    border: 1px solid #e8ebee;
    border-radius: 6px;
    box-sizing: border-box;
}
.contact-info .ci h4 {
    font-size: 15px;
    color: #6fba2c;
    margin: 0 0 10px;
    font-weight: 600;
}
.contact-info .ci p {
    font-size: 14px;
    color: #444;
    line-height: 1.9;
    margin: 0;
    word-break: break-all;
}

.env-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 26px -8px 0;
}
.env-grid .env-item {
    width: calc(33.333% - 16px);
    margin: 8px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e8ebee;
    background: #fff;
    box-sizing: border-box;
}
.env-grid .env-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 留言/联系表单响应式 */
@media (max-width: 768px) {
    .msg-form { padding: 24px 18px; }
    .contact-info .ci { width: calc(100% - 24px); }
    .env-grid .env-item { width: calc(100% - 16px); }
    .env-grid .env-item img { height: 180px; }
}
