@font-face {
    font-family: "钉钉进步体 Regular";
    font-weight: 400;
    src: url("webfont/t8WFiPt6kzes.woff2") format("woff2"),
        url("webfont/t8WFiPt6kzes.woff") format("woff");
    font-display: swap;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    font-family: 'Open Sans', "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Tahoma, Arial;
    color: #353D45;
    line-height: 1.5;
    font-weight: 400;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button,
a {
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    /* 移除下划线 */
    cursor: pointer;
}

button:hover,
a:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 48px -8px rgba(50, 72, 198, 0.12);
}

button:active,
a:active {
    transform: translateY(1px);
}

/* 头部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

nav {
    place-content: center space-between;
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-flow: row;
    height: 64px;
    overflow: visible;
    padding: 16px 40px;
    z-index: 1;
}

/* 为主要内容添加动画 */
main {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.6s ease-out forwards;
}


.logo {
    place-content: flex-start center;
    align-items: flex-start;
    display: flex;
    flex: 0 0 auto;
    flex-flow: column;
    gap: 8px;
    height: 100%;
    overflow: visible;
    padding: 0px;
    position: relative;
    width: min-content;
}

.main-btn {
    color: #fff;
    background-color: rgb(0, 100, 250);
    border-radius: 32px;
    padding: 8px 16px;
    font-size: 14px;
}

.main-btn:hover {
    background-color: rgb(35, 123, 255);
}

.nav-btn {
    display: flex;
    width: 48px;
    height: 48px;
    padding: 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 32px;
    background: #EBEBED;
}



/* 首屏区域 */
.hero {
    position: relative;
    /* 使父元素相对定位 */
    display: flex;
    padding: 160px 16px 40px 16px;
    flex-direction: column;
    align-items: center;
    gap: 56px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, #FFF 100%);
    /* background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, #FFF 100%), url('../image/herobg.jpg') lightgray 50% / cover no-repeat; */
}

.mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    -webkit-mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    z-index: 2;
}

.hero img {
    position: absolute;
    /* 使图片绝对定位 */
    bottom: -40px;
    /* 将图片放置在底部 */
    left: 50%;
    /* 水平居中 */
    transform: translateX(-50%);
    /* 使图片居中 */
    z-index: 3;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 4;
}

.hero h1 {
    color: #353D45;
    font-family: "钉钉进步体 Regular";
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: center;
}

.hero p {
    color: #353D45;
    text-align: center;
    font-family: "钉钉进步体 Regular";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    /* 27px */
    letter-spacing: 0.72px;
}

/* 数据统计 */
.stats {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    z-index: 4;
}

.stat-item {
    display: flex;
    width: 140px;
    height: 132px;
    padding: 12px 16px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    border-radius: 16px;
    border: 1px solid #FFF;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: 0px 16px 32px 0px rgba(0, 53, 131, 0.16);
    backdrop-filter: blur(4px);
}

.stat-item .gradient {
    text-align: center;
    font-family: "钉钉进步体 Regular";
    font-size: 36px;
    font-style: normal;
    line-height: 120%;
    /* 43.2px */
    letter-spacing: 1.44px;
    background: linear-gradient(90deg, #0064FA 0%, #8E3EEF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item span {
    color: #353D45;
    font-family: "钉钉进步体 Regular";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.72px;
}

.stat-item p {
    color: #353D45;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.56px;
    opacity: 0.4;
}

/* 产品介绍区域 */
.product {
    display: flex;
    padding: 40px 16px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    align-self: stretch;
}

.product-icon {
    display: none;
}

.product-nav {
    display: none;
}

.product-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: -webkit-fill-available;
    max-width: 960px;
}

.product h2 {
    color: #353D45;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1.28px;
    text-align: center;
}

.product-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.product-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.product-item {
    background-color: #fff;
    display: flex;
    width: fit-content;
    /* height: 100px; */
    min-width: 100px;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    cursor: pointer;
    flex: 0 0 auto;
    /* 防止子元素自动伸缩 */
    max-width: 218px;
}

.product-item:hover {
    border-radius: 16px;
    background: rgba(123, 130, 142, 0.08);
    transition: background-color 0.3s;
    /* 添加过渡效果 */
}

.product-item.active {
    border-radius: 16px;
    background: rgba(123, 130, 142, 0.08);
    transition: background-color 0.3s;
    /* 添加过渡效果 */
}

.product-item h3 {
    color: #353D45;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.56px;
    text-align: center;
    width: 168px;
    height: 40px;
}

.product-content {
    display: flex;
    width: -webkit-fill-available;
    padding: 40px;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
    border-radius: 24px;
    background: var(--gBG, linear-gradient(283deg, #E3EDFD 0%, #F0EFFE 50%, #F5F7FF 100%));
    display: none;
    /* opacity: 0; */
    transition: opacity 0.3s ease-in-out;
}

.product-content.active {
    display: flex;
    opacity: 1;
}

.product-features {
    place-content: flex-start;
    align-items: flex-start;
    display: flex;
    flex: 1 0 0px;
    flex-flow: column;
    gap: 24px;
    height: min-content;
    overflow: visible;
    padding: 0px;
    position: relative;
    width: -webkit-fill-available;
}

.product-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-image {
    aspect-ratio: 1.25 / 1;
    flex: 1 0 0px;
    height: var(--framer-aspect-ratio-supported, 352px);
    position: relative;
    width: -webkit-fill-available;
}

.product-content img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-position: center center;
    object-fit: contain;
}

.product-features h3 {
    color: #353D45;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.96px;
}

.product-features h4 {
    color: #353D45;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.8px;
}

.product-features h5 {
    color: #353D45;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.64px;
}


.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
    color: #353D45;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.56px;
}

.feature-list li:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../image/li.svg');
    /* 替换为你的 SVG 文件路径 */
    background-size: cover;
    position: absolute;
    left: 0;
    color: #1890FF;
}


.product-image {
    width: 100%;
    height: auto;
}

/* 基金介绍区域 */
.fund {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    background: linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%), url('../image/homefooter.jpg') lightgray 50% / cover no-repeat;
}

.fund-group {
    display: flex;
    width: -webkit-fill-available;
    max-width: 960px;
    height: 400px;
    padding: 0px 40px;
    align-items: center;
    gap: 24px;
}

.fund-image {
    flex: 1 0 0px;
    height: 256px;
    position: relative;
    width: -webkit-fill-available;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fund-group img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fund-title {
    place-content: flex-start;
    align-items: flex-start;
    display: flex;
    flex: 1 0 0px;
    flex-flow: column;
    gap: 24px;
    height: min-content;
    overflow: visible;
    padding: 0px;
    position: relative;
    width: -webkit-fill-available;
}

.fund h2 {
    color: #353D45;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1.28px;
}

.fund p {
    color: #353D45;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.64px;
}

.footer {
    display: flex;
    padding: 40px 16px;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    align-self: stretch;
}

/* 响应式设计 */
/* @media (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-features {
        text-align: center;
    }

    .feature-list li {
        display: flex;
    }

    .feature-list li:before {
        position: static;
    }
} */

@media (max-width: 809px) {
    nav {
        padding: 16px;
        height: 56px;
    }

    .stats {
        display: flex;
        justify-content: center;
        align-items: center;
        align-content: center;
        gap: 32px;
        align-self: stretch;
        flex-wrap: wrap;
    }

    .hero img {
        bottom: 20px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .product {
        padding: 24px 16px;
        gap: 16px;
    }

    /* .product-nav {
        display: flex;
        align-items: flex-start;
        gap: 16px;
    } */

    .product h2 {
        font-size: 20px;
    }

    .product-item h3 {
        font-size: 13px;
        text-align: left;
        width: auto;
        height: auto;
    }

    .product-slider {
        width: 100%;
        justify-content: flex-start;
        padding: 0 16px;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 16px;
        gap: 16px;
    }

    .product-item {
        scroll-snap-align: center;
        flex-shrink: 0;
        display: flex;
        flex-direction: row;
        height: auto;
        padding: 8px 16px 8px 8px;
    }

    .product-item img {
        width: 36px;
    }

    .product-content {
        display: flex;
        align-items: flex-start;
        flex-direction: column-reverse;
        width: -webkit-fill-available;
        padding: 16px;
        gap: 16px;
        display: none;
    }

    .product-group {
        gap: 16px;
    }

    .product-features {
        gap: 16px;
    }

    .product-features h3 {
        font-size: 18px;
    }

    .product-features h4 {
        font-size: 16px;
    }

    .product-features h5 {
        font-size: 14px;
    }

    .product-icon {
        display: flex;
        height: 56px;
        align-items: center;
        gap: 8px;
    }

    .product-icon img {
        width: auto;
    }

    .product-icon h3 {
        font-size: 16px;
        font-weight: 500;
    }

    .fund {
        padding-top: 24px;
    }

    .fund-group {
        display: flex;
        flex-direction: column-reverse;
        width: -webkit-fill-available;
        height: auto;
    }

    .fund-group img {
        width: 70%;
        height: 70%;
    }

    .fund-title {
        align-items: center;
    }

    .fund h2 {
        font-size: 24px;
    }

    .fund p {
        font-size: 14px;
    }
}