/* ============================================
   Support Parts 页面样式
   对应模板: templates/en/category/support-parts.html
   ============================================ */

:root {
    --sp-primary: #0099F2;
    --sp-text: #222222;
    --sp-sub-text: #454E66;
    --sp-muted: #4D515A;
    --sp-bg-light: #F7F9FA;
    --sp-container-width: 1226px;
}

.sp-container {
    width: var(--sp-container-width);
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: "Alibaba PuHuiTi";
}

.sp-hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 126px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #07111c;
}

.sp-hero-media,
.sp-hero-video,
.sp-hero-img,
.sp-hero-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sp-hero-video,
.sp-hero-img {
    object-fit: cover;
    object-position: center;
}

.sp-hero-mask {
    background: linear-gradient(90deg, rgba(0, 13, 24, 0.72) 0%, rgba(0, 13, 24, 0.36) 42%, rgba(0, 13, 24, 0.18) 100%);
    z-index: 1;
}

.sp-youtube-btn {
    position: absolute;
    right: 91px;
    bottom: 64px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7.5px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
    color: #222;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    backdrop-filter: blur(8px);
    font-style: Regular;
    font-size: 18px;
    font-weight: 400;
    line-height: 25px;
}

/* hover：背景更亮 + 文字变红 + 图标切换为红色 */
.sp-youtube-btn:hover {
    color: rgba(245, 64, 64, 1);
}

/* YouTube 图标：默认/红色两张叠放，hover 淡入淡出切换 */
.sp-youtube-btn .sp-yt-icon {
    position: relative;
    display: inline-block;
    flex: none;
    width: 28px;
    aspect-ratio: 29 / 20;
}

.sp-youtube-btn .sp-yt-icon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.sp-yt-icon-hover {
    opacity: 0;
}

.sp-youtube-btn:hover .sp-yt-icon-default {
    opacity: 0;
}

.sp-youtube-btn:hover .sp-yt-icon-hover {
    opacity: 1;
}

.sp-hero-container {
    position: relative;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sp-hero-title {
    color: rgba(255, 255, 255, 1);
    font-family: Alibaba PuHuiTi;
    font-style: Bold;
    font-size: 56px;
    font-weight: 700;
    line-height: 64px;
    letter-spacing: 0px;
    text-align: left;
    margin-bottom: 8px;
}

.sp-hero-desc {
    color: rgba(255, 255, 255, 1);
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: 0px;
    text-align: center;
    margin-bottom: 64px;
    max-width: 860px;
}

.sp-hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 32px;
    border-radius: 64px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-width: 120px;
    font-size: 18px;
    line-height: 28px;
    text-decoration: none;
    gap: 8px;
}



.sp-btn img {
    width: 18px;
    height: auto;
    display: block;
}

.sp-btn-white {
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 1);
    background-color: transparent;
    border-radius: 109px;
    gap: 4px;
    color: #fff;
    text-decoration: none;
}

.sp-btn-white:hover {
    opacity: 0.6;
}

.sp-btn-blue {
    background: #0099F2;
    color: #fff;
}

.sp-contact-us-btn {
    background: linear-gradient(122.69deg, rgba(126.34, 207.83, 255, 1) -21.305%, rgba(0, 153, 242, 1) 43.439%, rgba(3.48, 133.58, 255, 1) 94.205%);
}

/* hover：叠加白色遮层变亮（inset 阴影充当遮罩，可平滑过渡） */
.sp-btn-blue:hover {
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.3);
}

/* press：叠加黑色遮层变暗（等效 #007DC6） */
.sp-btn-blue:active {
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.18);
}

.sp-btn-play-icon {
    width: 14px;
    height: auto;
}

.sp-section-head {
    text-align: center;
    margin-bottom: 48px;
}

.sp-section-head h2 {
    color: rgba(34, 34, 34, 1);
    font-family: Alibaba PuHuiTi;
    font-style: Bold;
    font-size: 48px;
    font-weight: 700;
    line-height: 66px;
    letter-spacing: 0px;
    text-align: center;
}

.sp-section-head p {
    max-width: 900px;
    margin: 32px auto 48px;
    color: rgba(69, 78, 102, 1);
    font-family: Alibaba PuHuiTi;
    font-style: Regular;
    font-size: 20px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: 0px;
    text-align: center;
}

.sp-equipment {
    padding: 84px 0 0;
    background: #fff;
}

.sp-equipment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.sp-equipment-card {
    position: relative;
    display: flex;
    flex: 1 1 calc((100% - 48px) / 4);
    min-width: 0;
    min-height: 254px;
    padding: 32px 28px 55px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(222, 227, 232, 1);
    background: rgba(255, 255, 255, 1);
    color: var(--sp-text);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.sp-equipment-card:hover {
    border: 1px solid rgba(222, 227, 232, 1);
    box-shadow: 0px 18px 32px 16px rgba(0, 0, 0, 0.03), 0px 12px 24px 0px rgba(0, 0, 0, 0.05), 0px 8px 16px -8px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 1);
}

.sp-card-icon {
    width: 148px;
    height: 148px;
}

.sp-equipment-card h3 {
    color: rgba(34, 34, 34, 1);
    font-family: 'Alibaba PuHuiTi';
    font-size: 20px;
    font-weight: 500;
    line-height: 27px;
    letter-spacing: 0%;
    text-align: center;
}

.sp-equipment-card p {
    color: rgba(77, 81, 90, 1);
    font-family: 'Alibaba PuHuiTi';
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0%;
    text-align: center;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sp-route {
    padding: 84px 0 160px;
}

.sp-route-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.sp-route-desc {
    max-width: 1226px;
}

.sp-route-card {
    position: relative;
    height: 440px;
    overflow: hidden;
    display: block;
    color: #fff;
    background: #0a1b2d;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(41, 58, 77, 0.14);
}

.sp-route-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.sp-route-card:hover img {
    transform: scale(1.04);
}

.sp-route-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(34, 34, 34, 0) 0%, rgba(34, 34, 34, 0.9) 81.293%);
    background-size: 100% 123%;
    background-position: 0 0;
    background-repeat: no-repeat;
    transition: background-position 0.45s ease;
}

.sp-route-card:hover .sp-route-overlay {
    background-position: 0 100%;
}

.sp-route-kicker {
    position: absolute;
    top: 16px;
    left: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px 8px 12px;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.5);
}

.sp-route-content {
    position: absolute;
    left: 48px;
    right: 48px;
    bottom: 18px;
    z-index: 2;
}

.sp-route-content h3 {
    color: rgba(255, 255, 255, 1);
    font-family: Alibaba PuHuiTi;
    font-style: Bold;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: 0px;
    text-align: left;
    margin-bottom: 16px;
}

.sp-route-content p {
    color: rgba(255, 255, 255, 1);
    font-style: 55 Regular;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0px;
    text-align: left;
}

.sp-read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 152px;
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 1);
    font-family: 'Alibaba PuHuiTi';
    font-size: 18px;
    font-weight: 500;
    line-height: 0;
    letter-spacing: 0px;
    text-align: center;
    border-radius: 109px;
    background: rgba(0, 153, 242, 1);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: max-height 0.35s ease, padding 0.35s ease, margin 0.35s ease, opacity 0.25s ease, transform 0.35s ease, line-height 0.35s ease;
}

.sp-read-more::after {
    content: '→';
    margin-left: 8px;
    font-size: 18px;
    line-height: 1;
}

.sp-route-card:hover .sp-read-more {
    max-height: 52px;
    opacity: 1;
    margin-top: 20px;
    margin-bottom: 22px;
    padding: 14px 32px;
    line-height: 24px;
    pointer-events: auto;
    transform: translateY(0);
}

.sp-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sp-video-modal.active {
    opacity: 1;
    visibility: visible;
}

.sp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(34, 34, 34, .6);
    backdrop-filter: blur(6px);
}

.sp-modal-content {
    position: relative;
    z-index: 1;
    width: 60%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.sp-video-modal.active .sp-modal-content {
    transform: scale(1);
}

.sp-modal-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sp-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 24px;
    line-height: 34px;
    cursor: pointer;
}

@media screen and (max-width: 1280px) {
    .sp-container {
        width: 100%;
        padding: 0 32px;
    }
}

@media screen and (max-width: 1024px) {
    .sp-hero {
        min-height: 560px;
    }

    .sp-hero-title {
        max-width: 680px;
        font-size: 46px;
        line-height: 56px;
    }

    .sp-hero-desc {
        max-width: 720px;
        font-size: 22px;
    }

    .sp-btn {
        min-width: 160px;
        padding: 16px 30px;
        font-size: 18px;
        line-height: 26px;
    }

    .sp-section-head h2 {
        font-size: 38px;
        line-height: 52px;
    }

    .sp-section-head p {
        font-size: 18px;
        line-height: 32px;
    }

    .sp-equipment-grid {
        gap: 20px;
    }

    .sp-equipment-card {
        flex-basis: calc((100% - 20px) / 2);
        min-height: 230px;
        padding: 28px 24px 40px;
    }

    .sp-route-grid {
        gap: 24px;
    }

    .sp-route-card {
        min-height: 460px;
    }

    .sp-route-kicker {
        max-width: calc(100% - 32px);
        box-sizing: border-box;
    }

    .sp-route-content {
        left: 30px;
        right: 30px;
        bottom: 32px;
    }

    .sp-modal-content {
        width: 82%;
    }
}

@media screen and (max-width: 768px) {
    .sp-container {
        padding: 0 16px;
    }

    .sp-hero {
        min-height: 420px;
    }

    .sp-hero-container {
        padding-top: 60px;
        padding-bottom: 42px;
    }

    .sp-youtube-btn {
        top: auto;
        right: 16px;
        bottom: 24px;
        padding: 5px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .sp-youtube-btn .sp-yt-icon {
        width: 18px;
    }

    .sp-hero-title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 10px;
    }

    .sp-hero-desc {
        margin-bottom: 28px;
        font-size: 16px;
        line-height: 24px;
    }

    .sp-hero-actions {
        gap: 12px;
    }

    .sp-btn {
        width: 100%;
        min-width: 0;
        padding: 12px 24px;
        font-size: 16px;
        line-height: 24px;
    }

    .sp-equipment,
    .sp-route {
        padding: 60px 0;
    }

    .sp-section-head {
        margin-bottom: 34px;
    }

    .sp-section-head h2 {
        font-size: 28px;
        line-height: 38px;
        text-align: center;
    }

    .sp-section-head p {
        margin: 20px auto 0;
        font-size: 16px;
        line-height: 26px;
        text-align: center;
    }

    .sp-route-grid {
        grid-template-columns: 1fr;
    }

    .sp-equipment-card {
        flex-basis: 100%;
        min-height: auto;
        padding: 26px 20px 30px;
    }

    .sp-card-icon {
        width: 116px;
        height: 116px;
    }

    .sp-route-card {
        min-height: 360px;
        border-radius: 8px;
    }

    .sp-route-kicker {
        top: 14px;
        max-width: calc(100% - 28px);
        font-size: 14px;
        line-height: 22px;
    }

    .sp-route-content {
        left: 22px;
        right: 22px;
        bottom: 24px;
    }

    .sp-route-content h3 {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 12px;
    }

    .sp-route-content p {
        font-size: 15px;
        line-height: 24px;
    }

    .sp-read-more {
        max-height: 48px;
        opacity: 1;
        margin-top: 18px;
        margin-bottom: 0;
        padding: 12px 24px;
        font-size: 16px;
        line-height: 24px;
        pointer-events: auto;
        transform: translateY(0);
    }

    .sp-modal-content {
        width: 90%;
        max-width: none;
    }

    .sp-modal-close {
        top: -12px;
        right: -12px;
        width: 28px;
        height: 28px;
        font-size: 20px;
        line-height: 28px;
    }
}

@media screen and (max-width: 480px) {
    .sp-hero {
        min-height: 390px;
    }

    .sp-title-accent {
        margin-bottom: 20px;
    }

    .sp-hero-title {
        font-size: 30px;
        line-height: 36px;
    }

    .sp-hero-desc {
        font-size: 16px;
        line-height: 26px;
    }

    .sp-equipment-card h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .sp-equipment-card p {
        font-size: 14px;
        line-height: 22px;
    }

    .sp-route-card {
        min-height: 340px;
    }

    .sp-route-kicker {
        max-width: calc(100% - 24px);
        font-size: 12px;
        line-height: 20px;
    }

    .sp-route-content {
        left: 18px;
        right: 18px;
        bottom: 20px;
    }

    .sp-route-content h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .sp-route-content p {
        font-size: 14px;
        line-height: 22px;
    }

    .sp-read-more {
        width: 100%;
        box-sizing: border-box;
        padding: 11px 16px;
    }
}