@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/Lato-Regular-15.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/Lato-Bold-7.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/Lato-Semibold-16.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/Lato-Light-4.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/Lato-Italic-5.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/Lato-BoldItalic-6.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

/* Roboto 字体定义 */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Regular-14.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Bold-3.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Medium-12.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Light-10.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Black-1.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Italic-9.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-BoldItalic-6.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'Lato', Arial, sans-serif;
}

/* 保留标题元素使用Roboto字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: Roboto, Arial, sans-serif;
}

.header .menu {
    /* font-family: Source Han Sans SC; */
    font-weight: bold;
    font-size: 14px;
    color: #333333;
}

.header .menu li {
    cursor: pointer;
}
.header .menu *{
    /* font-family: Arial !important; */
    font-weight: 400 !important;
}

@media screen and (min-width: 769px) {
    #header_mob {
        display: none;
    }
    .header {
        position: fixed;
        width: 100%;
        height: 80px;
        background:#14171D;
        z-index: 999;
        display: flex;
        align-items: center;
    }
    .header .section-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        width: 100%;
    }
    .header .logo img {
        width: auto;
        height: 50px;
    }
    .header .menu {
        flex: 1;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 0;
        height: 100%;
        margin-left: 50px;
        gap: 40px;
    }
    .header .menu li {
        height: 100%;
        display: flex;
        align-items: center;
        position: relative;
    }
    .header .menu a {
        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
        /* text-transform: uppercase; */
    }
    .header .menu .active a {
        color: #ffffff;
    }
    .header .menu .active::after {
        display: none;
    }
    .header .menu .has-submenu a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .header .menu .menu-arrow {
        width: 12px;
        height: auto;
        transition: transform 0.2s ease;
        margin-left: 2px;
    }
    .header .menu .menu-arrow.open {
        transform: rotate(180deg);
    }
    .header .menu .has-submenu:hover .menu-arrow {
        transform: rotate(180deg);
        margin-top: 0;
    }
    .header .menu .submenu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        background: #14171D;
        min-width: 120px;
        padding: 10px 0;
        list-style: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        border-top: 2px solid #3f8ed0;
    }
    .header .menu .submenu li {
        width: 100%;
        height: auto;
        display: block;
        padding: 0;
    }
    .header .menu .submenu li a {
        display: block;
        padding: 12px 20px;
        font-size: 13px;
        color: #ffffff;
        text-transform: capitalize;
        font-weight: 500;
        white-space: nowrap;
        transition: all 0.2s;
        gap: 0;
    }
    .header .menu .submenu li a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #3f8ed0;
        padding-left: 25px;
    }
    .header .menu li.has-submenu:hover .submenu {
        display: block;
    }
    .header .container-box1 {
        padding: 0 60px;
        font-family: inherit;
        height: 100%;
        width: 100%;
    }
    /* Header Actions Buttons */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 30px;
    }
    .btn-free-trial {
        background: linear-gradient(90deg, #1A3E88, #20B0E2, #1A3E88);
        color: #ffffff !important;
        padding: 8px 28px;
        border-radius: 18px;
        font-size: 14px;
        /* font-weight: 700; */
        text-decoration: none;
        transition: opacity 0.2s;
        white-space: nowrap;
        /* cursor: pointer; */
    }
    .btn-free-trial:hover {
        opacity: 0.9;
    }
    .btn-sign-in {
        color: #ffffff !important;
        font-size: 14px;
        /* font-weight: 700; */

        text-decoration: none;
        white-space: nowrap;
        margin: 0 8px;
        /* cursor: pointer; */
    }
    .btn-sign-up {
        color: #ffffff !important;
        padding: 6px 24px;
        border-radius: 18px;
        font-size: 14px;
        /* font-weight: 700; */

        text-decoration: none;
        transition: background 0.2s, color 0.2s;
        white-space: nowrap;
        border: 1px solid #FFFFFF;
        box-sizing: border-box;
        /* cursor: pointer; */
    }
    .btn-sign-up:hover {
        background: #ffffff;
        color:#14171D !important;
    }
    .header .language-select {
        display: flex;
        align-items: center;
    }
    .header .language-select img {
        width: 20px;
        margin-right: 5px;
    }
    .header .language-select select {
        border: none;
        background: transparent;
        color: #333;
        outline: none;
        border: none;
        flex-shrink: 0;
    }
    .header .language-select select:after {
        content: "\25BC";
        /* Unicode编码，表示向下的箭头 */
        position: absolute;
        top: 12px;
        right: 10px;
    }
    .language-select select option {
        padding: 5px;
        background-color: #f9f9f9;
        color: #333;
    }
    .product-submenu {
        display: none;
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100vw;
        height: 52px;
        background: rgba(15, 17, 23, 0.9);
        z-index: 998;
        padding: 0 30px;
        box-sizing: border-box;
    }
    .product-submenu .product-submenu-list {
        list-style: none;
        margin: 0;
        padding: 0 30px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
    }
    .product-submenu .product-submenu-list li {
        height: 100%;
    }
    .product-submenu .product-submenu-list li a {
        font-family: Source Han Sans SC;
        font-size: 12px;
        font-weight: 500;
        color: #ffffff;
    }
    .product-submenu .product-submenu-list li a:hover {
        color: #3f8ed0;
    }
    .product-submenu .product-submenu-list li.active a {
        color: #3f8ed0;
    }
}

@media screen and (max-width: 769px) {
    #header {
        display: none;
    }
    #header_mob {
        position: fixed;
        width: 100%;
        max-width: 100vw;
        height: 60px;
        background:#14171D;
        z-index: 999;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        left: 0;
        right: 0;
    }
    #header_mob .container-box {
        position: relative;
        padding: 0 20px;
        height: 100%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    #header_mob .section-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        font-family: Source Han Sans SC;
    }
    #header_mob .logo img {
        width: 45px;
        height: 45px;
    }
    #header_mob .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 24px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1000;
    }
    #header_mob .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #ffffff;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    #header_mob .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    #header_mob .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    #header_mob .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    #header_mob .menu {
        display: none;
        position: absolute;
        width: 100%;
        max-width: 100vw;
        top: 60px;
        left: 0;
        right: 0;
        background:#14171D;
        z-index: 999;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        box-sizing: border-box;
    }
    #header_mob .menu ul {
        list-style: none;
        margin: 0;
        padding: 0 20px;
    }
    #header_mob .menu ul li {
        padding: 15px 0;
        position: relative;
        border-bottom: 1px solid #1f2229;
    }
    #header_mob .menu ul li:last-child {
        border-bottom: none;
    }
    #header_mob .menu ul li a {
        font-family: Source Han Sans SC;
        font-size: 12px;
        font-weight: 500;
        line-height: 20px;
        color: #ffffff;
        text-decoration: none;
        display: block;
    }
    #header_mob .menu ul li a:hover {
        color: #3f8ed0;
    }
    #header_mob .menu ul li.active a {
        color: #3f8ed0;
    }
    /* #header_mob .menu ul li.active::after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 20px;
        background: #FFBB11;
    } */
    /* 移动端产品子菜单样式 */
    #header_mob .menu ul li.has-submenu .product-menu-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    #header_mob .menu ul li.has-submenu .menu-arrow {
        width: 12px;
        height: auto;
        transition: transform 0.2s ease;
        flex-shrink: 0;
        margin-left: 6px;
    }
    #header_mob .menu ul li.has-submenu .menu-arrow.open {
        transform: rotate(180deg);
    }
    #header_mob .menu ul li .product-submenu-mob {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0 0 0 20px;
        background: #14171D;
    }
    #header_mob .menu ul li .product-submenu-mob li {
        padding: 12px 0;
        border-bottom: 1px solid #1f2229;
    }
    #header_mob .menu ul li .product-submenu-mob li:last-child {
        border-bottom: none;
    }
    #header_mob .menu ul li .product-submenu-mob li a {
        font-size: 12px;
        font-weight: 500;
        color: #ffffff;
        padding: 0;
    }
    #header_mob .menu ul li .product-submenu-mob li a:hover {
        color: #3f8ed0;
    }
    #header_mob .menu ul li .product-submenu-mob li.active a {
        color: #3f8ed0;
    }
    /* #header_mob .menu ul li .product-submenu-mob li.active::after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 16px;
        background: #FFBB11;
    } */
    /* 移动端操作按钮样式 */
    .header-actions-mob {
        padding: 20px 10px;
        padding-bottom: 0;
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
    .header-actions-mob .btn-free-trial,
    .header-actions-mob .btn-sign-in,
    .header-actions-mob .btn-sign-up {
        font-size: 11px;
        padding: 6px 4px;
        flex: 1;
        text-align: center;
        white-space: nowrap;
        min-width: 0;
    }
    .header-actions-mob .btn-free-trial {
        background: linear-gradient(90deg, #1A3E88, #20B0E2, #1A3E88);
        border-radius: 18px;
    }
    .header-actions-mob .btn-sign-in {
        margin: 0;
    }
    .header-actions-mob .btn-sign-up {
        padding: 5px 4px;
    }
    /* 移动端菜单动画优化 */
    #header_mob .menu {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    #header_mob .menu a{
        color: white;
        font-size: 12px;
        font-weight: 500;
    }

    #header_mob .change {
        display: flex;
        align-items: center;
    }
    #header_mob .language-select {
        display: flex;
        align-items: center;
        margin-right: 20px;
    }
    #header_mob .language-select img {
        width: 20px;
        margin-right: 5px;
    }
    #header_mob .language-select select {
        border: none;
        background: transparent;
        color: #333;
        outline: none;
        border: none;
        flex-shrink: 0;
    }
    #header_mob .language-select select:after {
        content: "\25BC";
        /* Unicode编码，表示向下的箭头 */
        position: absolute;
        top: 12px;
        right: 10px;
    }
    .language-select select option {
        padding: 5px;
        background-color: #f9f9f9;
        color: #333;
    }
}