/* 基础样式 */
body {
    background-color: #f0f2f5;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
}

/* 桌面端容器 */
.desktop-container {
    max-width: 1440px;
    margin: 0 auto;
}

/* 移动端容器（保留兼容性） */
.app-container {
    width: 375px;
    background: #fff;
    overflow-y: auto;
    position: relative;
    scrollbar-width: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.app-container::-webkit-scrollbar {
    display: none;
}

.glass-header {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
}

.tab-active {
    color: #4FD1C5;
    border-bottom: 2px solid #4FD1C5;
}

.card-shadow {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.play-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

/* 悬浮客服组件 */
.floating-service-widget {
    position: fixed;
    bottom: 30px;
    right: calc((100vw - 1440px + 240px) / 2 + 20px); /* 在右侧边栏右边 */
    width: 300px;
    z-index: 9999;
    animation: slideUp 0.5s ease-out;
}

/* 当屏幕小于1440px+240px时，固定在右侧 */
@media (max-width: 1680px) {
    .floating-service-widget {
        right: 20px;
    }
}

/* 移动端样式 */
@media (max-width: 768px) {
    .floating-service-widget {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 350px;
        bottom: 20px;
    }
}

@keyframes slideUp {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 20px; opacity: 1; }
}

.greeting-bubble {
    background: white;
    color: #5FCCB8;
    font-size: 10px;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    width: fit-content;
    margin-left: 40px;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.service-bar {
    background: linear-gradient(135deg, #5FCCB8 0%, #5BC9B5 100%);
    border-radius: 45px;
    padding: 0 20px 0 8px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(95, 204, 184, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.service-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(95, 204, 184, 0.5);
}

.service-bar:active {
    transform: translateY(0);
}

.service-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.service-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-dot {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 10px;
    height: 10px;
    background: #52c41a;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.service-content {
    flex: 1;
    text-align: center;
}

.service-title {
    color: white;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.service-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 500;
}

.service-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
}

.service-icon svg {
    width: 18px;
    height: 18px;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Tab切换样式 */
.tab-item {
    position: relative;
}

.tab-item:hover {
    color: #4FD1C5;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 375px) {
    .floating-service-widget {
        width: 95%;
    }
    .service-title {
        font-size: 14px;
    }
}

/* 视频弹窗样式 */
#video-modal {
    backdrop-filter: blur(10px);
}

#video-modal.show {
    display: flex !important;
}

#video-modal.flex {
    display: flex !important;
}

/* 图片查看器样式 */
#image-viewer-modal {
    backdrop-filter: blur(10px);
}

#image-viewer-modal.flex {
    display: flex !important;
}

.image-viewer-swiper {
    padding: 60px 20px;
}

.image-viewer-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-swiper .swiper-slide img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* 火焰图标从中心向四周扩展动画 */
.flame-ripple {
    position: relative;
    display: inline-block;
}

.flame-ripple::before,
.flame-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid #ff4d4f;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 2s ease-out infinite;
    opacity: 0;
}

.flame-ripple::after {
    animation-delay: 1s;
}

@keyframes ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

/* 隐藏滚动条 */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/*swiper-thum插件*/
.swiper-thum-container {
    max-width: 100vw;
    margin: 0 auto;
    background-color: #fff;
}

/* 大图区域 */
.swiper-thum-container .main-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.swiper-thum-container .main-banner-wrapper {
    display: flex;
    transition: transform 0.3s ease-out;
    touch-action: pan-y;
}

.swiper-thum-container .main-banner-swiper {
    width: 100%;
}

.swiper-thum-container .main-banner-item {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.swiper-thum-container .main-banner-item.active {
    opacity: 1;
}

.swiper-thum-container .main-banner .main-banner-prev,
.swiper-thum-container .main-banner .main-banner-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    color: #333;
    transition: all 0.2s ease;
}

.swiper-thum-container .main-banner .main-banner-prev {
    left: 14px;
}

.swiper-thum-container .main-banner .main-banner-next {
    right: 14px;
}

.swiper-thum-container .main-banner .main-banner-prev:hover,
.swiper-thum-container .main-banner .main-banner-next:hover {
    background: rgba(255, 255, 255, 0.82);
}

.swiper-thum-container .main-banner .main-banner-prev::after,
.swiper-thum-container .main-banner .main-banner-next::after {
    font-size: 16px;
    font-weight: 700;
}
.swiper-thum-container .main-banner-item img {
    width: 100vw;
    height: 100vw;
    display: block;
    object-fit: cover;
}

/* 电脑端降低高度 */
@media screen and (min-width: 768px) {
    .swiper-thum-container .main-banner-item img {
        height: 500px; /* 固定高度500px */
        max-height: none;
        width: 100%;
        object-fit: cover;
    }

    .swiper-thum-container .thumbnail-item {
        min-width: 20%; /* 电脑端显示5个小图: 100% / 5 = 20% */
    }
}

/* 小图区域 */
.swiper-thum-container .thumbnail-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background-color: #fff;
    position: relative;
}

.swiper-thum-container .thumbnail-wrapper {
    display: flex;
    transition: transform 0.3s ease-out;
    padding: 0 10px;
    touch-action: pan-y;
}

.swiper-thum-container .thumbnail-item {
    min-width: 40%; /* 2.5个小图占满屏幕: 100% / 2.5 = 40% */
    padding: 0 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.swiper-thum-container .thumbnail-image {
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.swiper-thum-container .thumbnail-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1.71 / 1;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* 电脑端鼠标悬停效果 */
@media (hover: hover) and (pointer: fine) {
    .swiper-thum-container .thumbnail-item:hover .thumbnail-image {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .swiper-thum-container .thumbnail-item:hover img {
        filter: brightness(1.15);
    }

    .swiper-thum-container .thumbnail-item:not(.active):hover .thumbnail-image {
        border-color: rgba(255, 107, 107, 0.3);
    }
}

.swiper-thum-container .thumbnail-text {
    margin-top: 8px;
    text-align: center;
}

.swiper-thum-container .thumbnail-text p {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin: 2px 0;
}

.swiper-thum-container .thumbnail-text .sub-text {
    font-size: 12px;
    color: #999;
    -webkit-line-clamp: 1;
}

/* 选中状态 */
.swiper-thum-container .thumbnail-item.active .thumbnail-image {
    border-color: #FF6B6B;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* 箭头 */
.swiper-thum-container .arrow-up {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 12px solid #FF6B6B;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.swiper-thum-container .thumbnail-item.active .arrow-up {
    opacity: 1;
}

/* 触摸反馈 */
.swiper-thum-container .thumbnail-item:active {
    transform: scale(0.95);
}

/* 防止图片拖拽 */
.swiper-thum-container img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* 响应式调整 */
@media screen and (min-width: 768px) {
    .swiper-thum-container .thumbnail-item {
        min-width: 20%; /* 电脑端显示5个小图: 100% / 5 = 20% */
    }

    .swiper-thum-container .thumbnail-text p {
        font-size: 16px;
    }

    .swiper-thum-container .thumbnail-text .sub-text {
        font-size: 14px;
    }
}

@media screen and (max-width: 375px) {
    .swiper-thum-container .thumbnail-text p {
        font-size: 12px;
    }

    .swiper-thum-container .thumbnail-text .sub-text {
        font-size: 11px;
    }
}
/*swiper-thum插件:end */

/* 桌面端响应式样式 */
@media screen and (max-width: 1200px) {
    .desktop-container {
        margin-left: 60px !important;
        margin-right: 60px !important;
        max-width: calc(100% - 120px) !important;
    }
}

/* 创新标题背景样式 */
.section-title-gradient {
    position: relative;
    transition: all 0.3s ease;
}

.section-title-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 标题背景装饰圆形动画 */
@keyframes float-bubble {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-10px, -10px) scale(1.1);
    }
}

.section-title-gradient .absolute:first-child {
    animation: float-bubble 6s ease-in-out infinite;
}

.section-title-gradient .absolute:nth-child(2) {
    animation: float-bubble 8s ease-in-out infinite reverse;
}

/* 标题图标旋转效果 */
.section-title-gradient:hover i {
    animation: icon-rotate 0.6s ease-in-out;
}

@keyframes icon-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 渐变背景闪烁效果 */
@keyframes gradient-shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.section-title-gradient {
    background-size: 200% 200%;
    animation: gradient-shimmer 8s ease infinite;
}

@media screen and (max-width: 1200px) {
    .desktop-container {
        margin-left: 60px !important;
        margin-right: 60px !important;
        max-width: calc(100% - 120px) !important;
    }
}

@media screen and (max-width: 992px) {
    .desktop-container {
        margin-left: 20px !important;
        margin-right: 20px !important;
        max-width: calc(100% - 40px) !important;
    }

    /* 两列布局改为单列 */
    .desktop-container > div:first-child {
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* 左侧内容宽度100% */
    .desktop-container > div:first-child > div:first-child {
        width: 100% !important;
    }

    /* 右侧边栏宽度100%，取消sticky */
    .desktop-container > div:first-child > div:last-child {
        width: 100% !important;
        position: relative !important;
    }

    .desktop-container > div:first-child > div:last-child > div {
        position: relative !important;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 0;
    }

    .desktop-container {
        margin: 0 !important;
        max-width: 100% !important;
    }

    .desktop-container > div:first-child {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Banner高度调整 */
    .swiper-thum-container .main-banner-item img {
        height: 100vw !important;
    }
}

/* ============================================================
   证书轮播（#myCertificateBanner）—— Swiper 版
   ============================================================ */
#myCertificateBanner.cert-swiper-container {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f7f8fb;
    box-shadow: 0 6px 20px rgba(30, 58, 95, .08);
}
#myCertificateBanner .cert-swiper { width: 100%; }

#myCertificateBanner .cert-slide {
    position: relative;
    background: #fff;
}
#myCertificateBanner .cert-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: linear-gradient(135deg, #f4f6fa 0%, #eceff5 100%);
}
#myCertificateBanner .cert-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#myCertificateBanner .cert-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 14px 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.72) 100%);
    color: #fff;
    text-align: center;
    pointer-events: none;
}
#myCertificateBanner .cert-caption span {
    display: inline-block;
    max-width: 90%;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .3px;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

#myCertificateBanner .cert-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #1e3a5f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
#myCertificateBanner .cert-arrow:hover {
    background: #ff8c42;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(255, 140, 66, .45);
}
#myCertificateBanner .cert-arrow:active {
    transform: translateY(-50%) scale(.96);
}
#myCertificateBanner .cert-arrow svg { display: block; }
#myCertificateBanner .cert-arrow-prev { left: 10px; }
#myCertificateBanner .cert-arrow-next { right: 10px; }
#myCertificateBanner .cert-arrow.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 480px) {
    #myCertificateBanner .cert-arrow { width: 32px; height: 32px; }
    #myCertificateBanner .cert-caption span { font-size: 13px; }
}