/* 2026-10-17 导航按分阶段方式：顶栏业务阶段页签 + 左侧当前阶段菜单（含二级） + 最近页面页签栏。 */

/* 顶栏阶段页签 */
.xc-domains { display: flex; align-items: stretch; height: 100%; margin-left: 18px; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.xc-domains::-webkit-scrollbar { display: none; }
.xc-domains__item { position: relative; display: inline-flex; align-items: center; padding: 0 16px; color: rgba(255, 255, 255, 0.72);
    font-size: 14px; white-space: nowrap; text-decoration: none; transition: color .15s, background .15s; }
.xc-domains__item:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.xc-domains__item.is-active { color: #fff; font-weight: 600; background: rgba(0, 110, 255, 0.28); }
.xc-domains__item.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 2px 2px 0 0; background: var(--xc-brand-hover); }
.xc-domains__item:focus-visible { outline: 2px solid var(--xc-brand-hover); outline-offset: -2px; }

/* 抽屉里的阶段切换（只在窄屏出现） */
.xc-menu__domains { display: none; flex-wrap: wrap; gap: 6px; padding: 4px 4px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--xc-line-soft); }
.xc-menu__domain-tab { padding: 4px 10px; border: 1px solid var(--xc-line); border-radius: 14px; background: #fff; color: var(--xc-text-2); font-size: 13px; cursor: pointer; }
.xc-menu__domain-tab.is-active { border-color: var(--xc-brand); background: var(--xc-brand-bg); color: var(--xc-brand); font-weight: 600; }
.xc-menu__panel[hidden] { display: none; }
.xc-menu__panel > .xc-menu__title { font-weight: 600; color: var(--xc-text-2); }

/* 二级菜单 */
.xc-menu__sub > summary { list-style: none; cursor: pointer; }
.xc-menu__sub > summary::-webkit-details-marker { display: none; }
.xc-menu__sub-head .xc-caret { margin-left: auto; transition: transform .15s; }
.xc-menu__sub[open] > .xc-menu__sub-head .xc-caret { transform: rotate(180deg); }
.xc-menu__sub-head.has-active { color: var(--xc-brand); }
.xc-menu__item--sub { padding-left: 38px; height: 34px; font-size: 13px; }
.xc-menu__item--sub .svg-icon { width: 14px; height: 14px; }

/* 最近打开页面的页签栏 */
.xc-tagsview { position: sticky; top: var(--xc-topbar-h); z-index: 150; display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 16px; overflow-x: auto; background: #fff;
    border-bottom: 1px solid var(--xc-line-soft); box-shadow: 0 1px 3px rgba(0, 21, 41, .06); scrollbar-width: thin; }
.xc-tagsview[hidden] { display: none; }
.xc-tag-view { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 26px; padding: 0 4px 0 10px; border: 1px solid var(--xc-line);
    border-radius: 3px; background: #fff; color: var(--xc-text-2); font-size: 12px; white-space: nowrap; text-decoration: none; }
.xc-tag-view:hover { color: var(--xc-brand); border-color: #b3d4ff; }
.xc-tag-view.is-active { background: var(--xc-brand); border-color: var(--xc-brand); color: #fff; }
.xc-tag-view.is-active::before { content: ""; width: 6px; height: 6px; margin-right: 2px; border-radius: 50%; background: #fff; }
.xc-tag-view__close { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: inherit; font-size: 13px; line-height: 1; cursor: pointer; }
.xc-tag-view__close:hover { background: rgba(0, 0, 0, .16); color: #fff; }
.xc-tag-view.is-active .xc-tag-view__close:hover { background: rgba(255, 255, 255, .3); }
.xc-tagsview__clear { margin-left: auto; flex: none; padding: 2px 8px; border: 0; background: none; color: var(--xc-text-3); font-size: 12px; cursor: pointer; }
.xc-tagsview__clear:hover { color: var(--xc-brand); }

/* 收成图标栏时：二级菜单的子项也只留图标 */
@media (min-width: 993px) {
    .xc--mini .xc-menu__item--sub { padding-left: 0; }
    .xc--mini .xc-menu__sub-head .xc-caret { display: none; }
}

@media (max-width: 1180px) {
    .xc-domains__item { padding: 0 10px; font-size: 13px; }
    .xc-brand__tag { display: none; }
}

@media (max-width: 992px) {
    .xc-domains, .xc-tagsview { display: none !important; }
    .xc-menu__domains { display: flex; }
}

/* 菜单搜索 */
.xc-menu__search { position: relative; padding: 2px 4px 8px; }
.xc-menu__search input { width: 100%; height: 30px; padding: 0 10px; border: 1px solid var(--xc-line); border-radius: 15px; background: #f7f8fa; font-size: 12px; color: var(--xc-text); }
.xc-menu__search input:focus { outline: none; border-color: var(--xc-brand); background: #fff; box-shadow: 0 0 0 2px rgba(0, 110, 255, .12); }
.xc-menu__search-results { margin-top: 6px; border: 1px solid var(--xc-line-soft); border-radius: 6px; background: #fff; box-shadow: var(--xc-shadow-pop); overflow: hidden; }
.xc-menu__search-results[hidden] { display: none; }
.xc-menu__search-hit { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; color: var(--xc-text); text-decoration: none; font-size: 13px; }
.xc-menu__search-hit + .xc-menu__search-hit { border-top: 1px solid var(--xc-line-soft); }
.xc-menu__search-hit:hover, .xc-menu__search-hit:focus-visible { background: var(--xc-brand-bg); outline: none; }
.xc-menu__search-hit:first-child { background: #f5f9ff; }
.xc-menu__search-hit span { color: var(--xc-text-3); font-size: 11px; }
.xc-menu__search-none { padding: 8px 10px; color: var(--xc-text-3); font-size: 12px; }
@media (min-width: 993px) { .xc--mini .xc-menu__search { display: none; } }

/* 2026-10-18 重构：深蓝顶栏 */
.xc-topbar { background: linear-gradient(90deg, #0a2352 0%, #0d306b 55%, #123f8a 100%); box-shadow: 0 1px 4px rgba(4, 22, 54, .35); }
.xc-domains__item { color: rgba(255, 255, 255, 0.78); }
.xc-domains__item.is-active { background: rgba(255, 255, 255, 0.14); }
.xc-domains__item.is-active::after { background: #5fb0ff; }
.xc-brand__tag { border-left-color: rgba(255, 255, 255, 0.28); }
.xc-menu__panel > .xc-menu__title { color: #0d306b; }
.xc-menu__sub-head span:first-of-type { overflow: hidden; text-overflow: ellipsis; }
