/* 顶栏宽度与 .main 完全一致：同一 max-width + 同一边距（1150 & 左右 16px border-box） */
.site-header-lm .header-lm-shell {
    width: 100%;
    max-width: var(--site-max-width, 1150px);
    margin-left: auto;
    margin-right: auto;
    /* 与浏览器顶边：略留即可，避免顶栏悬空过高 */
    padding-top: 6px;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}
body.page-home .site-header-lm .header-lm-shell {
    max-width: var(--home-max-width, 1150px);
}

.site-header-lm {
    margin-bottom: 2px;
    --lm-r: 16px;
}

.site-header-lm .header-lm-card {
    max-width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.94));
    border: 1px solid rgba(191, 219, 254, 0.78);
    border-bottom: none;
    border-radius: var(--lm-r) var(--lm-r) 0 0;
    box-shadow: 0 30px 58px -42px rgba(14, 116, 144, 0.34), 0 16px 28px -24px rgba(59, 130, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}
.site-header-lm .header-lm-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(79, 172, 254, 0.08), rgba(34, 211, 238, 0.72), rgba(96, 165, 250, 0.58), rgba(79, 172, 254, 0.08));
}
.site-header-lm .header-lm-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 38%), radial-gradient(circle at 88% 18%, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0) 28%);
    pointer-events: none;
}
[data-theme="dark"] .site-header-lm .header-lm-card {
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.98), rgba(15, 23, 42, 0.98));
    border-color: rgba(148, 163, 184, 0.16);
}

/* 上排：单行垂直居中 — Logo | 导航 + 搜索（不再上下错位） */
.site-header-lm .header-lm-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    flex-wrap: nowrap;
    padding: 12px 16px;
    min-height: 72px;
    box-sizing: border-box;
}
.site-header-lm .header-lm-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    margin-right: 6px;
}
.site-header-lm .header-lm-logo-img.logo-icon {
    width: 220px;
    height: 56px;
}
.site-header-lm .header-lm-logo-img .logo-emoji {
    font-size: 45px;
}
.site-header-lm .site-logo {
    position: relative;
}
.site-header-lm .site-logo::after {
    content: "";
    position: absolute;
    inset: auto 8px -4px 16px;
    height: 12px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0) 72%);
    filter: blur(10px);
    pointer-events: none;
}

.site-header-lm .header-lm-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px 12px;
    flex: 1 1 0;
    min-width: 0;
    overflow: visible;
}

.site-header-lm .header-lm-menu,
.site-header-lm .header-lm-feature-nav {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: flex-start;
}
.site-header-lm .header-lm-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 42px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-right: 8px;
}
.site-header-lm .header-lm-feature-list::-webkit-scrollbar {
    display: none;
}
.site-header-lm .header-lm-feature-item {
    flex: 0 0 auto;
}
.site-header-lm .header-lm-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 4px 10px 4px 4px;
    text-decoration: none;
    white-space: nowrap;
    color: #0d6d8f;
    background: linear-gradient(180deg, rgba(239, 249, 255, 0.98), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 999px;
    box-shadow: 0 14px 24px -22px rgba(14, 116, 144, 0.52);
    transition: transform 0.22s ease, opacity 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.site-header-lm .header-lm-feature-link:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.36);
    box-shadow: 0 18px 28px -24px rgba(14, 116, 144, 0.6);
}
.site-header-lm .header-lm-feature-ico {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(180deg, #38bdf8 0%, #0f7f9d 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 8px 16px -12px rgba(14, 116, 144, 0.7);
}
.site-header-lm .header-lm-feature-txt {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #0f6f8f;
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-header-lm .header-lm-feature-link.is-active .header-lm-feature-ico,
.site-header-lm .header-lm-feature-link:hover .header-lm-feature-ico {
    background: linear-gradient(180deg, #5eead4 0%, #0ea5a8 100%);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.42), 0 12px 20px -12px rgba(13, 148, 136, 0.58);
}
.site-header-lm .header-lm-feature-link.is-active .header-lm-feature-txt,
.site-header-lm .header-lm-feature-link:hover .header-lm-feature-txt {
    color: #0d5d7c;
}
[data-theme="dark"] .site-header-lm .header-lm-feature-link {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
    border-color: rgba(251, 191, 36, 0.14);
    box-shadow: 0 10px 22px -18px rgba(2, 6, 23, 0.75);
}
.site-header-lm .header-lm-menu-list {
    list-style: none;
    margin: 0;
    padding: 5px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 8px 20px rgba(15, 23, 42, 0.05);
    overflow-x: auto;
    scrollbar-width: none;
}
.site-header-lm .header-lm-menu-list::-webkit-scrollbar {
    display: none;
}
.site-header-lm .header-lm-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 38px;
    padding: 0 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-secondary, #475569);
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
[data-theme="dark"] .site-header-lm .header-lm-menu-link {
    color: rgba(255, 255, 255, 0.78);
}
.site-header-lm .header-lm-menu-link:hover {
    background: color-mix(in srgb, var(--primary, #3088a3) 10%, #ffffff);
    color: var(--primary, #3088a3);
    transform: translateY(-1px);
}
.site-header-lm .header-lm-menu-link.is-active {
    color: var(--primary, #3088a3);
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary, #3088a3) 12%, #ffffff), color-mix(in srgb, var(--primary-light, #4db3c5) 16%, #ffffff));
    box-shadow: 0 10px 22px rgba(48, 136, 163, 0.16);
}
[data-theme="dark"] .site-header-lm .header-lm-menu-link.is-active {
    color: #7dd3fc;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(125, 211, 252, 0.12));
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.22);
}

/* 圆形图标：与站点主色一致，去掉刺眼橙色 */
.site-header-lm .header-lm-nav-ico {
    display: none;
}
.site-header-lm .header-lm-menu-link.is-active .header-lm-nav-ico {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary, #3088a3) 45%, transparent);
}
.site-header-lm .header-lm-nav-txt {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.site-header-lm .header-lm-toolbar {
    display: flex;
    align-items: center;
    padding-left: 0;
    margin-left: auto;
    border-left: none;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}
.site-header-lm .header-lm-toolbar .header-right {
    height: 36px;
    min-height: 36px;
    align-items: center;
}
.site-header-lm .header-lm-toolbar .header-top-search {
    height: 36px;
}
.site-header-lm .header-lm-toolbar .header-top-search-box {
    width: min(200px, 22vw);
    height: 36px;
}

/* 下条：青绿系，与栏目头统一，不用高饱和紫 */
.site-header-lm .header-lm-sub {
    max-width: 100%;
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary, #3088a3) 88%, #4f8fd8) 0%, color-mix(in srgb, var(--primary, #3088a3) 68%, #2563eb) 100%);
    border: 1px solid color-mix(in srgb, var(--primary, #3088a3) 58%, #7aa7d9);
    border-top: none;
    border-radius: 0 0 var(--lm-r) var(--lm-r);
    box-shadow: 0 18px 28px -24px rgba(37, 99, 235, 0.45);
}
[data-theme="dark"] .site-header-lm .header-lm-sub {
    background: linear-gradient(180deg, #164e63 0%, #0f172a 100%);
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .site-header-lm .header-lm-menu-list {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.88));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 28px rgba(2, 6, 23, 0.24);
}
[data-theme="dark"] .site-header-lm .header-lm-feature-txt {
    color: #f5b56d;
}
[data-theme="dark"] .site-header-lm .header-lm-feature-link.is-active .header-lm-feature-txt,
[data-theme="dark"] .site-header-lm .header-lm-feature-link:hover .header-lm-feature-txt {
    color: #ffd29a;
}
[data-theme="dark"] .site-header-lm .header-lm-brand-mark {
    color: #fff3b0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.26), rgba(245, 158, 11, 0.14));
}

.site-header-lm .header-lm-sub-inner {
    padding: 8px 12px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
}
.site-header-lm .header-lm-sub-inner--no-ann {
    justify-content: flex-end;
}
.site-header-lm .header-lm-sub-left {
    flex: 1 1 200px;
    min-width: 0;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.96);
    text-align: left;
}
.site-header-lm .header-lm-sub-right {
    flex: 0 1 auto;
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.95);
    text-align: right;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px 8px;
}
.site-header-lm .header-lm-coop strong {
    font-weight: 700;
}
.site-header-lm .header-lm-brand-mark {
    display: inline-block;
    margin: 0 2px;
    padding: 0 6px;
    border-radius: 999px;
    font-weight: 800;
    color: #fff7c2;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.32), rgba(245, 158, 11, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.site-header-lm .header-lm-warn {
    color: #fde68a;
    font-weight: 700;
}

/* 合作提示条右侧「添加网站」：主色渐变+白字（避免 color-mix/继承导致白底白字不可见）；手机端单独隐藏 */
.site-header-lm a.header-lm-submit-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 10px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)) !important;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.site-header-lm a.header-lm-submit-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 10px 22px -12px rgba(15, 23, 42, 0.48);
    color: #fff !important;
}
[data-theme="dark"] .site-header-lm a.header-lm-submit-btn {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.18), rgba(56, 189, 248, 0.12)) !important;
    border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .site-header-lm a.header-lm-submit-btn {
        display: none !important;
    }
}

@media (max-width: 900px) {
    /*
     * 窄屏不用 flex-direction:column（易与 justify-content:space-between、子项 flex 增长产生「中间留白」）。
     * 改用横向 wrap + 子块各占 100% 宽，强制上下两行紧贴。
     */
    .site-header-lm .header-lm-top {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        align-content: flex-start;
        justify-content: flex-start;
        gap: 8px 0;
        /* 取消桌面 min-height，避免强撑高度 */
        min-height: unset;
    }
    .site-header-lm .header-lm-brand {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
    .site-header-lm .header-lm-actions {
        flex: 0 1 100%;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        justify-content: flex-start;
        align-items: center;
    }
    .site-header-lm .header-lm-menu {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
    }
    .site-header-lm .header-lm-feature-nav {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        justify-content: flex-start;
    }
    .site-header-lm .header-lm-feature-list {
        justify-content: flex-start;
        gap: 10px;
    }
    .site-header-lm .header-lm-menu-list {
        flex-wrap: wrap;
        justify-content: flex-start;
        border-radius: 16px;
    }
    .site-header-lm .header-lm-toolbar {
        flex: 0 0 auto;
        align-self: flex-end;
        margin-left: auto;
    }
    .site-header-lm .header-lm-toolbar .header-top-search {
        display: none;
    }
    /* header.css 里 .header-right 固定 height:36px，窄屏必须覆盖，否则与换行冲突产生错位 */
    .site-header-lm .header-lm-toolbar .header-right {
        height: auto !important;
        min-height: 36px;
        align-items: center;
        flex-wrap: wrap;
        row-gap: 6px;
    }
    .site-header-lm .header-lm-sub-inner:not(.header-lm-sub-inner--no-ann) {
        flex-direction: column;
        align-items: stretch;
    }
    .site-header-lm .header-lm-sub-left {
        text-align: left;
    }
    .site-header-lm .header-lm-sub-right {
        justify-content: flex-end;
        text-align: right;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .site-header-lm .header-lm-top {
        padding: 10px 12px;
    }
    .site-header-lm .header-lm-logo-img.logo-icon {
        width: 208px;
        height: 54px;
    }
    .site-header-lm .header-lm-logo-img .logo-emoji {
        font-size: 38px;
    }
    /* 更窄：导航与工具分两行但左对齐，避免右侧工具「悬」在中间空白处 */
    .site-header-lm .header-lm-actions {
        flex-wrap: wrap;
        align-items: flex-start;
        align-content: flex-start;
        row-gap: 8px;
    }
    .site-header-lm .header-lm-menu {
        flex: 1 1 100%;
        width: 100%;
    }
    .site-header-lm .header-lm-feature-nav {
        flex: 1 1 100%;
        width: 100%;
    }
    .site-header-lm .header-lm-feature-list {
        gap: 10px;
    }
    .site-header-lm .header-lm-feature-ico {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .site-header-lm .header-lm-feature-txt {
        font-size: 12px;
        max-width: 86px;
    }
    .site-header-lm .header-lm-toolbar {
        width: 100%;
        align-self: stretch;
        margin-left: 0;
        justify-content: flex-end;
    }
    .site-header-lm .header-lm-toolbar .header-right {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* 全站最终统一：非首页页面的顶部/头部也跟黑白编辑感一致 */
.site-header-lm .header-lm-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 248, 246, 0.98)) !important;
    border-color: rgba(23, 23, 23, 0.08) !important;
    box-shadow: 0 24px 44px -38px rgba(0, 0, 0, 0.14), 0 10px 18px -16px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

.site-header-lm .header-lm-card::before {
    background: linear-gradient(90deg, rgba(23, 23, 23, 0), rgba(23, 23, 23, 0.62), rgba(115, 115, 115, 0.36), rgba(23, 23, 23, 0.12), rgba(23, 23, 23, 0)) !important;
}

.site-header-lm .header-lm-feature-link {
    color: #333 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 243, 0.98)) !important;
    border-color: rgba(23, 23, 23, 0.08) !important;
    box-shadow: 0 12px 22px -20px rgba(0, 0, 0, 0.08) !important;
}

.site-header-lm .header-lm-feature-link:hover {
    border-color: rgba(23, 23, 23, 0.16) !important;
    box-shadow: 0 14px 24px -20px rgba(0, 0, 0, 0.12) !important;
}

.site-header-lm .header-lm-feature-ico {
    background: linear-gradient(180deg, #444 0%, #171717 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 14px -12px rgba(0, 0, 0, 0.4) !important;
}

.site-header-lm .header-lm-feature-txt,
.site-header-lm .header-lm-feature-link.is-active .header-lm-feature-txt,
.site-header-lm .header-lm-feature-link:hover .header-lm-feature-txt {
    color: #333 !important;
}

.site-header-lm .header-lm-feature-link.is-active .header-lm-feature-ico,
.site-header-lm .header-lm-feature-link:hover .header-lm-feature-ico {
    background: linear-gradient(180deg, #666 0%, #222 100%) !important;
}

.site-header-lm .header-lm-sub {
    background: linear-gradient(180deg, rgba(250, 250, 248, 0.98) 0%, rgba(244, 244, 242, 0.98) 100%) !important;
    border-color: rgba(23, 23, 23, 0.08) !important;
    box-shadow: 0 14px 22px -22px rgba(0, 0, 0, 0.08) !important;
}

.site-header-lm .header-lm-sub-left {
    color: #404040 !important;
}

.site-header-lm .header-lm-sub-right {
    color: #6a6a6a !important;
}

.site-header-lm .header-lm-brand-mark {
    color: #171717 !important;
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.08), rgba(23, 23, 23, 0.02)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.site-header-lm .header-lm-warn {
    color: #171717 !important;
}

.site-header-lm a.header-lm-submit-btn {
    color: #fff !important;
    background: linear-gradient(180deg, #3d3d3d 0%, #171717 100%) !important;
    border-color: rgba(23, 23, 23, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 18px -16px rgba(0, 0, 0, 0.22) !important;
}

.site-header-lm a.header-lm-submit-btn:hover {
    filter: brightness(1.02) !important;
    background: linear-gradient(180deg, #555 0%, #1f1f1f 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 20px -16px rgba(0, 0, 0, 0.28) !important;
}

/* 首页风格覆盖：深色高级头部，不改结构 */
body.page-home .site-header-lm .header-lm-card {
    background:
        linear-gradient(180deg, rgba(72, 56, 43, 0.96), rgba(44, 33, 25, 0.97)),
        linear-gradient(135deg, rgba(201, 148, 91, 0.08), rgba(201, 148, 91, 0));
    border-color: rgba(174, 127, 79, 0.26);
    box-shadow:
        0 26px 42px -34px rgba(0, 0, 0, 0.76),
        0 18px 26px -24px rgba(116, 73, 31, 0.32),
        inset 0 1px 0 rgba(255, 244, 224, 0.06);
}

body.page-home .site-header-lm .header-lm-card::before {
    background: linear-gradient(90deg, rgba(194, 148, 93, 0), rgba(194, 148, 93, 0.7), rgba(231, 192, 141, 0.88), rgba(194, 148, 93, 0.36), rgba(194, 148, 93, 0));
}

body.page-home .site-header-lm .header-lm-card::after {
    background:
        linear-gradient(135deg, rgba(255, 234, 202, 0.08), rgba(255, 234, 202, 0) 34%),
        radial-gradient(circle at 84% 18%, rgba(214, 168, 114, 0.08), rgba(214, 168, 114, 0) 28%);
}

body.page-home .site-header-lm .header-lm-feature-link {
    color: #f0d4b0;
    background: linear-gradient(180deg, rgba(92, 69, 50, 0.94), rgba(61, 45, 33, 0.96));
    border-color: rgba(176, 129, 82, 0.28);
    box-shadow: 0 14px 22px -18px rgba(0, 0, 0, 0.62);
}

body.page-home .site-header-lm .header-lm-feature-link:hover {
    border-color: rgba(212, 170, 123, 0.44);
    box-shadow: 0 18px 26px -18px rgba(87, 53, 22, 0.55);
}

body.page-home .site-header-lm .header-lm-feature-ico {
    background: linear-gradient(180deg, #d9a05f 0%, #8d5a2d 100%);
    box-shadow: inset 0 1px 0 rgba(255, 243, 223, 0.35), 0 8px 14px -12px rgba(87, 53, 22, 0.7);
}

body.page-home .site-header-lm .header-lm-feature-txt,
body.page-home .site-header-lm .header-lm-feature-link.is-active .header-lm-feature-txt,
body.page-home .site-header-lm .header-lm-feature-link:hover .header-lm-feature-txt {
    color: #f0d4b0;
}

body.page-home .site-header-lm .header-lm-feature-link.is-active .header-lm-feature-ico,
body.page-home .site-header-lm .header-lm-feature-link:hover .header-lm-feature-ico {
    background: linear-gradient(180deg, #f0be7f 0%, #a66a36 100%);
    box-shadow: inset 0 2px 0 rgba(255, 244, 224, 0.42), 0 10px 18px -12px rgba(87, 53, 22, 0.72);
}

body.page-home .site-header-lm .header-lm-sub {
    background:
        linear-gradient(180deg, rgba(68, 51, 39, 0.97) 0%, rgba(42, 31, 23, 0.98) 100%);
    border-color: rgba(164, 119, 75, 0.28);
    box-shadow:
        0 18px 28px -24px rgba(0, 0, 0, 0.72),
        0 14px 20px -22px rgba(87, 53, 22, 0.36);
}

body.page-home .site-header-lm .header-lm-sub-inner {
    padding: 9px 14px;
    gap: 8px 14px;
}

body.page-home .site-header-lm .header-lm-sub-left {
    color: rgba(247, 229, 204, 0.96);
    font-weight: 700;
}

body.page-home .site-header-lm .header-lm-sub-right {
    color: rgba(237, 214, 184, 0.9);
    font-size: 11px;
}

body.page-home .site-header-lm .header-lm-brand-mark {
    color: #fff1d7;
    background: linear-gradient(135deg, rgba(223, 171, 109, 0.28), rgba(143, 88, 44, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 246, 230, 0.16);
}

body.page-home .site-header-lm .header-lm-warn {
    color: #f4bf86;
}

body.page-home .site-header-lm a.header-lm-submit-btn {
    padding: 8px 18px;
    color: #fff9f1 !important;
    background: linear-gradient(180deg, #deaa6c 0%, #8f592d 100%) !important;
    border-color: rgba(255, 228, 192, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 244, 224, 0.28),
        0 12px 20px -16px rgba(87, 53, 22, 0.66);
}

body.page-home .site-header-lm a.header-lm-submit-btn:hover {
    background: linear-gradient(180deg, #e8b77d 0%, #a66a36 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 244, 224, 0.34),
        0 14px 22px -16px rgba(87, 53, 22, 0.72);
}

/* 2026 审美重置：头部回归浅色高级中性，不再厚重深棕 */
body.page-home .site-header-lm .header-lm-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 245, 239, 0.96)),
        linear-gradient(135deg, rgba(232, 205, 182, 0.1), rgba(232, 205, 182, 0));
    border-color: rgba(46, 35, 28, 0.08);
    box-shadow:
        0 26px 48px -40px rgba(30, 22, 18, 0.18),
        0 12px 22px -20px rgba(30, 22, 18, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.page-home .site-header-lm .header-lm-card::before {
    background: linear-gradient(90deg, rgba(200, 111, 74, 0), rgba(200, 111, 74, 0.68), rgba(235, 162, 124, 0.78), rgba(200, 111, 74, 0.2), rgba(200, 111, 74, 0));
}

body.page-home .site-header-lm .header-lm-card::after {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 40%),
        radial-gradient(circle at 84% 18%, rgba(235, 162, 124, 0.08), rgba(235, 162, 124, 0) 26%);
}

body.page-home .site-header-lm .header-lm-feature-link {
    color: #5a4335;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 241, 234, 0.98));
    border-color: rgba(53, 39, 29, 0.08);
    box-shadow: 0 14px 24px -22px rgba(30, 22, 18, 0.14);
}

body.page-home .site-header-lm .header-lm-feature-link:hover {
    border-color: rgba(200, 111, 74, 0.22);
    box-shadow: 0 16px 26px -22px rgba(200, 111, 74, 0.18);
}

body.page-home .site-header-lm .header-lm-feature-ico {
    background: linear-gradient(180deg, #d88963 0%, #ba6647 100%);
    box-shadow: inset 0 1px 0 rgba(255, 242, 229, 0.36), 0 10px 16px -14px rgba(200, 111, 74, 0.38);
}

body.page-home .site-header-lm .header-lm-feature-txt,
body.page-home .site-header-lm .header-lm-feature-link.is-active .header-lm-feature-txt,
body.page-home .site-header-lm .header-lm-feature-link:hover .header-lm-feature-txt {
    color: #5a4335;
}

body.page-home .site-header-lm .header-lm-feature-link.is-active .header-lm-feature-ico,
body.page-home .site-header-lm .header-lm-feature-link:hover .header-lm-feature-ico {
    background: linear-gradient(180deg, #e59a72 0%, #c86f4a 100%);
}

body.page-home .site-header-lm .header-lm-sub {
    background: linear-gradient(180deg, rgba(249, 242, 234, 0.98) 0%, rgba(243, 235, 226, 0.98) 100%);
    border-color: rgba(46, 35, 28, 0.08);
    box-shadow: 0 16px 24px -24px rgba(30, 22, 18, 0.14);
}

body.page-home .site-header-lm .header-lm-sub-left {
    color: #5f4b3d;
}

body.page-home .site-header-lm .header-lm-sub-right {
    color: #7a6758;
}

body.page-home .site-header-lm .header-lm-brand-mark {
    color: #9f5438;
    background: linear-gradient(135deg, rgba(232, 176, 145, 0.24), rgba(232, 176, 145, 0.1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.page-home .site-header-lm .header-lm-warn {
    color: #c46d4b;
}

body.page-home .site-header-lm a.header-lm-submit-btn {
    color: #fffaf6 !important;
    background: linear-gradient(180deg, #db8a62 0%, #c86f4a 100%) !important;
    border-color: rgba(200, 111, 74, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 245, 235, 0.3), 0 12px 20px -16px rgba(200, 111, 74, 0.28);
}

body.page-home .site-header-lm a.header-lm-submit-btn:hover {
    background: linear-gradient(180deg, #e59a72 0%, #d47851 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 245, 235, 0.36), 0 14px 22px -16px rgba(200, 111, 74, 0.34);
}

/* 奶油珊瑚主题 */
body.page-home .site-header-lm .header-lm-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(254, 247, 241, 0.98)),
        linear-gradient(135deg, rgba(255, 211, 193, 0.18), rgba(255, 211, 193, 0));
    border-color: rgba(229, 205, 190, 0.88);
    box-shadow:
        0 26px 46px -40px rgba(91, 59, 42, 0.14),
        0 12px 22px -18px rgba(226, 124, 101, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

body.page-home .site-header-lm .header-lm-card::before {
    background: linear-gradient(90deg, rgba(230, 138, 113, 0), rgba(230, 138, 113, 0.72), rgba(255, 182, 156, 0.82), rgba(230, 138, 113, 0.18), rgba(230, 138, 113, 0));
}

body.page-home .site-header-lm .header-lm-card::after {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 84% 18%, rgba(255, 196, 168, 0.12), rgba(255, 196, 168, 0) 26%);
}

body.page-home .site-header-lm .header-lm-feature-link {
    color: #67483a;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 238, 0.98));
    border-color: rgba(229, 205, 190, 0.88);
    box-shadow: 0 14px 24px -22px rgba(91, 59, 42, 0.1);
}

body.page-home .site-header-lm .header-lm-feature-link:hover {
    border-color: rgba(230, 138, 113, 0.32);
    box-shadow: 0 16px 26px -22px rgba(226, 124, 101, 0.18);
}

body.page-home .site-header-lm .header-lm-feature-ico {
    background: linear-gradient(180deg, #ee9f85 0%, #d9755c 100%);
    box-shadow: inset 0 1px 0 rgba(255, 242, 236, 0.42), 0 10px 16px -14px rgba(226, 124, 101, 0.32);
}

body.page-home .site-header-lm .header-lm-feature-txt,
body.page-home .site-header-lm .header-lm-feature-link.is-active .header-lm-feature-txt,
body.page-home .site-header-lm .header-lm-feature-link:hover .header-lm-feature-txt {
    color: #67483a;
}

body.page-home .site-header-lm .header-lm-feature-link.is-active .header-lm-feature-ico,
body.page-home .site-header-lm .header-lm-feature-link:hover .header-lm-feature-ico {
    background: linear-gradient(180deg, #f3ad95 0%, #e18166 100%);
}

body.page-home .site-header-lm .header-lm-sub {
    background: linear-gradient(180deg, rgba(255, 248, 242, 0.98) 0%, rgba(252, 241, 234, 0.98) 100%);
    border-color: rgba(229, 205, 190, 0.88);
    box-shadow: 0 16px 24px -24px rgba(91, 59, 42, 0.1);
}

body.page-home .site-header-lm .header-lm-sub-left {
    color: #6c5346;
}

body.page-home .site-header-lm .header-lm-sub-right {
    color: #8f7465;
}

body.page-home .site-header-lm .header-lm-brand-mark {
    color: #c86f4a;
    background: linear-gradient(135deg, rgba(255, 216, 198, 0.54), rgba(255, 216, 198, 0.22));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

body.page-home .site-header-lm .header-lm-warn {
    color: #de7f67;
}

body.page-home .site-header-lm a.header-lm-submit-btn {
    color: #fffaf7 !important;
    background: linear-gradient(180deg, #ee9f85 0%, #d9755c 100%) !important;
    border-color: rgba(230, 138, 113, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 245, 240, 0.34), 0 12px 20px -16px rgba(226, 124, 101, 0.26);
}

body.page-home .site-header-lm a.header-lm-submit-btn:hover {
    background: linear-gradient(180deg, #f3ad95 0%, #e18166 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 245, 240, 0.4), 0 14px 22px -16px rgba(226, 124, 101, 0.32);
}

/* 黑白编辑感主题 */
body.page-home .site-header-lm .header-lm-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 248, 246, 0.98));
    border-color: rgba(23, 23, 23, 0.08);
    box-shadow:
        0 24px 44px -38px rgba(0, 0, 0, 0.14),
        0 10px 18px -16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

body.page-home .site-header-lm .header-lm-card::before {
    background: linear-gradient(90deg, rgba(23, 23, 23, 0), rgba(23, 23, 23, 0.62), rgba(115, 115, 115, 0.4), rgba(23, 23, 23, 0.12), rgba(23, 23, 23, 0));
}

body.page-home .site-header-lm .header-lm-card::after {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 42%);
}

body.page-home .site-header-lm .header-lm-feature-link {
    color: #333;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 243, 0.98));
    border-color: rgba(23, 23, 23, 0.08);
    box-shadow: 0 12px 22px -20px rgba(0, 0, 0, 0.08);
}

body.page-home .site-header-lm .header-lm-feature-link:hover {
    border-color: rgba(23, 23, 23, 0.16);
    box-shadow: 0 14px 24px -20px rgba(0, 0, 0, 0.12);
}

body.page-home .site-header-lm .header-lm-feature-ico {
    background: linear-gradient(180deg, #444 0%, #171717 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 14px -12px rgba(0, 0, 0, 0.4);
}

body.page-home .site-header-lm .header-lm-feature-txt,
body.page-home .site-header-lm .header-lm-feature-link.is-active .header-lm-feature-txt,
body.page-home .site-header-lm .header-lm-feature-link:hover .header-lm-feature-txt {
    color: #333;
}

body.page-home .site-header-lm .header-lm-feature-link.is-active .header-lm-feature-ico,
body.page-home .site-header-lm .header-lm-feature-link:hover .header-lm-feature-ico {
    background: linear-gradient(180deg, #666 0%, #222 100%);
}

body.page-home .site-header-lm .header-lm-sub {
    background: linear-gradient(180deg, rgba(250, 250, 248, 0.98) 0%, rgba(244, 244, 242, 0.98) 100%);
    border-color: rgba(23, 23, 23, 0.08);
    box-shadow: 0 14px 22px -22px rgba(0, 0, 0, 0.08);
}

body.page-home .site-header-lm .header-lm-sub-left {
    color: #404040;
}

body.page-home .site-header-lm .header-lm-sub-right {
    color: #6a6a6a;
}

body.page-home .site-header-lm .header-lm-brand-mark {
    color: #171717;
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.08), rgba(23, 23, 23, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.page-home .site-header-lm .header-lm-warn {
    color: #171717;
}

body.page-home .site-header-lm a.header-lm-submit-btn {
    color: #fff !important;
    background: linear-gradient(180deg, #3d3d3d 0%, #171717 100%) !important;
    border-color: rgba(23, 23, 23, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 18px -16px rgba(0, 0, 0, 0.22);
}

body.page-home .site-header-lm a.header-lm-submit-btn:hover {
    background: linear-gradient(180deg, #555 0%, #1f1f1f 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 20px -16px rgba(0, 0, 0, 0.28);
}

/* ===== Final orange/white header override ===== */
.site-header-lm .header-lm-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,251,247,0.98)) !important;
    border-color: #eceff3 !important;
    box-shadow: 0 20px 40px -34px rgba(15, 23, 42, 0.22) !important;
}

.site-header-lm .header-lm-card::before {
    background: linear-gradient(90deg, rgba(255, 106, 0, 0), rgba(255, 106, 0, 0.54), rgba(255, 181, 126, 0.8), rgba(255, 106, 0, 0.18), rgba(255, 106, 0, 0)) !important;
}

.site-header-lm .header-lm-card::after {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0) 42%),
        radial-gradient(circle at 84% 18%, rgba(255, 175, 133, 0.1), rgba(255, 175, 133, 0) 26%) !important;
}

.site-header-lm .header-lm-feature-link {
    color: #4b5563 !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,248,243,0.98)) !important;
    border-color: #eceff3 !important;
    box-shadow: 0 14px 22px -20px rgba(15, 23, 42, 0.08) !important;
}

.site-header-lm .header-lm-feature-link:hover,
.site-header-lm .header-lm-feature-link.is-active {
    border-color: rgba(255, 106, 0, 0.18) !important;
    box-shadow: 0 16px 24px -20px rgba(255, 106, 0, 0.14) !important;
}

.site-header-lm .header-lm-feature-ico,
.site-header-lm .header-lm-feature-link.is-active .header-lm-feature-ico,
.site-header-lm .header-lm-feature-link:hover .header-lm-feature-ico {
    background: linear-gradient(180deg, #ffb179 0%, #ff7a1a 100%) !important;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.36), 0 10px 18px -12px rgba(255, 106, 0, 0.46) !important;
}

.site-header-lm .header-lm-feature-link.is-active .header-lm-feature-txt,
.site-header-lm .header-lm-feature-link:hover .header-lm-feature-txt {
    color: #ff6a00 !important;
}

.site-header-lm .header-lm-sub {
    background: linear-gradient(180deg, rgba(255,250,245,0.98) 0%, rgba(255,246,239,0.98) 100%) !important;
    border-color: #eceff3 !important;
    box-shadow: 0 14px 22px -22px rgba(15, 23, 42, 0.08) !important;
}

.site-header-lm .header-lm-sub-left {
    color: #6b7280 !important;
}

.site-header-lm .header-lm-sub-right {
    color: #9ca3af !important;
}

.site-header-lm .header-lm-brand-mark,
.site-header-lm .header-lm-warn {
    color: #ff6a00 !important;
}

.site-header-lm a.header-lm-submit-btn {
    color: #fff !important;
    background: linear-gradient(180deg, #ff8f32 0%, #ff6a00 100%) !important;
    border-color: rgba(255, 106, 0, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 12px 18px -16px rgba(255, 106, 0, 0.34) !important;
}

.site-header-lm a.header-lm-submit-btn:hover {
    background: linear-gradient(180deg, #ff9f4f 0%, #ff7514 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 14px 20px -16px rgba(255, 106, 0, 0.4) !important;
}

/* ===== Clean global header rewrite ===== */
.site-header-lm {
    margin-bottom: 8px;
}

.site-header-lm .header-lm-shell {
    max-width: 1150px;
    padding-top: 10px;
    padding-left: 16px;
    padding-right: 16px;
}

.site-header-lm .header-lm-card {
    border-radius: 18px 18px 0 0 !important;
    border: 1px solid #e8edf4 !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.985), rgba(255,250,245,0.975)) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04) !important;
}

.site-header-lm .header-lm-card::before {
    height: 2px;
}

.site-header-lm .header-lm-card::after {
    display: none;
}

.site-header-lm .header-lm-top {
    min-height: 62px;
    padding: 0 16px;
    gap: 14px;
}

.site-header-lm .header-lm-logo-img.logo-icon {
    width: 112px;
    height: 30px;
}

.site-header-lm .site-logo {
    gap: 8px;
}

.site-header-lm .header-lm-feature-nav {
    display: flex;
    align-items: center;
}

.site-header-lm .header-lm-feature-list {
    gap: 18px;
    min-height: 32px;
    padding-right: 0;
}

.site-header-lm .header-lm-feature-link {
    min-height: auto;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #4b5563 !important;
}

.site-header-lm .header-lm-feature-link:hover,
.site-header-lm .header-lm-feature-link.is-active {
    transform: none;
    color: #ff7b23 !important;
}

.site-header-lm .header-lm-feature-ico {
    display: none !important;
}

.site-header-lm .header-lm-feature-txt {
    max-width: none;
    font-size: 12px;
    font-weight: 700;
    color: inherit !important;
}

.site-header-lm .header-lm-toolbar .header-right {
    gap: 8px;
    height: 34px;
    min-height: 34px;
}

.site-header-lm .header-lm-sub {
    border: 1px solid #e8edf4 !important;
    border-top: none !important;
    border-radius: 0 0 18px 18px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.985), rgba(255,248,242,0.975)) !important;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.035) !important;
}

.site-header-lm .header-lm-sub-inner {
    min-height: 34px;
    padding: 0 16px;
    gap: 8px 16px;
}

.site-header-lm .header-lm-sub-left,
.site-header-lm .header-lm-sub-right,
.site-header-lm .header-lm-coop {
    color: #6b7280 !important;
    font-size: 11px;
}

.site-header-lm .header-lm-brand-mark,
.site-header-lm .header-lm-warn {
    color: #ff7b23 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0 2px;
}

.site-header-lm a.header-lm-submit-btn {
    height: 26px;
    padding: 0 12px;
    border-radius: 8px !important;
    background: linear-gradient(180deg, #313131 0%, #181818 100%) !important;
    border: none !important;
    box-shadow: 0 10px 14px -12px rgba(0, 0, 0, 0.45) !important;
    font-size: 11px;
}
