/* ==========================================================================
   Home Solution Widget - 基于 111/css/main.css 的 #home-solution 原样式改造
   作用域：.hbc-home-solution
   ========================================================================== */

.hbc-home-solution {
    position: relative;
    color: #fff;
    overflow: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

.hbc-home-solution::after {
    content: "";
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 0;
    pointer-events: none;
}

/* 背景 Swiper */
.hbc-home-solution .hs-bg-swiper {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 0;
    left: 0;
    top: 0;
}

.hbc-home-solution .hs-bg-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 外层容器 */
.hbc-home-solution .hs-site {
    box-sizing: border-box;
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    position: relative;
    z-index: 1;
}

.hbc-home-solution .hs-cont {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ================== 左侧列表 ================== */
.hbc-home-solution .hs-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-gap: 30px;
    width: 340px;
    box-sizing: border-box;
    padding-top: 120px;
    padding-bottom: 120px;
}

.hbc-home-solution .hs-list::after {
    position: absolute;
    content: "";
    width: 1px;
    height: 100%;
    top: 0;
    right: 57px;
    border-left: 1px dotted transparent;
    border-image: repeating-linear-gradient(0deg,
        transparent 0px,
        transparent 3px,
        rgba(255, 255, 255, 0.5) 3px,
        rgba(255, 255, 255, 0.5) 6px
    ) 1;
}

.hbc-home-solution .hs-item {
    cursor: pointer;
    height: 116px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.hbc-home-solution .hs-item p {
    width: calc(100% - 176px);
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
    font-size: 16px;
}

.hbc-home-solution .hs-item.is-current p {
    color: #118cd9;
}

.hbc-home-solution .hs-icon-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 116px;
    height: 116px;
    flex-shrink: 0;
}

.hbc-home-solution .hs-icon-wrap::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    border-radius: 50%;
    border: 7px solid rgba(255, 255, 255, 0.4);
    display: none;
}

.hbc-home-solution .hs-item.is-current .hs-icon-wrap::before {
    display: block;
}

.hbc-home-solution .hs-circle-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
}

.hbc-home-solution .hs-circle-svg circle {
    stroke-dasharray: 295;
    stroke-dashoffset: 295;
}

.hbc-home-solution .hs-item.is-current .hs-circle-svg circle {
    animation: hbc-hs-stroke 5.5s linear forwards;
}

@keyframes hbc-hs-stroke {
    to { stroke-dashoffset: 0; }
}

.hbc-home-solution .hs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.hbc-home-solution .hs-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hbc-home-solution .hs-icon-bg {
    display: block;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* ================== 右侧文字 Swiper ================== */
.hbc-home-solution .hs-txt {
    position: relative;
    z-index: 1;
    width: calc(100% - 400px);
}

.hbc-home-solution .hs-txt-swiper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hbc-home-solution .hs-txt-swiper .swiper-slide {
    box-sizing: border-box;
    max-width: 100%;
}

.hbc-home-solution .hs-title {
    display: block;
    position: relative;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-transform: uppercase;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hbc-home-solution .hs-title::after {
    content: "";
    width: 50px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.75);
    display: block;
    margin: 40px 0;
}

.hbc-home-solution .hs-subtitle {
    font-size: 18px;
    line-height: 1.7;
    margin: 14px 0 21px 0;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .hbc-home-solution .hs-subtitle { font-size: 20px; }
}

.hbc-home-solution .hs-gap {
    margin: 0;
    height: 20px;
    opacity: 0;
}

.hbc-home-solution .hs-btn {
    box-sizing: border-box;
    display: inline-block;
    padding: 12px 20px;
    font-size: 15px;
    line-height: 1.5;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    background-color: transparent;
    transition: all 0.2s;
    word-break: keep-all;
    cursor: pointer;
}

.hbc-home-solution .hs-btn:hover {
    color: #000;
    border: 1px solid #fff;
    background-color: #fff;
}

/* ================== Responsive ================== */
@media (max-width: 900px) {
    .hbc-home-solution .hs-site { padding: 0 15px; }
    .hbc-home-solution .hs-item p { display: none; }
    .hbc-home-solution .hs-list {
        width: 70px;
        padding-top: 80px;
        padding-bottom: 80px;
        gap: 10px;
    }
    .hbc-home-solution .hs-list::after { left: 35px; right: auto; }
    .hbc-home-solution .hs-icon-wrap { width: 70px; height: 70px; }
    .hbc-home-solution .hs-icon-wrap::before { border-width: 5px; }
    .hbc-home-solution .hs-icon { transform: scale(0.75); }
    .hbc-home-solution .hs-txt { width: calc(100% - 110px); min-width: 0; }
    .hbc-home-solution .hs-title { font-size: 22px; }
    .hbc-home-solution .hs-title::after { margin: 20px 0; }
    .hbc-home-solution .hs-subtitle { font-size: 15px; }
}
