/* Layout Rule: full-width（全宽布局）
   骨架：header/nav/hero/main/footer 纵向依次堆叠，main占满宽度 */
.layout--full-width { display: block; }
.layout--full-width .layout-slot--main { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== 藏蓝红Header+Nav合并成一行（仅当header.navy_red + nav.navy_red_pill 同时出现时生效，不影响其他站点组合） ===== */
.layout--full-width:has(> .layout-slot--header .mod-header--v5):has(> .layout-slot--nav .mod-nav--v2) {
    display: grid;
    grid-template-columns: auto 1fr;
}
.layout--full-width:has(> .layout-slot--header .mod-header--v5):has(> .layout-slot--nav .mod-nav--v2) > .layout-slot--header {
    grid-column: 1;
    grid-row: 1;
}
.layout--full-width:has(> .layout-slot--header .mod-header--v5):has(> .layout-slot--nav .mod-nav--v2) > .layout-slot--nav {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
}
.layout--full-width:has(> .layout-slot--header .mod-header--v5):has(> .layout-slot--nav .mod-nav--v2) > .layout-slot--hero {
    grid-column: 1 / -1;
    grid-row: 2;
}
.layout--full-width:has(> .layout-slot--header .mod-header--v5):has(> .layout-slot--nav .mod-nav--v2) > .layout-slot--main {
    grid-column: 1 / -1;
    grid-row: 3;
}
.layout--full-width:has(> .layout-slot--header .mod-header--v5):has(> .layout-slot--nav .mod-nav--v2) > .layout-slot--footer {
    grid-column: 1 / -1;
    grid-row: 4;
}
/* 合并成一行后，Header内部改为紧凑布局（不再space-between撑满宽度），标语让位给导航菜单 */
.layout--full-width:has(> .layout-slot--header .mod-header--v5):has(> .layout-slot--nav .mod-nav--v2) .mod-header--v5 {
    justify-content: flex-start;
    gap: 20px;
}
.layout--full-width:has(> .layout-slot--header .mod-header--v5):has(> .layout-slot--nav .mod-nav--v2) .mod-header__slogan--v5 {
    display: none;
}
.layout--full-width:has(> .layout-slot--header .mod-header--v5):has(> .layout-slot--nav .mod-nav--v2) .mod-nav--v2 {
    background: transparent;
    padding: 14px 24px;
}

/* ===== 合并行修复：Header列宽固定，Nav强制单行不换行 ===== */
.layout--full-width:has(> .layout-slot--header .mod-header--v5):has(> .layout-slot--nav .mod-nav--v2) {
    grid-template-columns: 320px 1fr;
}
.layout--full-width:has(> .layout-slot--header .mod-header--v5):has(> .layout-slot--nav .mod-nav--v2) .mod-header__name--v5 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}
.layout--full-width:has(> .layout-slot--header .mod-header--v5):has(> .layout-slot--nav .mod-nav--v2) .mod-nav__links--v2 {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.layout--full-width:has(> .layout-slot--header .mod-header--v5):has(> .layout-slot--nav .mod-nav--v2) .mod-nav__links--v2::-webkit-scrollbar {
    display: none;
}
.layout--full-width:has(> .layout-slot--header .mod-header--v5):has(> .layout-slot--nav .mod-nav--v2) .mod-nav__pill {
    flex-shrink: 0;
}
