/* 新版站点壳层：页面底色、导航（256:877）与页脚（256:561）。 */
*, *::before, *::after { box-sizing: border-box; }
.site-v2 [hidden] { display: none; }
html { min-width: var(--page-min-width); scroll-behavior: smooth; }
body.site-v2 {
    margin: 0;
    min-width: var(--page-min-width);
    color: var(--color-ink);
    background: var(--color-page);
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
}
a { color: inherit; text-decoration: none; }
img { border: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(122, 211, 84, .45);
    outline-offset: 3px;
}
#main-content { min-height: 420px; }
.v2-container { width: var(--content-width); margin: 0 auto; }

/* 导航 256:877：内容列 1200px，顶部 30px，行高 42px，当前项下方 64×3px 指示条。 */
.v2-header { position: absolute; z-index: 20; top: 30px; left: 0; width: max(100%, var(--page-min-width)); }
.jl-site-warning-bar ~ .v2-header,
.site-v2:has(.jl-site-warning-bar) .v2-header { top: calc(30px + 36px); }
.v2-header__inner { position: relative; width: var(--content-width); height: 42px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.v2-header__lead { display: flex; align-items: center; gap: 60px; }
.v2-brand { display: block; width: 141px; height: 32px; }
.v2-brand img { display: block; width: 141px; height: 32px; }
.v2-nav { display: flex; align-items: center; gap: var(--space-2xl); }
.v2-nav__item { position: relative; height: 42px; display: inline-flex; align-items: center; color: var(--color-ink); white-space: nowrap; transition: color .16s ease; }
.v2-nav__item:hover { color: var(--color-brand); }
.v2-nav__trigger { padding: 0; border: 0; background: transparent; cursor: pointer; }
.v2-nav__trigger:focus-visible { color: var(--color-brand); outline: 0; box-shadow: inset 0 -2px 0 var(--color-brand); }
.v2-nav__trigger.is-active:focus-visible { box-shadow: none; }
.v2-nav__item.is-active { font-weight: var(--font-weight-medium); }
.v2-nav__item.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 64px;
    height: 3px;
    transform: translateX(-50%);
    background: var(--color-brand);
    border-radius: 1px;
    clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 100%, 0 100%);
}
.v2-header__actions { min-width: 270px; display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2xl); }
.v2-header__actions .v2-button { width: 110px; min-width: 110px; height: 42px; padding: 0; font-size: 16px; }

/* 登录态：极简文字+微图标 Header 用户入口与紧凑下拉菜单 */
.v2-cloud-user { position: relative; }
.v2-cloud-user__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    color: var(--color-ink);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    transition: color 0.16s ease;
}
.v2-cloud-user__trigger:hover,
.v2-cloud-user__trigger[aria-expanded="true"] {
    color: var(--color-brand);
}
.v2-cloud-user__icon {
    color: var(--color-text-secondary);
    transition: color 0.16s ease;
}
.v2-cloud-user__trigger:hover .v2-cloud-user__icon,
.v2-cloud-user__trigger[aria-expanded="true"] .v2-cloud-user__icon {
    color: var(--color-brand);
}
.v2-cloud-user__name {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: inherit;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.v2-cloud-user__chevron {
    color: var(--color-text-secondary);
    transition: transform 0.2s ease, color 0.16s ease;
    margin-left: 2px;
}
.v2-cloud-user__trigger:hover .v2-cloud-user__chevron,
.v2-cloud-user__trigger[aria-expanded="true"] .v2-cloud-user__chevron {
    color: var(--color-brand);
}
.v2-cloud-user__trigger[aria-expanded="true"] .v2-cloud-user__chevron {
    transform: rotate(180deg);
}

/* 紧凑精致下拉菜单面板 (宽 176px) */
.v2-cloud-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 176px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
    padding: 6px;
    z-index: 100;
}
.v2-cloud-dropdown[hidden] { display: none; }

/* 头部账号与认证微标签 */
.v2-cloud-dropdown__user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px 8px;
    border-bottom: 1px solid #f0f0f4;
    margin-bottom: 4px;
}
.v2-cloud-dropdown__username {
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    color: var(--color-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.v2-cloud-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    background: #f2f3f7;
    color: var(--color-text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}
.v2-cloud-badge.is-verified {
    background: #eef8eb;
    color: #2b7a10;
    font-weight: var(--font-weight-medium);
}

/* 链接项列表 */
.v2-cloud-dropdown__links {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.v2-cloud-dropdown__link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 6px;
    color: var(--color-text-primary);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.v2-cloud-dropdown__link:hover {
    background: #f4f5f8;
    color: var(--color-brand);
}
.v2-cloud-dropdown__link svg {
    color: #7b8090;
    flex-shrink: 0;
}
.v2-cloud-dropdown__link:hover svg {
    color: var(--color-brand);
}

/* 底部退出 */
.v2-cloud-dropdown__footer {
    border-top: 1px solid #f0f0f4;
    margin-top: 4px;
    padding-top: 4px;
}
.v2-cloud-dropdown__logout {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 6px;
    color: #666a75;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.v2-cloud-dropdown__logout:hover {
    background: #fdf2f2;
    color: #e03131;
}
.v2-cloud-dropdown__logout svg {
    color: currentColor;
    flex-shrink: 0;
}

.v2-header__actions .v2-button--console {
    width: 100px;
    min-width: 100px;
    height: 38px;
    font-size: 14px;
}

/* 产品下拉 256:4113：与导航内容列左对齐，标题下方并排两张产品卡。 */
.v2-nav__dropdown { position: static; }
.v2-product-menu {
    position: absolute;
    top: 58px;
    left: 0;
    width: 860px;
    height: 312px;
    padding: 19px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-card);
    box-shadow: 0 14px 36px rgba(40, 44, 51, .12);
}
.v2-product-menu h2 { margin: 0 0 20px; font-size: 18px; line-height: 27px; font-weight: var(--font-weight-medium); }
.v2-product-menu__grid { display: grid; grid-template-columns: repeat(2, 400px); gap: 20px; }
.v2-product-menu__card { height: 225px; padding: 14px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-card); cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.v2-product-menu__card:hover { background: #f5f4f7; border-color: #d8dce5; }
.v2-product-menu__card:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.v2-product-menu__heading { display: inline-flex; align-items: center; gap: 12px; }
.v2-product-menu__heading strong {
    color: #282c33;
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 27px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}
.v2-product-menu__card > p { height: 35px; margin: 8px 0 5px; color: var(--color-text-secondary); font-size: 14px; line-height: 22px; }
.v2-product-menu__card ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 15px; min-height: 50px; margin: 0; padding: 0; list-style: none; color: #282c33; font-family: var(--font-sans); font-size: 12px; font-style: normal; font-weight: 400; letter-spacing: 0; line-height: 22px; text-align: left; text-transform: none; }
.v2-product-menu__card li { position: relative; padding-left: 19px; white-space: nowrap; }
.v2-product-menu__card li::before { content: "\2713"; position: absolute; top: 5px; left: 0; width: 13px; height: 13px; border-radius: 50%; color: #fff; background: var(--color-brand); font-size: 9px; font-weight: 700; line-height: 13px; text-align: center; }
.v2-product-menu__actions { display: flex; align-items: center; gap: 20px; margin-top: 25px; }
.v2-product-menu__actions .v2-button { width: 80px; height: 34px; padding: 0 10px; border-radius: 6px; font-size: 13px; }
.v2-product-menu__actions .v2-button--dark { background: #2b2c33; border-color: #2b2c33; }
.v2-product-menu__actions .v2-button--outline { width: 88px; height: 34px; color: #2b2c33; border: 1px solid #2b2c33; border-radius: 6px; }
.v2-product-menu__docs { color: var(--color-text-secondary); font-size: 13px; line-height: 34px; }
.v2-product-menu__docs:hover { color: var(--color-ink); }
.v2-product-icon { width: 32px; height: 32px; display: inline-flex; flex: 0 0 32px; }
.v2-product-icon img { display: block; width: 32px; height: 32px; }

/* 页脚 256:561：默认常规页脚（标准页面流） */
.v2-footer {
    position: relative;
    z-index: 0;
    margin-top: 0;
    padding: 60px 0 40px;
    color: var(--color-on-dark);
    background: var(--color-ink);
}

/* 官网首页 CTA 覆盖模式：下半部分压在页脚深色底上 */
.site-v2--home .v2-footer,
body:has(.v2-home-cta) .v2-footer {
    margin-top: -174px;
    padding: 314px 0 74px;
}
.v2-footer__inner { width: var(--content-width); margin: 0 auto 50px; display: flex; justify-content: space-between; }
.v2-footer__intro { width: 560px; }
.v2-footer__brand { display: block; width: 184px; height: 50px; }
.v2-footer__brand img { display: block; width: 184px; height: 50px; }
.v2-footer__copyright { margin: 16px 0 0; line-height: 24px; }
.v2-footer__desc { margin: 16px 0 0; line-height: 26px; }
.v2-footer__contact { margin: 14px 0 0; line-height: 24px; }
.v2-footer__contact + .v2-footer__contact { margin-top: 6px; }
.v2-footer__contact a, .v2-footer__contact strong { font-weight: var(--font-weight-medium); }
.v2-footer__muted { color: var(--color-on-dark-label); font-weight: 400; }
.v2-footer__groups { display: flex; gap: 48px; padding-top: 3px; justify-content: flex-end; }
.v2-footer__group { min-width: max-content; display: flex; flex-direction: column; gap: 10px; }
.v2-footer__group h2 { margin: 0 0 18px;   /* 列用 gap:10，18+10=28，与设计稿标题到首个链接的 28px 一致 */ font-size: 16px; font-weight: 400; line-height: 24px; color: var(--color-on-dark-label); white-space: nowrap; }
.v2-footer__group a { line-height: 24px; white-space: nowrap; }
.v2-footer__intro a, .v2-footer__group a { transition: color .16s ease; }
.v2-footer__intro a:hover, .v2-footer__group a:hover { color: var(--color-brand); }
.v2-footer__legal {
    position: relative;
    width: var(--content-width);
    margin: 0 auto;
    padding: 9px 0 0 18px;
    border-top: 1px solid var(--color-divider-dark);
    font-size: 14px;
    line-height: 22px;
    white-space: pre;
}
.v2-footer__legal img { position: absolute; left: 0; top: 13px; width: 14px; height: 14px; object-fit: cover; }
