/* ============================================================
   盒子云 UI 全局框架层（header.css）
   设计依据：/public/ui/index.html + index2.html（猫云控制台）
   覆盖范围：顶栏（品牌/面包屑/动作区）、侧边导航、移动端抽屉
   加载顺序：位于 common.css 之后（见 header.php）
   ============================================================ */

/* 主要文本字体（保留原字体资源） */
@font-face {
    font-family: 'MyFont';
    src: url('../font/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Bold.woff2') format('woff2'),
        url('../font/HarmonyOS_Sans_SC/HarmonyOS_Sans_SC_Bold.woff2') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* 设计令牌（与 ui 参考页保持一致） */
    --hz-blue: #1667f5;
    --hz-blue-dark: #0758e8;
    --hz-blue-2: #eaf2ff;
    --hz-hover: #f0f6ff;
    --hz-ink: #1d2636;
    --hz-muted: #7c8898;
    --hz-line: #e7ebf1;
    --hz-canvas: #f4f6fa;
    --hz-card: #fff;
    --hz-orange: #ff7b00;
    --hz-green: #19b36b;
    --hz-danger: #e54c4c;
    --hz-shadow-sm: 0 2px 10px rgba(30, 48, 77, .045);
    --hz-shadow-md: 0 10px 26px rgba(30, 48, 77, .10);
    --hz-font: Inter, "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --hz-radius: 4px;
    --hz-transition: all .16s ease;
}

body {
    overflow-x: hidden;
}

/* ============ 顶栏（60px 白色玻璃拟态） ============ */
.el-header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 60px !important;
    line-height: normal;
    padding: 0 20px 0 0 !important;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e7eaf0;
    box-shadow: 0 1px 7px rgba(26, 42, 68, .025);
    font-family: var(--hz-font);
    z-index: 1000;
}

.header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
    height: 100%;
}

/* 顶栏 Logo 区（自适应宽度，不再与侧栏对齐） */
.Hui-gai {
    height: 100%;
    width: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    border-right: none;
    cursor: pointer;
    z-index: 1000;
    position: relative;
    padding: 0 8px;
}

.Hui-gai .Hui-logo {
    max-width: 150px;
    max-height: 30px;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 0;
    box-sizing: content-box;
}

/* 顶栏菜单按钮（移动端显示） */
.menu-img {
    display: none;
    cursor: pointer;
}

/* 控制台入口按钮 */
.header-left .Heziyun-console {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #2f3948;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 12px;
    border-radius: 5px;
    transition: var(--hz-transition);
    white-space: nowrap;
}

.header-left .Heziyun-console svg {
    color: var(--hz-blue);
}

.header-left .Heziyun-console:hover {
    color: var(--hz-blue);
    background: var(--hz-hover);
}

/* 当前位置面包屑 */
.hz-crumb {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #2c3543;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: var(--hz-transition);
}

.hz-crumb svg {
    width: 16px;
    height: 16px;
    color: #535a66;
    flex: 0 0 auto;
}

/* 顶栏搜索（仅部分页面开启） */
.header-left .left-img {
    height: 16px;
    width: auto;
    margin-left: 4px;
    cursor: pointer;
}

.header-left .el-autocomplete .el-input__inner {
    height: 32px;
    line-height: 32px;
    width: 220px;
    background: var(--hz-canvas);
    border: 1px solid transparent;
    border-radius: var(--hz-radius);
    font-size: 13px;
    transition: var(--hz-transition);
}

.header-left .el-autocomplete .el-input__inner:focus {
    background: #fff;
    border-color: #78aafc;
    box-shadow: 0 0 0 3px rgba(22, 103, 245, .08);
}

/* ============ 顶栏右侧动作区 ============ */
.header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    gap: 4px;
    height: 100%;
}

.header-right .header-right-item {
    height: 100%;
    display: flex;
    align-items: center;
    color: #404956;
}

.header-right .car-item {
    margin: 0;
    cursor: pointer;
}

.header-right .hg-24 {
    height: 100%;
    display: flex;
    align-items: center;
}

.header-right .el-dropdown {
    height: 100%;
    display: flex;
    align-items: center;
}

.header-right .car-item .right-item {
    height: 100%;
    display: flex;
    align-items: center;
}

/* 图标按钮通用态（购物车 / 站内信 / 语言） */
.header-right .hg-24 .el-dropdown .el-dropdown-country,
.header-right .header-right-item .el-dropdown-header,
.header-right .car-item .el-badge,
.header-right .header-right-item .un-login {
    height: 42px;
    padding: 0 12px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #606978;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--hz-transition);
}

.header-right .car-item .el-badge svg,
.header-right .el-dropdown-country svg {
    color: #606978;
    transition: var(--hz-transition);
}

.header-right .hg-24 .el-dropdown .el-dropdown-country:hover,
.header-right .header-right-item .el-dropdown-header:hover,
.header-right .car-item .el-badge:hover {
    color: var(--hz-blue);
    background: var(--hz-hover);
}

.header-right .hg-24 .el-dropdown .el-dropdown-country:hover svg,
.header-right .car-item .el-badge:hover svg {
    color: var(--hz-blue);
}

/* 语言国旗图标 */
.header-right .hg-24 img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    margin-right: 5px;
    border-radius: 2px;
}

/* 徽标 */
.header-right .el-badge__content.is-fixed {
    top: 7px !important;
    right: 7px;
    border: none;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    height: 16px;
    min-width: 16px;
    line-height: initial;
    padding: 0 4px;
    background-color: var(--hz-danger);
}

/* 未登录入口 */
.header-right .header-right-item .un-login {
    color: var(--hz-blue);
    border: 1px solid #cfe0ff;
    background: #fff;
    padding: 0 14px;
    font-size: 13px;
}

.header-right .header-right-item .un-login img {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.header-right .header-right-item .un-login:hover {
    color: #fff;
    background: var(--hz-blue);
    border-color: var(--hz-blue);
}

/* 头像区 */
.header-right .header-right-item .el-dropdown-header .head-box {
    width: auto;
    background-color: transparent;
    color: #2f3948;
    font-size: 14px;
    font-weight: 600;
    margin-right: 8px;
    white-space: nowrap;
}

.header-right .Hui-qqHeadPortrait img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 100%;
    margin-left: 0;
    background: #e7f0ff;
    transition: var(--hz-transition);
}

.header-right .Hui-qqHeadPortrait .el-dropdown-header:hover img {
    box-shadow: 0 0 0 3px #eaf2ff;
}

/* ============ 下拉弹层（账户 / 语言） ============ */
.el-dropdown-menu {
    border-radius: 5px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 13px 28px rgba(35, 51, 77, .16);
    padding: 6px 0;
}

.el-dropdown-menu__item {
    padding: 0 16px;
    margin: 0 6px;
    border-radius: 4px;
    min-height: 38px;
    display: flex;
    align-items: center;
    line-height: 38px;
    font-size: 14px;
    color: #2e3a4b;
    transition: var(--hz-transition);
}

.el-dropdown-menu__item i {
    font-size: 16px;
    margin-right: 8px;
    color: #6e7988;
    transition: var(--hz-transition);
}

.el-dropdown-menu__item img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    margin-right: 8px;
    border-radius: 2px;
}

.el-dropdown-menu__item:focus,
.el-dropdown-menu__item:not(.is-disabled):hover {
    background-color: #f2f7ff;
    color: var(--hz-blue);
}

.el-dropdown-menu__item:focus i,
.el-dropdown-menu__item:not(.is-disabled):hover i {
    color: var(--hz-blue);
}

/* 账户菜单：概要头部（账户名 + ID） */
.hz-account-head {
    padding: 10px 16px 12px;
    min-width: 220px;
}

.hz-account-name {
    color: #101927;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -.01em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hz-account-id {
    margin-top: 6px;
    color: #8791a0;
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.hz-dropdown-divider {
    height: 1px;
    background: #e7ebf1;
    margin: 4px 0;
}

/* 退出登录：红色 hover */
.el-dropdown-menu .hz-logout-item:hover,
.el-dropdown-menu .hz-logout-item:focus {
    color: #e54c4c !important;
    background: #fff8f8 !important;
}

.el-dropdown-menu .hz-logout-item:hover i,
.el-dropdown-menu .hz-logout-item:focus i {
    color: #e54c4c !important;
}

.el-popper .popper__arrow {
    display: none;
}

/* ============ 侧边导航（白色 + 蓝色激活态） ============ */
.el-aside {
    width: 248px !important;
    background-color: #fff !important;
    box-shadow: none;
    border: 0;
    border-right: 1px solid #e4e8ee;
    box-sizing: border-box;
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    padding: 60px 0 0 !important;
    font-family: var(--hz-font);
    z-index: 900;
    display: flex;
    flex-direction: column;
    transition: width .22s ease;
}

/* 折叠态侧栏（74px 图标 rail） */
.hz-aside.is-collapsed {
    width: 74px !important;
}

/* 侧栏 Logo 隐藏（Logo 统一置于顶栏） */
.ali-logo {
    height: auto !important;
    max-width: 100% !important;
    width: 100%;
    object-fit: contain;
    display: none;
}

/* 侧栏滚动容器 */
.hz-aside-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 16px;
    box-sizing: border-box;
}

.hz-aside-scroll::-webkit-scrollbar {
    width: 6px;
}

.hz-aside-scroll::-webkit-scrollbar-track {
    background-color: rgba(255, 255, 255, 0);
}

.hz-aside-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(28, 35, 46, .14);
    border-radius: 6px;
}

.hz-aside-scroll:hover::-webkit-scrollbar-thumb {
    background-color: rgba(28, 35, 46, .22);
}

.menu-alink {
    display: block;
    color: inherit;
    text-decoration: none;
}

.menu-top {
    background: transparent !important;
    border-right: none !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 8px 0 4px;
}

.el-menu--collapse {
    width: 64px;
}

/* 分组分割线 */
.line {
    border: none !important;
    height: 1px;
    background: #eef1f5;
    margin: 8px 12px;
}

/* 一级菜单项 */
.menu-top .el-menu-item {
    height: 44px;
    line-height: 44px;
    margin: 2px 8px;
    padding: 0 12px !important;
    border-radius: 5px;
    color: #333d4b !important;
    font-size: 14px;
    transition: var(--hz-transition);
    white-space: nowrap;
    overflow: hidden;
}

.aside-menu-text {
    color: inherit !important;
    font-size: 14px;
    margin-left: 8px;
}

.menu-top .el-menu-item i {
    color: #667082 !important;
    font-size: 16px;
    width: 18px;
    transition: var(--hz-transition);
}

.iconfont {
    font-size: 16px;
}

/* 一级菜单 hover */
.menu-top .el-menu-item:hover {
    background-color: #f7faff !important;
    color: var(--hz-blue) !important;
}

.menu-top .el-menu-item:hover i {
    color: var(--hz-blue) !important;
}

/* 一级菜单激活：蓝色渐变 + 左侧指示条 */
.menu-top .el-menu-item.is-active {
    background: linear-gradient(90deg, #fff 0%, #eaf2ff 100%) !important;
    color: var(--hz-blue) !important;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--hz-blue);
    border-radius: 4px;
}

.menu-top .el-menu-item.is-active i {
    color: var(--hz-blue) !important;
}

.menu-top .el-menu-item.is-active span,
.menu-top .el-menu-item.is-active a {
    color: var(--hz-blue) !important;
}

.menu-top .el-menu-item.is-active:hover {
    background: linear-gradient(90deg, #fff 0%, #e2edff 100%) !important;
}

/* 导航分组（原二级菜单容器） */
.hz-nav-group {
    margin-top: 6px;
}

.hz-nav-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    line-height: 34px;
    padding: 0 20px;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
}

.hz-nav-group-title i {
    font-size: 14px;
    color: #98a2b3 !important;
    width: 16px;
}

/* 分组内菜单项 */
.hz-nav-group .el-menu-item {
    height: 40px;
    line-height: 40px;
    padding: 0 12px 0 36px !important;
    color: #677384 !important;
    font-size: 13.5px;
}

.hz-nav-group .el-menu-item .aside-menu-text {
    font-size: 13.5px;
}

.hz-nav-group .el-menu-item.is-active {
    box-shadow: inset 3px 0 0 var(--hz-blue);
}

/* 兼容：折叠态弹出菜单（浅色弹层） */
.el-menu--vertical {
    background-color: #fff;
}

.el-menu--vertical .el-menu-item {
    color: rgba(29, 38, 54, .85) !important;
}

.el-menu--vertical .el-menu-item i {
    color: rgba(29, 38, 54, .85) !important;
}

.el-menu--vertical .el-menu-item.is-active,
.el-menu--vertical .el-menu-item.is-active i {
    color: var(--hz-blue) !important;
}

.el-menu--vertical .el-menu-item:focus,
.el-menu--vertical .el-menu-item:hover {
    background-color: #f2f7ff !important;
}

/* 主体内容区（为固定顶栏留白） */
.el-main {
    overflow-x: hidden;
}

/* ============ 顶栏汉堡（侧栏折叠按钮） ============ */
.hz-hamburger {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    color: #404956;
    background: transparent;
    cursor: pointer;
    transition: var(--hz-transition);
}

.hz-hamburger:hover {
    color: var(--hz-blue);
    background: var(--hz-hover);
}

.hz-hamburger svg {
    width: 21px;
    height: 21px;
}

/* ============ 侧栏底部折叠按钮 ============ */
.hz-sidebar-footer {
    flex: 0 0 64px;
    border-top: 1px solid #edf0f4;
    display: flex;
    align-items: center;
}

.hz-side-collapse {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #778392;
    background: transparent;
    cursor: pointer;
    transition: var(--hz-transition);
}

.hz-side-collapse:hover {
    color: var(--hz-blue);
    background: #f3f8ff;
}

.hz-side-collapse svg {
    width: 21px;
    height: 21px;
    transition: transform .2s ease;
}

.hz-aside.is-collapsed .hz-side-collapse svg {
    transform: rotate(180deg);
}

/* ============ 侧栏折叠态（74px 图标 rail + tooltip） ============ */
.hz-aside.is-collapsed .aside-menu-text,
.hz-aside.is-collapsed .hz-nav-group-title {
    display: none !important;
}

.hz-aside.is-collapsed .menu-top .el-menu-item {
    justify-content: center;
    padding: 0 !important;
    margin: 2px 10px;
}

.hz-aside.is-collapsed .hz-nav-group .el-menu-item {
    padding: 0 !important;
}

.hz-aside.is-collapsed .menu-alink {
    position: relative;
}

/* 收起态 tooltip */
.hz-aside.is-collapsed .menu-alink[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 9px);
    top: 50%;
    z-index: 15;
    padding: 7px 10px;
    border-radius: 4px;
    color: #435063;
    background: #fff;
    box-shadow: 0 7px 16px rgba(30, 47, 72, .16);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transform: translateY(-50%);
    pointer-events: none;
}

/* ============ 顶栏 hover 悬停浮层 ============ */
/* 共享骨架原生控件 reset：阻断旧主题 button/input/.icon 规则串扰 */
.el-header .hz-hamburger,
.el-header .hz-top-link,
.el-header .hz-header-popover button,
.hz-product-nav button,
.hz-product-nav input {
    font-family: var(--hz-font);
    box-sizing: border-box;
}

.el-header .hz-hamburger,
.el-header .hz-top-link,
.el-header .hz-header-popover button,
.hz-product-nav button {
    appearance: none;
    -webkit-appearance: none;
    text-transform: none;
}

.el-header .header-right .right-item svg.icon {
    display: block;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    max-width: 20px;
    max-height: 20px;
    flex: 0 0 20px;
    font-size: 20px;
}

.el-header .header-right .car-item:first-child .right-item svg.icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    max-width: 18px;
    max-height: 18px;
    flex-basis: 18px;
}

.header-menu {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.hz-top-link {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    color: #2f3948;
    background: transparent;
    font-family: var(--hz-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
    box-sizing: border-box;
    transition: var(--hz-transition);
}

.hz-top-link:hover,
.hz-top-link.is-active {
    color: var(--hz-blue);
    background: var(--hz-hover);
}

.hz-top-link svg {
    width: 18px;
    height: 18px;
}

.hz-caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #9099a6;
    transition: var(--hz-transition);
}

.hz-top-link.is-active .hz-caret {
    transform: rotate(180deg);
    border-top-color: var(--hz-blue);
}

.hz-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e7f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hz-avatar::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--hz-blue);
    box-shadow: 0 10px 0 3px #9fc6ff;
    transform: translateY(-4px);
}

.hz-account-trigger {
    padding: 0 6px;
}

.hz-account-trigger:hover .hz-avatar,
.hz-account-trigger.is-active .hz-avatar {
    box-shadow: 0 0 0 4px #eaf2ff;
}

/* 浮层容器 */
.hz-header-popover {
    position: absolute;
    top: 52px;
    z-index: 20;
    overflow: hidden;
    border: 1px solid #e4e9f0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(26, 43, 69, .17);
    color: var(--hz-ink);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-7px) scale(.985);
    transform-origin: top right;
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.hz-header-popover.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* 费用中心浮层 */
.hz-billing-popover {
    right: -16px;
    width: 372px;
}

.hz-billing-summary {
    padding: 25px 26px 23px;
}

.hz-popover-kicker {
    color: #202a3a;
    font-size: 15px;
    font-weight: 650;
}

.hz-billing-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.hz-billing-amount {
    color: #172131;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}

.hz-billing-amount small {
    margin-left: 6px;
    font-family: var(--hz-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

.hz-popover-primary {
    min-height: 40px;
    padding: 0 17px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: var(--hz-blue);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(22, 103, 245, .2);
    cursor: pointer;
    transition: var(--hz-transition);
}

.hz-popover-primary:hover {
    background: var(--hz-blue-dark);
}

.hz-popover-divider {
    height: 1px;
    background: #e8ecf1;
}

.hz-popover-links {
    display: grid;
    gap: 21px;
    padding: 24px 26px;
}

.hz-popover-links button {
    width: max-content;
    padding: 0;
    border: 0;
    color: #263243;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--hz-transition);
}

.hz-popover-links button:hover {
    color: var(--hz-blue);
    transform: translateX(2px);
}

.hz-popover-footer {
    width: 100%;
    padding: 15px 20px;
    border: 0;
    color: var(--hz-blue);
    background: #fbfcfe;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--hz-transition);
}

.hz-popover-footer:hover {
    background: #f0f6ff;
}

/* 语言浮层 */
.hz-language-popover {
    right: -20px;
    width: 172px;
    padding: 10px 0;
}

.hz-language-choice {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border: 0;
    color: #2f3b4b;
    background: transparent;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--hz-transition);
}

.hz-language-choice:hover,
.hz-language-choice.is-selected {
    color: var(--hz-blue);
    background: #f0f6ff;
}

.hz-locale-icon {
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    font-size: 9px;
    font-weight: 700;
    font-style: normal;
}

/* 账户浮层 */
.hz-account-popover {
    right: 0;
    width: 374px;
}

.hz-account-head {
    padding: 24px 25px 23px;
}

.hz-account-email-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hz-account-email {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #111b29;
    font-size: 18px;
    font-weight:650;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hz-main-badge {
    padding: 4px 7px;
    border-radius: 3px;
    color: var(--hz-blue);
    background: #eaf2ff;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.hz-account-id {
    margin-top: 16px;
    color: #8994a3;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    letter-spacing: -.02em;
}

.hz-account-list {
    padding: 13px 0;
}

.hz-account-item {
    width: 100%;
    min-height: 51px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 25px;
    border: 0;
    color: #2e3a4b;
    background: transparent;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--hz-transition);
}

.hz-account-item:hover {
    color: var(--hz-blue);
    background: #f2f7ff;
}

.hz-account-item svg {
    width: 20px;
    height: 20px;
    color: #6e7988;
    transition: var(--hz-transition);
}

.hz-account-item:hover svg {
    color: var(--hz-blue);
}

.hz-logout-button {
    width: 100%;
    padding: 22px 25px;
    border: 0;
    color: #2e3a4b;
    background: transparent;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--hz-transition);
}

.hz-logout-button:hover {
    color: #d94747;
    background: #fff8f8;
}

/* ============ 移动端适配（平板 / 手机） ============ */
@media screen and (max-width: 768px) {

    .el-header {
        height: 54px !important;
        padding: 0 12px 0 0 !important;
    }

    .Hui-gai {
        width: auto;
        flex: 0 0 auto;
        padding: 0 4px 0 12px;
        border-right: none;
    }

    .Hui-gai .Hui-logo {
        max-height: 26px;
        max-width: 130px;
    }

    .header-left {
        gap: 8px;
    }

    /* 汉堡按钮 */
    .menu-img {
        display: inline-flex;
        align-items: center;
        height: 26px;
        width: 26px;
        object-fit: contain;
        margin-right: 2px;
    }

    /* 移动端隐藏桌面侧栏折叠按钮（改用抽屉） */
    .hz-hamburger {
        display: none;
    }

    .header-left .Heziyun-console {
        padding: 0 8px;
        font-size: 13px;
    }

    /* 面包屑移动端隐藏（节省空间） */
    .hz-crumb {
        display: none;
    }

    .header-left .left-img,
    .header-left .el-autocomplete {
        display: none;
    }

    /* 顶栏右侧精简 */
    .header-right .hg-24 span,
    .header-right .Hui-console,
    .header-right .header-right-item .cloum-line,
    .header-right .cloum-line-item {
        display: none;
    }

    .header-right {
        gap: 0;
    }

    .header-right .car-item {
        margin-right: 0;
    }

    .header-right .hg-24 .el-dropdown .el-dropdown-country,
    .header-right .header-right-item .el-dropdown-header,
    .header-right .car-item .el-badge,
    .header-right .header-right-item .un-login {
        height: 40px;
        padding: 0 8px;
    }

    .header-right .header-right-item .el-dropdown-header .head-box {
        display: none;
    }

    .header-right .header-right-item .un-login {
        font-size: 12px;
        padding: 0 10px;
    }

    .header-right .el-badge__content.is-fixed {
        font-size: 8px;
        height: 13px;
        min-width: 13px;
        top: 5px !important;
        right: 5px;
    }

    .el-main {
        padding: 70px 12px 16px;
    }

    /* 抽屉菜单（浅色） */
    .el-drawer__body {
        background-color: #fff;
    }

    .drawer-menu {
        background: #fff;
    }

    .drawer-menu-top {
        width: 100%;
        height: 54px;
        display: flex;
        align-items: center;
        padding: 0 16px;
        box-sizing: border-box;
        border-bottom: 1px solid #eef1f5;
    }

    .drawer-menu-logo {
        height: 26px;
        max-width: 140px;
        width: auto;
        display: block;
    }

    .drawer-menu-list-top {
        padding: 0;
        margin-top: 0;
    }

    .drawer-menu .menu-top {
        padding: 8px 0 4px;
    }

    .drawer-menu .hz-nav-group-title {
        padding: 0 16px;
    }

    .drawer-menu .hz-nav-group .el-menu-item {
        padding-left: 28px !important;
    }

    .drawer-menu .el-menu-item {
        height: 48px;
        line-height: 48px;
    }

    /* 全局弹窗（保留原模板移动端可用性微调） */
    .com-auto-renew .common-renew-dialog .el-dialog__body {
        padding: 5vw;
    }

    .com-auto-renew .common-renew-dialog .el-dialog__body .dialog-title {
        white-space: initial;
        font-size: 4vw;
    }

    .com-auto-renew .common-renew-dialog .el-dialog__body .con .label {
        font-size: 3.5vw;
        text-align: left !important;
        min-width: 26vw;
        margin-right: 1vw;
    }

    .com-auto-renew .common-renew-dialog .el-dialog__body .con .item {
        font-size: 3.2vw;
    }

    .com-auto-renew .common-renew-dialog .el-dialog__body .con .value {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dialog-footer .btn-ok,
    .dialog-footer .btn-no {
        min-width: 18vw;
        padding: 0.5vw;
        font-size: 3.5vw;
    }
}

/* 动效降级（无障碍） */
@media (prefers-reduced-motion: reduce) {

    .el-header,
    .el-aside,
    .menu-top .el-menu-item,
    .hz-nav-group-title,
    .header-right *,
    .el-dropdown-menu__item {
        transition-duration: .01ms !important;
    }
}

/* ============ 产品导航抽屉（汉堡展开，替代侧栏） ============ */
/* 组件宿主：脱离文档流，不占 el-container 布局空间 */
.hz-nav-host {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 1100;
    isolation: isolate;
    pointer-events: none;
}

.hz-nav-scrim {
    position: fixed;
    left: 0;
    top: 60px;
    right: 0;
    bottom: 0;
    z-index: 990;
    background: rgba(11, 26, 47, 0);
    visibility: hidden;
    pointer-events: none;
    transition: background .22s ease, visibility .22s;
}

.hz-nav-scrim.is-open {
    visibility: visible;
    pointer-events: auto;
    background: rgba(11, 26, 47, .04);
}

.hz-product-nav {
    position: fixed;
    left: 0;
    top: 60px;
    z-index: 995;
    width: min(910px, calc(100vw - 24px));
    height: calc(100vh - 60px);
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    background: #fff;
    box-shadow: 2px 8px 20px rgba(36, 52, 77, .11);
    transform: translateX(-101%);
    visibility: hidden;
    transition: transform .22s ease, visibility .22s;
    overflow: hidden;
    font-family: var(--hz-font);
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

.hz-product-nav.is-open {
    transform: translateX(0);
    visibility: visible;
}

.hz-nav-rail {
    border-right: 1px solid #e3e8f0;
    padding-top: 1px;
    background: rgba(251, 252, 255, .95);
}

.hz-nav-rail-item {
    width: 100%;
    height: 59px;
    border: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 22px;
    color: var(--hz-blue);
    background: linear-gradient(90deg, #fff 0%, #e9f1ff 100%);
    border-right: 2px solid var(--hz-blue);
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-family: var(--hz-font);
}

.hz-nav-rail-item svg {
    width: 15px;
    height: 15px;
}

.hz-nav-mega {
    padding: 20px 39px 38px;
    overflow-y: auto;
}

.hz-nav-search {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0 10px 0 13px;
    border: 1px solid #e2e7ef;
    border-radius: 5px;
    background: #fff;
    color: #8c96a5;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.hz-nav-search:focus-within {
    border-color: #78aafc;
    box-shadow: 0 0 0 3px rgba(22, 103, 245, .08);
}

.hz-nav-search svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.hz-nav-search input {
    min-width: 0;
    width: 100%;
    height: 38px;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    appearance: none;
    -webkit-appearance: none;
    color: var(--hz-ink);
    background: transparent;
    font-family: var(--hz-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 38px;
    letter-spacing: normal;
    box-shadow: none;
    box-sizing: border-box;
}

.hz-nav-search input::placeholder {
    color: #a2a9b4;
}

.hz-nav-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 16px;
    align-items: start;
}

.hz-nav-col {
    min-width: 0;
}

.hz-nav-category {
    margin-bottom: 38px;
}

.hz-nav-category-title {
    font-size: 14px;
    font-weight: 650;
    letter-spacing: .005em;
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 11px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    color: #1d2636;
}

.hz-nav-category-title i {
    font-size: 18px;
    color: #616a75;
    flex: 0 0 auto;
}

.hz-nav-category-links {
    display: grid;
    gap: 19px;
    padding-top: 18px;
}

.hz-nav-category-links a {
    color: #354152;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
}

.hz-nav-category-links a:hover {
    color: var(--hz-blue);
}

/* 国际站 label + 售后客服 */
.hz-international {
    gap: 7px;
}

.hz-international-label {
    font-size: 14px;
}

.hz-support {
    gap: 9px;
}

/* 产品导航抽屉响应式 */
/* 导航隔离层：确保动态插件页面无法覆盖抽屉的字体、尺寸与层级 */
html.hz-nav-open,
html.hz-nav-open body {
    overflow: hidden !important;
}

.hz-nav-host .hz-nav-scrim,
.hz-nav-host .hz-product-nav,
.hz-nav-host .hz-product-nav * {
    box-sizing: border-box;
}

.hz-nav-host .hz-nav-scrim,
.hz-nav-host .hz-product-nav {
    pointer-events: auto;
}

.hz-nav-host .hz-nav-scrim {
    background: rgba(18, 32, 52, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

.hz-nav-host .hz-nav-scrim.is-open {
    background: rgba(18, 32, 52, .22);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.hz-nav-host .hz-product-nav {
    width: min(860px, calc(100vw - 32px));
    grid-template-columns: 188px minmax(0, 1fr);
    border-right: 1px solid #e4e9f1;
    color: #1d2636;
    background: #fff;
    box-shadow: 12px 20px 44px rgba(22, 39, 65, .18);
    font-family: var(--hz-font) !important;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.5 !important;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
}

.hz-nav-host .hz-nav-rail {
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid #e5eaf1;
    background: #f7f9fc;
}

.hz-nav-host .hz-nav-rail-item {
    min-width: 0;
    font-family: var(--hz-font) !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.hz-nav-host .hz-nav-mega {
    min-width: 0;
    height: 100%;
    padding: 24px 32px 40px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    background: #fff;
}

.hz-nav-host .hz-nav-search {
    width: 100%;
    max-width: none;
    height: 40px !important;
    min-height: 40px;
    overflow: hidden;
    margin: 0 0 24px !important;
    padding: 0 12px !important;
    font-family: var(--hz-font) !important;
    font-size: 14px !important;
    line-height: 40px !important;
}

.hz-nav-host .hz-nav-search svg {
    display: block;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px;
    max-width: 17px;
    max-height: 17px;
}

.hz-nav-host .hz-nav-search input,
.hz-nav-host .hz-nav-search input[type="search"] {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    color: #263243 !important;
    background: transparent !important;
    font-family: var(--hz-font) !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 38px !important;
    text-indent: 0 !important;
    letter-spacing: normal !important;
    transform: none !important;
    box-shadow: none !important;
}

.hz-nav-host .hz-nav-search input::placeholder {
    color: #98a2b0 !important;
    font-family: var(--hz-font) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    opacity: 1;
}

.hz-nav-host .hz-nav-search input::-webkit-search-decoration,
.hz-nav-host .hz-nav-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.hz-nav-host .hz-nav-columns {
    width: 100%;
    gap: 0 28px;
}

.hz-nav-host .hz-nav-category {
    min-width: 0;
    margin-bottom: 30px;
}

.hz-nav-host .hz-nav-category-title {
    min-width: 0;
    font-family: var(--hz-font) !important;
    font-size: 14px !important;
    line-height: 22px !important;
}

.hz-nav-host .hz-nav-category-links a {
    display: block;
    overflow: hidden;
    color: #435064;
    font-family: var(--hz-font) !important;
    font-size: 13px !important;
    line-height: 20px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 产品导航抽屉响应式 */
@media (max-width: 980px) {
    .hz-nav-host .hz-product-nav {
        width: min(760px, 100vw);
        grid-template-columns: 175px minmax(0, 1fr);
    }

    .hz-nav-host .hz-nav-mega {
        padding: 20px 26px 36px;
    }
}

@media (max-width: 650px) {
    .hz-nav-host .hz-nav-scrim {
        top: 54px;
    }

    .hz-nav-host .hz-product-nav {
        top: 54px;
        height: calc(100vh - 54px);
        display: block;
        width: 100vw;
        border-right: 0;
    }

    .hz-nav-host .hz-nav-rail {
        display: none;
    }

    .hz-nav-host .hz-nav-mega {
        padding: 18px 16px 32px;
    }

    .hz-nav-host .hz-nav-search {
        margin-bottom: 20px !important;
    }

    .hz-nav-host .hz-nav-columns {
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
    }

    .hz-nav-host .hz-nav-category {
        margin-bottom: 26px;
    }

    .hz-international-label {
        display: none;
    }
}

@media (max-width: 420px) {
    .hz-nav-host .hz-nav-columns {
        grid-template-columns: 1fr;
    }
}
