/* V4 全局顶栏 */
body#index.v4-app {
    flex-direction: column;
    background: var(--v4-bg, #f5f7fa);
    height: 100%;
    overflow: hidden;
}

.v4-shell {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.v4-notice-bar {
    flex: 0 0 auto;
    height: var(--v4-notice-h);
    line-height: var(--v4-notice-h);
    background: linear-gradient(90deg, #fff8e6 0%, #fff 100%);
    border-bottom: 1px solid #f0e6cc;
    overflow: hidden;
    white-space: nowrap;
}

.v4-notice-bar .v4-notice-inner {
    display: inline-block;
    padding: 0 24px;
    font-size: 13px;
    color: #c45a00;
}

.v4-notice-bar .v4-notice-tag {
    display: inline-block;
    margin-right: 8px;
    padding: 0 8px;
    height: 20px;
    line-height: 20px;
    background: #ff6633;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    vertical-align: middle;
}

.v4-header {
    flex: 0 0 auto;
    background: var(--v4-header-bg, #3a539b);
    box-shadow: 0 2px 8px rgba(26, 38, 82, 0.25);
    z-index: 100;
    overflow: visible;
}

.v4-header-inner {
    display: flex;
    align-items: center;
    min-height: var(--v4-header-h);
    padding: 0 20px;
}

.v4-header-logo {
    flex: 0 0 200px;
    width: 200px;
    box-sizing: border-box;
    text-align: center;
    padding: 6px 0;
    background: transparent;
    border-right: none;
    cursor: pointer;
}
.v4-header-logo span {
    display: inline-block;
}

.v4-header-logo .logoImg img {
    width: 40px;
    height: auto;
    cursor: default;
    vertical-align: middle;
}

.v4-header-logo .logoText img {
    width: 95px;
    margin-top: 5px;
    height: auto;
    cursor: default;
    vertical-align: middle;
}

/* 中间导航：在 Logo 与用户中心之间水平居中；过窄时横向滚动 */
.v4-header-nav {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: safe center;
    gap: 2px;
    overflow-x: hidden;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 0 8px;
    -webkit-overflow-scrolling: touch;
}

/* 带下拉的顶栏项 */
.v4-nav-item {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.v4-header-nav > a,
.v4-nav-item > a[data-v4-nav],
.v4-user-center-wrap > #v4UserCenterBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 20px;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
    color: var(--v4-header-nav-text, #fff);
    text-decoration: none;
    border-radius: 999px;
    border-bottom: none;
    transition: background .2s, color .2s, opacity .2s;
}

/* hover：白底胶囊（首页深蓝顶栏） */
.v4-header-nav > a:hover,
.v4-nav-item > a[data-v4-nav]:hover,
.v4-nav-item.is-open > a[data-v4-nav],
.v4-user-center-wrap > #v4UserCenterBtn:hover {
    background: #fff;
    color: var(--v4-header-pill-text, #111);
    opacity: 1;
}

/* 产品下拉：fixed 定位由 JS 写入，避免被导航 overflow 裁切 */
.v4-nav-dropdown {
    display: none;
    position: fixed;
    z-index: 1200;
    padding-top: 12px; /* 与顶栏按钮之间的热区，鼠标在导航项↔下拉间移动不断开 */
    box-sizing: border-box;
}

.v4-nav-dropdown.show {
    display: block;
}

.v4-nav-dropdown-inner {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(26, 38, 82, 0.16);
    border: 1px solid rgba(26, 38, 82, 0.06);
}

.v4-nav-dropdown a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    line-height: 1.3;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    background: #fff;
    border-radius: 0;
    height: auto;
}

.v4-nav-dropdown a:hover {
    background: #f0f4fb;
    color: var(--v4-header-bg, #3a539b);
}

/* 用户中心：与左侧 Logo 同宽，内容靠右，中间导航视觉居中 */
.v4-header-inner > .v4-user-center-wrap {
    flex: 0 0 200px;
    width: 200px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: 0;
    padding-right: 0;
}

/* 产品 / 用户中心：白底黑字顶栏 */
/*body.v4-app:not(.index-home-mode) .v4-header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e8e8e8;
}

body.v4-app:not(.index-home-mode) .v4-header-nav > a,
body.v4-app:not(.index-home-mode) .v4-nav-item > a[data-v4-nav],
body.v4-app:not(.index-home-mode) .v4-user-center-wrap > #v4UserCenterBtn {
    color: #222;
}

body.v4-app:not(.index-home-mode) .v4-header-nav > a:hover,
body.v4-app:not(.index-home-mode) .v4-nav-item > a[data-v4-nav]:hover,
body.v4-app:not(.index-home-mode) .v4-nav-item.is-open > a[data-v4-nav],
body.v4-app:not(.index-home-mode) .v4-user-center-wrap > #v4UserCenterBtn:hover {
    background: #f0f2f5;
    color: #111;
}

body.v4-app:not(.index-home-mode) .v4-header-user,
body.v4-app:not(.index-home-mode) .v4-header-user .v4-company-name,
body.v4-app:not(.index-home-mode) .v4-header-quick a,
body.v4-app:not(.index-home-mode) .v4-more-btn {
    color: #222;
}

body.v4-app:not(.index-home-mode) .v4-header-quick a:hover,
body.v4-app:not(.index-home-mode) .v4-more-btn:hover {
    background: #f0f2f5;
    color: #111;
}

body.v4-app:not(.index-home-mode) .v4-header-quick a img,
body.v4-app:not(.index-home-mode) .v4-more-btn img {
    filter: none;
}*/

.v4-header-user {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
}

.v4-header-user .v4-company-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #fff;
}

.v4-header-quick {
    display: flex;
    align-items: center;
    gap: 4px;
}

.v4-header-quick a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border-radius: var(--v4-radius-sm);
    transition: background .2s, color .2s;
}

.v4-header-quick a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.v4-header-quick a img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.v4-more-wrap {
    position: relative;
}

.v4-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    border-radius: var(--v4-radius-sm);
    transition: background .2s, color .2s;
}

.v4-more-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.v4-more-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.v4-more-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    min-width: 160px;
    background: var(--v4-white);
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 200;
    padding: 6px 0;
}

.v4-more-menu.show {
    display: block;
}

.v4-more-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--v4-text);
    text-decoration: none;
}

.v4-more-menu a:hover {
    background: #eef5fb;
    color: var(--v4-primary);
}

.v4-more-menu .v4-more-divider {
    height: 1px;
    margin: 4px 0;
    background: var(--v4-border);
}

/* 首页模式：隐藏左侧产品导航 */
body.index-home-mode .index-l {
    display: none;
}

body.index-home-mode .v4-header-logo {
    border-right: none;
}

body.index-home-mode .tab-box {
    display: none;
}

body.index-home-mode .content-r .cusInfoContent {
    display: none;
}

body.index-home-mode .page-box {
    height: 100%;
}

body.index-home-mode .page-wrap {
    overflow: hidden;
}

body.index-home-mode .page-item.jPageCurr {
    height: 100%;
}

body.index-home-mode .page-item.jPageCurr iframe {
    display: block;
    width: 100%;
    height: 100% !important;
    border: none;
}

/* 产品/用户中心等内页：iframe 填满可视区，由页内滚动 */
body.v4-app:not(.index-home-mode) .page-item.jPageCurr iframe.iframeStyle {
    display: block;
    width: 100%;
    height: 100% !important;
    border: none;
}

@media (max-width: 1574px) {
    body.index-home-mode .page-box {
        height: 100%;
    }
}
