body{
    background-color: #f7f8fa;
}
.carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    /* margin-bottom: 12px; */
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8%;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.carousel-caption {
    text-align: center;
    color: #fff;
    z-index: 2;
}

.carousel-caption h2 {
    font-size: 48px;
    font-weight: bold;
    margin: 0 0 16px 0;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-item.active .carousel-caption h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.carousel-caption p {
    font-size: 24px;
    margin: 0 0 24px 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-item.active .carousel-caption p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.carousel-caption a {
    display: inline-block;
    color: var(--g-color-default);
    text-decoration: none;
    font-size: 16px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-item.active .carousel-caption a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.carousel-caption a:hover {
    color: var(--g-color-default);
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-indicators span {
    width: 40px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicators span.active {
    background-color: #fff;
}

/* Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
    padding: 0;
}

.carousel-control i {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.carousel-control.prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.carousel-control.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* Product Showcase */
.product-showcase {
    width: 100%;
}

.main-banner {
    width: 100%;
    margin-bottom: 12px;
}

.main-banner img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* 主 Banner 视频区(参考 product.html 视频区块样式) */
.main-banner-section {
    width: 100%;
    margin-bottom: 12px;
}

.main-banner-video {
    position: relative;
    width: 100%;
    background: #000;
}

.main-banner-inner {
    position: relative;
    width: 100%;
}

.main-banner-inner video {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
}

.main-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.bg-video-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}

.bg-video-tip {
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.35);
}

.main-banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    color: #fff;
    box-sizing: border-box;
}

.main-banner-content h2 {
    font-size: 3rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: bannerTextIn 1s ease-out 0.2s forwards;
}

.main-banner-content p {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: bannerTextIn 1s ease-out 0.6s forwards;
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.product-item {
    position: relative;
    aspect-ratio: 620 / 500;
    overflow: hidden;
    cursor: pointer;
    background: #f5f7fa;
}

.product-item > a,
.product-item > a.product-link {
    display: block;
    position: absolute;
    inset: 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    z-index: 3;
}

/* 背景图:铺满整个产品卡片 */
.product-item .product-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #f5f7fa;
    background-repeat: no-repeat;
    z-index: 1;
}

/* 产品图:在背景之上,底部对齐 + 水平居中(420×580 竖向图) */
.product-item .product-img {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transform-origin: 50% 100%;
    max-height: 60%;
    max-width: 60%;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 2;
    transition: transform 0.3s ease;
}

.product-item:hover .product-img {
    transform: translateX(-50%) scale(1.25);
}

/* News Center */
.news-center {
    width: 100%;
    background-color: #f7f8fa;
    padding: 30px 12px;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 40px 0;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    /* 桌面端:右边缘对齐到悬浮客服按钮(右 50px + 宽 60px = 110px)的左边缘 */
    width: calc(100% - 190px);
    margin: 0 auto;
    gap: 14px;
}

.news-featured {
    flex: 1;
    min-width: 320px;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

.news-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.news-featured-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: #fff;
    z-index: 2;
}

.news-featured-content h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.news-featured-content p {
    font-size: 14px;
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.btn-more {
    display: inline-block;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.btn-more:hover {
    background-color: var(--g-color-default);
    color: #fff;
}

.news-list {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-height: 152px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.news-img {
    width: 40%;
    max-width: 280px;
    height: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.news-info {
    flex: 1;
    padding: 20px;
    overflow: hidden;
}

.news-info h4 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.arrow-icon {
    font-size: 16px;
    color: #ccc;
    padding-right: 30px;
}

.news-item:hover .arrow-icon {
    color: var(--g-color-default);
}

/* Events Center */
.events-center {
    width: 100%;
    background-color: #f7f8fa;
    padding: 20px 12px 60px;
    box-sizing: border-box;
}

.events-carousel {
    width: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    gap: 20px;
}

.events-inner {
    /* 桌面端:右边缘对齐到悬浮客服按钮(右 50px + 宽 60px = 110px)的左边缘 */
    width: calc(100% - 190px);
    position: relative;
    overflow: hidden;
    height: 500px;
    border-radius: 4px;
    margin: 0 auto;
}

.events-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.events-item.active {
    opacity: 1;
    z-index: 2;
}

.events-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.events-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    box-sizing: border-box;
}

.events-caption-left {
    flex: 0 0 30%;
}

.events-caption-left h3 {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 15px;
}

.events-link {
    color: var(--g-color-default);
    text-decoration: none;
    font-size: 14px;
}

.events-link:hover {
    text-decoration: underline;
}

.events-caption-right {
    flex: 0 0 65%;
    text-align: right;
}

.events-caption-right p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    display: inline-block;
}

.events-control {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fff;
    color: #999;
    border: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.events-control:hover {
    color: #333;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Partners / Clients */
.partners-center {
    width: 100%;
    background-color: #f7f8fa;
    padding: 0 12px 60px;
    box-sizing: border-box;
}

.partners-container {
    width: 80vw;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.partners-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    /* 轮播图 - 移动端文字下移 20px */
    .carousel-item {
        padding-top: calc(8% + 30px);
    }

    /* 新闻中心 - 移动端适配 */
    .news-center {
        padding: 20px 12px;
    }
    .section-title {
        font-size: 20px;
        margin: 0 0 20px 0;
    }
    .news-container {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    .news-featured {
        width: 100%;
        min-width: 0;
        min-height: 240px;
        aspect-ratio: 16 / 9;
    }
    .news-featured-content {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .news-featured-content h3 {
        font-size: 16px;
        margin: 0 0 6px 0;
    }
    .news-featured-content p {
        font-size: 12px;
        margin: 0 0 12px 0;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .btn-more {
        padding: 6px 18px;
        font-size: 12px;
    }
    .news-list {
        width: 100%;
        min-width: 0;
        gap: 8px;
    }
    .news-item {
        min-height: 100px;
    }
    .news-img {
        width: 35%;
        max-width: 130px;
    }
    .news-info {
        padding: 10px 12px;
    }
    .news-info h4 {
        font-size: 14px;
        margin: 0 0 6px 0;
        -webkit-line-clamp: 2;
    }
    .news-info p {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    .arrow-icon {
        padding-right: 12px;
        font-size: 14px;
    }

    .events-inner {
        width: 100%;
        margin: 0 auto;
    }
}
