/* ============================================
   全局基础样式与设计变量
   ============================================ */

:root {
    --color-bg-main: #181818;
    --color-bg-alt: #14151A;
    --color-bg-panel: #F0F1F4;
    --color-text-main: #F5F5F7;
    --color-text-muted: #A2A5AF;
    --color-accent: #FF7A2F;
    --color-accent-soft: rgba(255, 122, 47, 0.12);
    --color-orange: #FF7B00;
    --color-border-subtle: rgba(255, 255, 255, 0.06);
    --color-divider: rgba(255, 255, 255, 0.08);
    --font-sans: "Noto Sans SC", "Noto Sans CJK SC", "Noto Sans Simplified Chinese",
        system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;

    --page-max-width: 1240px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html {
    -webkit-overflow-scrolling: touch;
}

body {
    min-height: 100%;
    font-family: var(--font-sans);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    -webkit-font-smoothing: antialiased;
}

/* iOS Safari：适配底部安全区，避免内容被底部栏遮挡 */
@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* iOS Safari（如 iPhone 11）：避免 100vh 锁死地址栏高度，允许向下滑动时缩小底部栏 */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        html,
        body {
            height: auto ;
            min-height: 100%;
            overflow-y: auto;
        }
        body {
            /* 保证至少可滚动 1px，帮助 Safari 触发地址栏收缩 */
            min-height: calc(100% + 1px);
        }
    }
}

img {
    display: block;
}

ul,
li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--page-max-width);
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
}

/* ============================================
   通用组件：按钮与段落
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn--primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #111216;
}

.btn--primary:hover {
    background: #ff8e4f;
    border-color: #ff8e4f;
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    border-color: var(--color-border-subtle);
    color: var(--color-text-main);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
    /* H5：通用按钮常驻 hover 视觉（手机无 hover） */
    .btn--primary {
        background: #ff8e4f;
        border-color: #ff8e4f;
        transform: translateY(-1px);
    }
    .btn--ghost {
        background: rgba(255, 255, 255, 0.06);
    }
}

p {
    line-height: 1.8;
    font-size: 16px;
    color: var(--color-text-muted);
}

/* ============================================
   通用组件：模块标题
   ============================================ */

.section {
    padding: 96px 0;
}

.section__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section__eyebrow {
    font-size: 12px;
    color: var(--color-text-muted);
}

.section__title-group {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
}

.section__title-group--center {
    align-items: center;
    text-align: center;
}

.section__title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* 统一：关于我们 / 合作模式 / 成为一员 标题样式（Header L） */
.section__title--lead {
    height: 52px;
    width: fit-content;
    display: flex;
    align-items: center;
    font-family: 'PingFang SC', var(--font-sans);
    font-style: normal;
    font-weight: 600;
    font-size: 52px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: none;
    background: linear-gradient(90deg, #121212 0%, rgba(18, 18, 18, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* career-card：PC 显示原图，H5 显示 _h5 图，由下方媒体查询控制 */
.career-card__img--h5 {
    display: none;
}

/* ============================================
   顶部导航
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 1400;
    background: rgba(11, 11, 11, 0.8);
    /* Safari 需要 -webkit-backdrop-filter 前缀 */
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    height: 70px;
}

.site-header__logo {
    position: relative;
    width: 140px;
    height: 140px;
}

.site-header__logo-image {
    height: 105px;
    position: absolute;
    top: 35px;
    left: 0;
    display: block;
}

.site-header__logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: radial-gradient(circle at 0% 0%, #ffb347, #ff7a2f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #111216;
}

.site-header__nav-list {
    display: flex;
    justify-content: center;
    font-size: 16px;
    height: 70px;
    font-weight: 500;
    font-family: 'PingFang SC';
}

.site-header__nav-list li {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.site-header__nav-list li:not(:last-child)::after {
    content: "/";
    margin: 0 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

.site-header__nav-list a {
    position: relative;
    line-height: 70px;
    height: 70px;
    margin: 0 30px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s ease;
    user-select: none;
}

.site-header__nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-orange);
    transition: width 0.2s ease;
}

.site-header__nav-list a:hover {
    color: #ffffff;
}

.site-header__nav-list a:hover::after {
    width: 100%;
}

.site-header__nav-list a.is-active {
    color: #ffffff;
}

.site-header__nav-list a.is-active::after {
    width: 100%;
}

/* 不同语言下调整导航间距 */
html[lang="en"] .site-header__nav-list a {
    margin: 0 20px;
}

html[lang="ja"] .site-header__nav-list a {
    margin: 0 15px;
}

.site-header__nav-home{
    padding: 24px 0;
}
.site-header__nav-home img {
    width: 32px;
    display: block;
}

/* 导航末尾：多语言 LN + 空心 caret（^），悬停展开选择框 */
.site-header__nav-lang-wrap {
    position: relative;
}

.site-header__nav-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 30px;
    padding: 0;
    line-height: 70px;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.3);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
}

.site-header__nav-lang::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-orange);
    transition: width 0.2s ease;
}

.site-header__nav-lang-wrap:hover .site-header__nav-lang {
    color: #ffffff;
}

.site-header__nav-lang-wrap:hover .site-header__nav-lang::after {
    width: 0;
}

/* LN 按钮箭头：用 Arrow.svg（PC/H5 统一资源） */
.site-header__nav-lang-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 7px;
    height: 5px;
    margin-left: -2px;
    opacity: 0.4;
    transform-origin: center center;
    transition: transform 0.2s ease;
    background: url("../images/index/Arrow.svg") no-repeat center;
    background-size: 100% 100%;
}

.site-header__nav-lang-caret::before {
    content: "";
}

.site-header__nav-lang-wrap:hover .site-header__nav-lang-caret {
    transform: rotate(180deg);
    opacity: 1;
}

/* 语言选择下拉框：鼠标移入 LN 时显示（外轮廓与设计稿一致） */
.site-header__lang-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 138px;
    padding: 0;
    background: rgba(11, 11, 11, 0.8);
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.site-header__nav-lang-wrap:hover .site-header__lang-dropdown {
    visibility: visible;
}

.site-header__lang-option {
    display: flex;
    align-items: center;
    flex: 1;
    width: 100%;
    padding: 0 12px;
    letter-spacing: 0.03em;
    line-height: 1.3;
    font-size: 14px;
    font-family: inherit;
    color: rgba(217, 217, 217, 0.3);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-header__lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #D9D9D9;
}

.site-header__lang-option.is-current {
    color: #D9D9D9;
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    background-color: #1E1E1E;
}

.site-header__mail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 70px;
    font-size: 16px;
    gap: 8px;
    color: #ffffff;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header__mail-icon {
    width: 16px;
    height: 12px;
    display: block;
}

.site-header__mail:hover {
    background-color: var(--color-orange);
    color: #FFFFFF;
}

.lang-switcher {
    border-radius: 999px;
    font-size: 16px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
}

/* H5 导航展开按钮（默认仅 PC 隐藏） */
.site-header__nav-toggle {
    display: none;
    width: 60px;
    height: 60px;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.site-header__nav-toggle-icon {
    width: 23px;
    height: 21px;
    display: block;
    margin: 0 auto;
}

/* 移动端导航全屏遮罩（默认隐藏，仅移动端用） */
.mobile-nav-overlay {
    display: none;
}

.mobile-nav-overlay.is-open {
    display: block;
}

/* 打开移动导航时禁止页面滚动 */
html.mobile-nav-open,
html.mobile-nav-open body {
    overflow: hidden;
}

/* ============================================
   页脚
   ============================================ */

.site-footer {
    width: 100%;
    height: 240px;
    background: #111111;    
}

.site-footer__logo-row {
    display: flex;
    justify-content: center;
    padding:50px 0 70px;
}

.site-footer__logo {
    height: 40px;
    width: auto;
    display: block;
}

.site-footer__inner {
    padding: 27px 0;
    border-top: 1px solid #181818;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    >p,div{
        color: #525252;
    }
}

.site-footer__brand {
    font-size: 14px;
}
.site-footer__meta {
    margin-left: -120px;
    font-size: 14px;
}
.site-footer__links {
    display: flex;
    justify-content: flex-end;
    font-size: 14px;
}

.site-footer__link--button {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
}

/* ============================================
   移动端导航（≤768px）
   仅保留左侧 LOGO 与右侧图标按钮
   ============================================ */

@media (max-width: 768px) {
    /* H5：全站统一 rem 基准，390px 设计稿 → 1rem ≈ 100px */
    html {
        font-size: calc(100vw / 3.9);
    }

    /* H5：大标题高度自适应，避免固定 52px 截断 */
    .section__title--lead {
        height: auto;
    }
    .career .section__title.section__title--lead{
        white-space: nowrap;
    }
    /* H5：career-card 只显示 _h5 图，不显示 PC 图（无轮播，直接展示） */
    .career-card__img--pc {
        display: none;
    }
    .career-card .career-card__img--h5 {
        display: block;
        margin: 0 auto;
        width: 100%;
    }

    .site-header__inner {
        padding: 0 0.16rem;
        height: 0.6rem;
    }

    .site-header__logo {
        width: 1.2rem;
        height: 0.6rem;
    }

    .site-header__logo-image {
        height: 0.9rem;
        top: 0;
        left: -0.16rem;
    }

    /* 隐藏中间整组导航（含语言下拉），仅保留左右两端 */
    .site-header__nav {
        display: none;
    }

    /* PC 右侧邮件按钮在移动端不展示 */
    .site-header__actions {
        display: none;
    }

    /* 移动端显示展开导航按钮 */
    .site-header__nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Footer：总高 2.8rem，Logo 行 1.3rem，底部行 1.5rem */
    .site-footer {
        height: 2.8rem;
    }

    .site-footer__logo-row {
        height: 1.3rem;
        padding: 0;
        align-items: center;
    }

    .site-footer__inner {
        height: 1.5rem;
        width: 100%;
        padding: 0.3rem 0;
        margin: 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: unset;
    }

    /* 链接行在最上面 */
    .site-footer__links {
        order: -1;
        justify-content: center;
        padding-bottom: 0.22rem;
    }

    .site-footer__brand {
        text-align: center;
    }

    .site-footer__meta {
        margin-left: unset;
        text-align: center;
    }

    /* H5 全屏导航弹窗：覆盖整个页面，但 header 在其之上 */
    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        z-index: 1300;
    }

    .mobile-nav-overlay__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        /* Safari 需要 -webkit-backdrop-filter 前缀 */
        -webkit-backdrop-filter: blur(0.12rem);
        backdrop-filter: blur(0.12rem);
    }

    .mobile-nav-overlay__content {
        position: relative;
        z-index: 1;
        height: 100%;
        padding: 125px 0 36px;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav-overlay.is-open .mobile-nav-overlay__content {
        display: flex;
    }

    /* 多语言展开时，整体内容略微上移（与设计稿对齐） */
    .mobile-nav-overlay.show-lang .mobile-nav-overlay__content {
        padding: 110px 0 36px;
    }

    .mobile-nav {
        text-align: center;
    }

    .mobile-nav__list {
        width: 100%;
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        font-family: 'PingFang SC';
        font-style: normal;
        font-weight: 400;
        font-size: 0.18rem;
        line-height: 25px;
        text-align: center;
        color: #525252;
    }

    .mobile-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .mobile-nav__item.is-current .mobile-nav__link{
        color: #FFFFFF;
        border-bottom: 0.02rem solid var(--color-orange);
    }

    .mobile-nav__item::after {
        content: "/"; /* 设计稿中的分隔符 */
        font-family: 'PingFang SC';
        font-style: normal;
        font-weight: 400;
        font-size: 0.1rem;
        line-height: 0.14rem;
    }

    .mobile-nav__item:last-child::after {
        content: "";
    }


    .mobile-nav__item--langs::after {
        content: "";
    }
    li.mobile-nav__item--langs{
        margin-bottom: 15px;
    }
    .mobile-nav__link {
        text-decoration: none;
        color: #525252;
        line-height: 2;
        padding: 0 0.06rem;
    }

  
    .mobile-nav__link--home{
        padding: 0 0.08rem 0.08rem;
    }
    .mobile-nav__link--home img {
        width: 32px;
        height: 22px;
        display: block;
        opacity: 0.3;
    }
    .mobile-nav__item--home.is-current .mobile-nav__link--home img{
        opacity: 1;
    }
    .mobile-nav__lang-toggle {
        background: none;
        border: none;
        color: inherit;
        font-size: 0.14rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 0.04rem;
    }

    .mobile-nav__lang-toggle::after {
        content: "";
        display: inline-block;
        width: 0.07rem;
        height: 0.05rem;
        opacity: 0.4;
        background: url("../images/index/Arrow.svg") no-repeat center;
        background-size: 100% 100%;
        transform: translateY(-0.01rem);
    }

    .mobile-nav__lang-list {
        list-style: none;
        padding: 0.16rem 0 0;
        display: none;
        flex-direction: column;
        gap: 0.02rem;
        line-height: 2;
    }
    .mobile-nav__lang-list li button{
        font-size: 0.16rem;
    }
    .mobile-nav-overlay.show-lang .mobile-nav__lang-list {
        display: flex;
    }

    .mobile-nav__lang-option {
        background: none;
        border: none;
        color: #525252;
        cursor: pointer;
    }

    .mobile-nav__lang-option.is-current {
        color: #FFFFFF;
    }

    .mobile-nav-overlay__footer {
        margin-top: auto;
        text-align: center;
        font-size: 0.12rem;
        color: #525252;
    }

    .mobile-nav-overlay__footer .site-footer__link--button {
        margin-bottom: 0.12rem;
    }
    .site-footer__brand,.site-footer__meta{
        color: #525252;
    }

    /* 展开态：导航间距稍微收紧（默认高度） */
    .mobile-nav-overlay.show-lang .mobile-nav__list {
        gap: 0.06rem;
    }
    /* .mobile-nav-overlay.show-lang .mobile-nav__list .mobile-nav__item{
        gap: 0.04rem;
    } */

    /* 展开导航时，右上角按钮变成 X */
    html.mobile-nav-open .site-header__nav-toggle-icon {
        display: none;
    }

    html.mobile-nav-open .site-header__nav-toggle {
        position: relative;
    }

    html.mobile-nav-open .site-header__nav-toggle::before,
    html.mobile-nav-open .site-header__nav-toggle::after {
        content: "";
        position: absolute;
        width: 0.22rem;
        height: 0.02rem;
        background: #ffffff;
        top: 50%;
        left: 50%;
        transform-origin: center;
        border-radius: 0.01rem;
    }

    html.mobile-nav-open .site-header__nav-toggle::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    html.mobile-nav-open .site-header__nav-toggle::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    /* 高度 <= 740px 的手机适配：整体上移，展开时间距压缩为 0 */
    @media screen and (max-height: 760px) {
        .mobile-nav-overlay__content {
            padding: 1.12rem 0 0.36rem;
        }
        .mobile-nav-overlay .mobile-nav__list {
            gap: 0.06rem;
        }

        .mobile-nav-overlay .mobile-nav__list .mobile-nav__item {
            gap: 0.06rem;
        }

        .mobile-nav-overlay.show-lang .mobile-nav__list {
            gap: 0;
        }

        .mobile-nav-overlay.show-lang .mobile-nav__list .mobile-nav__item {
            gap: 0;
        }
    }

    /* H5 隐私弹窗：330 x 420 居中显示，直接使用背景图 pop_bg_h5 */
    div.privacy-modal__dialog {
        width: 3.3rem;
        padding: 0.4rem 0.25rem;
        max-height: 80vh;
        display: flex;
        flex-direction: column;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 0 0.16rem 0.4rem rgba(0, 0, 0, 0.85);
        margin: 0;
        background: rgba(24, 24, 24, 0.98) url("../images/footer/pop_bg_h5.png") no-repeat right top;
        background-size: contain;
    }

    div.privacy-modal__title {
        font-family: 'PingFang SC';
        font-size: 0.32rem;
        line-height: 1.16;
    }

    button.privacy-modal__close {
        top: -0.4rem;
        right: 0;
        z-index: 2;
    }

    .privacy-modal__content {
        overflow-y: auto;
        max-height: calc(80vh - 0.55rem);
    }

    /* H5：不使用伪元素背景图 */
    .privacy-modal__dialog::after {
        content: none;
    }

    /* H5 + 日语时：大标题字号 0.43rem */
    html[lang="ja"] .section__title.section__title--lead {
        font-size: 0.4rem;
    }
}

/* ============================================
   隐私弹窗
   ============================================ */

.privacy-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1400;
}

.privacy-modal.is-open {
    display: block;
}

.privacy-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.privacy-modal__dialog {
    position: relative;
    z-index: 1;
    width: 588px;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(24, 24, 24, 0.98);
    padding: 60px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
    color: #f5f5f5;
}

.privacy-modal__dialog::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 435px;
    height: 358px;
    background-image: url("../images/footer/pop_bg.png");
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
    pointer-events: none;
    z-index: -1;
}

.privacy-modal__close {
    position: absolute;
    top: 0;
    right: -38px;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.privacy-modal__close-icon {
    position: relative;
    height: 34px;
    display: block;
}

.privacy-modal__close-icon::before,
.privacy-modal__close-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 4px;
    background: #D9D9D9;
    border-radius: 0.1rem;
    transform-origin: center;
}

.privacy-modal__close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.privacy-modal__close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.privacy-modal__title {
    font-family: 'PingFang SC';
    font-size: 36px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, rgba(217, 217, 217, 1) 0%, rgba(217, 217, 217, 0.1) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.privacy-modal__body p ,.privacy-modal__body div{
    font-size: 16px;
    line-height: 1.8;
    color: #d9d9d9;
}

.privacy-modal__body p + p {
    margin-top: 10px;
}