/**
 * header-top-fix.css
 * 仅保留页顶公司名修复（清理冲突规则）
 */

/* 关闭旧伪元素公司名，统一用真实 .company-name 文本 */
#site-header .custom-logo-link::after {
    content: none !important;
    display: none !important;
}

/* 桌面：公司名单行显示 */
#site-header .header-inner {
    gap: 10px !important;
}
#site-header .site-logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
}
#site-header .site-logo .logo-text {
    display: block !important;
    min-width: 0 !important;
    max-width: 60vw !important;
}
#site-header .site-logo .company-name {
    display: block !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.2 !important;
    color: #1A2332 !important;
    font-weight: 700 !important;
}

/* 移动端：商标在上，公司名一行在下 */
@media screen and (max-width: 1024px) {
    #site-header .header-inner {
        height: 78px !important;
        align-items: center !important;
        gap: 8px !important;
    }

    #site-header .site-logo {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 4px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 40px) !important;
        overflow: visible !important;
        margin-right: auto !important;
    }

    #site-header .site-logo .custom-logo-link,
    #site-header .site-logo .logo-icon-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    #site-header .site-logo .custom-logo {
        max-height: 30px !important;
        width: auto !important;
        height: auto !important;
    }

    #site-header .site-logo .logo-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }

    #site-header .site-logo .logo-text {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #site-header .site-logo .company-name {
        display: block !important;
        font-size: clamp(8px, 2.3vw, 12px) !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        letter-spacing: -0.1px !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    #site-header .site-logo .company-slogan {
        display: none !important;
    }
}

@media screen and (max-width: 480px) {
    #site-header .header-inner {
        height: 74px !important;
    }
    #site-header .site-logo {
        max-width: calc(100% - 50px) !important;
    }
    #site-header .site-logo .company-name {
        font-size: clamp(8px, 2.8vw, 11px) !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
}