/* ============================================================
   Home Main v2 —— 首页主内容样式（独立文件）
   来源：由 html_page/index.html 内联 <style> 独立而来
   适用：仅作用于首页 <main> 内容区，不影响 navbar / hero 轮播 / footer
   依赖：main.css 变量（--primary-color / --text-light / --light-gray）
         + Font Awesome 6
   前缀：hm- 高唯一性，不与 /css/home-index*.css、Index_Demo2.css 冲突
   分区：1.公司简介 2.业务范围 3.资讯与知识 4.企业实力 5.联系钟经理
   ============================================================ */

/* ===== 通用元素 ===== */
.hm-section { padding: 72px 0; }
.hm-head { text-align: center; max-width: 740px; margin: 0 auto 50px; }
.hm-eyebrow {
    display: inline-block;
    font-size: .8rem; font-weight: 700; letter-spacing: 3px;
    color: var(--primary-color); text-transform: uppercase;
    background: rgba(0, 86, 179, .08);
    padding: 5px 18px; border-radius: 40px; margin-bottom: 14px;
}
.hm-head h2 { font-size: 2.1rem; font-weight: 700; color: #0c2443; margin: 0 0 12px; }
.hm-head p { color: var(--text-light); font-size: 1.02rem; margin: 0; }
.hm-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 30px; border-radius: 8px; font-weight: 600;
    font-size: .95rem; text-decoration: none; cursor: pointer;
    border: 2px solid transparent; transition: all .3s ease;
}
.hm-btn-solid {
    background: var(--primary-color); color: #fff;
    box-shadow: 0 6px 18px rgba(0, 86, 179, .25);
}
.hm-btn-solid:hover {
    background: #004494; color: #fff; transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 86, 179, .32);
}
.hm-btn-ghost { background: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.hm-btn-ghost:hover { background: var(--primary-color); color: #fff; }

/* ===== 1. 公司简介 ===== */
.hm-about { background: #fff; }
.hm-about-wrap { display: flex; align-items: center; gap: 56px; }
.hm-about-media { flex: 0 0 46%; position: relative; }
.hm-about-media img {
    width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
    border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 60, 130, .16);
}
.hm-about-badge {
    position: absolute; left: -18px; bottom: -22px;
    background: linear-gradient(135deg, #0056b3, #17a2b8);
    color: #fff; text-align: center; padding: 14px 26px;
    border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 86, 179, .35);
}
.hm-about-badge span { display: block; font-size: .72rem; letter-spacing: 1px; opacity: .85; }
.hm-about-badge strong { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.25; }
.hm-about-badge em { font-style: normal; font-size: .78rem; opacity: .92; }
.hm-about-body { flex: 1 1 auto; }
.hm-about-body h2 { font-size: 1.85rem; font-weight: 700; color: #0c2443; margin: 6px 0 16px; }
.hm-about-body > p { color: var(--text-light); line-height: 1.9; margin-bottom: 22px; text-align: justify; }
.hm-features {
    list-style: none; display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px 24px; padding: 0; margin: 0 0 30px;
}
.hm-features li { display: flex; align-items: center; gap: 10px; color: #33475f; font-size: .95rem; }
.hm-features li i { color: var(--primary-color); width: 18px; flex-shrink: 0; }

/* ===== 2. 业务范围（10 卡片） ===== */
.hm-services { background: var(--light-gray); }
.hm-srv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.hm-srv-card {
    display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
    text-decoration: none; background: #fff; border: 1px solid #eef1f6;
    box-shadow: 0 8px 24px rgba(0, 60, 130, .08);
    transition: transform .35s ease, box-shadow .35s ease;
}
.hm-srv-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 60, 130, .16); }
.hm-srv-media { position: relative; height: 132px; overflow: hidden; }
.hm-srv-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hm-srv-card:hover .hm-srv-media img { transform: scale(1.08); }
.hm-srv-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0, 40, 90, .25), rgba(0, 40, 90, 0) 60%);
}
.hm-srv-media i {
    position: absolute; right: 12px; top: 12px; z-index: 2;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .92); color: var(--primary-color);
    border-radius: 10px; font-size: 1rem; box-shadow: 0 4px 10px rgba(0, 40, 90, .2);
}
.hm-srv-info { padding: 14px 14px 16px; text-align: center; }
.hm-srv-info h3 { font-size: 1.02rem; font-weight: 600; color: #0c2443; margin: 0 0 4px; }
.hm-srv-info span { font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-light); }

/* ===== 3. 资讯与知识（两列列表） ===== */
.hm-news { background: #fff; }
.hm-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.hm-news-card {
    background: var(--light-gray); border: 1px solid #eef1f6;
    border-radius: 14px; padding: 26px 28px;
}
.hm-news-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hm-news-head h3 { font-size: 1.18rem; color: #0c2443; font-weight: 700; display: flex; align-items: center; gap: 10px; margin: 0; }
.hm-news-head h3 i { color: var(--primary-color); }
.hm-more { color: var(--primary-color); font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hm-more i { transition: transform .3s ease; font-size: .75rem; }
.hm-more:hover { color: #004494; }
.hm-more:hover i { transform: translateX(4px); }
.hm-news-list { list-style: none; padding: 0; margin: 0; }
.hm-news-item {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 13px 0; border-bottom: 1px dashed #dde3ec; text-decoration: none;
}
.hm-news-item:last-child { border-bottom: 0; }
.hm-news-item .t { flex: 1; min-width: 0; }
.hm-news-item .t span {
    display: block; font-size: .95rem; color: #33475f; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color .25s ease;
}
.hm-news-item:hover .t span { color: var(--primary-color); }
.hm-news-item .d { font-size: .78rem; color: #98a2b3; white-space: nowrap; }
.hm-news-item .arrow { color: var(--primary-color); opacity: 0; transition: opacity .25s ease, transform .25s ease; font-size: .78rem; }
.hm-news-item:hover .arrow { opacity: 1; transform: translateX(3px); }

/* ===== 4. 企业实力（深蓝底统计） ===== */
.hm-strength {
    background: linear-gradient(135deg, #04366e, #0056b3 55%, #0b78b0);
    color: #fff; padding: 84px 0; position: relative; overflow: hidden;
}
.hm-strength::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px);
    background-size: 26px 26px;
}
.hm-strength .container { position: relative; z-index: 2; text-align: center; }
.hm-strength .hm-eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }
.hm-strength h2 { font-size: 2rem; font-weight: 700; color: #fff; margin: 0 0 12px; }
.hm-strength .hm-lead { color: rgba(255, 255, 255, .82); font-size: 1.05rem; margin-bottom: 44px; }
.hm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1000px; margin: 0 auto 40px; }
.hm-stat {
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px; padding: 26px 14px; transition: transform .3s ease, background .3s ease;
}
.hm-stat:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .16); }
.hm-stat i { font-size: 1.5rem; color: #ffd166; display: block; margin-bottom: 10px; }
.hm-stat b { display: block; font-size: 2.3rem; font-weight: 800; line-height: 1.2; }
.hm-stat span { font-size: .9rem; color: rgba(255, 255, 255, .78); }
.hm-commit { max-width: 760px; margin: 0 auto; color: rgba(255, 255, 255, .9); line-height: 1.9; font-size: .98rem; }
.hm-commit strong { color: #ffd166; }

/* ===== 5. 联系钟经理 ===== */
.hm-contact { background: var(--light-gray); }
.hm-contact-card {
    background: #fff; border-radius: 16px; border: 1px solid #eef1f6;
    box-shadow: 0 16px 44px rgba(0, 60, 130, .1);
    padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 48px;
}
.hm-contact-info { flex: 1 1 auto; max-width: 560px; }
.hm-contact-info h2 { font-size: 1.9rem; color: #0c2443; margin: 6px 0 12px; }
.hm-contact-info > p { color: var(--text-light); line-height: 1.8; margin-bottom: 22px; }
.hm-call-line {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    background: rgba(0, 86, 179, .05); border-left: 4px solid var(--primary-color);
    border-radius: 0 10px 10px 0; padding: 12px 0 12px 20px; margin-bottom: 26px;
}
.hm-call-line .hm-role { font-size: 1.02rem; font-weight: 700; color: #0c2443; display: flex; align-items: center; gap: 8px; }
.hm-call-line .hm-role i { color: var(--primary-color); }
.hm-call-line .hm-number {
    font-size: 1.7rem; font-weight: 800; color: var(--primary-color);
    text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: 1px;
}
.hm-call-line .hm-number:hover { color: #004494; }
.hm-contact-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hm-contact-qr { flex: 0 0 auto; text-align: center; }
.hm-qr {
    width: 172px; height: 172px; margin: 0 auto 12px;
    border: 2px dashed #cbd5e1; border-radius: 14px; padding: 6px; background: #fff;
}
.hm-qr img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.hm-qr-tip { font-size: .95rem; color: #33475f; font-weight: 500; }
.hm-qr-tip i { color: #07c160; margin-right: 4px; }

/* ===== 响应式适配（与全站断点一致） ===== */
@media (max-width: 991px) {
    .hm-section { padding: 56px 0; }
    .hm-about-wrap { flex-direction: column; gap: 44px; }
    .hm-about-media { flex: 1 1 auto; width: 100%; }
    .hm-about-badge { left: 12px; bottom: -18px; }
    .hm-srv-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .hm-news-grid { grid-template-columns: 1fr; gap: 24px; }
    .hm-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hm-contact-card { flex-direction: column; align-items: center; text-align: center; padding: 40px 28px; }
    .hm-call-line { flex-direction: column; align-items: center; text-align: center; border-left: 0; border-top: 4px solid var(--primary-color); padding: 16px 12px; }
    .hm-contact-btns { justify-content: center; }
}
@media (max-width: 767px) {
    .hm-head h2 { font-size: 1.6rem; }
    .hm-srv-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .hm-features { grid-template-columns: 1fr; }
    .hm-about-body h2 { font-size: 1.5rem; }
    .hm-strength { padding: 60px 0; }
    .hm-strength h2 { font-size: 1.6rem; }
    .hm-stat b { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .hm-srv-grid { grid-template-columns: 1fr; }
    .hm-news-item .d { display: none; }
}