/* 首页首屏轮播 | 参考 index241.html .hero | 2026-11-15
   类名统一 hkh- 前缀 + body 提权，避开站内 section/p/a 全局规则 */
body .hkh-hero {
    position: relative;
    height: 650px;
    min-height: 420px;
    overflow: clip; /* clip 裁切海报但不建立 BFC，避免 1200 附近被导航遗留浮动挤偏 */
    margin: 0;
    padding: 0;
    background: #0a2f6b;
    color: #fff;
}
body .hkh-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility .8s ease;
    display: flex;
    align-items: center;
    color: #fff;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
body .hkh-slide.active {
    opacity: 1;
    visibility: visible;
}
body .hkh-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 500px at 78% 30%, rgba(255,255,255,.14), transparent 60%);
    pointer-events: none;
}
body .hkh-slide.slide-1 {
    background-image: linear-gradient(90deg, rgba(4,24,60,.82) 0%, rgba(4,24,60,.55) 30%, rgba(4,24,60,.18) 55%, rgba(4,24,60,0) 72%), var(--hero1, url(../picture/hero-1.jpg));
}
body .hkh-slide.slide-2 {
    background-image: linear-gradient(90deg, rgba(4,24,60,.82) 0%, rgba(4,24,60,.55) 30%, rgba(4,24,60,.18) 55%, rgba(4,24,60,0) 72%), var(--hero2, url(../picture/hero-2.jpg));
}
body .hkh-slide.slide-3 {
    background-image: linear-gradient(90deg, rgba(4,24,60,.82) 0%, rgba(4,24,60,.55) 30%, rgba(4,24,60,.18) 55%, rgba(4,24,60,0) 72%), var(--hero3, url(../picture/hero-3.jpg));
}
body .hkh-slide .width1400 {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    padding: 0 10px;
}
body .hkh-inner {
    max-width: 660px;
}
body .hkh-tag {
    display: inline-block;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.35);
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: .08em;
    margin: 0 0 18px;
    color: #fff;
}
body .hkh-title {
    font-size: clamp(28px, 4.6vw, 50px);
    line-height: 1.25;
    letter-spacing: .04em;
    font-weight: 800;
    margin: 0;
    color: #fff;
}
body .hkh-desc {
    margin: 16px 0 30px;
    font-size: clamp(15px, 1.8vw, 19px);
    line-height: 1.7;
    color: rgba(255,255,255,.88);
    max-width: 640px;
}
body .hkh-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .25s, border-color .25s;
}
body a.hkh-btn:hover {
    text-decoration: none;
}
body .hkh-btn.primary {
    background: #f5a623;
    color: #fff;
    border-color: #f5a623;
}
body .hkh-btn.primary:hover {
    background: #e09312;
    border-color: #e09312;
}
body .hkh-btn.ghost {
    border-color: rgba(255,255,255,.8);
    color: #fff;
    background: transparent;
}
body .hkh-btn.ghost:hover {
    background: rgba(255,255,255,.15);
}
body .hkh-dots {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}
body .hkh-dots button {
    width: 26px;
    height: 5px;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: width .3s, background .3s;
}
body .hkh-dots button.active {
    background: #f5a623;
    width: 38px;
}
body .hkh-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 20px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    z-index: 5;
    transition: background .2s;
}
body .hkh-arrow:hover {
    background: rgba(255,255,255,.35);
}
body .hkh-arrow.prev {
    left: clamp(26px, 4vw, 86px);
}
body .hkh-arrow.next {
    right: clamp(90px, 7vw, 120px);
}

/* 1200 以下版心通栏，补左右内边距；箭头窄屏会压住标题，统一隐藏（保留圆点 + 触摸滑动） */
@media (max-width: 1200px) {
    body .hkh-slide .width1400 {
        padding: 0 24px;
    }
    body .hkh-arrow {
        display: none;
    }
}

/* 平板：稍微降高度，仍保持整屏海报 */
@media (max-width: 992px) {
    body .hkh-hero {
        height: min(62vh, 480px);
        min-height: 380px;
    }
    body .hkh-title {
        font-size: clamp(26px, 4.8vw, 40px);
    }
    body .hkh-desc {
        font-size: 16px;
        max-width: 560px;
    }
}

/* 手机：改成静态单张，避免文字与图片挤在一起 */
@media (max-width: 640px) {
    body .hkh-hero {
        height: auto;
        min-height: 0;
    }
    body .hkh-slide {
        position: relative;
        inset: auto;
        display: none;
        min-height: 430px;
        padding: 50px 0;
        background-position: 62% center;
    }
    body .hkh-slide .width1400 {
        padding: 0 18px;
    }
    body .hkh-slide.active {
        display: flex;
    }
    body .hkh-slide::after {
        background: linear-gradient(90deg, rgba(4,24,60,.88) 0%, rgba(4,24,60,.6) 100%);
    }

    /* 手机端：若后台「幻灯片」填了手机端图片，则优先用手机图 */
    body .hkh-slide.slide-1 {
        background-image: linear-gradient(90deg, rgba(4,24,60,.82) 0%, rgba(4,24,60,.55) 30%, rgba(4,24,60,.18) 55%, rgba(4,24,60,0) 72%),
            var(--hero1m, var(--hero1, url(../picture/hero-1.jpg)));
    }
    body .hkh-slide.slide-2 {
        background-image: linear-gradient(90deg, rgba(4,24,60,.82) 0%, rgba(4,24,60,.55) 30%, rgba(4,24,60,.18) 55%, rgba(4,24,60,0) 72%),
            var(--hero2m, var(--hero2, url(../picture/hero-2.jpg)));
    }
    body .hkh-slide.slide-3 {
        background-image: linear-gradient(90deg, rgba(4,24,60,.82) 0%, rgba(4,24,60,.55) 30%, rgba(4,24,60,.18) 55%, rgba(4,24,60,0) 72%),
            var(--hero3m, var(--hero3, url(../picture/hero-3.jpg)));
    }
    body .hkh-tag {
        font-size: 13px;
        margin-bottom: 14px;
    }
    body .hkh-title {
        font-size: clamp(26px, 7vw, 34px);
    }
    body .hkh-desc {
        font-size: 15px;
        line-height: 1.65;
        margin: 14px 0 24px;
    }
    body .hkh-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    body .hkh-arrow {
        display: none;
    }
    body .hkh-dots {
        bottom: 14px;
    }
}
