@charset "UTF-8";

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: transform 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
    background: rgba(22, 22, 22, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-header.is-scrolled {
    background: rgba(10, 15, 24, 0.86);
}


.header-shell {
    min-width: 1200px;
    margin: 0 auto;
    padding: 0 100px;
}

.header-inner {
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo img {
    width: 94px;
    height: auto;
    display: block;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 104px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-family: "Source Han Sans SC-Regular", "Microsoft YaHei", sans-serif;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    opacity: 0.84;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 16px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 24px;
}

.lang-box {
    position: relative;
    margin-left: 40px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
    font-size: 16px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.lang-switch:hover {
    opacity: 0.84;
}

.lang-switch img {
    width: 24px;
    height: 24px;
    display: block;
}

.lang-switch .arrow {
    width: 0;
    height: 0;
    border-left: 0.25em solid transparent;
    border-right: 0.25em solid transparent;
    border-top: 0.32em solid #ffffff;
    margin-top: 0.15em;
    transition: transform 0.3s ease;
}

.lang-box.is-open .lang-switch .arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 150px;
    background: rgba(10, 15, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 4px;
}

.lang-box.is-open .lang-menu {
    display: flex;
}

.lang-option {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
    text-align: left;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: "Source Han Sans SC-Regular", "Microsoft YaHei", sans-serif;
}

.lang-option:hover,
.lang-option.is-active {
    background: rgba(255, 255, 255, 0.16);
}

.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero-demo {
    min-height: 100vh;
    background: linear-gradient(135deg, #303744 0%, #59646f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #f4f6fa;
    padding: 120px 24px 60px;
}

.hero-demo h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.2;
}

.hero-demo p {
    margin: 16px 0 0;
    font-size: 16px;
    opacity: 0.88;
}

@media (max-width: 767px) {
    .header-shell {
        padding: 0;
        min-width: auto;
    }
    .header-inner {
        height: 72px;
        padding: 0 12px;
    }

    .header-logo img {
        width: 38px;
        height: 38px;
        object-fit: contain;
    }

    .menu-toggle {
        display: inline-block;
        order: 3;
    }

    .lang-switch {
        order: 2;
        margin-left: auto;
        font-size: 16px;
    }

    .lang-switch img {
        width: 18px;
        height: 18px;
    }

    .lang-box {
        order: 2;
        margin-left: auto;
    }

    .lang-menu {
        top: calc(100% + 8px);
        right: 0;
        min-width: 128px;
        z-index: 1001;
    }

    .header-nav {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: rgba(10, 15, 24, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 24px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .header-nav.is-open {
        transform: translateX(0);
    }

    .nav-link {
        width: 100%;
        height: 52px;
        font-size: 16px;
    }

    .nav-link::after {
        left: 0;
        transform: none;
        bottom: 8px;
    }

    .hero-demo h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .header-shell {
        min-width: auto;
        padding: 0;
    }

    /* .lang-switch span {
        display: none;
    } */
}
