* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--en-text-primary);
    background: #ffffff;
}

a {
    color: inherit;
}

.en-container {
    width: 100%;
    /* max-width: 1440px; */
    margin: 0 auto;
    z-index: 10;
}

.en-main {
    min-height: calc(100vh - 160px);
    box-sizing: border-box;
    /* padding: 0 32px; */
    /* 英文排版：优先在空格处换行，避免单词从中间断开（比 break-word/anywhere 更体面） */
    word-break: normal;
    overflow-wrap: normal;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.en-section {
    padding: 96px 0;
}

.en-section-alt {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.en-section-tag {
    display: inline-flex;
    align-items: center;
    margin: 0 0 20px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(43, 106, 255, 0.08);
    color: var(--en-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.en-section h2 {
    margin: 0 0 18px;
    font-size: var(--en-font-size-h1);
    line-height: var(--en-line-height-h1);
    letter-spacing: -0.02em;
}

.en-mobile-menu-route {
    background: #ffffff;
}

.en-mobile-menu-route  {
    min-height: 100vh;
}

.en-mobile-page {
    min-height: 100vh;
    background: #ffffff;
}

.en-mobile-page__shell {
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
}

.en-mobile-page__frame {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.en-mobile-page__brandbar {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 12px 0 16px;
    flex-shrink: 0;
}

.en-mobile-page__brandbar .en-brand {
    gap: 8px;
    min-width: 0;
}

.en-mobile-page__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.en-mobile-page__icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.en-mobile-page__nav {
    display: flex;
    flex-direction: column;
}

.en-mobile-page__entry {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #EBEEF5;
    color: #101828;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
}

.en-mobile-page__entry--leaf {
    border-bottom: 0;
}

.en-mobile-align-top {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
    color: #98A2B3;
}

.en-mobile-page__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
}

.en-mobile-page__actions .en-btn {
    width: 100%;
}

.en-mobile-page__subbar {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    flex-shrink: 0;

}

.en-mobile-page__back {
    width: 16px;
    height: 16px;

}

.en-mobile-page__title {
    color: #101828;
    font-size: 15px;
    font-weight: 5 00;
    line-height: 22px;
    margin-left: 10px;
}

.en-mobile-page__divider {
    height: 1px;
    margin: 0 16px;
    background: #eaecf0;
    flex-shrink: 0;
}

.en-mobile-page__content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
}

.en-mobile-page__groups {
    display: flex;
    flex-direction: column;
    margin: 16px 0;
}

.en-mobile-page__group-title {
    margin-bottom: 12px;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

.en-mobile-page__card {
    display: block;
    padding: 0 0 16px;
    text-decoration: none;
}

.en-mobile-page__card+.en-mobile-page__card {
    padding-top: 4px;
}

.en-mobile-page__card-name {
    display: block;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
}

.en-mobile-page__card-desc {
    display: block;
    margin-top: 2px;
    color: #667085;
    font-size: 13px;
    line-height: 20px;
}

.en-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.en-card,
.en-capability-card,
.en-partner-card,
.en-stat-card {
    position: relative;
    overflow: hidden;
    background: var(--en-bg-card);
    border: 1px solid var(--en-border);
    border-radius: var(--en-radius-lg);
    box-shadow: var(--en-shadow);
}

.en-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px;
}

.en-card__tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 20px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(43, 106, 255, 0.08);
    color: var(--en-primary);
    font-size: 13px;
    font-weight: 600;
}

.en-card h3 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.35;
}

.en-card p {
    margin: 0;
    color: var(--en-text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.en-card__list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.en-card__list li {
    position: relative;
    padding-left: 18px;
    color: var(--en-text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.en-card__list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--en-primary);
}

.en-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.en-capability-card {
    padding: 32px 28px;
}

.en-capability-card h3 {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.35;
}

.en-capability-card p {
    margin: 0;
    color: var(--en-text-secondary);
    font-size: 15px;
    line-height: 1.9;
}

.en-partners {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.en-partner-card {
    min-height: 200px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 245, 255, 0.98) 100%);
}

.en-partner-card__type {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--en-text-tertiary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.en-partner-card h3 {
    margin: 30px 0 0;
    font-size: 22px;
    line-height: 1.4;
}

.en-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.en-stat-card {
    padding: 28px;
    background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
}

.en-stat-card strong {
    display: block;
    font-size: 42px;
    line-height: 1;
    color: var(--en-primary-dark);
}

.en-stat-card span {
    display: block;
    margin-top: 12px;
    color: var(--en-text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 799px) {
    .en-container {
        padding: 0 16px;
    }

    .en-section {
        padding: 64px 0;
    }

    .en-section h2 {
        font-size: var(--en-font-size-h1);
    }

    .en-card p,
    .en-capability-card p {
        font-size: 14px;
    }

    .en-grid,
    .en-capability-grid,
    .en-partners,
    .en-stats {
        grid-template-columns: 1fr;
    }

    .en-card,
    .en-capability-card,
    .en-partner-card,
    .en-stat-card {
        border-radius: 24px;
    }

    .en-btn,
    .en-btn--small {
        width: 100%;
    }
}

/* 共用视图会 register 主站 style.css，其中 body{padding-top} 为中文顶栏预留；英文壳已有独立 header，去掉叠层留白 */
/*
 * 用户中心壳：html 上勿用 overflow-x: clip/hidden。
 * clip/hidden 会切断 position:sticky 的滚动链，导致 /en/user/user-info、/en/system/company-info 等页顶栏无法吸顶；
 * my-application 等页因内容未撑出横向溢出，表现上「正常」，实为未触发问题。
 * 横向溢出由 en-dialog-overrides 中 .right_content 等在窄屏下 overflow-x:auto 承接。
 */
html.en-user-center-html {
    overflow-x: visible;
    max-width: 100%;
}

body.en-user-center-shell {
    padding-top: 0 !important;
    min-width: 0;
    max-width: 100%;
    overflow-x: visible;
}

/* 英文头尾 + 共用用户中心内嵌页 */
body.en-user-center-shell .en-main {
    font-family: var(--en-font-family);
    font-size: var(--en-font-size-body);
    max-width: 100%;
    box-sizing: border-box;
}

/* iPad / 移动端：主内容与中文站类似留出左右边距，避免贴边与裁切 */
@media (max-width: 1279px) {
    body.en-user-center-shell .en-main {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 767px) {
    body.en-user-center-shell .en-main {
        padding-left: 12px;
        padding-right: 12px;
    }
}
