/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

.process {
    text-align: center !important;

}

.process svg {
    margin-bottom: 10px;
}
/*@media screen and (min-width: 768px) {*/
/*    */
/*}*/
.bg-index {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: -50px;
    z-index: 0.1;
    background-image: url("/static/img/index_bg.webp");
    background-repeat: no-repeat; /* 设置背景图片不重复 */
    background-size: cover; /* 让背景图片尽可能填充整个容器，保持比例 */
    background-position: center; /* 将背景图片居中显示 */

}

.bg-index::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0.2;
    background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#004071));
    background: -o-linear-gradient(top, #fff 0%, #004071);
    background: linear-gradient(180deg, #fff 0%, #004071);
    opacity: 0.5; /* 调整透明度，可以根据需要进行更改 */
}

.menu-container {
    position: fixed;
    left: 0;
    background-color: transparent;
    -webkit-box-shadow: none;
            box-shadow: none;
    -webkit-transform: scale(1.3);
        -ms-transform: scale(1.3);
            transform: scale(1.3);
    -webkit-transform-origin: top left;
        -ms-transform-origin: top left;
            transform-origin: top left;
    width: 100vw;
    float: left;
    -webkit-transition: background-color 0.7s ease, -webkit-transform 0.7s ease;
    transition: background-color 0.7s ease, -webkit-transform 0.7s ease;
    -o-transition: background-color 0.7s ease, transform 0.7s ease;
    transition: background-color 0.7s ease, transform 0.7s ease;
    transition: background-color 0.7s ease, transform 0.7s ease, -webkit-transform 0.7s ease; /* 过渡效果 */

}

.menu-container.scrolled {
    position: fixed;
    top: 0;

    background: #ffffff;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
            box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); /* 添加阴影效果 */
    -webkit-transform: scale(1);
        -ms-transform: scale(1);
            transform: scale(1);
}

.index-tip-container {
    width: 80%; /* 使用百分比来设置宽度，相对于父元素 */
    max-width: 600px; /* 设置最大宽度，防止在大屏幕上过度拉伸 */
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    padding: 20px;
    background-color: hsla(0, 0%, 100%, 0.5);
    text-align: center; /* 文字居中 */
    position: absolute; /* 相对定位 */
    left: 18%;
    top: 40%;

    -webkit-animation: appear 0.5s ease-in-out forwards;

            animation: appear 0.5s ease-in-out forwards;
}

@-webkit-keyframes appear {
    0% {
        opacity: 0;
        -webkit-transform: translateX(100%);
                transform: translateX(100%); /* 从右侧移入 */
    }
    100% {
        opacity: 1;
        -webkit-transform: translateX(0);
                transform: translateX(0); /* 移至左侧 */
    }
}

@keyframes appear {
    0% {
        opacity: 0;
        -webkit-transform: translateX(100%);
                transform: translateX(100%); /* 从右侧移入 */
    }
    100% {
        opacity: 1;
        -webkit-transform: translateX(0);
                transform: translateX(0); /* 移至左侧 */
    }
}

.index-tip-h {
    color: #004071;
    font-weight: 700;
    position: relative;
    font-size: 3rem; /* 使用rem作为字体大小单位 */
    margin-bottom: 1rem; /* 底部间距 */
}

.index-tip-p {
    color: #29be56;
    font-size: 0.875rem; /* 使用rem作为字体大小单位 */
    letter-spacing: 1.5px;
    position: relative;

    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.6;
}

.button-green {
    background-color: #29be56;
    border: 1px solid #29be56;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    min-width: 180px;
    padding: 0.75rem 1rem;
    text-align: center;
    text-decoration: none; /* 去掉链接的下划线 */
    -webkit-transition: 0.5s ease;
    -o-transition: 0.5s ease;
    transition: 0.5s ease; /* 简化过渡动画属性 */
    border-radius: 4px; /* 圆角 */
}

.button-green:hover {
    text-decoration: none; /* 去掉链接的下划线 */
    background-color: transparent;
    color: #29be56;
}

.product-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    height: 100%;
    margin-bottom: 0px;
}

.product-item a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    height: 100%;
}

.product-item .pic {
    -webkit-box-flex: 1;
        -ms-flex: 1 0 auto;
            flex: 1 0 auto; /* 允许pic部分扩展 */
}

.product-item .caption {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto; /* caption部分保持其高度 */
}
