/* ==========================================================================
   SOLUTION DETAIL PAGE (detail_solutions.html)
   depends on: style.css (tokens, header, footer), partner.css (page-hero, contact)
   Content column 1520px centered. Breakpoints: 1520 / 1200 / 992 / 768 / 576
   ========================================================================== */

/* ---------- hero (design: 492px incl. 76px header -> 416px visible) ---------- */
.sol-hero { height: 416px; }
.sol-hero .page-breadcrumb { font-size: var(--fs-small); }

/* ---------- solution tabs ---------- */
.sol-tabs {
    background: #f4f4f4;
    border-bottom: 1px solid #eef0f2;
}
.sol-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 45px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.sol-tab {
    display: inline-block;
    padding: 19px 0;
    font-size: var(--fs-body);
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid transparent;
    transition: color .25s ease, border-color .25s ease;
}
.sol-tab:hover { color: var(--red); }
.sol-tab.is-active {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* ---------- cutting edge ---------- */
.sol-cutting { padding: 70px 0 0px; }
.sol-cutting-grid {
    display: grid;
    grid-template-columns: 1fr 780px;
    gap: 40px;
    align-items: start;
}
.sol-cutting-copy h2 {
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 0 0 32px;
}
.sol-cutting-copy p {
    font-size: var(--fs-body);
    line-height: 1.85;
    color: #14191f;
    margin: 0 0 26px;
}
.sol-cutting-copy p:last-child { margin-bottom: 0; }
.sol-cutting-media { margin: 0; }
.sol-cutting-media img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- shared section title ---------- */
.sol-sec-title {
    font-size: var(--fs-h2);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
    text-align: center;
    margin-bottom: 20px;
}
.sol-sec-sub {
    text-align: center;
    font-size: var(--fs-lead);
    color: #6b6b6c;
}

/* ---------- advantages of the plan ---------- */
.sol-adv { padding: 70px 0 70px; }
.sol-adv-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.sol-adv-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 30px 35px;
    transition: box-shadow .3s ease;
}
.sol-adv-card:hover { box-shadow: 0 10px 26px rgba(15, 20, 25, .07); }
.sol-adv-head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sol-adv-num {
    flex: none;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 700;
}
.sol-adv-head h3 {
    font-size: var(--fs-h5);
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}
.sol-adv-card p {
    margin: 5px 0 0;
    font-size: var(--fs-body);
    line-height: 30px;
    color: #6b6b6c;
    padding-left: 46px;
}

/* ---------- we can provide you ---------- */
.sol-provide {
    background: #f7f8fa;
    padding: 70px 0 70px;
}
.sol-provide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 80px;
}
.sol-provide-icon {
    width: 32px;
    height: 32px;
    color: var(--red);
}
.sol-provide-item h3 {
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--ink);
    margin: 20px 0 30px;
}
.sol-provide-item p {
    font-size: var(--fs-body);
    line-height: 1.75;
    margin: 0;
}

/* ---------- nationwide services ---------- */
.sol-ns {
    position: relative;
    background: #0f1419;
    padding: 70px 0 70px;
    color: #fff;
}
.sol-ns-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}
.sol-ns-head h2 {
    font-size: var(--fs-h2);
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0;
}
.sol-ns-count {
    font-size: var(--fs-h3);
    color: rgba(255, 255, 255, .55);
    white-space: nowrap;
}
.sol-ns-count em {
    font-style: normal;
    font-size: var(--fs-h2);
    font-weight: 800;
    color: #fff;
}
.sol-ns-slider {
    position: relative;
    margin-top: 30px;
    overflow: hidden;
    background: #000;
}
.sol-ns-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
}
.sol-ns-slide.is-active { position: relative; opacity: 1; }
.sol-ns-slide img {
    width: 100%;
    height: auto;
    display: block;
}
.sol-ns-caption { margin-top: 30px; }
.sol-ns-caption h3 {
    font-size: var(--fs-h4);
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.sol-ns-more {
    display: inline-block;
    margin-top: 6px;
    font-size: var(--fs-xs);
    color: var(--red);
    transition: color .25s ease;
}
.sol-ns-more:hover { color: #fff; }
/* arrows sit at the viewport edges, vertically centered on the section */
.sol-ns-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 65px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    transition: background-color .25s ease;
}
.sol-ns-arrow:hover { background: var(--red-dark); }
.sol-ns-arrow svg { width: 10px; height: 16px; }
.sol-ns-arrow img { width: 100%; height: 100%; display: block; object-fit: contain; }
.sol-ns-arrow--prev { left: 0; }
.sol-ns-arrow--next { right: 0; }

/* ---------- start with our equitments ---------- */
.sol-prod { padding: 85px 0 90px; }
.sol-prod-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}
.sol-prod-label {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--red);
    padding-bottom: 6px;
    border-bottom: 2px solid var(--red);
}
.sol-prod-head h2 {
    font-size: var(--fs-h3);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 18px 0 0;
}
.sol-prod-nav {
    display: flex;
    gap: 10px;
    flex: none;
}
.sol-prod-nav button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #e3e5ea;
    color: var(--ink);
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
}
.sol-prod-nav button:last-child { background: #cdd1d8; }
.sol-prod-nav button:hover { background: var(--red); color: #fff; }
.sol-prod-nav svg { width: 10px; height: 16px; }
.sol-prod-track {
    margin-top: 45px;
    display: flex;
    gap: 29px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* firefox */
}
.sol-prod-track::-webkit-scrollbar { display: none; }
.sol-prod-card {
    position: relative;
    flex: 0 0 325px;
    height: 402px;
    overflow: hidden;
    scroll-snap-align: start;
    display: block;
    background: #222;
}
.sol-prod-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.sol-prod-card:hover img { transform: scale(1.05); }
.sol-prod-card::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
    pointer-events: none;
}
.sol-prod-name {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 2;
    color: #fff;
    font-size: var(--fs-small);
    font-weight: 700;
}
.sol-prod-card--cta {
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background-color .25s ease;
}
.sol-prod-card--cta::after { display: none; }
.sol-prod-card--cta:hover { background: var(--red-dark); }
.sol-prod-cta-inner {
    padding: 30px;
    color: #fff;
    font-size: var(--fs-small);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.sol-prod-cta-link { font-size: var(--fs-xs); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
    .sol-cutting-grid { grid-template-columns: 1fr 46%; gap: 30px; }
    .sol-provide-grid { gap: 45px 40px; }
    .sol-prod-card { flex-basis: 300px; height: 372px; }
}

@media (max-width: 991px) {
    .sol-hero { height: 340px; }
    .sol-tabs .container { padding-left: 0; padding-right: 0; }
    .sol-tab-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0 30px;
        padding: 0 15px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch; /* iOS 惯性滚动 */
    }
    .sol-tab-list::-webkit-scrollbar { display: none; }
    /* flex 项默认 min-width:auto 才会触发滚动，显式禁止收缩，
       保证任何浏览器下页签都不被压缩、列表稳定横向滚动 */
    .sol-tab-list > li { flex: none; }
    .sol-tab { white-space: nowrap; }
    .sol-cutting { padding: 64px 0; }
    .sol-cutting-grid { grid-template-columns: 1fr; }
    .sol-cutting-copy h2 { font-size: 30px; }
    .sol-cutting-media { max-width: 780px; }
    .sol-sec-title { font-size: 30px; }
    .sol-provide-grid { grid-template-columns: repeat(2, 1fr); }
    .sol-ns-head h2 { font-size: 30px; }
    .sol-prod-head h2 { font-size: 30px; }
}

@media (max-width: 767px) {
    .sol-hero { height: 280px; }
    /* 手机：页签改为圆角卡片式按钮，自动换行，全部内容保持在视口边界内 */
    .sol-tabs .container { padding-left: 15px; padding-right: 15px; }
    .sol-tab-list {
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 10px;
        padding: 14px 0;
    }
    .sol-tab-list > li { flex: 0 1 auto; max-width: 100%; }
    .sol-tab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.4;
        text-align: center;
        color: #4b5055;
        background: #fff;
        border: 1px solid #e4e6ea;
        border-radius: 4px;
        white-space: normal;
        box-shadow: 0 1px 2px rgba(15, 20, 25, .04);
        transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
    }
    .sol-tab:hover { color: var(--red); border-color: var(--red); }
    .sol-tab.is-active {
        color: #fff;
        background: var(--red);
        border-color: var(--red);
        box-shadow: 0 4px 10px rgba(200, 16, 46, .28);
    }
    .sol-adv { padding: 56px 0; }
    .sol-adv-grid { grid-template-columns: 1fr; margin-top: 36px; }
    .sol-adv-card { padding: 22px; }
    .sol-provide { padding: 56px 0 64px; }
    .sol-provide-grid { margin-top: 40px; gap: 36px; }
    .sol-ns { padding: 52px 0 56px; }
    .sol-ns-count em { font-size: 22px; }
    .sol-ns-count { font-size: 13px; }
    .sol-ns-arrow { width: 28px; height: 48px; }
    .sol-prod { padding: 56px 0 60px; }
    .sol-prod-card { flex-basis: 250px; height: 320px; }
}

@media (max-width: 575px) {
    .sol-provide-grid { grid-template-columns: 1fr; }
    .sol-prod-head { align-items: flex-start; }
    .sol-prod-nav button { width: 38px; height: 38px; }
    .sol-prod-card { flex-basis: 220px; height: 280px; }
}
